swagger: '2.0'
info:
version: '2023-03-31'
title: API Reference
description: "\n\n# Introduction\n\nWelcome to the REST API reference for the Zuora\
\ Billing, Collect, and Central Platform!\n\nTo learn about the common use cases\
\ of Zuora REST APIs, check out the [REST API Tutorials](https://www.zuora.com/developer/rest-api/api-guides/overview/).\n\
\nIn addition to Zuora API Reference, we also provide API references for other\
\ Zuora products:\n\n * [Revenue API Reference](https://www.zuora.com/developer/api-references/revenue/overview/)\n\
\ * [Collections API Reference](https://www.zuora.com/developer/api-references/collections/overview/)\n\
\ \nThe Zuora REST API provides a broad set of operations and resources that:\n\
\n * Enable Web Storefront integration from your website.\n * Support self-service\
\ subscriber sign-ups and account management.\n * Process revenue schedules through\
\ custom revenue rule models.\n * Enable manipulation of most objects in the\
\ Zuora Billing Object Model.\n\nWant to share your opinion on how our API works\
\ for you? Tell us how you feel about using our API and what we can\
\ do to make it better.\n\nSome of our older APIs are no longer recommended but\
\ still available, not affecting any existing integration. To find related API\
\ documentation, see [Older API Reference](https://www.zuora.com/developer/api-references/older-api/overview/).\n\
\n\n## Access to the API\n\nIf you have a Zuora tenant, you can access the Zuora\
\ REST API via one of the following endpoints:\n\n| Tenant | Base\
\ URL for REST Endpoints |\n|-------------------------|-------------------------|\n\
|US Cloud 1 Production | https://rest.na.zuora.com |\n|US Cloud 1 API Sandbox\
\ | https://rest.sandbox.na.zuora.com |\n|US Cloud 2 Production | https://rest.zuora.com\
\ |\n|US Cloud 2 API Sandbox | https://rest.apisandbox.zuora.com|\n|US Central\
\ Sandbox | https://rest.test.zuora.com | \n|US Performance Test | https://rest.pt1.zuora.com\
\ |\n|US Production Copy | Submit a request at Zuora Global Support to enable the Zuora REST API in your\
\ tenant and obtain the base URL for REST endpoints. See [REST endpoint base URL\
\ of Production Copy (Service) Environment for existing and new customers](https://community.zuora.com/t5/API/REST-endpoint-base-URL-of-Production-Copy-Service-Environment/td-p/29611)\
\ for more information. |\n|EU Production | https://rest.eu.zuora.com |\n|EU API\
\ Sandbox | https://rest.sandbox.eu.zuora.com |\n|EU Central Sandbox | https://rest.test.eu.zuora.com\
\ |\n\nThe Production endpoint provides access to your live user data. Sandbox\
\ tenants are a good place to test code without affecting real-world data. If\
\ you would like Zuora to provision a Sandbox tenant for you, contact your Zuora\
\ representative for assistance.\n\n\nIf you do not have a Zuora tenant, go to\
\ https://www.zuora.com/resource/zuora-test-drive and sign up for a Production\
\ Test Drive tenant. The tenant comes with seed data, including a sample product\
\ catalog.\n\n\n# Error Handling\n\nIf a request to Zuora Billing REST API with\
\ an endpoint starting with `/v1` (except [Actions](https://www.zuora.com/developer/api-references/api/tag/Actions)\
\ and CRUD operations) fails, the response will contain an eight-digit error code\
\ with a corresponding error message to indicate the details of the error.\n\n\
The following code snippet is a sample error response that contains an error code\
\ and message pair:\n\n```\n {\n \"success\": false,\n \"processId\": \"CBCFED6580B4E076\"\
,\n \"reasons\": [\n {\n \"code\": 53100320,\n \"message\": \"\
'termType' value should be one of: TERMED, EVERGREEN\"\n }\n ]\n }\n```\n\
The `success` field indicates whether the API request has succeeded. The `processId`\
\ field is a Zuora internal ID that you can provide to Zuora Global Support for\
\ troubleshooting purposes.\n\nThe `reasons` field contains the actual error code\
\ and message pair. The error code begins with `5` or `6` means that you encountered\
\ a certain issue that is specific to a REST API resource in Zuora Billing, Collect,\
\ and Central Platform. For example, `53100320` indicates that an invalid value\
\ is specified for the `termType` field of the `subscription` object.\n\nThe error\
\ code beginning with `9` usually indicates that an authentication-related issue\
\ occurred, and it can also indicate other unexpected errors depending on different\
\ cases. For example, `90000011` indicates that an invalid credential is provided\
\ in the request header. \n\nWhen troubleshooting the error, you can divide the\
\ error code into two components: REST API resource code and error category code.\
\ See the following Zuora error code sample:\n\n\n\n\n**Note:** Zuora determines resource\
\ codes based on the request payload. Therefore, if GET and DELETE requests that\
\ do not contain payloads fail, you will get `500000` as the resource code, which\
\ indicates an unknown object and an unknown field. \nThe error category code\
\ of these requests is valid and follows the rules described in the [Error Category\
\ Codes](https://www.zuora.com/developer/api-references/api/overview/#section/Error-Handling/Error-Category-Codes)\
\ section. \nIn such case, you can refer to the returned error message to troubleshoot.\n\
\n\n## REST API Resource Codes\n\nThe 6-digit resource code indicates the REST\
\ API resource, typically a field of a Zuora object, on which the issue occurs.\
\ In the preceding example, `531003` refers to the `termType` field of the `subscription`\
\ object. \n\nThe value range for all REST API resource codes is from `500000`\
\ to `679999`. See Resource Codes in the Knowledge Center for a full list\
\ of resource codes.\n\n## Error Category Codes\n\nThe 2-digit error category\
\ code identifies the type of error, for example, resource not found or missing\
\ required field. \n\nThe following table describes all error categories and the\
\ corresponding resolution:\n\n| Code | Error category | Description\
\ | Resolution |\n|:--------|:--------|:--------|:--------|\n| 10 |\
\ Permission or access denied | The request cannot be processed because a certain\
\ tenant or user permission is missing. | Check the missing tenant or user permission\
\ in the response message and contact Zuora Global Support for enablement. |\n| 11 | Authentication\
\ failed | Authentication fails due to invalid API authentication credentials.\
\ | Ensure that a valid API credential is specified. |\n| 20 | Invalid format\
\ or value | The request cannot be processed due to an invalid field format\
\ or value. | Check the invalid field in the error message, and ensure that the\
\ format and value of all fields you passed in are valid. |\n| 21 | Unknown\
\ field in request | The request cannot be processed because an unknown field\
\ exists in the request body. | Check the unknown field name in the response message,\
\ and ensure that you do not include any unknown field in the request body. |\n\
| 22 | Missing required field | The request cannot be processed because\
\ a required field in the request body is missing. | Check the missing field name\
\ in the response message, and ensure that you include all required fields in\
\ the request body. |\n| 23 | Missing required parameter | The request cannot\
\ be processed because a required query parameter is missing. | Check the missing\
\ parameter name in the response message, and ensure that you include the parameter\
\ in the query. |\n| 30 | Rule restriction | The request cannot\
\ be processed due to the violation of a Zuora business rule. | Check the response\
\ message and ensure that the API request meets the specified business rules.\
\ |\n| 40 | Not found | The specified resource cannot be\
\ found. | Check the response message and ensure that the specified resource exists\
\ in your Zuora tenant. |\n| 45 | Unsupported request | The requested\
\ endpoint does not support the specified HTTP method. | Check your request and\
\ ensure that the endpoint and method matches. |\n| 50 | Locking contention\
\ | This request cannot be processed because the objects this request\
\ is trying to modify are being modified by another API request, UI operation,\
\ or batch job process. |
Resubmit the request first to have another try.
\ \If this error still occurs, contact Zuora Global Support with the returned `Zuora-Request-Id`\ \ value in the response header for assistance.
|\n| 60 | Internal error\ \ | The server encounters an internal error. | Contact Zuora Global Support with the\ \ returned `Zuora-Request-Id` value in the response header for assistance. |\n\ | 61 | Temporary error | A temporary error occurs during request\ \ processing, for example, a database communication error. |Resubmit the request\ \ first to have another try.
If this error still occurs, contact Zuora Global Support with the\ \ returned `Zuora-Request-Id` value in the response header for assistance.
|\n\ | 70 | Request exceeded limit | The total number of concurrent requests\ \ exceeds the limit allowed by the system. |Resubmit the request after the\ \ number of seconds specified by the `Retry-After` value in the response header.
\ \Check [Concurrent request limits](https://www.zuora.com/developer/rest-api/general-concepts/rate-concurrency-limits/)\ \ for details about Zuora\u2019s concurrent request limit policy.
|\n| 90\ \ | Malformed request | The request cannot be processed due to\ \ JSON syntax errors. | Check the syntax error in the JSON request body and ensure\ \ that the request is in the correct JSON format. |\n| 99 | Integration error\ \ | The server encounters an error when communicating with an external\ \ system, for example, payment gateway, tax engine provider. | Check the response\ \ message and take action accordingly. |\n\n\n# API Versions\n\nThe Zuora REST\ \ API are version controlled. Versioning ensures that Zuora REST API changes are\ \ backward compatible. Zuora uses a major and minor version nomenclature to manage\ \ changes. By specifying a version in a REST request, you can get expected responses\ \ regardless of future changes to the API.\n\n## Major Version\n\nThe major version\ \ number of the REST API appears in the REST URL. In this API reference, only\ \ the **v1** major version is available. For example, `POST https://rest.zuora.com/v1/subscriptions`.\n\ \n## Minor Version\n\nZuora uses minor versions for the REST API to control small\ \ changes. For example, a field in a REST method is deprecated and a new field\ \ is used to replace it. \n\nSome fields in the REST methods are supported as\ \ of minor versions. If a field is not noted with a minor version, this field\ \ is available for all minor versions. If a field is noted with a minor version,\ \ this field is in version control. You must specify the supported minor version\ \ in the request header to process without an error. \n\nIf a field is in version\ \ control, it is either with a minimum minor version or a maximum minor version,\ \ or both of them. You can only use this field with the minor version between\ \ the minimum and the maximum minor versions. For example, the `invoiceCollect`\ \ field in the POST Subscription method is in version control and its maximum\ \ minor version is 189.0. You can only use this field with the minor version 189.0\ \ or earlier.\n\nIf you specify a version number in the request header that is\ \ not supported, Zuora will use the minimum minor version of the REST API. In\ \ our REST API documentation, if a field or feature requires a minor version number,\ \ we note that in the field description.\n\nYou only need to specify the version\ \ number when you use the fields require a minor version. To specify the minor\ \ version, set the `zuora-version` parameter to the minor version number in the\ \ request header for the request call. For example, the `collect` field is in\ \ 196.0 minor version. If you want to use this field for the POST Subscription\ \ method, set the `zuora-version` parameter to `196.0` in the request header.\ \ The `zuora-version` parameter is case sensitive.\n\nFor all the REST API fields,\ \ by default, if the minor version is not specified in the request header, Zuora\ \ will use the minimum minor version of the REST API to avoid breaking your integration.\ \ \n\n### Minor Version History\n\nThe supported minor versions are not serial.\ \ This section documents the changes made to each Zuora REST API minor version.\n\ \nThe following table lists the supported versions and the fields that have a\ \ Zuora REST API minor version.\n\n| Fields | Minor Version | REST\ \ Methods | Description |\n|:--------|:--------|:--------|:--------|\n| invoiceCollect\ \ | 189.0 and earlier | [Create Subscription](https://www.zuora.com/developer/api-references/api/operation/POST_Subscription\ \ \"Create Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_Subscription\ \ \"Update Subscription\"); [Renew Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_RenewSubscription\ \ \"Renew Subscription\"); [Cancel Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_CancelSubscription\ \ \"Cancel Subscription\"); [Suspend Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_SuspendSubscription\ \ \"Suspend Subscription\"); [Resume Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_ResumeSubscription\ \ \"Resume Subscription\"); [Create Account](https://www.zuora.com/developer/api-references/api/operation/POST_Account\ \ \"Create Account\")|Generates an invoice and collects a payment for a subscription.\ \ |\n| collect | 196.0 and later | [Create Subscription](https://www.zuora.com/developer/api-references/api/operation/POST_Subscription\ \ \"Create Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_Subscription\ \ \"Update Subscription\"); [Renew Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_RenewSubscription\ \ \"Renew Subscription\"); [Cancel Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_CancelSubscription\ \ \"Cancel Subscription\"); [Suspend Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_SuspendSubscription\ \ \"Suspend Subscription\"); [Resume Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_ResumeSubscription\ \ \"Resume Subscription\"); [Create Account](https://www.zuora.com/developer/api-references/api/operation/POST_Account\ \ \"Create Account\")|Collects an automatic payment for a subscription. |\n| invoice\ \ | 196.0 and 207.0| [Create Subscription](https://www.zuora.com/developer/api-references/api/operation/POST_Subscription\ \ \"Create Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_Subscription\ \ \"Update Subscription\"); [Renew Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_RenewSubscription\ \ \"Renew Subscription\"); [Cancel Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_CancelSubscription\ \ \"Cancel Subscription\"); [Suspend Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_SuspendSubscription\ \ \"Suspend Subscription\"); [Resume Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_ResumeSubscription\ \ \"Resume Subscription\"); [Create Account](https://www.zuora.com/developer/api-references/api/operation/POST_Account\ \ \"Create Account\")|Generates an invoice for a subscription. |\n| invoiceTargetDate\ \ | 206.0 and earlier | [Preview Subscription](https://www.zuora.com/developer/api-references/api/operation/POST_PreviewSubscription\ \ \"Preview Subscription\") |Date through which charges are calculated on the\ \ invoice, as `yyyy-mm-dd`. |\n| invoiceTargetDate | 207.0 and earlier | [Create\ \ Subscription](https://www.zuora.com/developer/api-references/api/operation/POST_Subscription\ \ \"Create Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_Subscription\ \ \"Update Subscription\"); [Renew Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_RenewSubscription\ \ \"Renew Subscription\"); [Cancel Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_CancelSubscription\ \ \"Cancel Subscription\"); [Suspend Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_SuspendSubscription\ \ \"Suspend Subscription\"); [Resume Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_ResumeSubscription\ \ \"Resume Subscription\"); [Create Account](https://www.zuora.com/developer/api-references/api/operation/POST_Account\ \ \"Create Account\")|Date through which charges are calculated on the invoice,\ \ as `yyyy-mm-dd`. |\n| targetDate | 207.0 and later | [Preview Subscription](https://www.zuora.com/developer/api-references/api/operation/POST_PreviewSubscription\ \ \"Preview Subscription\") |Date through which charges are calculated on the\ \ invoice, as `yyyy-mm-dd`. |\n| targetDate | 211.0 and later | [Create Subscription](https://www.zuora.com/developer/api-references/api/operation/POST_Subscription\ \ \"Create Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_Subscription\ \ \"Update Subscription\"); [Renew Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_RenewSubscription\ \ \"Renew Subscription\"); [Cancel Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_CancelSubscription\ \ \"Cancel Subscription\"); [Suspend Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_SuspendSubscription\ \ \"Suspend Subscription\"); [Resume Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_ResumeSubscription\ \ \"Resume Subscription\"); [Create Account](https://www.zuora.com/developer/api-references/api/operation/POST_Account\ \ \"Create Account\")|Date through which charges are calculated on the invoice,\ \ as `yyyy-mm-dd`. |\n| includeExisting DraftInvoiceItems | 206.0 and earlier|\ \ [Preview Subscription](https://www.zuora.com/developer/api-references/api/operation/POST_PreviewSubscription\ \ \"Preview Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_Subscription\ \ \"Update Subscription\") | Specifies whether to include draft invoice items\ \ in subscription previews. Specify it to be `true` (default) to include draft\ \ invoice items in the preview result. Specify it to be `false` to excludes draft\ \ invoice items in the preview result. |\n| includeExisting DraftDocItems | 207.0\ \ and later | [Preview Subscription](https://www.zuora.com/developer/api-references/api/operation/POST_PreviewSubscription\ \ \"Preview Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_Subscription\ \ \"Update Subscription\") | Specifies whether to include draft invoice items\ \ in subscription previews. Specify it to be `true` (default) to include draft\ \ invoice items in the preview result. Specify it to be `false` to excludes draft\ \ invoice items in the preview result. |\n| previewType | 206.0 and earlier| [Preview\ \ Subscription](https://www.zuora.com/developer/api-references/api/operation/POST_PreviewSubscription\ \ \"Preview Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_Subscription\ \ \"Update Subscription\") | The type of preview you will receive. The possible\ \ values are `InvoiceItem`(default), `ChargeMetrics`, and `InvoiceItemChargeMetrics`.\ \ |\n| previewType | 207.0 and later | [Preview Subscription](https://www.zuora.com/developer/api-references/api/operation/POST_PreviewSubscription\ \ \"Preview Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_Subscription\ \ \"Update Subscription\") | The type of preview you will receive. The possible\ \ values are `LegalDoc`(default), `ChargeMetrics`, and `LegalDocChargeMetrics`.\ \ |\n| runBilling | 211.0 and later | [Create Subscription](https://www.zuora.com/developer/api-references/api/operation/POST_Subscription\ \ \"Create Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_Subscription\ \ \"Update Subscription\"); [Renew Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_RenewSubscription\ \ \"Renew Subscription\"); [Cancel Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_CancelSubscription\ \ \"Cancel Subscription\"); [Suspend Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_SuspendSubscription\ \ \"Suspend Subscription\"); [Resume Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_ResumeSubscription\ \ \"Resume Subscription\"); [Create Account](https://www.zuora.com/developer/api-references/api/operation/POST_Account\ \ \"Create Account\")|Generates an invoice or credit memo for a subscription.\ \ **Note:** Credit memos are only available if you have the Invoice Settlement\ \ feature enabled. |\n| invoiceDate | 214.0 and earlier | [Invoice and Collect](https://www.zuora.com/developer/api-references/api/operation/POST_TransactionInvoicePayment\ \ \"Invoice and Collect\") |Date that should appear on the invoice being generated,\ \ as `yyyy-mm-dd`. |\n| invoiceTargetDate | 214.0 and earlier | [Invoice and\ \ Collect](https://www.zuora.com/developer/api-references/api/operation/POST_TransactionInvoicePayment\ \ \"Invoice and Collect\") |Date through which to calculate charges on this account\ \ if an invoice is generated, as `yyyy-mm-dd`. |\n| documentDate | 215.0 and later\ \ | [Invoice and Collect](https://www.zuora.com/developer/api-references/api/operation/POST_TransactionInvoicePayment\ \ \"Invoice and Collect\") |Date that should appear on the invoice and credit\ \ memo being generated, as `yyyy-mm-dd`. |\n| targetDate | 215.0 and later | [Invoice\ \ and Collect](https://www.zuora.com/developer/api-references/api/operation/POST_TransactionInvoicePayment\ \ \"Invoice and Collect\") |Date through which to calculate charges on this account\ \ if an invoice or a credit memo is generated, as `yyyy-mm-dd`. |\n| memoItemAmount\ \ | 223.0 and earlier | [Create credit memo from charge](https://www.zuora.com/developer/api-references/api/operation/POST_CreditMemoFromPrpc\ \ \"Create credit memo from charge\"); [Create debit memo from charge](https://www.zuora.com/developer/api-references/api/operation/POST_DebitMemoFromPrpc\ \ \"Create debit memo from charge\") | Amount of the memo item. |\n| amount |\ \ 224.0 and later | [Create credit memo from charge](https://www.zuora.com/developer/api-references/api/operation/POST_CreditMemoFromPrpc\ \ \"Create credit memo from charge\"); [Create debit memo from charge](https://www.zuora.com/developer/api-references/api/operation/POST_DebitMemoFromPrpc\ \ \"Create debit memo from charge\") | Amount of the memo item. |\n| subscriptionNumbers\ \ | 222.4 and earlier | [Create order](https://www.zuora.com/developer/api-references/api/operation/POST_Order\ \ \"Create order\") | Container for the subscription numbers of the subscriptions\ \ in an order. |\n| subscriptions | 223.0 and later | [Create order](https://www.zuora.com/developer/api-references/api/operation/POST_Order\ \ \"Create order\") | Container for the subscription numbers and statuses in an\ \ order. |\n| creditTaxItems | 238.0 and earlier | [Get credit memo items](https://www.zuora.com/developer/api-references/api/operation/GET_CreditMemoItems\ \ \"Get credit memo items\"); [Get credit memo item](https://www.zuora.com/developer/api-references/api/operation/GET_CreditMemoItem\ \ \"Get credit memo item\") | Container for the taxation items of the credit memo\ \ item. |\n| taxItems | 238.0 and earlier | [Get debit memo items](https://www.zuora.com/developer/api-references/api/operation/GET_DebitMemoItems\ \ \"Get debit memo items\"); [Get debit memo item](https://www.zuora.com/developer/api-references/api/operation/GET_DebitMemoItem\ \ \"Get debit memo item\") | Container for the taxation items of the debit memo\ \ item. |\n| taxationItems | 239.0 and later | [Get credit memo items](https://www.zuora.com/developer/api-references/api/operation/GET_CreditMemoItems\ \ \"Get credit memo items\"); [Get credit memo item](https://www.zuora.com/developer/api-references/api/operation/GET_CreditMemoItem\ \ \"Get credit memo item\"); [Get debit memo items](https://www.zuora.com/developer/api-references/api/operation/GET_DebitMemoItems\ \ \"Get debit memo items\"); [Get debit memo item](https://www.zuora.com/developer/api-references/api/operation/GET_DebitMemoItem\ \ \"Get debit memo item\") | Container for the taxation items of the memo item.\ \ |\n| chargeId | 256.0 and earlier | [Create credit memo from charge](https://www.zuora.com/developer/api-references/api/operation/POST_CreditMemoFromPrpc\ \ \"Create credit memo from charge\"); [Create debit memo from charge](https://www.zuora.com/developer/api-references/api/operation/POST_DebitMemoFromPrpc\ \ \"Create debit memo from charge\") | ID of the product rate plan charge that\ \ the memo is created from. |\n| productRatePlanChargeId | 257.0 and later | [Create\ \ credit memo from charge](https://www.zuora.com/developer/api-references/api/operation/POST_CreditMemoFromPrpc\ \ \"Create credit memo from charge\"); [Create debit memo from charge](https://www.zuora.com/developer/api-references/api/operation/POST_DebitMemoFromPrpc\ \ \"Create debit memo from charge\") | ID of the product rate plan charge that\ \ the memo is created from. |\n| comment | 256.0 and earlier | [Create credit\ \ memo from charge](https://www.zuora.com/developer/api-references/api/operation/POST_CreditMemoFromPrpc\ \ \"Create credit memo from charge\"); [Create debit memo from charge](https://www.zuora.com/developer/api-references/api/operation/POST_DebitMemoFromPrpc\ \ \"Create debit memo from charge\"); [Create credit memo from invoice](https://www.zuora.com/developer/api-references/api/operation/POST_CreditMemoFromInvoice\ \ \"Create credit memo from invoice\"); [Create debit memo from invoice](https://www.zuora.com/developer/api-references/api/operation/POST_DebitMemoFromInvoice\ \ \"Create debit memo from invoice\"); [Get credit memo items](https://www.zuora.com/developer/api-references/api/operation/GET_CreditMemoItems\ \ \"Get credit memo items\"); [Get credit memo item](https://www.zuora.com/developer/api-references/api/operation/GET_CreditMemoItem\ \ \"Get credit memo item\"); [Get debit memo items](https://www.zuora.com/developer/api-references/api/operation/GET_DebitMemoItems\ \ \"Get debit memo items\"); [Get debit memo item](https://www.zuora.com/developer/api-references/api/operation/GET_DebitMemoItem\ \ \"Get debit memo item\") | Comments about the product rate plan charge, invoice\ \ item, or memo item. |\n| description | 257.0 and later | [Create credit memo\ \ from charge](https://www.zuora.com/developer/api-references/api/operation/POST_CreditMemoFromPrpc\ \ \"Create credit memo from charge\"); [Create debit memo from charge](https://www.zuora.com/developer/api-references/api/operation/POST_DebitMemoFromPrpc\ \ \"Create debit memo from charge\"); [Create credit memo from invoice](https://www.zuora.com/developer/api-references/api/operation/POST_CreditMemoFromInvoice\ \ \"Create credit memo from invoice\"); [Create debit memo from invoice](https://www.zuora.com/developer/api-references/api/operation/POST_DebitMemoFromInvoice\ \ \"Create debit memo from invoice\"); [Get credit memo items](https://www.zuora.com/developer/api-references/api/operation/GET_CreditMemoItems\ \ \"Get credit memo items\"); [Get credit memo item](https://www.zuora.com/developer/api-references/api/operation/GET_CreditMemoItem\ \ \"Get credit memo item\"); [Get debit memo items](https://www.zuora.com/developer/api-references/api/operation/GET_DebitMemoItems\ \ \"Get debit memo items\"); [Get debit memo item](https://www.zuora.com/developer/api-references/api/operation/GET_DebitMemoItem\ \ \"Get debit memo item\") | Description of the the product rate plan charge,\ \ invoice item, or memo item. |\n| taxationItems | 309.0 and later | [Preview\ \ an order](https://www.zuora.com/developer/api-references/api/operation/POST_PreviewOrder\ \ \"Preview an order\") | List of taxation items for an invoice item or a credit\ \ memo item. |\n| batch | 309.0 and earlier | [Create a billing preview run](https://www.zuora.com/developer/api-references/api/operation/POST_BillingPreviewRun\ \ \"Create a billing preview run\") | The customer batches to include in the billing\ \ preview run. | \n| batches | 314.0 and later | [Create a billing preview\ \ run](https://www.zuora.com/developer/api-references/api/operation/POST_BillingPreviewRun\ \ \"Create a billing preview run\") | The customer batches to include in the billing\ \ preview run. |\n| taxationItems | 315.0 and later | [Preview a subscription](https://www.zuora.com/developer/api-references/api/operation/POST_PreviewSubscription\ \ \"Preview a subscription\"); [Update a subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_Subscription\ \ \"Update a subscription\")| List of taxation items for an invoice item or a\ \ credit memo item. |\n| billingDocument | 330.0 and later | [Create a payment\ \ schedule](https://www.zuora.com/developer/api-references/api/operation/POST_PaymentSchedule\ \ \"Create a payment schedule\"); [Create multiple payment schedules at once](https://www.zuora.com/developer/api-references/api/operation/POST_PaymentSchedules\ \ \"Create multiple payment schedules at once\")| The billing document with which\ \ the payment schedule item is associated. |\n| paymentId | 336.0 and earlier\ \ | [Add payment schedule items to a custom payment schedule](https://www.zuora.com/developer/api-references/api/operation/POST_AddItemsToCustomPaymentSchedule/\ \ \"Add payment schedule items to a custom payment schedule\"); [Update a payment\ \ schedule](https://www.zuora.com/developer/api-references/api/operation/PUT_PaymentSchedule/\ \ \"Update a payment schedule\"); [Update a payment schedule item](https://www.zuora.com/developer/api-references/api/operation/PUT_PaymentScheduleItem/\ \ \"Update a payment schedule item\"); [Preview the result of payment schedule\ \ update](https://www.zuora.com/developer/api-references/api/operation/PUT_PaymentScheduleUpdatePreview/\ \ \"Preview the result of payment schedule update\"); [Retrieve a payment schedule](https://www.zuora.com/developer/api-references/api/operation/GET_PaymentSchedule/\ \ \"Retrieve a payment schedule\"); [Retrieve a payment schedule item](https://www.zuora.com/developer/api-references/api/operation/GET_PaymentScheduleItem/\ \ \"Retrieve a payment schedule item\"); [List payment schedules by customer account](https://www.zuora.com/developer/api-references/api/operation/GET_PaymentSchedules/\ \ \"List payment schedules by customer account\"); [Cancel a payment schedule](https://www.zuora.com/developer/api-references/api/operation/PUT_CancelPaymentSchedule/\ \ \"Cancel a payment schedule\"); [Cancel a payment schedule item](https://www.zuora.com/developer/api-references/api/operation/PUT_CancelPaymentScheduleItem/\ \ \"Cancel a payment schedule item\");[Skip a payment schedule item](https://www.zuora.com/developer/api-references/api/operation/PUT_SkipPaymentScheduleItem/\ \ \"Skip a payment schedule item\");[Retry failed payment schedule items](https://www.zuora.com/developer/api-references/api/operation/POST_RetryPaymentScheduleItem/\ \ \"Retry failed payment schedule items\") | ID of the payment to be linked to\ \ the payment schedule item. |\n| linkPayments | 337.0 and later | [Update a payment\ \ schedule item](https://www.zuora.com/developer/api-references/api/operation/PUT_PaymentScheduleItem\ \ \"Update a payment schedule item\") | Array of payments to be linked to the\ \ payment schedule item. |\n| unlinkPayments | 337.0 and later | [Update a payment\ \ schedule item](https://www.zuora.com/developer/api-references/api/operation/PUT_PaymentScheduleItem\ \ \"Update a payment schedule item\") | Array of payments to be unlinked to the\ \ payment schedule item. |\n| paymentOption | 337.0 and later | [Create a payment\ \ schedule](https://www.zuora.com/developer/api-references/api/operation/POST_PaymentSchedule/\ \ \"Create a payment schedule\"); [Create multiple payment schedules at once](https://www.zuora.com/developer/api-references/api/operation/POST_PaymentSchedules/\ \ \"Create multiple payment schedules at once\"); [Create a payment](https://www.zuora.com/developer/api-references/api/operation/POST_CreatePayment/\ \ \"Create a payment\"); [Add payment schedule items to a custom payment schedule](https://www.zuora.com/developer/api-references/api/operation/POST_AddItemsToCustomPaymentSchedule/\ \ \"Add payment schedule items to a custom payment schedule\"); [Update a payment\ \ schedule](https://www.zuora.com/developer/api-references/api/operation/PUT_PaymentSchedule/\ \ \"Update a payment schedule\"); [Update a payment schedule item](https://www.zuora.com/developer/api-references/api/operation/PUT_PaymentScheduleItem/\ \ \"Update a payment schedule item\"); [Preview the result of payment schedule\ \ update](https://www.zuora.com/developer/api-references/api/operation/PUT_PaymentScheduleUpdatePreview/\ \ \"Preview the result of payment schedule update\"); [Retrieve a payment schedule](https://www.zuora.com/developer/api-references/api/operation/GET_PaymentSchedule/\ \ \"Retrieve a payment schedule\"); [Retrieve a payment schedule item](https://www.zuora.com/developer/api-references/api/operation/GET_PaymentScheduleItem/\ \ \"Retrieve a payment schedule item\"); [List payment schedules by customer account](https://www.zuora.com/developer/api-references/api/operation/GET_PaymentSchedules/\ \ \"List payment schedules by customer account\"); [Cancel a payment schedule](https://www.zuora.com/developer/api-references/api/operation/PUT_CancelPaymentSchedule/\ \ \"Cancel a payment schedule\"); [Cancel a payment schedule item](https://www.zuora.com/developer/api-references/api/operation/PUT_CancelPaymentScheduleItem/\ \ \"Cancel a payment schedule item\"); [Skip a payment schedule item](https://www.zuora.com/developer/api-references/api/operation/PUT_SkipPaymentScheduleItem/\ \ \"Skip a payment schedule item\"); [Retry failed payment schedule items](https://www.zuora.com/developer/api-references/api/operation/POST_RetryPaymentScheduleItem/\ \ \"Retry failed payment schedule items\"); [List payments](https://www.zuora.com/developer/api-references/api/operation/GET_RetrieveAllPayments/\ \ \"List payments\") | Array of transactional level rules for processing payments.\ \ |\n| psiPayments | 337.0 and later | [Add payment schedule items to a custom\ \ payment schedule](https://www.zuora.com/developer/api-references/api/operation/POST_AddItemsToCustomPaymentSchedule/\ \ \"Add payment schedule items to a custom payment schedule\"); [Update a payment\ \ schedule](https://www.zuora.com/developer/api-references/api/operation/PUT_PaymentSchedule/\ \ \"Update a payment schedule\"); [Update a payment schedule item](https://www.zuora.com/developer/api-references/api/operation/PUT_PaymentScheduleItem/\ \ \"Update a payment schedule item\"); [Preview the result of payment schedule\ \ update](https://www.zuora.com/developer/api-references/api/operation/PUT_PaymentScheduleUpdatePreview/\ \ \"Preview the result of payment schedule update\"); [Retrieve a payment schedule](https://www.zuora.com/developer/api-references/api/operation/GET_PaymentSchedule/\ \ \"Retrieve a payment schedule\"); [Retrieve a payment schedule item](https://www.zuora.com/developer/api-references/api/operation/GET_PaymentScheduleItem/\ \ \"Retrieve a payment schedule item\"); [List payment schedules by customer account](https://www.zuora.com/developer/api-references/api/operation/GET_PaymentSchedules/\ \ \"List payment schedules by customer account\"); [Cancel a payment schedule](https://www.zuora.com/developer/api-references/api/operation/PUT_CancelPaymentSchedule/\ \ \"Cancel a payment schedule\"); [Cancel a payment schedule item](https://www.zuora.com/developer/api-references/api/operation/PUT_CancelPaymentScheduleItem/\ \ \"Cancel a payment schedule item\");[Skip a payment schedule item](https://www.zuora.com/developer/api-references/api/operation/PUT_SkipPaymentScheduleItem/\ \ \"Skip a payment schedule item\");[Retry failed payment schedule items](https://www.zuora.com/developer/api-references/api/operation/POST_RetryPaymentScheduleItem/\ \ \"Retry failed payment schedule items\") | Container for payments linked to\ \ the payment schedule item. |\n\n\n\n#### Version 207.0 and Later\n\nThe response\ \ structure of the [Preview Subscription](https://www.zuora.com/developer/api-references/api/operation/POST_PreviewSubscription)\ \ and [Update Subscription](https://www.zuora.com/developer/api-references/api/operation/PUT_Subscription\ \ \"Update Subscription\") methods are changed. The following invoice related\ \ response fields are moved to the invoice container:\n\n * amount\n * amountWithoutTax\n\ \ * taxAmount\n * invoiceItems\n * targetDate\n * chargeMetrics\n\n\n# API\ \ Names for Zuora Objects\n\nFor information about the Zuora business object model,\ \ see [Zuora Business Object Model](https://www.zuora.com/developer/rest-api/general-concepts/object-model/).\n\ \nYou can use the [Describe](https://www.zuora.com/developer/api-references/api/operation/GET_Describe)\ \ operation to list the fields of each Zuora object that is available in your\ \ tenant. When you call the operation, you must specify the API name of the Zuora\ \ object.\n\nThe following table provides the API name of each Zuora object:\n\ \n| Object | API Name \ \ |\n|-----------------------------------------------|--------------------------------------------|\n\ | Account | `Account` \ \ |\n| Accounting Code | `AccountingCode`\ \ |\n| Accounting Period \ \ | `AccountingPeriod` |\n| Amendment \ \ | `Amendment` |\n| Application\ \ Group | `ApplicationGroup` \ \ |\n| Billing Run |`BillingRun` - API\ \ name used in the [Describe](https://www.zuora.com/developer/api-references/api/operation/GET_Describe)\ \ operation, Export ZOQL queries, and Data Query.
`BillRun` - API name\
\ used in the [Actions](https://www.zuora.com/developer/api-references/api/tag/Actions).\
\ See the CRUD oprations of [Bill Run](https://www.zuora.com/developer/api-references/api/tag/Bill-Run)\
\ for more information about the `BillRun` object. `BillingRun` and `BillRun`\
\ have different fields. | \n| Configuration Templates \
\ | `ConfigurationTemplates` |\n| Contact\
\ | `Contact` \
\ |\n| Contact Snapshot | `ContactSnapshot`\
\ |\n| Credit Balance Adjustment \
\ | `CreditBalanceAdjustment` |\n| Credit Memo \
\ | `CreditMemo` |\n| Credit\
\ Memo Application | `CreditMemoApplication` \
\ |\n| Credit Memo Application Item | `CreditMemoApplicationItem`\
\ |\n| Credit Memo Item | `CreditMemoItem`\
\ |\n| Credit Memo Part \
\ | `CreditMemoPart` |\n| Credit Memo Part Item \
\ | `CreditMemoPartItem` |\n| Credit\
\ Taxation Item | `CreditTaxationItem` \
\ |\n| Custom Exchange Rate | `FXCustomRate`\
\ |\n| Debit Memo \
\ | `DebitMemo` |\n| Debit Memo Item \
\ | `DebitMemoItem` |\n| Debit\
\ Taxation Item | `DebitTaxationItem` \
\ |\n| Discount Applied Metrics | `DiscountAppliedMetrics`\
\ |\n| Entity | `Tenant`\
\ |\n| Fulfillment \
\ | `Fulfillment` |\n| Feature \
\ | `Feature` |\n\
| Gateway Reconciliation Event | `PaymentGatewayReconciliationEventLog`\
\ |\n| Gateway Reconciliation Job | `PaymentReconciliationJob`\
\ |\n| Gateway Reconciliation Log | `PaymentReconciliationLog`\
\ |\n| Invoice | `Invoice`\
\ |\n| Invoice Adjustment \
\ | `InvoiceAdjustment` |\n| Invoice Item \
\ | `InvoiceItem` |\n\
| Invoice Item Adjustment | `InvoiceItemAdjustment` \
\ |\n| Invoice Payment | `InvoicePayment`\
\ |\n| Invoice Schedule \
\ | `InvoiceSchedule` |\n| Journal Entry \
\ | `JournalEntry` |\n| Journal\
\ Entry Item | `JournalEntryItem` \
\ |\n| Journal Run | `JournalRun` \
\ |\n| Notification History - Callout \
\ | `CalloutHistory` |\n| Notification History - Email\
\ | `EmailHistory` |\n| Offer \
\ | `Offer` |\n\
| Order | `Order` \
\ |\n| Order Action | `OrderAction`\
\ |\n| Order ELP \
\ | `OrderElp` |\n| Order Line Items \
\ | `OrderLineItems` | \n\
| Order Item | `OrderItem` \
\ |\n| Order MRR | `OrderMrr`\
\ |\n| Order Quantity \
\ | `OrderQuantity` |\n| Order TCB \
\ | `OrderTcb` |\n\
| Order TCV | `OrderTcv` \
\ |\n| Payment | `Payment`\
\ |\n| Payment Application \
\ | `PaymentApplication` |\n| Payment Application\
\ Item | `PaymentApplicationItem` |\n|\
\ Payment Method | `PaymentMethod` \
\ |\n| Payment Method Snapshot | `PaymentMethodSnapshot`\
\ |\n| Payment Method Transaction Log | `PaymentMethodTransactionLog`\
\ |\n| Payment Method Update | `UpdaterDetail`\
\ |\n| Payment Part \
\ | `PaymentPart` |\n| Payment Part Item \
\ | `PaymentPartItem` |\n| Payment\
\ Run | `PaymentRun` \
\ |\n| Payment Transaction Log | `PaymentTransactionLog`\
\ |\n| Price Book Item | `PriceBookItem`\
\ |\n| Processed Usage \
\ | `ProcessedUsage` |\n| Product \
\ | `Product` |\n| Product\
\ Feature | `ProductFeature` \
\ |\n| Product Rate Plan | `ProductRatePlan`\
\ |\n| Product Rate Plan Charge \
\ | `ProductRatePlanCharge` |\n| Product Rate Plan Charge Tier\
\ | `ProductRatePlanChargeTier` |\n| Rate Plan\
\ | `RatePlan` \
\ |\n| Rate Plan Charge | `RatePlanCharge` \
\ |\n| Rate Plan Charge Tier \
\ | `RatePlanChargeTier` |\n| Refund \
\ | `Refund` |\n| Refund\
\ Application | `RefundApplication` \
\ |\n| Refund Application Item | `RefundApplicationItem`\
\ |\n| Refund Invoice Payment | `RefundInvoicePayment`\
\ |\n| Refund Part | `RefundPart`\
\ |\n| Refund Part Item \
\ | `RefundPartItem` |\n| Refund Transaction Log\
\ | `RefundTransactionLog` |\n| Revenue\
\ Charge Summary | `RevenueChargeSummary` \
\ |\n| Revenue Charge Summary Item | `RevenueChargeSummaryItem`\
\ |\n| Revenue Event | `RevenueEvent`\
\ |\n| Revenue Event Credit Memo Item \
\ | `RevenueEventCreditMemoItem` |\n| Revenue Event Debit Memo\
\ Item | `RevenueEventDebitMemoItem` |\n| Revenue\
\ Event Invoice Item | `RevenueEventInvoiceItem` \
\ |\n| Revenue Event Invoice Item Adjustment | `RevenueEventInvoiceItemAdjustment`\
\ |\n| Revenue Event Item | `RevenueEventItem`\
\ |\n| Revenue Event Item Credit Memo Item |\
\ `RevenueEventItemCreditMemoItem` |\n| Revenue Event Item Debit Memo\
\ Item | `RevenueEventItemDebitMemoItem` |\n| Revenue Event\
\ Item Invoice Item | `RevenueEventItemInvoiceItem` \
\ |\n| Revenue Event Item Invoice Item Adjustment | `RevenueEventItemInvoiceItemAdjustment`\
\ |\n| Revenue Event Type | `RevenueEventType` \
\ |\n| Revenue Schedule |\
\ `RevenueSchedule` |\n| Revenue Schedule Credit Memo\
\ Item | `RevenueScheduleCreditMemoItem` |\n| Revenue Schedule\
\ Debit Memo Item | `RevenueScheduleDebitMemoItem` |\n\
| Revenue Schedule Invoice Item | `RevenueScheduleInvoiceItem`\
\ |\n| Revenue Schedule Invoice Item Adjustment | `RevenueScheduleInvoiceItemAdjustment`\
\ |\n| Revenue Schedule Item | `RevenueScheduleItem`\
\ |\n| Revenue Schedule Item Credit Memo Item | `RevenueScheduleItemCreditMemoItem`\
\ |\n| Revenue Schedule Item Debit Memo Item | `RevenueScheduleItemDebitMemoItem`\
\ |\n| Revenue Schedule Item Invoice Item | `RevenueScheduleItemInvoiceItem`\
\ |\n| Revenue Schedule Item Invoice Item Adjustment | `RevenueScheduleItemInvoiceItemAdjustment`\
\ |\n| Subscription | `Subscription` \
\ |\n| Subscription Product Feature | `SubscriptionProductFeature`\
\ |\n| Taxable Item Snapshot | `TaxableItemSnapshot`\
\ |\n| Taxation Item | `TaxationItem`\
\ |\n| Updater Batch \
\ | `UpdaterBatch` |\n| Usage \
\ | `Usage` |\n"
contact:
email: docs@zuora.com
host: rest.zuora.com
schemes:
- https
basePath: /
produces:
- application/json
consumes:
- application/json
tags:
- name: Actions
description: |
Actions are operations that are batch in nature. For example, the "create", "update", "delete", and other operations allow changes to up-to 50 objects at a time. The "query" operation will return up-to 2000 result records back at a time, before requiring additional pages of data to be returned via a subsequent "queryMore" operation.
The default WSDL version for Actions is 79. If you want to change the WSDL version, set the `X-Zuora-WSDL-Version` header. To find out in which WSDL version a particular object or field was introduced, see [Zuora SOAP API Version History](https://knowledgecenter.zuora.com/DC_Developers/G_SOAP_API/Zuora_SOAP_API_Version_History).
**Note**: Actions do not support the Invoice Settlement feature. This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. Actions also do not support the Orders feature.
- name: Accounting Codes
description: "Accounting Codes are commonly referred to as General Ledger Accounts\
\ or General Ledger Account Codes. In Zuora, the use of accounting codes are optional\
\ but recommended. \n\nThis section contains the operations that allow you to\
\ create, update, get, delete, activate, or deactivate accounting codes in Zuora.\n"
- name: Accounting Periods
description: "A key step in configuring Finance is to create accounting periods\
\ in Zuora to match your company's financial calendar. \nThis allows Zuora to\
\ produce reports and data exports organized by accounting periods, and to perform\
\ the work of closing the accounting periods for the revenue sub-ledger.\n"
- name: Accounts
description: |
Some operations in this section are similar to each other, but are provided for different use scenarios. You should choose the one that best suits your needs.
For example, the [Create account](https://www.zuora.com/developer/api-references/api/operation/POST_Account) operation is used to create an account with a credit card payment method, a bill-to contact, and optionally an sold-to contact or an associated subscription. If you want to create an account without creating any associated objects such as subscriptions, use [CRUD: Create Account](https://www.zuora.com/developer/api-references/api/operation/Object_POSTAccount) instead.
If you want to create an account and the associated subscription at the same time without providing credit card information, use the [Subscribe](https://www.zuora.com/developer/api-references/api/operation/Action_POSTsubscribe) action.
- name: Adjustments
description: |
Each adjustment is created for a specific charge in a subscription. A billing adjustment includes a refunding amount that will be counted in the Bill Runs afterward.
**Note**: The 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. If you want to join this early adopter program, submit a request at Zuora Global Support.
- name: Attachments
description: "Use attachments in Zuora to upload documents of various formats to\
\ associate additional information with accounts, subscriptions, invoices, credit\
\ memos, or debit memos. \nExample attachments could be purchase orders (PO's),\
\ tax exemption document, or ownership transfer forms.\n\nFor more information\
\ about attachments, see Attachments.\n"
- name: Bill Run
description: "Use the Bill Run call to create ad hoc bill runs and Post, Cancel,\
\ Query, and Delete bill runs. \n\nFor more information about bill runs, see Bill runs.\n"
- name: Billing Documents
description: "Billing documents include invoices, credit memos, and debit memos.\
\ \n\n**Note**: Credit memos and debit memos are only available if you have the\
\ Invoice Settlement feature enabled. \n"
- name: Billing Preview Run
description: "A billing preview run asynchronously generates a downloadable CSV\
\ file containing a preview of future invoice item data and credit memo item data\
\ for a batch of customer accounts. \n\n**Note**: Credit memo item data is only\
\ available if you have the Invoice Settlement feature enabled. \n"
- name: Catalog
description: "The Zuora Billing product catalog is where you define your products\
\ and pricing. The product catalog's ability to handle sophisticated pricing models\
\ gives you the power to easily adapt your pricing to customer and market needs,\
\ to grow your business and drive more revenue. \n"
- name: Catalog Groups
description: 'A catalog group is used to group a list of product rate plans with
a specific grade.
'
- name: Configuration Templates
description: "Configuration Templates in Zuora Deployment Manager enable you to\
\ configure your tenants in minutes by importing a templated metadata configuration\
\ file. This feature eliminates the need for long manual configuration processes\
\ that would have previously taken hours. You will be able to access a comprehensive\
\ repository of industry-specific templates. It will be easier for you to deploy\
\ and release. \n\nIf you want to access the Configuration Templates feature,\
\ submit a request at Zuora Global Support. \n"
- name: Contacts
description: 'A contact defines the customer who holds an account or who is otherwise
a person to contact about an account. An account requires a contact for the `BillToId`
and `SoldToId` fields before the account can be active.
'
- name: Credit Memos
description: |
Credit memos reduce invoice and account balances. By applying one or more credit memos to invoices with positive balances, you can reduce the invoice balances in the same way that applying a payment to an invoice.
For more information about credit memos, see Credit and debit memos.
- name: Custom Event Triggers
description: |
The Event Trigger service manages the business events and trigger conditions that are defined on [Zuora Business Object Model](http://knowledgecenter.zuora.com/BB_Introducing_Z_Business/D_Zuora_Business_Objects_Relationship). When a Zuora object changes, the trigger conditions defined on the object are evaluated, and if any condition qualifies, a business event will be triggered and turned into a notification.
**Note**: Event Triggers operations are only applicable to custom events.
- name: Custom Exchange Rates
description: "If you use a custom exchange rate provider and upload rates with the\
\ Import Foreign Exchange Rates mass action, you can query custom foreign exchange\
\ rates from Zuora through API. \n\nThis feature is in **Limited Availability**.\
\ If you wish to have access to the feature, submit a request at Zuora Global Support.\n"
- name: Custom Object Definitions
description: "With Custom Objects service, you can define custom objects, extending\
\ the Zuora data model to accommodate your specific use cases.\n\nIf you use Postman,\
\ you can import the custom objects endpoints as a collection into your Postman\
\ app and try out different requests to learn how the API works. Click the following\
\ button to get started:\n\n[](https://www.getpostman.com/run-collection/1f068ba43651bf63c0d4)\n\
\nYou can sign up for a free account on the [Postman website](https://identity.getpostman.com/signup)\
\ and download the app in case you do not use Postman yet.\n\nNote that the Custom\
\ Object Definitions API is versioned by `Zuora-Version` in the request header.\
\ The response may be different for the same request with a different API version.\
\ Specify `Zuora-Version` in the request header if you expect a specific response\
\ schema.\n\n### Error handling \nIf the Custom Objects API call fails, an\
\ error code will be returned in the response body. See [Custom Objects API error\
\ code](https://knowledgecenter.zuora.com/Central_Platform/Custom_Objects/Z_Custom_Objects_API#Custom_Objects_API_error_code)\
\ for details.\n"
- name: Custom Object Records
description: "With Custom Objects service, you can create, update, delete and find\
\ custom object records.\n\nIf you use Postman, you can import the custom objects\
\ endpoints as a collection into your Postman app and try out different requests\
\ to learn how the API works. Click the following button to get started:\n\n[](https://www.getpostman.com/run-collection/1f068ba43651bf63c0d4)\n\
\nYou can sign up for a free account on the [Postman website](https://identity.getpostman.com/signup)\
\ and download the app in case you do not use Postman yet.\n\nNote that the Custom\
\ Object Records API is versioned by `Zuora-Version` in the request header. The\
\ response may be different for the same request with a different API version.\
\ Specify `Zuora-Version` in the request header if you expect a specific response\
\ schema.\n\n### Error handling \nIf the Custom Objects API call fails, an\
\ error code will be returned in the response body. See [Custom Objects API error\
\ code](https://knowledgecenter.zuora.com/Central_Platform/Custom_Objects/Z_Custom_Objects_API#Custom_Objects_API_error_code)\
\ for details.\n"
- name: Custom Object Jobs
description: "With Custom Objects service, you can submit a bulk job request to\
\ delete or create custom object records in a batch.\n\nIf you use Postman, you\
\ can import the custom objects endpoints as a collection into your Postman app\
\ and try out different requests to learn how the API works. Click the following\
\ button to get started:\n\n[](https://www.getpostman.com/run-collection/1f068ba43651bf63c0d4)\n\
\nYou can sign up for a free account on the [Postman website](https://identity.getpostman.com/signup)\
\ and download the app in case you do not use Postman yet.\n\nNote that the Custom\
\ Object Jobs API is versioned by `Zuora-Version` in the request header. The response\
\ may be different for the same request with a different API version. Specify\
\ `Zuora-Version` in the request header if you expect a specific response schema.\n\
\n### Error handling \nIf the Custom Objects API call fails, an error code\
\ will be returned in the response body. See [Custom Objects API error code](https://knowledgecenter.zuora.com/Central_Platform/Custom_Objects/Z_Custom_Objects_API#Custom_Objects_API_error_code)\
\ for details.\n"
- name: Custom Payment Method Types
description: |
Open Payment Method (OPM) service is a framework developed by Zuora, which allows you to integrate your custom payment method to Zuora subscription, billing, and revenue management in a dynamic and flexible manner. With the support of the OPM service, you are able to define your custom payment method types and create custom payment methods of the defined types. The custom payment method of the defined type can only be used with the custom payment gateway that you set up through the Universal Payment Connector (UPC) service. It cannot be used with the Zuora out-of-box gateway integrations such as GoCardless, Stripe, etc.
You can define up to 20 custom payment method types for one tenant. Do not define your fields with the [Zuora-reserved fields](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/MB_Set_up_custom_payment_gateways_and_payment_methods/C_Configure_and_manage_your_custom_payment_method_types_through_Zuora_REST_APIs#Zuora-reserved_fields).
See [Set up custom payment gateways and payment methods](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/MB_Set_up_custom_payment_gateways_and_payment_methods) for more information about the OPM and UPC services.
Note: You can only use the bearer token to access the "Custom Payment Method Types" API operations. Access with `apiAccessKeyId` and `apiSecretAccessKey` is not supported.
- name: Custom Scheduled Events
description: |
A custom scheduled event notification is evaluated at the scheduled time of the related scheduled event on a daily basis. If the date meets the combination of the base field and the notification parameters, the notification will be triggered immediately.
For more information about Custom Scheduled Events, see Custom Scheduled Events.
- name: Data Queries
description: 'The Data Query feature enables you to perform SQL queries in your
Zuora tenant. To learn how to get started with Data Query, see [Overview of Data
Query](https://knowledgecenter.zuora.com/DC_Developers/BA_Data_Query/A_Overview_of_Data_Query).
'
- name: Debit Memos
description: |
Debit memos increase the amount a customer owes. It is a separate document from the invoice. Debit memos can be used to correct undercharging on an invoice or to levy ad hoc charges outside the context of a subscription. Just like an invoice, debit memo balances can be settled by applying either a payment or a credit memo.
For more information about debit memos, see Credit and debit memos.
- name: Describe
description: |
You can use the [Describe an object](https://www.zuora.com/redocly-test/api-references/api/operation/GET_Describe/) operation to get a reference listing of each object that is available in your Zuora tenant.
By default, the information returned by the "Describe an object" operation corresponds to the latest version of the Zuora WSDL.
- name: Files
description: 'You can use the operations contained in this section to retrieve files
such as export results, invoices, accounting period reports, and so on.
'
- name: Fulfillments
description: "Fulfillments are subordinate objects attached to their related order\
\ line item. Fulfillment items are subordinate objects attached to their related\
\ fulfillment. \n\nFor more information, see Overview of Order Line Items. \n"
- name: Hosted Pages
description: "Hosted payment pages allow your customers to set up a payment method,\
\ such as providing a credit card. Since it only handles the payment method, it\
\ is suitable for a simple workflow or a complex multi-page, multi-product workflow.\
\ \n\nFor more information, see Hosted Payment Pages.\n"
- name: Imports
description: "An import uploads content, especially when you have a large amount\
\ of content. The Import object contains all of the information you need to upload\
\ content, such as a large number of usage records. \n"
- name: Invoice Schedules
description: "Use invoice schedules to trigger invoice generation processes. \n\n\
For more information about invoice schedules, see Billing Schedule overview.\n"
- name: Invoices
description: "Invoices provides information about customers' accounts for invoices,\
\ for examples, dates, status, and amounts. \n\nFor more information about invoices,\
\ see Invoice.\n"
- name: Journal Runs
description: |
Use journal runs to automatically create summary journal entities that are suitable for importing into your general ledger system.
For more information about journal runs, see Journal Runs.
- name: Notifications
description: |
Notifications are the actions taken to inform users or call third-party endpoints when a certain event happens. Typical actions include emails and callouts. Callouts typically refer to HTTP invocations, such as HTTP calls to REST services.
**NOTE:** Notifications are processed asynchronously and may be delivered with a delay and out of order.
Notifications are associated with Communication Profiles, which allow you to send specific event-driven notifications to targeted customers. Zuora provides the following Settings API to access the settings of Communication Profiles:
* [Get all Communication Profiles](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Get_all_Communication_Profiles)
* [Create a new Communication Profile](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Create_a_new_Communication_Profile)
* [Modify a Communication Profile](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Modify_a_Communication_Profile)
* [Get all Notifications under a particular Communication Profile](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Get_all_Notifications_under_a_particular_Communication_Profile)
- name: OAuth
description: "Zuora recommends that you use OAuth v2.0 to authenticate to the Zuora\
\ REST API. \n\nYou must first create an OAuth client in the Zuora UI before using\
\ the [Create an OAuth token](https://www.zuora.com/developer/api-references/api/operation/createToken)\
\ operation to create an OAuth token. See [Authentication](https://www.zuora.com/developer/rest-api/general-concepts/authentication/)\
\ for more information.\n"
- name: Offers
description: |
Use offers to define different product packages with multiple prices for all charge types across different geographic regions, sales areas, customers, or billing frequencies, for example.
For more information about the Offers feature, see Offers.
- name: Operations
description: 'Use operations to generate invoices and credit memos, collect payments
for posted invoices, and generate previews of future invoice items for customer
accounts.
'
- name: Orders
description: "Orders are contractual agreements between merchants and customers.\
\ \n\nFor more information about Orders, see Orders.\n"
- name: Order Actions
description: 'You need to have the [Orders](https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Orders)
or [Orders Harmonization](https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Orders/Orders_Harmonization)
feature enabled to use this API.
'
- name: Order Line Items
description: |
Use order line item to launch non-subscription and unified monetization business models in Zuora, in addition to subscription business models.
For more information about order line items, see Order Line Items.
- name: Payment Gateways
description: "Use payment gateways to pass authorization, payments, and settlement\
\ data securely to and from the merchant's website to the merchant's processor.\
\ \n\nFor more information about payment gateways, see Payment Gateways.\n"
- name: Payment Gateway Reconciliation
description: "Gateway reconciliation is the process of verifying that the electronic\
\ payment and refund transactions processed in Zuora match the transactions reported\
\ by the gateway. \nFor example, if Zuora processed 200 transactions through a\
\ gateway, you should see the same number of transactions on the gateway's reconciliation\
\ report, sometimes also called the settlement report.\n\nYou can complete the\
\ following Gateway Reconciliation tasks through API:\n- [Settle a payment](https://www.zuora.com/developer/api-references/api/operation/POST_SettlePayment/)\n\
- [Reject a payment](https://www.zuora.com/developer/api-references/api/operation/POST_RejectPayment/)\n\
- [Reverse a payment](https://www.zuora.com/developer/api-references/api/operation/POST_ReversePayment/)\n\
- [Reconcile a refund](https://www.zuora.com/developer/api-references/api/operation/POST_ReconcileRefund/)\n"
- name: Payment Method Snapshots
description: "A Payment Method Snapshot is a copy of the particular Payment Method\
\ used in a transaction. If the Payment Method is deleted, the Snapshot continues\
\ to retain the data used in each of the past transactions. \nAs such, the Snapshot\
\ helps with display of historical transactions, integrations to external systems,\
\ and reporting.\n"
- name: Payment Method Transaction Logs
description: |
The PaymentMethodTransactionLog object contains payment method transaction log data.
You can use the [CRUD: Retrieve a payment method transaction log](https://www.zuora.com/redocly-test/api-references/api/operation/Object_GETPaymentMethodTransactionLog/) operation to export such data.
- name: Payment Methods
description: 'Payment methods represents payment method details associated with
a customer account.
'
- name: Payment Runs
description: |
Use payment runs to collect payments using electronic payment methods, for example, credit cards and ACH.
For more information about payment runs, see Payment Runs.
- name: Payment Schedules
description: |
Use payment schedules to split invoice or account balances into several installments and automatically process payments for the installments.
For more information about payment schedules, see Payment Schedules.
- name: Payment Transaction Logs
description: 'Use payment transaction logs to export logs of all transactions from
Zuora to the Gateway for Payments.
'
- name: Payments
description: |
Use payments to process payments, for example, automate recurring payments, manage overpayments, and create refunds.
For more information about payments, see Payments.
- name: Price Book Items
description: |
Use price book items to define more than one price based on time intervals in an offer. Offers and price book items are available together.
For more information about the Offers feature, see Offers.
- name: Product Rate Plan Charge Tiers
description: 'To manage product rate plan charge tiers, use the [Product Rate Plan
Charges](https://www.zuora.com/developer/api-references/api/tag/Product-Rate-Plan-Charges)
operations instead to update the corresponding product rate plan charge with all
the tiers.
'
- name: Product Rate Plan Charges
description: |
A product rate plan charge represents a charge model or a set of fees associated with a product rate plan, which is the part of a product that your customers subscribe to. Each product rate plan can have multiple product rate plan charges.
Product rate plan charges can be of three types: one-time fees, recurring fees, and usage fees. For example, the $50 activation fee for the Topaz product rate plan is a one-time product rate plan charge.
- name: Product Rate Plans
description: 'A product rate plan is the part of a product that your customers subscribe
to. Each product can have multiple product rate plans, and each product rate plan
can have multiple product rate plan charges, which are fees for products and their
product rate plans.
'
- name: Products
description: |
A product is an item or service that your company sells. In the subscription economy, a product is generally a service that your customers subscribe to rather than a physical item that they purchase one time. For example, customers subscribe to a service that provides them a car when and where they need a car rather than buying a car outright.
A Product object contains all of the items in a specific product, especially product rate plans and product rate plan charges. Each Product object can have multiple rate plans, which in turn can each have multiple rate plan charges. Each rate plan charge can have multiple tiers. Taken together, all of these items create a single product.
Customers subscribe to products that are in your product catalog. Product objects collectively compose your product catalog. You create your product catalog by creating products. As soon as you create your first product, you create your product catalog.
- name: Ramps
description: |
A Ramp is a time container to associate with rate plan charges in your subscription. Inside the Ramp, you can further define a set of Ramp Intervals (time-based periods) where products or pricing can change. These periods are sub time containers to enable you to report out-of-the-box metrics based on Ramp Intervals.
**Notes**: You must have both the Ramps feature and Orders feature enabled for your tenant to use the Ramps operations.
For more information, see Ramps and Ramp Metrics.
- name: Rate Plans
description: "A rate plan is part of a subscription or an amendment to a subscription,\
\ and it comes from a product rate plan. Like a product and its product rate plans,\
\ a subscription can have one or more rate plans. \nRate plans are sometimes called\
\ subscription rate plans. Rate plans that are part of an amendment are sometimes\
\ called amendment rate plans.\n\nRate plans represent a price or a collection\
\ of prices for a service you sell. An individual rate plan contains all charges\
\ specific to a particular subscription.\n"
- name: Refunds
description: "Zuora allows you to issue and track refunds on payments. Similar to\
\ external payments, users can enter external refunds to track refunds that have\
\ been performed outside of Zuora Payments (for example, by issuing a check).\
\ \nIn addition, you can make electronic refunds using our supported payment gateways,\
\ which will automatically refund money to the customer.\n"
- name: RSA Signatures
description: "The REST API used in Payment Pages 2.0 are CORS (Cross-Origin Resource\
\ Sharing) enabled and therefore requires a digital signature. \n\nYou can use\
\ the [Generate an RSA signature](https://www.zuora.com/redocly-test/api-references/api/operation/POST_RSASignatures/)\
\ operation to generate the required digital signature and token for a Payment\
\ Pages 2.0 form, then use the [Decrypt an RSA signature](https://www.zuora.com/redocly-test/api-references/api/operation/POST_DecryptRSASignatures/)\
\ operation to decrypt the signature to validate the signature and key.\" \n"
- name: Sequence Sets
description: "You can create billing document sequence sets through the REST API\
\ or the Zuora UI, allowing distinct numbering sequences for billing documents,\
\ payments, and refunds. \n\nTo create a billing document sequence set through\
\ the Zuora UI, see Create Billing Document Sequence Sets for more information.\n"
- name: Settings
description: |
The Setting API provides a central API for managing settings in your Zuora tenant.
If you use Postman, you can import the Settings API endpoints as a collection into your Postman app and try out different requests to learn how the API works. Click the following button to get started:
[](https://www.getpostman.com/run-collection/1379901-d43e93a3-7d51-437c-b4cd-14163dd62fa2-SWLk4kiK)
You can sign up for a free account on the [Postman website](https://identity.getpostman.com/signup) and download the app in case you do not use Postman yet.
- name: Sign Up
description: "A light-weight API to sign up customers and subscribe. \n\nYou need\
\ to have the [Orders](https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Orders)\
\ or [Orders Harmonization](https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Orders/Orders_Harmonization)\
\ feature enabled to use this API.\n"
- name: Subscriptions
description: |
A subscription is a product or service that has recurring charges, such as a monthly flat fee or charges based on usage. Subscriptions can also include one-time charges, such as activation fees. Every subscription must be associated with an account. At least one active account must exist before any subscriptions can be created.
For more information, see Subscriptions.
- name: Summary Journal Entries
description: "A summary journal entry is a summary of Zuora transaction amounts\
\ organized by accounting code and general ledger segments. A segment adds more\
\ reporting granularity through business dimensions, such as country or product.\
\ \n\nFor more information, see Summary Journal Entries Introduction\n"
- name: Taxation Items
description: |
The TaxationItem object is used to add a tax amount to an invoice item. In the typical use case, the tax amount that you specify in the object is calculated by Z-Tax or a third-party tax engine such as Avalara or Connect tax engine.
Changes that you make with this object affect the product charges in your product catalog, but not the charges in existing subscriptions.
- name: Usage
description: "Consumption of a billable service or resource (such as database storage\
\ space or bundles of emails sent) provides the basis for some charge models -\
\ simple usage, tiered pricing, or volume pricing. \nTo make this work, usage\
\ must be tracked in the system and usage charges must be calculated and invoiced.\
\ \nUsage is always billed in arrears - for example, you might bill customers\
\ in February for their January usage. Usage can be billed on a recurring monthly,\
\ quarterly, semi-annual, or annual basis.\n\nFor more information about working\
\ with usage data, see Usage.\n"
- name: Workflows
description: |
A workflow is a sequence of tasks that are performed based on predefined logic. A workflow improves efficiency and reduces errors by automating a series of complex tasks that otherwise need to be performed manually and repetitively.
For more information, see Workflow.
- name: Zuora Revenue Integration
description: '**Note:** You can only use the operations in this section if you have
the Billing - Revenue Integration feature enabled. See [Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Billing_-_Revenue_Integration)
for more information.
'
parameters:
GLOBAL_HEADER_Authorization_OAuth:
name: Authorization
in: header
required: true
type: string
description: 'The value is in the `Bearer {token}` format where {token} is a valid
OAuth token generated by calling [Create an OAuth token](https://www.zuora.com/developer/api-references/api/operation/createToken).
'
GLOBAL_HEADER_Authorization_OAuth_optional:
name: Authorization
in: header
required: false
type: string
description: 'The value is in the `Bearer {token}` format where {token} is a valid
OAuth token generated by calling [Create an OAuth token](https://www.zuora.com/developer/api-references/api/operation/createToken).
'
GLOBAL_HEADER_Zuora_Entity_Ids_Single:
name: Zuora-Entity-Ids
in: header
required: false
type: string
description: 'An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity)
enabled and the OAuth token is valid for more than one entity, you must use
this header to specify which entity to perform 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.
'
GLOBAL_HEADER_Zuora_Track_Id:
name: Zuora-Track-Id
in: header
required: false
type: string
maxLength: 64
description: |
A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.
The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`"`), and quote (`'`).
GLOBAL_HEADER_If_Match:
name: If-Match
in: header
required: false
type: string
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"
GLOBAL_REQUEST_page:
name: page
in: query
required: false
type: integer
minimum: 1
default: 1
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.
'
GLOBAL_REQUEST_pageSize:
name: pageSize
in: query
required: false
type: integer
maximum: 40
default: 20
description: 'The number of records returned per page in the response.
'
GLOBAL_REQUEST_pageSize_catalog:
name: pageSize
in: query
required: false
type: integer
maximum: 40
default: 10
description: 'The number of records returned per page in the response.
'
GLOBAL_REQUEST_pageSize_finance_accounting:
name: pageSize
in: query
required: false
type: integer
maximum: 300
default: 300
description: 'The number of records returned per page in the response.
'
GLOBAL_REQUEST_pageSize_finance_revenue:
name: pageSize
in: query
required: false
type: integer
maximum: 300
default: 8
description: 'The number of records returned per page in the response.
'
GLOBAL_HEADER_X_Zuora_WSDL_Version:
name: X-Zuora-WSDL-Version
in: header
required: false
type: string
default: 79
description: 'Zuora WSDL version number.
'
GLOBAL_REQUEST_rejectUnknownFields:
name: rejectUnknownFields
in: query
required: false
type: boolean
default: false
description: |
Specifies whether the call fails if the request body contains unknown fields.
With `rejectUnknownFields` set to `true`, Zuora returns a 400 response if
the request body contains unknown fields. The body of the 400 response is:
```json
{
"message": "Error - unrecognised fields"
}
```
By default, Zuora ignores unknown fields in the request body.
GLOBAL_HEADER_Charge_Metrics_Accept:
name: Accept
in: header
required: false
type: string
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.
'
GLOBAL_HEADER_Idempotency_Key:
name: Idempotency-Key
in: header
required: false
type: string
maxLength: 255
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\n\
With 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"
GLOBAL_HEADER_Accept_Encoding:
name: Accept-Encoding
in: header
required: false
type: string
description: "Include the `Accept-Encoding: gzip` header to compress responses\
\ as a gzipped file. It can significantly reduce the bandwidth required for\
\ a response. \n\nIf specified, Zuora automatically compresses responses that\
\ contain over 1000 bytes of data, and the response contains a `Content-Encoding`\
\ header with the compression algorithm so that your client can decompress it.\n"
GLOBAL_HEADER_Content_Encoding:
name: Content-Encoding
in: header
required: false
type: string
description: 'Include the `Content-Encoding: gzip` header to compress a request.
With this header specified, you should upload a gzipped file for the request
payload instead of sending the JSON payload.
'
paths:
/v1/accounting-codes:
post:
summary: Create an accounting code
operationId: POST_AccountingCode
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:
- Accounting Codes
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTAccountingCodeType'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
id: 8a8081ae547aac1e01547efb61f20140
success: true
description: ''
schema:
$ref: '#/definitions/POSTAccountingCodeResponseType'
get:
summary: List all accounting codes
operationId: GET_AllAccountingCodes
description: This reference describes how to query all accounting codes in your
chart of accounts through the REST API.
tags:
- Accounting Codes
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize_finance_accounting'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
accountingCodes:
- id: e20b0747478025a10147816ba1c20097
name: Accounts Receivable
type: AccountsReceivable
glAccountName: null
glAccountNumber: null
notes: null
category: Assets
status: Active
createdOn: '2014-07-29 02:20:20'
createdBy: e20b074746ec48f40147140f51e30a1a
updatedOn: '2014-07-29 02:20:20'
updatedBy: e20b074746ec48f40147140f51e30a1a
- id: e20b0747478025a10147816ba21900a0
name: Discounts
type: SalesDiscounts
glAccountName: null
glAccountNumber: null
notes: null
category: Revenue
status: Inactive
createdOn: '2014-07-29 02:20:20'
createdBy: e20b074746ec48f40147140f51e30a1a
updatedOn: '2014-09-27 22:11:07'
updatedBy: e20b074746ec48f40147140f51e30a1a
success: true
description: ''
schema:
$ref: '#/definitions/GETAccountingCodesType'
/v1/accounting-codes/{ac-id}/activate:
put:
summary: Activate an accounting code
operationId: PUT_ActivateAccountingCode
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:
- Accounting Codes
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: ac-id
in: path
required: true
type: string
description: ID of the accounting code you want to activate.
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
/v1/accounting-codes/{ac-id}/deactivate:
put:
summary: Deactivate an accounting code
operationId: PUT_DeactivateAccountingCode
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:
- Accounting Codes
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: ac-id
in: path
required: true
type: string
description: ID of the accounting code you want to deactivate.
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
/v1/accounting-codes/{ac-id}:
delete:
summary: Delete an accounting code
operationId: DELETE_AccountingCode
description: |
This reference describes how to delete an accounting code through the REST API.
## Prerequisites
If you have Zuora Finance enabled on your tenant, then you must have the Delete Unused Accounting Code permission.
## Limitations
You can only delete accounting codes that have never been associated with any transactions. An accounting code must be deactivated before you can delete it.
tags:
- Accounting Codes
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: ac-id
in: path
required: true
type: string
description: ID of the accounting code you want to delete.
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
get:
summary: Retrieve an accounting code
operationId: GET_AccountingCode
description: This reference describes how to query an accounting code through
the REST API.
tags:
- Accounting Codes
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: ac-id
in: path
description: ID of the accounting code you want to query.
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
id: 8a8081ae547aac1e01547efb61f20140
name: CASH
type: Cash
glAccountName: null
glAccountNumber: null
notes: null
category: Assets
status: Active
createdOn: '2016-05-04 01:23:07'
createdBy: e20b074746ec48f40147140f51e30a1a
updatedOn: '2016-05-05 20:07:38'
updatedBy: e20b074746ec48f40147140f51e30a1a
success: true
description: ''
schema:
$ref: '#/definitions/GETAccountingCodeItemType'
put:
summary: Update an accounting code
operationId: PUT_AccountingCode
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:
- Accounting Codes
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: ac-id
in: path
description: ID of the accounting code you want to update.
required: true
type: string
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTAccountingCodeType'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
/v1/accounting-periods/{ap-id}/close:
put:
summary: Close an accounting period
operationId: PUT_CloseAccountingPeriod
description: |-
Close an accounting period by accounting period ID.
Prerequisites
-------------
You must have Zuora Finance enabled on your tenant. You must have the Manage Close Process and Run Trial Balance user permissions.
Limitations
-----------
* The accounting period cannot already be closed.
* The accounting period cannot be in the process of running a trial balance.
* All earlier accounting periods must be closed.
* There must be no required action items for the accounting period. See Reconcile Transactions Before Closing an Accounting Period for more information.
Notes
-----
When 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:
- Accounting Periods
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: ap-id
in: path
description: ID of the accounting period you want to close.
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
/v1/accounting-periods/{ap-id}/pending-close:
put:
summary: Set an accounting period to pending close
operationId: PUT_PendingCloseAccountingPeriod
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 \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:
- Accounting Periods
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: ap-id
in: path
description: ID of the accounting period you want to set to pending close.
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
/v1/accounting-periods:
post:
summary: Create an accounting period
operationId: POST_AccountingPeriod
description: |-
Creates an accounting period.
Prerequisites
-------------
* You must have Zuora Finance enabled on your tenant.
* You must have the Create Accounting Period user permission.
Limitations
-----------
* 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.
* 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.
* 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:
- Accounting Periods
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTAccountingPeriodType'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
id: 7b7181ae547aac1e01547efb61f20162
success: true
description: ''
schema:
$ref: '#/definitions/POSTAccountingPeriodResponseType'
get:
summary: List all accounting periods
operationId: GET_AllAccountingPeriods
description: Retrieves all accounting periods on your tenant.
tags:
- Accounting Periods
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize_finance_accounting'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
accountingPeriods:
- id: 8a8081ae5374904f01538338b66e1005
name: Mar 2016
startDate: '2016-03-01'
endDate: '2016-03-31'
status: Open
runTrialBalanceStatus: Error
runTrialBalanceStart: '2016-03-16 23:25:22'
runTrialBalanceEnd: null
runTrialBalanceErrorMessage: 'Error creating the trial balance: exchange
rate from USD to GBP on 08/03/2015 is not available. Please import
the rate and run trial balance again.'
fiscalYear: 2016
notes: ''
fileIds:
unprocessedChargesFileId: null
accountsReceivableInvoiceAgingDetailExportFileId: 8a8081ae5374904f01538340273013f3
accountsReceivableAccountAgingDetailExportFileId: 8a8081ae5374904f01538340274a13f4
revenueDetailExcelFileId: 8a8081ae5374904f0153834032e41417
revenueDetailCsvFileId: 8a8081ae5374904f0153834033221418
arRollForwardDetailExportFileId: null
fxRealizedGainAndLossDetailExportFileId: null
fxUnrealizedGainAndLossDetailExportFileId: null
createdOn: '2016-03-16 23:17:25'
createdBy: e20b074746ec48f40147140f51e30a1a
updatedOn: '2016-03-16 23:25:22'
updatedBy: e20b074746ec48f40147140f51e30a1a
- id: 8a8081ae5374904f0153833918af1007
name: Apr 2016
startDate: '2016-04-01'
endDate: '2016-04-30'
status: Open
runTrialBalanceStatus: Error
runTrialBalanceStart: '2016-03-16 23:23:40'
runTrialBalanceEnd: null
runTrialBalanceErrorMessage: null
fiscalYear: 2016
notes: ''
fileIds:
unprocessedChargesFileId: null
accountsReceivableInvoiceAgingDetailExportFileId: 8a8081ae5374904f0153833e9a651363
accountsReceivableAccountAgingDetailExportFileId: 8a8081ae5374904f0153833e9a7a1364
revenueDetailExcelFileId: 8a8081ae5374904f0153833ea2c813ae
revenueDetailCsvFileId: 8a8081ae5374904f0153833ea2d613af
arRollForwardDetailExportFileId: null
fxRealizedGainAndLossDetailExportFileId: null
fxUnrealizedGainAndLossDetailExportFileId: null
createdOn: '2016-03-16 23:17:50'
createdBy: e20b074746ec48f40147140f51e30a1a
updatedOn: '2016-03-16 23:23:40'
updatedBy: e20b074746ec48f40147140f51e30a1a
- id: 8a8081ae5374904f0153833e4590132d
name: May 2016
startDate: '2016-05-01'
endDate: '2016-05-31'
status: Open
runTrialBalanceStatus: Error
runTrialBalanceStart: '2016-05-18 01:42:30'
runTrialBalanceEnd: null
runTrialBalanceErrorMessage: null
fiscalYear: 2016
notes: ''
fileIds:
unprocessedChargesFileId: null
accountsReceivableInvoiceAgingDetailExportFileId: null
accountsReceivableAccountAgingDetailExportFileId: null
revenueDetailExcelFileId: 8a8081ae54c2eabb0154c307e27e0033
revenueDetailCsvFileId: 8a8081ae54c2eabb0154c307e2920034
arRollForwardDetailExportFileId: null
fxRealizedGainAndLossDetailExportFileId: null
fxUnrealizedGainAndLossDetailExportFileId: null
createdOn: '2016-03-16 23:23:29'
createdBy: e20b074746ec48f40147140f51e30a1a
updatedOn: '2016-05-18 01:42:30'
updatedBy: e20b074746ec48f40147140f51e30a1a
- id: e20b0747478025a1014780e489a60002
name: Open-Ended
startDate: '2016-06-01'
endDate: null
status: Open
runTrialBalanceStatus: Pending
runTrialBalanceStart: null
runTrialBalanceEnd: null
runTrialBalanceErrorMessage: null
fiscalYear: 0
notes: null
fileIds:
unprocessedChargesFileId: null
accountsReceivableInvoiceAgingDetailExportFileId: null
accountsReceivableAccountAgingDetailExportFileId: null
revenueDetailExcelFileId: null
revenueDetailCsvFileId: null
arRollForwardDetailExportFileId: null
fxRealizedGainAndLossDetailExportFileId: null
fxUnrealizedGainAndLossDetailExportFileId: null
createdOn: '2014-07-28 23:52:46'
createdBy: 402881e522cf4f9b0122cf5d82860002
updatedOn: '2016-03-16 23:23:29'
updatedBy: e20b074746ec48f40147140f51e30a1a
success: true
description: ''
schema:
$ref: '#/definitions/GETAccountingPeriodsType'
/v1/accounting-periods/{ap-id}:
get:
summary: Retrieve an accounting period
operationId: GET_AccountingPeriod
description: |
Retrieves an accounting period.
Prerequisites
-------------
You must have Zuora Finance enabled on your tenant.
tags:
- Accounting Periods
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: ap-id
in: path
description: ID of the accounting period you want to get.
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
id: e20b074749d2a38b0149eac2e9550aa9
name: Oct 2014
startDate: '2014-10-01'
endDate: '2014-10-31'
status: Closed
runTrialBalanceStatus: Completed
runTrialBalanceStart: '2015-09-28 00:53:13'
runTrialBalanceEnd: '2015-09-28 00:53:36'
runTrialBalanceErrorMessage: null
fiscalYear: 2014
notes: ''
fileIds:
unprocessedChargesFileId: null
accountsReceivableInvoiceAgingDetailExportFileId: 8a8081ae5002967c015012f122f10913
accountsReceivableAccountAgingDetailExportFileId: 8a8081ae5002967c015012f1230e0914
revenueDetailExcelFileId: 8a8081ae5002967c015012f129870925
revenueDetailCsvFileId: 8a8081ae5002967c015012f129a10926
arRollForwardDetailExportFileId: 8a8081ae5002967c015012f15d7b09e2
fxRealizedGainAndLossDetailExportFileId: 8a8081ae5002967c015012f151a609ba
fxUnrealizedGainAndLossDetailExportFileId: 8a8081ae5002967c015012f150b509b8
createdOn: '2014-11-25 22:21:22'
createdBy: e20b074746ec48f40147140f51e30a1a
updatedOn: '2015-09-28 00:53:13'
updatedBy: e20b074746ec48f40147140f51e30a1a
success: true
description: ''
schema:
$ref: '#/definitions/GETAccountingPeriodType'
put:
summary: Update an accounting period
operationId: PUT_UpdateAccountingPeriod
description: |2
Updates an accounting period.
Prerequisites
-------------
* You must have Zuora Finance enabled on your tenant.
* 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).
Limitations
-----------
* You can update the start date of only the earliest accounting period on your tenant. You cannot update the start date of later periods.
* 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.
* 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.
* 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.
* You cannot update the start date or end date of an accounting period if:
* Any revenue has been distributed into the period.
* The period has any active journal entries.
tags:
- Accounting Periods
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: ap-id
in: path
description: ID of the accounting period you want to update.
required: true
type: string
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTAccountingPeriodType'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
delete:
summary: Delete an accounting period
operationId: DELETE_AccountingPeriod
description: |
Deletes an accounting period.
Prerequisites
-------------
* You must have Zuora Finance enabled on your tenant.
* 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).
Limitations
-----------
The accounting period to be deleted:
* Must be the most recent accounting period
* Must be an open accounting period
* Must have no revenue distributed into it
* Must not have any active journal entries
* Must not be the open-ended accounting period
* Must not be in the process of running a trial balance
tags:
- Accounting Periods
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: ap-id
in: path
required: true
type: string
description: ID of the accounting period you want to delete.
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
/v1/accounting-periods/{ap-id}/reopen:
put:
summary: Reopen an accounting period
operationId: PUT_ReopenAccountingPeriod
description: |-
Re-opens an accounting period.
Prerequisites
-------------
* You must have Zuora Finance enabled on your tenant.
* You must have the Manage Close Process and Run Trial Balance user permissions.
Limitations
-----------
* The accounting period must be closed or pending close.
* You can only re-open an accounting period that is immediately previous to an open period.
tags:
- Accounting Periods
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: ap-id
in: path
required: true
type: string
description: ID of the accounting period that you want to re-open.
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
/v1/accounting-periods/{ap-id}/run-trial-balance:
put:
summary: Run trial balance
operationId: PUT_RunTrialBalance
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 \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://www.zuora.com/developer/api-references/api/operation/GET_AccountingPeriod)\
\ REST API call to view details about the outcome of the trial balance.\n"
tags:
- Accounting Periods
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: ap-id
in: path
required: true
type: string
description: ID of the accounting period for which you want to run a trial
balance.
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
/v1/accounts:
post:
summary: Create an account
operationId: POST_Account
description: "Creates a customer account with a payment method, a bill-to contact,\
\ and an optional sold-to contact. Request and response field descriptions\
\ and sample code are provided. Use this operation to optionally create a\
\ subscription, invoice for that subscription, and collect payment through\
\ the default payment method. The transaction is atomic; if any part fails\
\ for any reason, the entire transaction is rolled back.\n\nThis operation\
\ is CORS Enabled, so you can use client-side Javascript to invoke the call.\
\ \n\n## Notes\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` field, but not multiple.\
\ The one provided becomes the default payment method for this account. If\
\ the credit card information is declined or cannot be verified, no account\
\ is created.\n3. Customer accounts created with this call are automatically\
\ be set to Auto Pay.\n4. If the `invoiceDeliveryPrefsEmail` field is not\
\ specified in the request, the account's email delivery preference is always\
\ automatically set to `false`, no matter whether the `workEmail` or `personalEmail`\
\ field is specified.\n\n## Defaults for customerAcceptanceDate and serviceActivationDate\n\
Default 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"
tags:
- Accounts
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. \n\nYou only need to\
\ set this parameter if you use the following fields:\n* invoice\n* collect\n\
* runBilling\n* targetDate\n"
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTAccountType'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
accountId: 402892c74c9193cd014c96bbe7c101f9
accountNumber: A00000004
billToContactId: 2c92c8fb68a28d180168a7ccedba1c4c
soldToContactId: 2c92c8fb68a28d180168a7ccedc61c4e
paymentMethodId: 402892c74c9193cd014c96bbe7d901fd
description: ''
schema:
$ref: '#/definitions/POSTAccountResponseType'
/v1/accounts/{account-key}:
get:
summary: Retrieve an account
operationId: GET_Account
description: |
Retrieves basic information about a customer account.
This 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.
tags:
- Accounts
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: account-key
in: path
description: Account number or account ID.
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
basicInfo:
id: 402892c74c9193cd014c91d35b0a0132
name: Test
accountNumber: A00000001
notes: ''
status: Active
crmId: ''
batch: Batch1
invoiceTemplateId: null
communicationProfileId: 303d186840e611df817c002185d714e1
salesRep: ''
sequenceSetId: null
billingAndPayment:
autoPay: true
billCycleDay: 1
currency: USD
defaultPaymentMethodId: 2c93808457d787030157e03220ec4fad
paymentTerm: Net 30
paymentGateway: TestGateway
invoiceDeliveryPrefsPrint: false
invoiceDeliveryPrefsEmail: true
additionalEmailAddresses:
- contact1@example.com
- contact2@example.com
metrics:
balance: 0
totalInvoiceBalance: 0
creditBalance: 0
contractedMrr: -900
billToContact:
address1: ''
address2: ''
city: ''
country: null
county: null
fax: ''
firstName: Test
homePhone: ''
id: 2c9081a03c6d7b51013c6d7e46c80a17
lastName: Test
mobilePhone: ''
nickname: ''
otherPhone: ''
otherPhoneType: null
personalEmail: ''
state: ''
taxRegion: null
workEmail: contact@example.com
workPhone: ''
zipCode: ''
soldToContact:
address1: ''
address2: ''
city: ''
country: null
county: null
fax: ''
firstName: Test
homePhone: ''
id: 2c9081a03c6d7b51013c6d7e46cf0a18
lastName: Test
mobilePhone: ''
nickname: ''
otherPhone: ''
otherPhoneType: null
personalEmail: ''
state: ''
taxRegion: null
workEmail: contact@example.com
workPhone: ''
zipCode: ''
success: true
description: ''
schema:
$ref: '#/definitions/GETAccountType'
put:
summary: Update an account
operationId: PUT_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 on file or to the email delivery\
\ preference. If either the **personalEmail** or **workEmail** is specified\
\ (or both), the system updates the corresponding email address(es) on file\
\ 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`.\n\
4. The bill-to and sold-to contacts are separate data entities.\_If you select\
\ the\_**Same as Bill To Contact**\_check box during account creation, both\
\ the Bill To and Sold To contacts are updated upon updating either one\_\
because they point to the same contact record. In this case, if you want to\
\ update only one of them, you have to first create another contact and update\
\ the Bill To or Sold To\_contact\_of\_the customer account to be the newly\
\ created one.\n"
tags:
- Accounts
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: account-key
in: path
required: true
type: string
description: Account number or account ID.
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTAccountType'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
delete:
summary: Delete an account
operationId: DELETE_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 Enable Force Deletion for Account? 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:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: account-key
in: path
description: Account number or account ID.
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
id: 40288ae9600808280160081dc9c13f15
jobId: 40288ae9600808280160081db1533506
jobStatus: Pending
success: true
description: ''
schema:
$ref: '#/definitions/DeleteAccountResponseType'
/v1/accounts/{account-key}/summary:
get:
summary: Retrieve an account summary
operationId: GET_AccountSummary
description: "Retrieves detailed information about the specified customer account.\n\
\nThe response includes the account information and a summary of the account\u2019\
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:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: account-key
in: path
required: true
type: string
description: Account number or account ID.
- name: excludeUsage
in: query
required: false
type: boolean
description: Indicate whether to exclude usage information in the response.
The default value is `false`.
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
payments:
- paidInvoices:
- invoiceNumber: INV00000159
appliedPaymentAmount: 5.0
invoiceId: 2c92a09539190dbe0139190f42780012
- invoiceNumber: INV00000323
appliedPaymentAmount: 139722.1
invoiceId: 2c92a0953a3fa95d013a407c10a60100
- invoiceNumber: INV00000160
appliedPaymentAmount: 10521.0
invoiceId: 2c92a09739190dc60139194bcf1b0098
paymentNumber: P-00000075
status: Processed
effectiveDate: '2013-03-27'
id: 2c92c8f83dabf9cf013daf3bfa0305a6
paymentType: Electronic
- paidInvoices:
- invoiceNumber: INV00000159
appliedPaymentAmount: 5.0
invoiceId: 2c92a09539190dbe0139190f42780012
paymentNumber: P-00000056
status: Processed
effectiveDate: '2012-08-11'
id: 2c92a0f9391832b101391922ad5f049d
paymentType: Electronic
invoices:
- amount: 139722.1
status: Posted
invoiceNumber: INV00000323
invoiceDate: '2013-02-11'
balance: 0.0
id: 2c92a0953a3fa95d013a407c10a60100
dueDate: '2013-02-11'
- amount: 10521.0
status: Posted
invoiceNumber: INV00000160
invoiceDate: '2012-08-11'
balance: 0.0
id: 2c92a09739190dc60139194bcf1b0098
dueDate: '2012-08-11'
- amount: 10.0
status: Posted
invoiceNumber: INV00000159
invoiceDate: '2012-08-11'
balance: 0.0
id: 2c92a09539190dbe0139190f42780012
dueDate: '2012-08-11'
usage:
- unitOfMeasure: UOM
quantity: 10.0
startDate: 2012-02
- unitOfMeasure: UOM
quantity: 10.0
startDate: 2012-01
basicInfo:
defaultPaymentMethod:
creditCardNumber: '************1111'
paymentMethodType: CreditCard
creditCardExpirationMonth: 10
creditCardExpirationYear: 2020
creditCardType: Visa
id: 2c92c8f83dabf9cf013daef12dd303b0
autoPay: true
status: Active
lastInvoiceDate: '2013-02-11'
lastPaymentAmount: 150248.1
billCycleDay: 1
invoiceDeliveryPrefsPrint: false
invoiceDeliveryPrefsEmail: true
additionalEmailAddresses:
- contact1@example.com
- contact2@example.com
name: subscribeCallYan_1
balance: 0.0
accountNumber: A00001115
id: 2c92a0f9391832b10139183e277a0042
currency: USD
lastPaymentDate: '2013-03-27'
soldToContact:
fax: ''
taxRegion: ''
country: United States
zipCode: '95135'
county: ''
lastName: Cho
workEmail: contact@example.com
state: California
address2: ''
address1: 278 Bridgeton Circle
firstName: Bill
id: 2c92a0f9391832b10139183e27940043
workPhone: '5555551212'
city: San Jose
success: true
subscriptions:
- termEndDate: '2014-02-01'
termStartDate: '2013-02-01'
status: Active
initialTerm: 12
autoRenew: true
subscriptionNumber: A-S00001081
subscriptionStartDate: '2013-02-01'
id: 2c92c8f83dc4f752013dc72c24ee016d
ratePlans:
- productName: Recurring Charge
ratePlanName: QSF_Tier
termType: TERMED
renewalTerm: 3
- termEndDate: '2014-02-01'
termStartDate: '2013-02-01'
status: Active
initialTerm: 12
autoRenew: true
subscriptionNumber: A-S00001080
subscriptionStartDate: '2013-02-01'
id: 2c92c8f83dc4f752013dc72bb85c0127
ratePlans:
- productName: Recurring Charge
ratePlanName: QSF_Tier
termType: TERMED
renewalTerm: 3
- termEndDate: '2014-04-01'
termStartDate: '2013-12-01'
status: Cancelled
initialTerm: 10
autoRenew: false
subscriptionNumber: A-S00001079
subscriptionStartDate: '2013-02-01'
id: 2c92c8f83dc4f752013dc723fdab00d4
ratePlans:
- productName: Recurring Charge
ratePlanName: QSF_Tier
termType: TERMED
renewalTerm: 4
- termEndDate: '2012-02-11'
termStartDate: '2011-02-11'
status: Active
initialTerm: 12
autoRenew: false
subscriptionNumber: A-S00001076
subscriptionStartDate: '2011-02-11'
id: 2c92c8f83db0b4b4013db4717ad000ec
ratePlans:
- productName: Recurring Charge
ratePlanName: Month_PerUnit
- productName: Recurring Charge
ratePlanName: Month_PerUnit
termType: TERMED
renewalTerm: 3
- termEndDate: '2012-02-11'
termStartDate: '2011-02-11'
status: Active
initialTerm: 12
autoRenew: false
subscriptionNumber: A-S00001075
subscriptionStartDate: '2011-02-11'
id: 2c92c8f83db0b4b4013db3ab6a4d00bc
ratePlans:
- productName: Recurring Charge
ratePlanName: Month_PerUnit
- productName: Recurring Charge
ratePlanName: Month_PerUnit
termType: TERMED
renewalTerm: 3
- termEndDate: '2012-02-11'
termStartDate: '2011-02-11'
status: Active
initialTerm: 12
autoRenew: false
subscriptionNumber: A-S00001074
subscriptionStartDate: '2011-02-11'
id: 2c92c8f83db0b4b4013db3aa9fbd0090
ratePlans:
- productName: Recurring Charge
ratePlanName: Month_PerUnit
termType: TERMED
renewalTerm: 3
billToContact:
fax: ''
taxRegion: ''
country: United States
zipCode: '95135'
county: ''
lastName: Zou
workEmail: contact@example.com
state: California
address2: ''
address1: 1400 Bridge Pkwy
firstName: Cheng
id: 2c92a0f9391832b10139183e27940043
workPhone: '5555551212'
city: San Jose
description: ''
schema:
$ref: '#/definitions/GETAccountSummaryType'
/v1/accounts/{account-key}/payment-methods:
get:
summary: List payment methods of an account
operationId: GET_AcountPaymentMethods
description: |
Retrieves the payment methods of the specified customer account.
**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.
tags:
- Accounts
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: account-key
in: path
description: Account number or account ID.
required: true
type: string
- name: isDefaultOnly
in: query
required: false
type: boolean
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.
- name: isActiveOnly
in: query
required: false
type: boolean
description: Indicates whether to only retrieve the active payment methods
of the account. The default value is `false`. If this parameter is set to
`true`, only the active payment methods are retrieved.
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
defaultPaymentMethodId: 4028839f7d26a155017d26af16ef0001
paymentGateway: null
creditcard:
- cardNumber: '************1111'
expirationMonth: 11
expirationYear: 2027
creditCardType: Visa
accountHolderInfo:
accountHolderName: John Smith
phone: '86123456789'
email: example@google.com
addressLine1: ABC
addressLine2: EFT
zipCode: '123456'
city: Example City
country: United States
state: Example State
mandateInfo:
mitProfileAction: null
mitProfileType: null
mitConsentAgreementSrc: null
mitConsentAgreementRef: null
mitTransactionId: null
mitProfileAgreedOn: null
id: 4028839f7d26a155017d26af16ef0001
type: CreditCard
isDefault: true
accountKey: 4028839f7ca29000017ca29c1ce8003f
status: Active
lastTransaction: Approved
useDefaultRetryRule: true
bankIdentificationNumber: '411111'
deviceSessionId: null
existingMandate: null
ipAddress: null
lastFailedSaleTransactionDate: null
lastTransactionDateTime: '2021-11-15 18:59:08'
lastTransactionStatus: Approved
maxConsecutivePaymentFailures: null
numConsecutiveFailures: 0
paymentRetryWindow: null
totalNumberOfProcessedPayments: 0
totalNumberOfErrorPayments: 0
createdDate: '2021-11-15 18:59:08'
updatedDate: '2021-11-15 18:59:08'
createdBy: 402881e522cf4f9b0122cf5d82860002
updatedBy: 402881e522cf4f9b0122cf5d82860002
AA_PICKLIST__c: null
debitcard:
- cardNumber: '************8888'
expirationMonth: 11
expirationYear: 2021
creditCardType: Electron
accountHolderInfo:
accountHolderName: John Smith
phone: ''
email: smith@example.com
addressLine1: 1051 E Hillsdale Blvd
addressLine2: ''
zipCode: '45101'
city: Tynan
country: United States
state: California
mandateInfo:
mitProfileAction: null
mitProfileType: null
mitConsentAgreementSrc: null
mitConsentAgreementRef: null
mitTransactionId: null
mitProfileAgreedOn: null
id: 4028839f7cd92a6b017cda4defd00006
type: CreditCard
isDefault: false
accountKey: 4028839f7ca29000017ca29c1ce8003f
status: Active
lastTransaction: Approved
useDefaultRetryRule: true
bankIdentificationNumber: '588888'
deviceSessionId: null
existingMandate: null
ipAddress: null
lastFailedSaleTransactionDate: null
lastTransactionDateTime: '2021-11-01 00:01:53'
lastTransactionStatus: Approved
maxConsecutivePaymentFailures: null
numConsecutiveFailures: 0
paymentRetryWindow: null
totalNumberOfProcessedPayments: 0
totalNumberOfErrorPayments: 0
createdDate: '2021-11-01 00:01:52'
updatedDate: '2021-11-01 00:01:52'
createdBy: 402881e522cf4f9b0122cf5d82860002
updatedBy: 402881e522cf4f9b0122cf5d82860002
AA_PICKLIST__c: null
creditcardreferencetransaction:
- tokenId: ABCE
secondTokenId: FGDSDF
id: 4028839f7ce8c530017ce9725e2c0003
type: CreditCardReferenceTransaction
isDefault: false
accountKey: 4028839f7ca29000017ca29c1ce8003f
status: Active
lastTransaction: Approved
useDefaultRetryRule: true
bankIdentificationNumber: null
deviceSessionId: null
existingMandate: null
ipAddress: null
lastFailedSaleTransactionDate: null
lastTransactionDateTime: '2021-11-03 22:35:59'
lastTransactionStatus: Approved
maxConsecutivePaymentFailures: null
numConsecutiveFailures: 0
paymentRetryWindow: null
totalNumberOfProcessedPayments: 0
totalNumberOfErrorPayments: 0
createdDate: '2021-11-03 22:35:59'
updatedDate: '2021-11-03 22:35:59'
createdBy: 402881e522cf4f9b0122cf5d82860002
updatedBy: 402881e522cf4f9b0122cf5d82860002
AA_PICKLIST__c: null
cardNumber: null
expirationMonth: 11
expirationYear: 2021
creditCardType: Visa
accountHolderInfo:
accountHolderName: ''
phone: null
email: ''
addressLine1: ''
addressLine2: ''
zipCode: ''
city: ''
country: null
state: ''
mandateInfo:
mitProfileAction: null
mitProfileType: null
mitConsentAgreementSrc: null
mitConsentAgreementRef: null
mitTransactionId: null
mitProfileAgreedOn: null
ach:
- bankABACode: '110000000'
bankAccountNumber: '********6789'
bankAccountType: Checking
bankName: Chase
bankAccountName: Test
accountHolderInfo:
accountHolderName: null
phone: '2554444'
email: test@test.com
addressLine1: DSDFD
addressLine2: ''
zipCode: '123456'
city: Example City
country: United States
state: Example State
mandateInfo:
mandateId: null
mandateReceivedStatus: null
existingMandateStatus: null
mandateCreationDate: null
mandateUpdateDate: null
mandateStatus: null
mandateReason: null
id: 4028839f7cc14262017cc1bca9eb0008
type: ACH
isDefault: false
accountKey: 4028839f7ca29000017ca29c1ce8003f
status: Active
lastTransaction: Approved
useDefaultRetryRule: true
bankIdentificationNumber: null
deviceSessionId: null
existingMandate: null
ipAddress: null
lastFailedSaleTransactionDate: null
lastTransactionDateTime: '2021-10-27 05:32:19'
lastTransactionStatus: Approved
maxConsecutivePaymentFailures: null
numConsecutiveFailures: 0
paymentRetryWindow: null
totalNumberOfProcessedPayments: 0
totalNumberOfErrorPayments: 0
createdDate: '2021-10-27 05:32:19'
updatedDate: '2021-11-10 00:50:12'
createdBy: 402881e522cf4f9b0122cf5d82860002
updatedBy: 402881e522cf4f9b0122cf5d82860002
AA_PICKLIST__c: null
success: true
description: ''
schema:
$ref: '#/definitions/GETAccountPaymentMethodType'
/v1/accounts/{account-key}/payment-methods/default:
get:
summary: Retrieve the default payment method of an account
operationId: GET_AcountDefaultPaymentMethod
description: |
Retrieves the default payment method of the specified customer account.
**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.
tags:
- Accounts
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: account-key
in: path
description: Account number or account ID.
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
cardNumber: '************1111'
expirationMonth: 11
expirationYear: 2027
creditCardType: Visa
accountHolderInfo:
accountHolderName: John Smith
phone: '86123456789'
email: example@google.com
addressLine1: ABC
addressLine2: EFT
zipCode: '844000'
city: Example City
country: United States
state: Example State
mandateInfo:
mitProfileAction: null
mitProfileType: null
mitConsentAgreementSrc: null
mitConsentAgreementRef: null
mitTransactionId: null
mitProfileAgreedOn: null
id: 4028839f7d26a155017d26af16ef0001
type: CreditCard
isDefault: true
accountKey: 4028839f7ca29000017ca29c1ce8003f
status: Active
lastTransaction: Approved
useDefaultRetryRule: true
bankIdentificationNumber: '411111'
deviceSessionId: null
existingMandate: null
ipAddress: null
lastFailedSaleTransactionDate: null
lastTransactionDateTime: '2021-11-15 18:59:08'
lastTransactionStatus: Approved
maxConsecutivePaymentFailures: null
numConsecutiveFailures: 0
paymentRetryWindow: null
totalNumberOfProcessedPayments: 0
totalNumberOfErrorPayments: 0
createdDate: '2021-11-15 18:59:08'
updatedDate: '2021-11-15 18:59:08'
createdBy: 402881e522cf4f9b0122cf5d82860002
updatedBy: 402881e522cf4f9b0122cf5d82860002
AA_PICKLIST__c: null
success: true
description: ''
schema:
$ref: '#/definitions/GETPaymentMethodResponseForAccount'
/v1/action/create:
post:
summary: Create
operationId: Action_POSTcreate
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://www.zuora.com/developer/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:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_REQUEST_rejectUnknownFields'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version'
- name: createRequest
in: body
description: ''
required: true
schema:
$ref: '#/definitions/ProxyActioncreateRequest'
responses:
'200':
examples:
application/json:
- Success: true
Id: 2c93808457d787030157e0324aea5158
description: ''
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
schema:
description: ''
type: array
items:
$ref: '#/definitions/SaveResult'
'401':
examples:
application/json:
message: Authentication error
description: ''
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
WWW-Authenticate:
type: string
enum:
- Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora
API
description: |
The value of this header is:
```
Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API
```
schema:
$ref: '#/definitions/ProxyUnauthorizedResponse'
/v1/action/delete:
post:
summary: Delete
operationId: Action_POSTdelete
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.
The following information applies to this call:
* You will need to first determine the IDs for the objects you wish to delete.
* You cannot pass in any null IDs.
* All objects in a specific delete call must be of the same type.
### Objects per Call
50 objects are supported in a single call.
tags:
- Actions
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_REQUEST_rejectUnknownFields'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version'
- name: deleteRequest
in: body
description: ''
required: true
schema:
$ref: '#/definitions/ProxyActiondeleteRequest'
responses:
'200':
examples:
application/json:
- id: 2c93808457d787030157e031fcd34e19
success: true
description: ''
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
schema:
type: array
description: ''
items:
$ref: '#/definitions/DeleteResult'
'401':
examples:
application/json:
message: Authentication error
description: ''
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
WWW-Authenticate:
type: string
enum:
- Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora
API
description: |
The value of this header is:
```
Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API
```
schema:
$ref: '#/definitions/ProxyUnauthorizedResponse'
/v1/action/query:
post:
summary: Query
operationId: Action_POSTquery
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\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\
\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"
tags:
- Actions
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_REQUEST_rejectUnknownFields'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version'
- name: queryRequest
in: body
description: ''
required: true
schema:
$ref: '#/definitions/ProxyActionqueryRequest'
responses:
'200':
examples:
application/json:
records:
- AdjustmentNumber: IIA-00000001
ServiceEndDate: '2016-10-20'
Id: 2c93808457d787030157e0324aea5158
AccountingCode: Accounts Receivable
UpdatedDate: '2016-10-20T05:46:14.000+02:00'
AccountId: 2c93808457d787030157e032485b5131
Comment: this is comments
InvoiceNumber: INV00000001
InvoiceId: 2c93808457d787030157e03248c75142
ServiceStartDate: '2016-10-20'
CreatedById: 2c93808457d787030157e032283c4fb2
CreatedDate: '2016-10-20T05:46:14.000+02:00'
InvoiceItemName: OneTime_Flat Fee Pricing1476935174089
UpdatedById: 2c93808457d787030157e032283c4fb2
Amount: 1.2
AdjustmentDate: '2016-10-20'
SourceId: 2c93808457d787030157e03248c95144
SourceType: InvoiceDetail
Status: Processed
Type: Credit
ReferenceId: refid-1476935174845
ReasonCode: Standard Adjustment
size: 1
done: true
description: ''
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
schema:
$ref: '#/definitions/ProxyActionqueryResponse'
'401':
examples:
application/json:
message: Authentication error
description: ''
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
WWW-Authenticate:
type: string
enum:
- Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora
API
description: |
The value of this header is:
```
Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API
```
schema:
$ref: '#/definitions/ProxyUnauthorizedResponse'
/v1/action/queryMore:
post:
summary: QueryMore
operationId: Action_POSTqueryMore
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.
Any `queryLocator` results greater than 2,000, will only be stored by Zuora for 5 days before it is deleted.
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.
**Note:** Zuora expires queryMore cursors after 15 minutes of activity.
To 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.
tags:
- Actions
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_REQUEST_rejectUnknownFields'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version'
- name: queryMoreRequest
in: body
description: ''
required: true
schema:
$ref: '#/definitions/ProxyActionqueryMoreRequest'
responses:
'200':
description: ''
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
schema:
$ref: '#/definitions/ProxyActionqueryMoreResponse'
'401':
examples:
application/json:
message: Authentication error
description: ''
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
WWW-Authenticate:
type: string
enum:
- Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora
API
description: |
The value of this header is:
```
Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API
```
schema:
$ref: '#/definitions/ProxyUnauthorizedResponse'
/v1/action/update:
post:
summary: Update
operationId: Action_POSTupdate
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://www.zuora.com/developer/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:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_REQUEST_rejectUnknownFields'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version'
- name: updateRequest
in: body
description: ''
required: true
schema:
$ref: '#/definitions/ProxyActionupdateRequest'
responses:
'200':
examples:
application/json:
- Success: true
Id: 2c93808457d787030157e0321fdf4fab
description: ''
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
schema:
description: ''
type: array
items:
$ref: '#/definitions/SaveResult'
'401':
examples:
application/json:
message: Authentication error
description: ''
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
WWW-Authenticate:
type: string
enum:
- Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora
API
description: |
The value of this header is:
```
Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API
```
schema:
$ref: '#/definitions/ProxyUnauthorizedResponse'
/v1/adjustments:
post:
summary: Create an adjustment
operationId: Create_Adjustment
description: "This REST API reference describes how to create one or more adjustments\
\ for a subscription. \n\n**Note**: The 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. If you want to join\
\ this early adopter program, submit a request at Zuora Global Support.\n\n**Note**: Please note that\
\ this API supports the partial success scenario: when there is at least one\
\ eligible adjustment for the given time period, it will return \u201Csuccess\
\ = true\u201D and include both eligible adjustments and ineligible adjustments\
\ in the response; only when no adjustment is eligible, it will return \u201C\
success=false\u201D.\n"
tags:
- Adjustments
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTCreateBillingAdjustmentRequestType'
responses:
200:
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
schema:
$ref: '#/definitions/GETAdjustmentsResponseType'
examples:
application/json:
adjustments:
- id: 4028818886a2149b0186a237d0ff003b
date: '2023-02-26'
amount: -5.0
reason: string
subscriptionNumber: A-S00000001
chargeNumber: C-00000001
deferredRevenueAccountingCode: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
billingDate: '2022-12-01'
status: Created
ineligibleAdjustments:
- id: ''
date: '2023-02-27'
amount: ''
reason: string
subscriptionNumber: A-S00000001
chargeNumber: C-00000001
deferredRevenueAccountingCode: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
billingDate: '2022-12-01'
status: Failed
errorMessage: No delivery subscribed on this day.
success: true
get:
summary: List all adjustments of the latest version subscription
operationId: GET_Subscription_Adjustments
description: |
This REST API reference describes how to retrieve detailed information about adjustments of a subscription with the latest version.
**Note**: The 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. If you want to join this early adopter program, submit a request at Zuora Global Support.
tags:
- Adjustments
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: subscription-number
in: query
required: true
type: string
description: 'A subscription number.
'
responses:
200:
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
schema:
$ref: '#/definitions/GETAdjustmentsResponseType'
examples:
application/json:
adjustments:
- id: 4028818886a2149b0186a237d0ff003b
date: '2023-02-26'
amount: -5.0
reason: string
subscriptionNumber: A-S00000001
chargeNumber: C-00000001
deferredRevenueAccountingCode: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
billingDate: '2022-12-01'
status: Created
- id: 4028818886a2149b0186a2404f67003c
date: '2023-02-19'
amount: -5.0
reason: string
subscriptionNumber: A-S00000001
chargeNumber: C-00000001
deferredRevenueAccountingCode: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
billingDate: '2022-12-01'
status: Created
ineligibleAdjustments: []
success: true
/v1/adjustments/{adjustmentId}:
get:
summary: Retrieve an adjustment
operationId: GET_Adjustment
description: |
This REST API reference describes how to retrieve detailed information about an adjustment.
**Note**: The 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. If you want to join this early adopter program, submit a request at Zuora Global Support.
tags:
- Adjustments
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: adjustmentId
in: path
description: The ID of the adjustment to retrieve.
required: true
type: string
format: UUID
responses:
200:
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
schema:
$ref: '#/definitions/POSTAdjustmentResponseType'
examples:
application/json:
id: 4028818886a2149b0186a2404f67003c
date: '2023-02-26'
amount: -5.0
reason: string
subscriptionNumber: A-S00000001
chargeNumber: C-00000001
deferredRevenueAccountingCode: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
billingDate: '2022-12-01'
status: Created
success: true
/v1/adjustments/preview:
post:
summary: Preview an adjustment
operationId: Preview_Adjustment
description: "This REST API describes how to preview adjustments of a subscription.\n\
\n**Note**: The 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. If you want to join this early adopter program,\
\ submit a request at Zuora Global Support.\n\n**Note**: Please note that this API\
\ supports the partial success scenario: when there is at least one eligible\
\ adjustment for the given time period, it will return \u201Csuccess = true\u201D\
\ and include both eligible adjustments and ineligible adjustments in the\
\ response; only when no adjustment is eligible, it will return \u201Csuccess=false\u201D\
.\n"
tags:
- Adjustments
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTPreviewBillingAdjustmentRequestType'
responses:
200:
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
schema:
$ref: '#/definitions/POSTAdjustmentPreviewResponseType'
examples:
application/json:
totalQuantity: 1.0
totalAmount: -5.0
adjustments:
- id: ''
date: '2023-02-26'
amount: -5.0
reason: string
subscriptionNumber: A-S00000001
chargeNumber: C-00000001
deferredRevenueAccountingCode: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
billingDate: '2022-12-01'
status: Created
ineligibleAdjustments:
- id: ''
date: '2023-02-27'
amount: ''
reason: string
subscriptionNumber: A-S00000001
chargeNumber: C-00000001
deferredRevenueAccountingCode: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
billingDate: '2022-12-01'
status: Failed
errorMessage: No delivery subscribed on this day.
success: true
/v1/adjustments/{adjustmentId}/cancel:
put:
summary: Cancel an adjustment
operationId: PUT_CancelAdjustment
description: |
This REST API reference describes how to cancel an unbilled adjustment.
**Note**: The 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. If you want to join this early adopter program, submit a request at Zuora Global Support.
tags:
- Adjustments
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: adjustmentId
in: path
description: 'The id of the adjustment to cancel.
'
required: true
type: string
format: UUID
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
/v1/attachments:
post:
summary: Create an attachment
operationId: POST_Attachments
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).\n\
To 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"
consumes:
- multipart/form-data
tags:
- Attachments
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: description
in: query
description: 'Description of the attachment document.
'
required: false
type: string
- name: associatedObjectType
in: query
description: "The type of the object to add attachements for. \n"
enum:
- Account
- Invoice
- Subscription
- CreditMemo
- DebitMemo
required: true
type: string
- 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.
For Account, Credit Memo, and Debit Memo, specify the corresponding ID or number. For Invoice, specify the corresponding ID.
required: true
type: string
- name: file
in: formData
required: true
type: file
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
The maximum file size is 4 MB.
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
id: 402880ea536ff494015372a7ea17001f
fileId: 402880ea536ff494015372a7ea12001e
description: ''
schema:
$ref: '#/definitions/POSTAttachmentResponseType'
x-code-samples:
- lang: curl
label: Curl
source: 'curl -X POST -H "Authorization: Bearer f21f017e4724445d8647b1f0de7ed6f1"
-F "file=@PODocument.pdf" "https://rest.zuora.com/v1/attachments/?description=Postal%20order&associatedObjectType=Subscription&associatedObjectKey=A-S00005714"
'
/v1/attachments/{object-type}/{object-key}:
get:
summary: List attachments by object type and key
operationId: GET_AttachmentsList
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).\n\
To 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:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: object-type
in: path
description: 'The type of the object to list attachements for.
'
required: true
type: string
enum:
- account
- invoice
- subscription
- creditmemo
- debitmemo
- name: object-key
in: path
description: |
ID of the object to list attachements for.
- If `object-type` is `account`, specify an account ID or number.
- If `object-type` is `invoice`, specify an invoice ID.
- If `object-type` is `subscription`, specify a subscription number.
- If `object-type` is `creditmemo`, specify a credit memo ID or number.
- If `object-type` is `debitmemo`, specify a debit memo ID or number.
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
attachments:
- id: 402896b95397c169015397c2ebca0003
fileName: Search _ Splunk.pdf
description: null
fileId: 402896b95397c169015397c2ebc50002
fileContentType: application/pdf
createdOn: '2016-03-21 14:00:47'
createdBy: 402881e522cf4f9b0122cf5d82860002
updatedOn: '2016-03-21 14:00:47'
updatedBy: 402881e522cf4f9b0122cf5d82860002
success: true
- id: 8a8083e1545b706a01547316d93f4401
fileName: AttachTest.txt
description: ''
fileId: 8a8083e1545b706a01547316d9094400
fileContentType: text/plain
createdOn: '2016-05-02 13:09:17'
createdBy: 4028e487327fd45a0132829ebb673ff9
updatedOn: '2016-05-02 13:09:17'
updatedBy: 4028e487327fd45a0132829ebb673ff9
success: true
description: ''
schema:
$ref: '#/definitions/GETAttachmentsResponseType'
/v1/attachments/{attachment-id}:
get:
summary: Retrieve an attachment
operationId: GET_Attachments
description: |
Use the View Attachment REST request to retrieve information about an attachment document.
You can only use this operation if you have a Billing role that includes the Manage Attachments permission.
For more information, see [Billing roles](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles).
To change your Billing role, contact your Zuora platform administrator.
tags:
- Attachments
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: attachment-id
in: path
description: Id of the attachment you want to view.
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
id: 8a8083e1545b706a01547316d93f4401
fileName: AttachTest.txt
description: ''
fileId: 8a8083e1545b706a01547316d9094400
fileContentType: text/plain
createdOn: '2016-05-02 13:09:17'
createdBy: 4028e487327fd45a0132829ebb673ff9
updatedOn: '2016-05-02 13:09:17'
updatedBy: 4028e487327fd45a0132829ebb673ff9
success: true
description: ''
schema:
$ref: '#/definitions/GETAttachmentResponseType'
put:
summary: Update an attachment
operationId: PUT_Attachments
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.
You can only use this operation if you have a Billing role that includes the Manage Attachments permission.
For more information, see [Billing roles](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles).
To change your Billing role, contact your Zuora platform administrator.
tags:
- Attachments
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: attachment-id
in: path
required: true
type: string
description: Id of the attachment to be updated.
- name: Request
in: body
description: ''
required: false
schema:
$ref: '#/definitions/PUTAttachmentType'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
delete:
summary: Delete an attachment
operationId: DELETE_Attachments
description: |
Use the Delete Attachment REST request to delete an attachment from a Zuora object.
You can only use this operation if you have a Billing role that includes the Manage Attachments permission and the Delete Attachments permission.
For more information, see [Billing roles](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles).
To change your Billing role, contact your Zuora platform administrator.
tags:
- Attachments
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: attachment-id
in: path
required: true
type: string
description: Id of the attachment to be deleted.
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
/v1/bill-runs:
post:
summary: Create a bill run
operationId: POST_CreateBillRun
description: |
Creates an ad-hoc bill run or a scheduled bill run.
- Support to create ad-hoc or scheduled bill runs by batch
- Support to create ad-hoc or scheduled bill runs for a single account (all subscriptions under this account)
- Support to create a bill run by subscription (50 or less subscriptions under the same account)
To use this operation, you must have the Create Bill Runs billing permission.
**Restrictions and limitations**
When using this operation to create bill runs, keep the following restrictions and limitations in mind:
- When creating batch-level bill runs, you must specify `batches` and cannot specify `billRunFilters`.
- When creating account-level bill runs, you must specify `billRunFilters` and cannot specify `batches`. Only one single account is allowed.
- When creating subscription-level bill runs, you must specify `billRunFilters` and cannot specify `batches`. All subscriptions must belong to the same account. At most 50 subscriptions are allowed.
- 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.
tags:
- Bill Run
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTCreateBillRunRequestType'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
schema:
$ref: '#/definitions/GetBillRunResponseType'
/v1/bill-runs/{billRunId}/post:
put:
summary: Post a bill run
operationId: PUT_PostBillRun
description: |
Posts a bill run asynchronously. To post a bill run, the current bill run must be in `Completed` status.
When 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`.
tags:
- Bill Run
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: billRunId
in: path
required: true
type: string
description: 'The unique ID of a bill run.
'
- name: Request
in: body
description: ''
required: true
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
example:
invoiceDate: '2022-01-01'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
schema:
$ref: '#/definitions/GetBillRunResponseType'
/v1/bill-runs/{billRunId}:
get:
summary: Retrieve a bill run
operationId: GET_BillRun
description: 'Retrieves the information about a specific bill run.
'
tags:
- Bill Run
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: billRunId
in: path
description: 'The unique ID of a bill run.
'
required: true
type: string
responses:
200:
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
schema:
$ref: '#/definitions/GetBillRunResponseType'
delete:
summary: Delete a bill run
operationId: DELETE_DeleteBillRun
description: "Deletes a bill run. You can only delete bill runs in `Canceled`\
\ status. \n"
tags:
- Bill Run
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: billRunId
in: path
required: true
type: string
description: 'The unique ID of a bill run.
'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
schema:
$ref: '#/definitions/GetBillRunResponseType'
/v1/bill-runs/{billRunId}/cancel:
put:
summary: Cancel a bill run
operationId: PUT_CancelBillRun
description: |
Cancels a bill run in Draft status.
When cancelling a scheduled bill run, keep the following information in mind:
- 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.
- If you set `cancelOnce` to `false`, all future recurring bill runs are cancelled.
tags:
- Bill Run
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: billRunId
in: path
required: true
type: string
description: 'The unique ID of a bill run.
'
- name: Request
in: body
description: ''
required: true
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.
'
example:
cancelOnce: true
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
schema:
$ref: '#/definitions/CancelBillRunResponseType'
/v1/bill-runs/{billRunKey}/emails:
post:
summary: Email billing documents generated from a bill run
operationId: POST_EmailBillingDocumentsfromBillRun
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:
- Bill Run
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
examples:
application/json:
success: true
schema:
$ref: '#/definitions/CommonResponseType'
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: billRunKey
in: path
type: string
required: true
description: 'The ID or number of the bill run. For example, 2c92c8f95d0c886e015d11287a8f0f8b
or BR-00000001.
'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTEmailBillingDocfromBillRunType'
/v1/accounts/{key}/billing-documents/generate:
post:
description: |
Generates draft or posted billing documents for a specified account. You can also generate billing documents for specified subscriptions of a specified account. The billing documents contain invoices and credit memos. To generate credit memos, you must have the Invoice Settlement feature enabled.
**Note**: You cannot generate billing documents for cancelled or suspended subscriptions.
summary: Generate billing documents by account ID
operationId: POST_GenerateBillingDocuments
tags:
- Billing Documents
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
examples:
application/json:
invoices:
- id: 402890555c33b44b015c33bfe9c70044
- id: 402890555c33b44b015c33bfe9d70046
creditMemos:
- id: 402890555c33b44b015c33bfe947003c
- id: 402890555c33b44b015c33bfe93c003a
success: true
schema:
$ref: '#/definitions/GenerateBillingDocumentResponseType'
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PostGenerateBillingDocumentType'
- type: string
in: path
name: key
description: 'The ID or number of the customer account that billing documents
are generated for. For example, 8a8082e65b27f6c3015ba3e326b26419 or AC0000001.
'
required: true
/v1/billing-documents:
get:
description: "Retrieves the information about all billing documents associated\
\ with a specified account. The billing documents contain invoices, credit\
\ memos, and debit memos.\n\nTo retrieve information about credit memos and\
\ debit memos, you must have the Invoice Settlement feature enabled. \n\n\
You 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"
summary: List billing documents for an account
operationId: GET_BillingDocuments
tags:
- Billing Documents
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: accountId
in: query
required: false
type: string
format: uuid
description: |
The ID of the customer account that the billing documents are associated with.
**Note**: When retrieving information about all billing documents associated with an account, you must specify either `accountId` or `accountNumber` in the query parameters.
- name: accountNumber
in: query
required: false
type: string
format: uuid
description: |
The number of the customer account that the billing documents are associated with.
**Note**: When retrieving information about all billing documents associated with an account, you must specify either `accountId` or `accountNumber` in the query parameters.
- name: documentDate
in: query
required: false
type: string
format: date
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.
'
- name: status
in: query
required: false
type: string
enum:
- Draft
- Posted
- Canceled
- Error
description: 'The status of the billing document.
'
- name: sort
in: query
type: string
required: false
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 \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"
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
examples:
application/json:
documents:
- id: 4028905f5e4jjj015e50af9aa002d1
documentType: Invoice
documentNumber: INV-0000001
documentDate: '2017-10-01'
amount: 100
balance: 90
accountId: 4028905f5e4feb38bbb50af9aa002d1
accountNumber: A00000001
status: Posted
- id: 4028905f5e4jbbb015e50af9aa002d1
documentType: CreditMemo
documentNumber: CM-0000001
documentDate: '2017-09-01'
amount: 100
balance: 90
accountId: 4028905f5e4feb38b111b50af9aa002d1
accountNumber: A00000001
status: Posted
- id: 4028905f5e4jccc015e50af9aa002d1
documentType: DebitMemo
documentNumber: DM-0000001
documentDate: '2017-07-01'
amount: 100
balance: 90
accountId: 4028905f5e4feb3833b50af9aa002d1
accountNumber: A00000001
status: Posted
success: true
schema:
$ref: '#/definitions/BillingDocumentQueryResponseElementType'
x-code-samples:
- lang: curl
label: Curl
source: 'curl -X GET -H "Authorization: Bearer 6d151216ef504f65b8ff6e9e9e8356d3"
-H "Content-Type: application/json" "https://rest.sandbox.eu.zuora.com/v1/billing-documents?accountId=402892c74c9193cd014c91d35b0a0132"
'
/v1/accounts/billing-documents/files/deletion-jobs:
post:
description: "Creates an asynchronous job to permanently delete all billing\
\ document PDF files for specific accounts. \n\nAfter the deletion job is\
\ completed, all billing document PDF files are permanently deleted. To retrieve\
\ the status of a deletion job, call [Retrieve a job of hard deleting billing\
\ document files](https://www.zuora.com/developer/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"
summary: Create a job to hard delete billing document files
operationId: POST_BillingDocumentFilesDeletionJob
tags:
- Billing Documents
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
examples:
application/json:
id: 2c92c8f83dc4f752013dc72c24ee016c
status: Pending
success: true
schema:
$ref: '#/definitions/POSTBillingDocumentFilesDeletionJobResponse'
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTBillingDocumentFilesDeletionJobRequest'
/v1/accounts/billing-documents/files/deletion-jobs/{jobId}:
get:
summary: Retrieve a job of hard deleting billing document files
operationId: GET_BillingDocumentFilesDeletionJob
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:
- Billing Documents
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: jobId
in: path
description: The unique ID of a billing document file deletion job. For example,
2c92c8f83dc4f752013dc72c24ee016c.
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
id: 2c92c8f83dc4f752013dc72c24ee016c
status: Pending
success: true
description: ''
schema:
$ref: '#/definitions/GETBillingDocumentFilesDeletionJobResponse'
/v1/billing-preview-runs:
post:
summary: Create a billing preview run
operationId: POST_BillingPreviewRun
description: |
Creates a billing preview run for multiple customer accounts.
You 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.
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. See [Minor Version](https://www.zuora.com/developer/api-references/api/overview/#section/API-Versions/Minor-Version)\
\ for information about REST API version control. \n\nThis header affects\
\ the availability of the following request fields:\n* `batch`\n* `batches`\
\ \n"
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PostBillingPreviewRunParam'
tags:
- Billing Preview Run
responses:
200:
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: true
billingPreviewRunId: 402890b757d1ec1b0157d5aa3d6802aa
description: ''
schema:
type: object
properties:
success:
type: boolean
description: 'Returns `true` if the request was processed successfully.
'
billingPreviewRunId:
type: string
description: 'Id of the billing preview run.
'
/v1/billing-preview-runs/{billingPreviewRunId}:
get:
summary: Retrieve a billing preview run
operationId: GET_BillingPreviewRun
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.\n"
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. See [Minor Version](https://www.zuora.com/developer/api-references/api/overview/#section/API-Versions/Minor-Version)\
\ for information about REST API version control. \n\nThis header affects\
\ the availability of the following request fields:\n* `batch`\n* `batches`\n"
- name: billingPreviewRunId
in: path
description: 'Id of the billing preview run.
'
required: true
type: string
tags:
- Billing Preview Run
responses:
200:
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
assumeRenewal: Autorenew
batches: ''
chargeTypeToExclude: OneTime
createdById: 4028906d58240f960158241132be0003
createdDate: '2016-11-04 16:18:56'
endDate: '2016-11-04 16:19:00'
errorMessage: null
includingEvergreenSubscription: true
includingDraftItems: false
resultFileUrl: https://rest.zuora.com/v1/files/4028906d582d21a101582e6b663c0a65
runNumber: BPR-00000010
startDate: '2016-11-04 16:19:00'
status: Completed
succeededAccounts: 7
targetDate: '2016-12-01'
totalAccounts: 7
updatedById: 4028906d58240f960158241132be0003
updatedDate: '2016-11-04 16:19:00'
success: true
description: ''
schema:
$ref: '#/definitions/GetBillingPreviewRunResponse'
/v1/catalog-groups:
post:
summary: Create a catalog group
operationId: POST_CreateCatalogGroup
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/).
Creates a catalog group which groups a list of product rate plans.
tags:
- Catalog Groups
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTCatalogGroupRequest'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
id: 4028e5ab7f1b600c017f1b7a5e8901d2
name: test
description: some description
catalogGroupNumber: CG-00000001
type: Grading
productRatePlans:
- id: 4028e5ab7f1b600c017f1b787d5d01cf
status: Active
name: '222'
description: null
effectiveStartDate: '2022-02-21'
effectiveEndDate: '2023-02-21'
grade: 1
description: ''
schema:
$ref: '#/definitions/CatalogGroupResponse'
get:
summary: List all catalog groups
operationId: GET_ListAllCatalogGroups
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/).
Retrieves basic information about all catalog groups.
tags:
- Catalog Groups
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
catalogGroups:
- id: 4028e5ab7f1b600c017f1b7a5e8901d2
name: test
description: some description
catalogGroupNumber: CG-00000001
type: Grading
productRatePlans:
- id: 4028e5ab7f1b600c017f1b787d5d01cf
status: Active
name: '222'
description: null
effectiveStartDate: '2022-02-21'
effectiveEndDate: '2023-02-21'
grade: 1
nextPage: false
description: ''
schema:
$ref: '#/definitions/ListAllCatalogGroupsResponse'
/v1/catalog-groups/{catalog-group-key}:
get:
summary: Retrieve a catalog group
operationId: GET_RetrieveCatalogGroup
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/).
Retrieves basic information about a catalog group.
tags:
- Catalog Groups
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: catalog-group-key
in: path
description: 'The unique number or ID of the catalog group to be retrieved.
'
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
id: 4028e5ab7f1b600c017f1b7a5e8901d2
name: test
description: some description
catalogGroupNumber: CG-00000001
type: Grading
productRatePlans:
- id: 4028e5ab7f1b600c017f1b787d5d01cf
status: Active
name: '222'
description: null
effectiveStartDate: '2022-02-21'
effectiveEndDate: '2023-02-21'
grade: 1
description: ''
schema:
$ref: '#/definitions/CatalogGroupResponse'
put:
summary: Update a catalog group
operationId: PUT_UpdateCatalogGroup
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/).
Updates a catalog group by its unique number or ID.
## Notes
- It is best practice to only specify the fields that you want to change in the request body.
- If you specify an empty value for a field in the request body, the corresponding field in the catalog group is emptied.
- The catalog group type cannot be changed.
tags:
- Catalog Groups
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: catalog-group-key
in: path
required: true
type: string
description: "The unique number or ID of the catalog group to be updated.\
\ \n"
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTCatalogGroup'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
id: 4028e5ab7f1b600c017f1b7a5e8901d2
name: test
description: some description
catalogGroupNumber: CG-00000001
type: Grading
productRatePlans:
- id: 4028e5ab7f1b600c017f1b787d5d01cf
status: Active
name: '222'
description: null
effectiveStartDate: '2022-02-21'
effectiveEndDate: '2023-02-21'
grade: 1
description: ''
schema:
$ref: '#/definitions/CatalogGroupResponse'
delete:
summary: Delete a catalog group
operationId: DELETE_CatalogGroup
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/).
Deletes a catalog group.
tags:
- Catalog Groups
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: catalog-group-key
in: path
description: 'The unique number or ID of the catalog group to be deleted.
'
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
success: 'true'
description: ''
schema:
$ref: '#/definitions/CommonResponseType'
/v1/catalog/products:
get:
summary: List all products
operationId: GET_Catalog
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 and 300 product rate plan charges across all product rate plans in\
\ the response. \n"
tags:
- Catalog
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize_catalog'
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. \n\nYou only need to\
\ set this parameter if you use the `productRatePlans` field.\n"
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
products:
- id: 8a8082c45aa81b51015ad5a2d07d0e89
sku: SKU-00000987
name: ABC
description: ''
category: Base Products
effectiveStartDate: '2017-01-01'
effectiveEndDate: '2020-01-01'
productRatePlans: https://rest.zuora.com/v1/rateplan/40289f466463d683016463ef8b7301a0/productRatePlan
success: true
description: ''
schema:
$ref: '#/definitions/GETCatalogType'
/v1/catalog/product/{product-key}:
get:
summary: Retrieve a product
operationId: GET_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:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. \n\nYou only need to\
\ set this parameter if you use the `productRatePlans` field.\n"
- name: product-key
in: path
description: 'The unique ID or SKU of the product that you want to retrieve.
For example, 8a808255575bdae4015774e9602e16fe or SKU-00000987.
'
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
id: 8a8082c45aa81b51015ad5a2d07d0e89
sku: SKU-00000987
name: ABC
description: ''
category: Base Products
effectiveStartDate: '2017-01-01'
effectiveEndDate: '2020-01-01'
productRatePlans: https://rest.zuora.com/v1/rateplan/40289f466463d683016463ef8b7301a0/productRatePlan
success: true
description: ''
schema:
$ref: '#/definitions/GETProductType'
/deployment-manager/deployment_templates:
post:
summary: Create a deployment template
operationId: POST_DeploymentTemplate
description: |
Creates templates based on user preference.
There are 2 ways to select components.
- Selecting the whole component.
- Advanced Options -> which helps user to select specific components to be migrated.
It takes the enviroment details from the logged in user automatically, while creating the template.
tags:
- Configuration Templates
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: request
required: true
in: body
description: CreateTemplateRequestContent JSON object which contains the details
to create a template.
schema:
$ref: '#/definitions/CreateTemplateRequestContent'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
examples:
application/json:
id: 210656b3-0d89-4bc6-92b9-634653e729af
name: Test_Template
description: ''
status: Inprogress
errors: '-'
active: true
tenantName: Data Connect
entityName: Global
environment: US-API-Sandbox-Staging
createdBy: Daco user
createdOn: '2022-09-14T16:06:43.155Z'
content: null
description: Successfully created the template.
schema:
$ref: '#/definitions/TemplateDetailResponse'
'201':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
description: |
created.
The request has been fulfilled and resulted in a new resource being created. The newly created resource can be referenced by the URL(s) returned in the entity of the response, with the most specific URL for the resource given by a Location header field.
'400':
description: Bad Request
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'401':
description: Unauthorized
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'403':
description: Forbidden
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
get:
summary: List all templates
operationId: GET_Templates
description: 'Retrieves all the templates and their details which are created
already.
'
tags:
- Configuration Templates
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
examples:
application/json:
templates:
- id: e8ed70e9-5d31-41c3-8b20-981a5b3e9972
name: Testing Tax
description: ''
status: DONE
errors: '-'
active: true
tenantName: Data Connect
entityName: Global
environment: US-API-Sandbox-Staging
createdBy: Daco user
createdOn: '2022-08-22T14:06:53.659Z'
content: null
- id: 24ba307c-cd94-4b9f-b849-c2d08f028c53
name: tempExample3975161566467657
description: ''
status: DONE
errors: '-'
active: true
tenantName: Data Connect
entityName: Global
environment: US-API-Sandbox-Staging
createdBy: Daco user
createdOn: '2022-08-22T14:06:53.659Z'
content: null
description: Successfully received all templates throught Template Response
Object.
schema:
$ref: '#/definitions/TemplateResponse'
'400':
description: Bad request
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'401':
description: Unauthorized
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'403':
description: Forbidden
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
/deployment-manager/deployment_templates/{id}:
get:
summary: List all details of a template
operationId: GET_DeploymentTemplateDetail
description: 'Returns the detailed information of a specific template by passing
its template ID.
'
tags:
- Configuration Templates
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
description: The ID of the template that needs to be retrieved.
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
examples:
application/json:
id: e8ed70e9-5d31-41c3-8b20-981a5b3e9972
name: Testing Tax
description: ''
status: DONE
errors: '-'
active: true
tenantName: Data Connect
entityName: Global
environment: US-API-Sandbox-Staging
createdBy: Daco user
createdOn: '2022-08-22T14:06:53.659Z'
content:
settings:
- segregationKeys:
- Administration
- ManageDataAccessControl
- Finance
- Billing
- ManageMultiEntity
- Payments
- Taxation
- BillingDocumentConfiguration
originalPayload: null
response:
- id: 301e73b7-420c-4770-9c37-3d966c1e2690
key: AccountingRules
segregationKey: Finance
componentType: Settings
url: /accounting-rules
method: GET
payload:
allowBlankAccountingCodes: true
allowCreationInClosedPeriod: true
allowUsageInClosedPeriod: false
allowRevenueScheduleNegativeAmounts: false
result: DONE
error: null
templateId: e8ed70e9-5d31-41c3-8b20-981a5b3e9972
errors: []
productCatalog: []
notifications: []
workflows: []
customFields: []
dataAccessControl: []
customObjects: []
description: Successfully received the template.
schema:
$ref: '#/definitions/TemplateDetailResponse'
'400':
description: Bad request
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'401':
description: Unauthorized
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'403':
description: Forbidden
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
delete:
summary: Delete a template
operationId: DELETE_DeploymentTemplate
description: 'Deletes a specific template by passing the ID.
'
tags:
- Configuration Templates
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
description: The ID of the template that needs to be deleted.
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
description: Successfully deleted the template.
'204':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
description: No Content
'400':
description: Bad request
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'401':
description: Unauthorized
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'403':
description: Forbidden
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'404':
description: Id is invalid
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
/deployment-manager/deployment_artifacts:
get:
summary: Download a template
operationId: GET_DownloadDeploymentTemplate
description: 'Download a template for migration in the Deployment manager from
the source tenant to the target tenant.
'
tags:
- Configuration Templates
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: deployment_template_id
in: query
description: Id which template needs to be downloaded.
required: true
type: string
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
examples:
application/json: {}
description: Successfully downloaded the template.
schema:
$ref: '#/definitions/JsonNode'
'400':
description: Bad request
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'401':
description: Unauthorized
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'403':
description: Forbidden
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
'404':
description: Id is invalid
schema:
$ref: '#/definitions/ConfigTemplateErrorResponse'
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. Zuora would
return the same tracing identifier if you specified it in the request
headers. Otherwise, Zuora does not set this header.
'
/deployment-manager/deployment_artifacts/retrieve-settings:
get:
summary: List all details of source components
operationId: GET_SourceComponentDetails
description: 'When the advanced option is clicked, get the details/metadata
of the components, such as settings, notifications, workflow, etc.
'
tags:
- Configuration Templates
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
responses:
'200':
headers:
Content-Encoding:
type: string
description: |
This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`
Zuora-Request-Id:
type: string
minLength: 36
maxLength: 36
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
Zuora-Track-Id:
type: string
maxLength: 64
description: 'A custom identifier for tracing the API call. If you specified
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
RateLimit-Limit:
type: string
description: 'The request limit quota for the time window closest to
exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Remaining:
type: number
description: 'The number of requests remaining in the time window closest
to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
RateLimit-Reset:
type: number
description: 'The number of seconds until the quota resets for the time
window closest to quota exhaustion. See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
examples:
application/json:
customFields:
- segregationKeys:
- Account
- Invoice
- InvoiceItem
- AccountingCode
- ProductRatePlanCharge
- ProductFeature
- Product
- JournalEntry
- RatePlan
- Amendment
- DebitTaxationItem
- Subscription
- Order
- Usage
- ProductRatePlan
- AccountingPeriod
- CreditMemoItem
- RevenueSchedule
- RatePlanCharge
- Contact
- OrderAction
- Payment
- CreditBalanceAdjustment
- Refund
- DebitMemo
originalPayload:
definitions:
Account:
type: Account
schema:
type: object
properties:
idx_date_1__c:
format: date
label: idx_date_1
type: string
description: test
createdDate: '2022-08-18T12:38:13.000Z'
updatedDate: '2022-08-18T12:38:13.000Z'
non_idx_text_1__c:
maxLength: 50
label: non_idx_text_1
type: string
description: non_idx_text_1
default: non_idx_text_1
createdDate: '2022-08-18T12:38:14.000Z'
updatedDate: '2022-08-18T12:38:14.000Z'
Last_Token_Transaction_Date__c:
maxLength: 255
label: Last_Token_Transaction_Date
type: string
description: ''
createdDate: '2022-08-22T19:30:10.000Z'
updatedDate: '2022-08-22T19:30:10.000Z'
CollectionsAgent__c:
maxLength: 255
label: Collections Agent
type: string
description: ''
default: abc
createdDate: '2022-08-22T18:16:38.000Z'
updatedDate: '2022-08-22T18:16:38.000Z'
InCollections__c:
maxLength: 25
label: