swagger: '2.0'
info:
version: '2023-12-15'
title: API Reference
description: "\n\n# Introduction\n\nWelcome to the REST API reference for the Zuora\
\ Billing, Payments, and Central Platform!\n\nTo learn about the common use cases\
\ of Zuora REST APIs, check out the [REST API Tutorials](https://developer.zuora.com/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://developer.zuora.com/api-references/revenue/overview/)\n\
\ * [Collections API Reference](https://developer.zuora.com/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://developer.zuora.com/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://developer.zuora.com/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, Payments,\
\ 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://developer.zuora.com/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://developer.zuora.com/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 consecutive.\
\ \nYou can use the following versions to override the default version (`186.0`):\n\
\ - 187.0\n - 188.0\n - 189.0\n - 196.0\n - 206.0\n - 207.0\n - 211.0\n\
\ - 214.0\n - 215.0\n - 216.0\n - 223.0\n - 224.0\n - 230.0\n - 239.0\n\
\ - 256.0\n - 257.0\n - 309.0\n - 314.0\n - 315.0\n - 329.0\n - 330.0\n\
\ - 336.0\n - 337.0\n - 338.0\n - 341.0\n\nIf you set the `zuora-version`\
\ header to a version excluded from the preceding list, the corresponding API\
\ request is processed as you use the default version, `186.0`.\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://developer.zuora.com/api-references/api/operation/POST_Subscription\
\ \"Create Subscription\"); [Update Subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription\
\ \"Update Subscription\"); [Renew Subscription](https://developer.zuora.com/api-references/api/operation/PUT_RenewSubscription\
\ \"Renew Subscription\"); [Cancel Subscription](https://developer.zuora.com/api-references/api/operation/PUT_CancelSubscription\
\ \"Cancel Subscription\"); [Suspend Subscription](https://developer.zuora.com/api-references/api/operation/PUT_SuspendSubscription\
\ \"Suspend Subscription\"); [Resume Subscription](https://developer.zuora.com/api-references/api/operation/PUT_ResumeSubscription\
\ \"Resume Subscription\"); [Create Account](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_Subscription\
\ \"Create Subscription\"); [Update Subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription\
\ \"Update Subscription\"); [Renew Subscription](https://developer.zuora.com/api-references/api/operation/PUT_RenewSubscription\
\ \"Renew Subscription\"); [Cancel Subscription](https://developer.zuora.com/api-references/api/operation/PUT_CancelSubscription\
\ \"Cancel Subscription\"); [Suspend Subscription](https://developer.zuora.com/api-references/api/operation/PUT_SuspendSubscription\
\ \"Suspend Subscription\"); [Resume Subscription](https://developer.zuora.com/api-references/api/operation/PUT_ResumeSubscription\
\ \"Resume Subscription\"); [Create Account](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_Subscription\
\ \"Create Subscription\"); [Update Subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription\
\ \"Update Subscription\"); [Renew Subscription](https://developer.zuora.com/api-references/api/operation/PUT_RenewSubscription\
\ \"Renew Subscription\"); [Cancel Subscription](https://developer.zuora.com/api-references/api/operation/PUT_CancelSubscription\
\ \"Cancel Subscription\"); [Suspend Subscription](https://developer.zuora.com/api-references/api/operation/PUT_SuspendSubscription\
\ \"Suspend Subscription\"); [Resume Subscription](https://developer.zuora.com/api-references/api/operation/PUT_ResumeSubscription\
\ \"Resume Subscription\"); [Create Account](https://developer.zuora.com/api-references/api/operation/POST_Account\
\ \"Create Account\")|Generates an invoice for a subscription. |\n| invoiceTargetDate\
\ | 206.0 and earlier | [Preview Subscription](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_Subscription\
\ \"Create Subscription\"); [Update Subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription\
\ \"Update Subscription\"); [Renew Subscription](https://developer.zuora.com/api-references/api/operation/PUT_RenewSubscription\
\ \"Renew Subscription\"); [Cancel Subscription](https://developer.zuora.com/api-references/api/operation/PUT_CancelSubscription\
\ \"Cancel Subscription\"); [Suspend Subscription](https://developer.zuora.com/api-references/api/operation/PUT_SuspendSubscription\
\ \"Suspend Subscription\"); [Resume Subscription](https://developer.zuora.com/api-references/api/operation/PUT_ResumeSubscription\
\ \"Resume Subscription\"); [Create Account](https://developer.zuora.com/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://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_Subscription\
\ \"Create Subscription\"); [Update Subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription\
\ \"Update Subscription\"); [Renew Subscription](https://developer.zuora.com/api-references/api/operation/PUT_RenewSubscription\
\ \"Renew Subscription\"); [Cancel Subscription](https://developer.zuora.com/api-references/api/operation/PUT_CancelSubscription\
\ \"Cancel Subscription\"); [Suspend Subscription](https://developer.zuora.com/api-references/api/operation/PUT_SuspendSubscription\
\ \"Suspend Subscription\"); [Resume Subscription](https://developer.zuora.com/api-references/api/operation/PUT_ResumeSubscription\
\ \"Resume Subscription\"); [Create Account](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_PreviewSubscription\
\ \"Preview Subscription\"); [Update Subscription](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_PreviewSubscription\
\ \"Preview Subscription\"); [Update Subscription](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_PreviewSubscription\
\ \"Preview Subscription\"); [Update Subscription](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_PreviewSubscription\
\ \"Preview Subscription\"); [Update Subscription](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_Subscription\
\ \"Create Subscription\"); [Update Subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription\
\ \"Update Subscription\"); [Renew Subscription](https://developer.zuora.com/api-references/api/operation/PUT_RenewSubscription\
\ \"Renew Subscription\"); [Cancel Subscription](https://developer.zuora.com/api-references/api/operation/PUT_CancelSubscription\
\ \"Cancel Subscription\"); [Suspend Subscription](https://developer.zuora.com/api-references/api/operation/PUT_SuspendSubscription\
\ \"Suspend Subscription\"); [Resume Subscription](https://developer.zuora.com/api-references/api/operation/PUT_ResumeSubscription\
\ \"Resume Subscription\"); [Create Account](https://developer.zuora.com/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://developer.zuora.com/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://developer.zuora.com/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://developer.zuora.com/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://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromPrpc\
\ \"Create credit memo from charge\"); [Create debit memo from charge](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromPrpc\
\ \"Create credit memo from charge\"); [Create debit memo from charge](https://developer.zuora.com/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://developer.zuora.com/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://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/GET_CreditMemoItems\
\ \"Get credit memo items\"); [Get credit memo item](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/GET_DebitMemoItems\
\ \"Get debit memo items\"); [Get debit memo item](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/GET_CreditMemoItems\
\ \"Get credit memo items\"); [Get credit memo item](https://developer.zuora.com/api-references/api/operation/GET_CreditMemoItem\
\ \"Get credit memo item\"); [Get debit memo items](https://developer.zuora.com/api-references/api/operation/GET_DebitMemoItems\
\ \"Get debit memo items\"); [Get debit memo item](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromPrpc\
\ \"Create credit memo from charge\"); [Create debit memo from charge](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromPrpc\
\ \"Create credit memo from charge\"); [Create debit memo from charge](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromPrpc\
\ \"Create credit memo from charge\"); [Create debit memo from charge](https://developer.zuora.com/api-references/api/operation/POST_DebitMemoFromPrpc\
\ \"Create debit memo from charge\"); [Create credit memo from invoice](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromInvoice\
\ \"Create credit memo from invoice\"); [Create debit memo from invoice](https://developer.zuora.com/api-references/api/operation/POST_DebitMemoFromInvoice\
\ \"Create debit memo from invoice\"); [Get credit memo items](https://developer.zuora.com/api-references/api/operation/GET_CreditMemoItems\
\ \"Get credit memo items\"); [Get credit memo item](https://developer.zuora.com/api-references/api/operation/GET_CreditMemoItem\
\ \"Get credit memo item\"); [Get debit memo items](https://developer.zuora.com/api-references/api/operation/GET_DebitMemoItems\
\ \"Get debit memo items\"); [Get debit memo item](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromPrpc\
\ \"Create credit memo from charge\"); [Create debit memo from charge](https://developer.zuora.com/api-references/api/operation/POST_DebitMemoFromPrpc\
\ \"Create debit memo from charge\"); [Create credit memo from invoice](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromInvoice\
\ \"Create credit memo from invoice\"); [Create debit memo from invoice](https://developer.zuora.com/api-references/api/operation/POST_DebitMemoFromInvoice\
\ \"Create debit memo from invoice\"); [Get credit memo items](https://developer.zuora.com/api-references/api/operation/GET_CreditMemoItems\
\ \"Get credit memo items\"); [Get credit memo item](https://developer.zuora.com/api-references/api/operation/GET_CreditMemoItem\
\ \"Get credit memo item\"); [Get debit memo items](https://developer.zuora.com/api-references/api/operation/GET_DebitMemoItems\
\ \"Get debit memo items\"); [Get debit memo item](https://developer.zuora.com/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://developer.zuora.com/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://developer.zuora.com/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://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_PreviewSubscription\
\ \"Preview a subscription\"); [Update a subscription](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_PaymentSchedule\
\ \"Create a payment schedule\"); [Create multiple payment schedules at once](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/POST_AddItemsToCustomPaymentSchedule/\
\ \"Add payment schedule items to a custom payment schedule\"); [Update a payment\
\ schedule](https://developer.zuora.com/api-references/api/operation/PUT_PaymentSchedule/\
\ \"Update a payment schedule\"); [Update a payment schedule item](https://developer.zuora.com/api-references/api/operation/PUT_PaymentScheduleItem/\
\ \"Update a payment schedule item\"); [Preview the result of payment schedule\
\ update](https://developer.zuora.com/api-references/api/operation/PUT_PaymentScheduleUpdatePreview/\
\ \"Preview the result of payment schedule update\"); [Retrieve a payment schedule](https://developer.zuora.com/api-references/api/operation/GET_PaymentSchedule/\
\ \"Retrieve a payment schedule\"); [Retrieve a payment schedule item](https://developer.zuora.com/api-references/api/operation/GET_PaymentScheduleItem/\
\ \"Retrieve a payment schedule item\"); [List payment schedules by customer account](https://developer.zuora.com/api-references/api/operation/GET_PaymentSchedules/\
\ \"List payment schedules by customer account\"); [Cancel a payment schedule](https://developer.zuora.com/api-references/api/operation/PUT_CancelPaymentSchedule/\
\ \"Cancel a payment schedule\"); [Cancel a payment schedule item](https://developer.zuora.com/api-references/api/operation/PUT_CancelPaymentScheduleItem/\
\ \"Cancel a payment schedule item\");[Skip a payment schedule item](https://developer.zuora.com/api-references/api/operation/PUT_SkipPaymentScheduleItem/\
\ \"Skip a payment schedule item\");[Retry failed payment schedule items](https://developer.zuora.com/api-references/api/operation/POST_RetryPaymentScheduleItem/\
\ \"Retry failed payment schedule items\") | ID of the payment to be linked to\
\ the payment schedule item.\n\n\n#### Version 207.0 and Later\n\nThe response\
\ structure of the [Preview Subscription](https://developer.zuora.com/api-references/api/operation/POST_PreviewSubscription)\
\ and [Update Subscription](https://developer.zuora.com/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://developer.zuora.com/rest-api/general-concepts/object-model/).\n\
\nYou can use the [Describe](https://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/GET_Describe)\
\ operation, Export ZOQL queries, and Data Query.
`BillRun` - API name\
\ used in the [Actions](https://developer.zuora.com/api-references/api/tag/Actions).\
\ See the CRUD oprations of [Bill Run](https://developer.zuora.com/api-references/api/tag/Bill-Run)\
\ for more information about the `BillRun` object. `BillingRun` and `BillRun`\
\ have different fields. | \n| Billing Preview Run \
\ | `BillingPreviewRun` | \
\ \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| Invoice Schedule Item \
\ | `InvoiceScheduleItem` |\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\
\ Charge Definition | `ProductChargeDefinition` \
\ | \n| Product Feature | `ProductFeature`\
\ |\n| Product Rate Plan \
\ | `ProductRatePlan` |\n| Product Rate Plan Definition\
\ | `ProductRatePlanDefinition` | \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
x-tagGroups:
- name: Authentication
tags:
- OAuth
- name: Products
tags:
- Products
- Catalog
- Catalog Groups
- Offers
- Price Book Items
- Product Rate Plans
- Product Rate Plan Definitions
- Product Rate Plan Charges
- Product Charge Definitions
- Product Rate Plan Charge Tiers
- Zuora Revenue Integration
- name: Customer Accounts
tags:
- Accounts
- Contacts
- Contact Snapshots
- name: Orders and Subscriptions
tags:
- Sign Up
- Orders
- Order Actions
- Order Line Items
- Fulfillments
- Ramps
- Subscriptions
- Rate Plans
- name: Advanced Consumption Billing
tags:
- Prepaid with Drawdown
- name: Usage
tags:
- Usage
- name: Billing Documents
tags:
- Delivery Adjustments
- Billing Documents
- Invoices
- Credit Memos
- Debit Memos
- E-Invoicing
- Invoice Schedules
- Taxation Items
- Sequence Sets
- Operations
- name: Bill Runs
tags:
- Bill Run
- Billing Preview Run
- name: Payment Methods
tags:
- Payment Methods
- Custom Payment Method Types
- Payment Method Updater
- Payment Method Snapshots
- Payment Method Transaction Logs
- Hosted Pages
- RSA Signatures
- name: Payments
tags:
- Payment Authorization
- Payment Gateways
- Payment Gateway Reconciliation
- Payments
- Payment Transaction Logs
- Payment Runs
- Payment Schedules
- Refunds
- name: Finance
tags:
- Accounting Codes
- Accounting Periods
- Summary Journal Entries
- Journal Runs
- Mass Updater
- name: Events and Notifications
tags:
- Notifications
- Custom Event Triggers
- Custom Scheduled Events
- name: Custom Objects
tags:
- Custom Object Definitions
- Custom Object Records
- Custom Object Jobs
- name: System Health
tags:
- API Health
- Bill Run Health
- Electronic Payments Health
- name: Workflow
tags:
- Workflows
- name: Data Query
tags:
- Data Queries
- name: AQuA
tags:
- Aggregate Queries
- name: Deployment Manager
tags:
- Configuration Templates
- name: Multiple Organizations
tags:
- Data Labeling
- name: Order to Revenue
tags:
- Regenerate
- name: General-Purpose Operations
tags:
- Actions
- Settings
- Files
- Imports
- Custom Exchange Rates
- Attachments
- Describe
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://developer.zuora.com/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://developer.zuora.com/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://developer.zuora.com/api-references/api/operation/Action_POSTsubscribe) action.
- name: Delivery Adjustments
description: "Delivery Adjustments are used to handle end customer delivery complaints\
\ for the Delivery Pricing charge model. For more information, see Delivery Adjustments . \n"
- name: Aggregate Queries
description: "The Aggregate Query API (AQuA) is a REST API that executes multiple\
\ Export ZOQL or ZOQL queries. The queries are performed in a sequential\
\ order and in a single read-only database transaction. \n\nAQuA enforces the\
\ following limits:\n\n- The maximum processing time per query is 3 hours. If\
\ a query in an AQuA job is executed for longer than 3 hours, this job will be\
\ killed automatically. See the best practices for bulk data extraction with AQuA .\n\n\
- AQuA enforces limits on both the stateful concurrent AQuA jobs and the stateless\
\ concurrent AQuA jobs per tenant:\n\n - The maximum number of stateful concurrent\
\ AQuA jobs per tenant is 50.\n - The maximum number of stateless concurrent\
\ AQuA jobs per tenant is 50.\n\n AQuA jobs in the following status are counted\
\ towards your concurrent AQuA job limits:\n\n - Submitted\n - Executing\n\
\n Zuora system will reject the subsequent stateful or stateless job requests\
\ once the corresponding concurrent job limit is reached.\n\nFor more information\
\ about the Aggregate Query API(AQuA), see Aggregate Query . \n"
- name: API Health
description: 'Zuora System Health dashboard for API (API dashboard) collects and
displays data about API usage, failure, performance, and concurrency limit in
near real time. It enables you to view all the APIs in your Zuora tenant within
the last 14 days. For more information, see APIs dashboard .
'
- 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 Health
description: 'Zuora System Health dashboard for Bill Run (Bill Run dashboard) collects
and displays data about bill run usage, failure, and performance in near real
time. Through the Bill Run dashboard, you can view data about all the bill runs
in your Zuora tenant within the last 30 days. For more information, see Bill Run dashboard .
'
- 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"
- name: Contact Snapshots
description: 'Every time a contact is updated a snapshot is taken.
'
- 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) or custom objects. When a Zuora object changes, the trigger conditions defined on the object are evaluated, and if any condition qualifies, a business event will be triggered and turned into a notification.
**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\
\ create, update, or delete custom object records in a batch.\n\nIf you use Postman,\
\ you can import the custom objects endpoints as a collection into your Postman\
\ app and try out different requests to learn how the API works. 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 Labeling
description: "The Data Labeling APIs help you to label your existing data with organization(s)\
\ in Zuora. \n\nOnce you turned on Multi Org feature, if you don't label your\
\ existing data, they are simply unlabeled, and unlabeled data can be accessed\
\ by all organizations in your tenant.\n\nTo limit the access of your existing\
\ data, you need to label them with organization(s) you defined in the organization\
\ hierarchy management setting page. Once labeled, the data can only be accessed\
\ by users who have been granted with the labeled organization(s).\n\nNote that\
\ you have to enable the \"Multi Org\" feature before using the Data Labeling\
\ APIs. \n\n### General guidelines\n\n* Firstly, create the org hierarchy and\
\ determine the data categorization strategy, for example, by currency, by region,\
\ by custom fields etc.\n\n* You have to migrate all customer accounts before\
\ labeling products in the product catalog\n\n* You can leave the users at the\
\ root, just so long as you understand that the user would have access to all\
\ the Org Units within the Multi-org enabled tenant\n\n* Currently, you need to\
\ manually label existing Journal Runs, JournalEntry, and AccountingPeriod objects\
\ by editing, tell us your use case if you want to automate this process.\n\n\
### Order of object labeling\n\nExcept for `Account` and `Product`, there are\
\ no dependencies between objects, users can label them in parallel.\n\nBut please\
\ keep in mind that the data access control ensues from the object labeling. For\
\ example, if you label a scheduled `BillRun` with `US` org, when it's triggered\
\ next time, the bill run will only pick up customer accounts of the `US` org,\
\ not others.\n\nLikewise, labeling a user will change the user's visible data\
\ scope, for example, an `EU` user won't be able to see `US` accounts anymore.\n"
- 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: E-Invoicing
description: "With the E-Invoicing feature, Zuora supports electronic invoices\
\ through an integration with partners that have a local presence, where required,\
\ which guarantees compliance with local invoice regulations. \n\nAll the operations\
\ in this section are available only if you have the E-Invoicing feature enabled.\n"
- name: Electronic Payments Health
description: 'Zuora System Health dashboard for Electronic Payments (Electronic
Payment dashboard) collects and displays usage, failure, and performance data
about electronic payments in near real time. It enables you to view all the electronic
payments in your Zuora tenant within the last 30 days. For more information, see
Electronic Payments dashboard .
'
- 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: Mass Updater
description: |
Use mass updater to perform mass actions more easily.
For more information about mass updater, see Mass Updater .
- 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://developer.zuora.com/api-references/api/operation/createToken)\
\ operation to create an OAuth token. See [Authentication](https://developer.zuora.com/rest-api/general-concepts/authentication/)\
\ for more information.\n"
- name: 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.
The Offer object is in the **Beta** phase.
- 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://developer.zuora.com/api-references/api/operation/POST_SettlePayment/)\n\
- [Reject a payment](https://developer.zuora.com/api-references/api/operation/POST_RejectPayment/)\n\
- [Reverse a payment](https://developer.zuora.com/api-references/api/operation/POST_ReversePayment/)\n\
- [Reconcile a refund](https://developer.zuora.com/api-references/api/operation/POST_ReconcileRefund/)\n"
- name: Payment 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 Method Updater
description: 'Zuora Payment Method Updater (PMU) enables merchants to automatically
incorporate changes made to a customer''s credit cards. For more information about
Zuora PMU, see Payment Method Updater .
'
- 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: Payment Authorization
description: "The Delayed Capture feature allows you to authorize the availability\
\ of funds for a transaction but delay the capture of funds until a later time.\n\
\nYou can use the [Create authorization](https://developer.zuora.com/api-references/api/operation/POST_CreateAuthorization/)\
\ operation to authorize a payment amount before capturing the payment. \nSubsequently,\
\ you can use [Create a payment](https://developer.zuora.com/api-references/api/operation/POST_CreatePayment)\
\ or [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order/)\
\ to capture the authorized funds, or use [Cancel authorization](https://developer.zuora.com/api-references/api/operation/POST_CancelAuthorization)\
\ to cancel the authorization.\n"
- name: 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: Prepaid with Drawdown
description: 'The Prepaid with Drawdown feature is a pricing model for consumption-based
services, such as data storage. Under this model, customers pay upfront to receive
a number of units, usually for a period of time like a month or a year. Then they
consume against that prepayment balance in a use-it-or-lose-it fashion, with a
possibility of topping up more units or being charged for any overage. This model
strikes a balance between upfront commitment and the pure pay-as-you-go pricing
models. For more information, see Prepaid with Drawdown .
'
- name: Price Book Items
description: "Use price book items to define as many price points as needed for\
\ an individual product rate plan charge without the need of duplicating the product\
\ rate plan and rate plan charges in your catalog.\n\nThe Price Book Item object\
\ is in the **Beta** phase. \n"
- name: Product Charge Definitions
description: "Use product charge definitions to define the attributes that can determine\
\ the charge behavior, such as billing attributes, pricing attributes, \ntaxation\
\ attributes, or accounting attributes.\n\nThe Product Charge Definition object\
\ 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 are interested, please reach out to your CSM. \n"
- name: Product Rate Plan Definitions
description: "Use product rate plan definitions to reuse charges in different product\
\ rate plans.\n\nThe Product Rate Plan Definition object 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 are interested, please reach\
\ out to your CSM. \n"
- name: Product Rate Plan Charge Tiers
description: 'To manage product rate plan charge tiers, use the [Product Rate Plan
Charges](https://developer.zuora.com/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: Regenerate
description: "If you are an Order to Revenue user, you can use the Regenerate operations\
\ to regenerate transactions objects. \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 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://developer.zuora.com/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://developer.zuora.com/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_Org_Ids:
name: Zuora-Org-Ids
in: header
required: false
type: string
description: "Comma separated IDs. If you have Zuora Multi-Org enabled, \nyou can use this header to\
\ specify which orgs to perform the operation in. If you do not have Zuora Multi-Org\
\ enabled, you should not set this header.\n\nThe IDs must be a sub-set of the\
\ user's accessible orgs. If you specify an org that the user does not have\
\ access to, the operation fails.\n\nIf the header is not set, the operation\
\ is performed in scope of the user's accessible orgs.\n"
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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_HEADER_Zuora_Org_Ids'
- $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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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_HEADER_Zuora_Org_Ids'
- $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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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://developer.zuora.com/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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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\nDefault values for **customerAcceptanceDate**\
\ and **serviceActivationDate** are set as follows.\n\n| | serviceActivationDate(SA)\
\ specified | serviceActivationDate (SA) NOT specified |\n| -------------\
\ |:-------------:| -----:|\n| customerAcceptanceDate (CA) specified \
\ | SA uses value in the request call; CA uses value in the request call|\
\ CA uses value in the request call;SA uses CE as default |\n| customerAcceptanceDate\
\ (CA) NOT specified | SA uses value in the request call; CA uses SA\
\ as default | SA and CA use CE as default |\n"
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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
profileNumber: CP-00000012
salesRep: ''
sequenceSetId: null
partnerAccount: false
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
metricsData:
- currency: USD
balance: 0
totalInvoiceBalance: 0
totalDebitMemoBalance: 0
unappliedPaymentAmount: 0
unappliedCreditMemoAmount: 0
contractedMrr: -900
reservedPaymentAmount: 900
- currency: EUR
balance: 0
totalInvoiceBalance: 0
totalDebitMemoBalance: 0
unappliedPaymentAmount: 0
unappliedCreditMemoAmount: 0
contractedMrr: -900
reservedPaymentAmount: -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: ''
einvoiceProfile:
enabled: 'true'
businessName: legal business name
businessNumber: '20002039'
businessNumberSchemeId: 088
taxRegisterNumber: TAX393999
endpointId: 08992
endpointSchemeId: 088
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.
### Notes
1. Only the fields to be changed should be specified. Any field that is not included in the request body will not be changed.
2. If an empty field is submitted with this operation, the corresponding field in the account is emptied.
3. Email addresses: If no email addresses are specified, no change is made to the email addresses or to the email delivery preference. If either the **personalEmail** or **workEmail** of **billToContact** is specified (or both), the system updates the corresponding email address(es) and the email delivery preference is set to `true`. (In that case, emails go to the **workEmail** address, if it exists, or else the **personalEmail**.) On the other hand, if as a result of this call both of the email addresses for the account are empty, the email delivery preference is set to `false`.
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.
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
partnerAccount: false
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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://developer.zuora.com/api-references/older-api/operation/Object_POSTAccount/)\
\ operation.\n\nIt returns an array of SaveResults sorted in the same order,\
\ indicating the success or failure of creating each object. The following\
\ information applies to this call:\n\n* You cannot pass in null zObjects.\n\
* You can pass in a maximum of 50 zObjects at a time.\n* All objects must\
\ be of the same type.\n\n#### Using Create and Subscribe Calls \n\nBoth the\
\ Create and Subscribe calls will create a new account. However, there are\
\ differences between the calls.\n\nUse the create call to create an account\
\ independent of a subscription.\n\nUse the subscribe call to create the account\
\ with the subscription and the initial payment information.\n"
tags:
- Actions
parameters:
- $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_Org_Ids'
- $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_Org_Ids'
- $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\
* Fields with NULL values are not returned in the response.\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_Org_Ids'
- $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_Org_Ids'
- $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://developer.zuora.com/api-references/older-api/operation/Object_PUTAccount/)\
\ operation.\n\nIt returns an array of SaveResults sorted in the same order,\
\ indicating the success or failure of updating each object. The following\
\ information applies to this call:\n\n* You cannot pass in null zObjects.\n\
* You can pass in a maximum of 50 zObjects at a time.\n* All objects must\
\ be of the same type.\n* For each field in each object, you must determine\
\ that object's ID. Then populate the fields that you want update with the\
\ new information.\n* Zuora ignores unrecognized fields in update calls. For\
\ example, if an optional field is spelled incorrectly or a field that does\
\ not exist is specified, Zuora ignores the field and continues to process\
\ the call. No error message is returned for unrecognized fields.\n"
tags:
- Actions
parameters:
- $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_Org_Ids'
- $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/batch-query/:
post:
operationId: POST_BatchQueryJob
summary: Submit an aggregate query job
description: 'Submits an AQuA job that contains an aggregated list of ZOQL and
Export ZOQL queries.
'
tags:
- Aggregate Queries
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: body
in: body
required: true
description: ''
schema:
$ref: '#/definitions/SubmitBatchQueryRequest'
responses:
'200':
description: OK
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/SubmitBatchQueryResponse'
examples:
application/json:
sourceData: LIVE
encrypted: none
partner: salesforce
useLastCompletedJobQueries: false
project: 00170000011k3ub
batches:
- localizedStatus: pending
apiVersion: '91.0'
full: false
recordCount: 0
batchId: 2c92c0f966cd4f580166ec0ac8a75bb8
batchType: zoqlexport
status: pending
name: AccountingPeriod
query: select Id,StartDate,EndDate,FiscalYear,Name,Status from AccountingPeriod
status: submitted
name: Example
id: 2c92c0f966cd4f580166ec0ac89d5bb7
version: '1.1'
format: CSV
/v1/batch-query/jobs/{jobid}:
get:
operationId: GET_BatchQueryJob
summary: Retrieve an aggregate query job
description: |
Retrieves an aggregate query using the Job ID.
Note that the completed AQuA jobs that were created 180 days ago are deleted permanently from Zuora, so you cannot query these jobs through API or AQuA job finder.
tags:
- Aggregate Queries
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: jobid
in: path
required: true
type: string
description: 'Internal identifier of the query job.
'
responses:
'200':
description: OK
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/GetAggregateQueryJobResponse'
examples:
application/json:
batches:
- full: true
name: AccountingPeriod
message: ''
query: select Id,StartDate,EndDate,FiscalYear,Name,Status from AccountingPeriod
status: completed
recordCount: 1
apiVersion: '60.0'
fileId: 402881824835bb2a01483c19f8190259
batchType: zoqlexport
batchId: 402881824835bb2a01483c19f7da0257
project: 00170000011K3Ub
partner: salesforce
name: Example
id: 402881824835bb2a01483c19f7d70256
version: '1.1'
format: CSV
sourceData: LIVE
startTime: '2014-09-03 08:20:07'
status: completed
encrypted: none
delete:
operationId: DELETE_BatchQueryJob
summary: Cancel a running aggregate query job
description: 'Cancels the current AQuA job, only if the job is not complete.
If the job is complete, an error is thrown.
'
tags:
- Aggregate Queries
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: jobid
in: path
required: true
type: string
description: 'Internal identifier of the query job.
'
responses:
'200':
description: OK
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/DeleteBatchQueryJobResponse'
examples:
application/json:
name: June10
id: e20b07474688ad5001468daf10e501de
version: '1.1'
format: CSV
sourceData: LIVE
status: cancelled
batches:
- name: InvoiceItemAdjustment
message: ''
query: select AccountingCode,CancelledDate,CreatedDate,Id,InvoiceId,InvoiceItemName,
InvoiceNumber,SourceType,AdjustmentNumber,ServiceStartDate,ServiceEndDate,AdjustmentDate,
Amount,Status,AccountId,SourceId,Type,ReasonCode, UpdatedDate from InvoiceItemAdjustment
status: completed
recordCount: 1580
fileId: e20b07474688ad5001468daf155f01f5
batchId: e20b07474688ad5001468daf10ea01df
batchType: zoqlexport
- name: InvoiceAdjustment
message: ''
query: select AccountingCode,CancelledOn,CreatedDate,Id,ImpactAmount,Invoice.Id,
InvoiceNumber,AdjustmentNumber,AdjustmentDate,Amount,Status,Account.Id,Type,ReasonCode,
UpdatedDate from InvoiceAdjustment
status: completed
recordCount: 411
fileId: e20b07474688ad5001468daf166601f6
batchId: e20b07474688ad5001468daf10ec01e0
batchType: zoqlexport
encrypted: none
/v1/batch-query/jobs/partner/{partner}/project/{project}:
get:
operationId: GET_LastBatchQueryJob
summary: Retrieve the last completed aggregate query job
description: |
Returns the details of the last completed job.
The completed AQuA jobs that were created 180 days ago are deleted permanently from Zuora, so you cannot query these jobs through API or AQuA job finder.
tags:
- Aggregate Queries
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: partner
in: path
required: true
type: string
description: "The unique ID of a data integration partner. \n"
- name: project
in: path
required: true
type: string
description: 'The unique ID of a data integration project for a particular
partner.
'
responses:
'200':
description: OK
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/GetAggregateQueryJobResponse'
examples:
application/json:
batches:
- full: false
name: AccountingPeriod
message: ''
query: select Id,StartDate,EndDate,FiscalYear,Name,Status from AccountingPeriod
status: completed
recordCount: 0
apiVersion: '60.0'
fileId: 402881824835bb2a01483c1e67c7025d
batchType: zoqlexport
batchId: 402881824835bb2a01483c1e678c025b
project: 00170000011K3Ub
partner: salesforce
name: Example
id: 402881824835bb2a01483c1e678a025a
version: '1.1'
format: CSV
sourceData: LIVE
startTime: '2014-09-03 08:24:58'
status: completed
encrypted: none
/system-health/api-requests/volume-summary:
get:
operationId: GET_SystemHealthApiVolumeSummary
summary: List API volume summary records
description: |
Returns volume summary of [API](https://knowledgecenter.zuora.com/Central_Platform/API) usage that generated by your Zuora tenant within a specified time range.
You can filter the summary by API path name and http method.
tags:
- API Health
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: path
in: query
required: false
type: string
description: |
Filters the volume summary by API path name.
You can refer to the api listed in the [API System Health Dashboard](https://knowledgecenter.zuora.com/Zuora_Central_Platform/Zuora_System_Health/B_APIs_dashboard) for the path name. Example: `/v1/accounts/{account-key}`.
- name: httpMethod
in: query
required: false
type: string
description: 'Filters the volume summary by http method. Example: `POST`.
'
- name: startTime
in: query
required: true
type: string
format: date-time
description: |
Start time of the volume summary.
Format: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-22T09:07+0800`.
- name: endTime
in: query
required: true
type: string
format: date-time
description: |
End time of the volume summary.
Format: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-29T09:07+0800`.
responses:
'200':
description: OK
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/GetApiVolumeSummaryResponse'
examples:
application/json:
data:
- path: /notifications/notification-definitions
httpMethod: DELETE
success: 10
error: 0
total: 10
- path: /query/jobs/{job-id}
httpMethod: GET
success: 10
error: 20
total: 30
- '...'
'400':
description: Bad Request
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/SystemHealthErrorResponse'
examples:
application/json:
timestamp: '2022-09-29T05:54:46.007+00:00'
status: 400
error: Bad Request
message: Timezone is different between 'startTime' and 'endTime'.
path: /system-health/api-requests/volume-summary
x-code-samples:
- lang: curl
label: Curl
source: "curl -i -X GET \\\n 'https://rest.zuora.com/system-health/api-requests/volume-summary?startTime=2022-09-22T09:07-0800&endTime=2022-09-25T09:07-0800'\
\ \\ \n -H 'Authorization: Bearer 7la16f1afa6f48099dc0605d7a175846'\n"
/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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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_HEADER_Zuora_Org_Ids'
- $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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
/system-health/billing-documents/volume-summary:
get:
operationId: GET_SystemHealthBillingDocVolumeSummary
summary: List billing document volume summary records
description: 'Returns a summary of billing documents generated within a specified
time range, including invoices and credit memos, and the total number of accounts
that failed to process.
'
tags:
- Bill Run Health
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: startTime
in: query
required: true
type: string
format: date-time
description: |
Start time of the volume summary.
Format: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-22T09:07+0800`.
- name: endTime
in: query
required: true
type: string
format: date-time
description: |
End time of the volume summary.
Format: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-22T09:07+0800`.
responses:
'200':
description: OK
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/GetBillingDocVolumeSummaryResponse'
examples:
application/json:
data:
- totalGeneratedInvoices: 100
totalGeneratedCreditMemos: 50
totalFailedAccounts: 10
'400':
description: Bad Request
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/SystemHealthErrorResponse'
examples:
application/json:
timestamp: '2022-09-29T05:54:46.007+00:00'
status: 400
error: Bad Request
message: Timezone is different between 'startTime' and 'endTime'.
path: /system-health/billing-doc/volume-summary
x-code-samples:
- lang: curl
label: Curl
source: "curl -i -X GET \\\n 'https://rest.zuora.com/system-health/billing-documents/volume-summary?startTime=2022-09-22T09:07-0800&endTime=2022-09-24T09:07-0800'\
\ \\ \n -H 'Authorization: Bearer 7la16f1afa6f48099dc0605d7a175846'\n"
/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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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`\
\ or `Error` 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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_HEADER_Zuora_Org_Ids'
- $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://developer.zuora.com/api-references/api/operation/GET_BillingDocumentFilesDeletionJob).\n\
\n**Note**: This operation can be used only if you have the Billing user permission\
\ \"Hard Delete Billing Document Files\" enabled. \n"
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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.
The maximum supported preview duration is 20 years, calculated from the current date to the target date.
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.
Note that the preview results for each billing preview run will be stored in the system for 180 days; after that they will be purged.
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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. Note that if you set `storageOption`\
\ to `Database`, no CSV file is generate; instead, you can have a record in\
\ the billing preview result. You can use data source to query Billing Preview Run Result . \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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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_HEADER_Zuora_Org_Ids'
- $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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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 in the response. Across the returned product rate plans, up to 300\
\ product rate plan charges can be returned for each product. \n"
tags:
- Catalog
parameters:
- $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_HEADER_Zuora_Org_Ids'
- $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'
productNumber: PC-00000011
productRatePlans: https://rest.zuora.com/v1/rateplan/40289f466463d683016463ef8b7301a0/productRatePlan
success: true
description: ''
schema:
$ref: '#/definitions/GETCatalogType'
/v1/catalog/products/{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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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, SKU, or product number of the product that you
want to retrieve. For example, 8a808255575bdae4015774e9602e16fe, SKU-00000987,
or PC-00000006.
'
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
productNumber: PC-00000006
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_Org_Ids'
- $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_Org_Ids'
- $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_Org_Ids'
- $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_Org_Ids'
- $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_Org_Ids'
- $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_Org_Ids'
- $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:
type: string
description: ''
createdDate: '2022-08-18T12:38:04.000Z'
updatedDate: '2022-08-18T12:38:04.000Z'
indexed:
- Last_Token_Transaction_Date__c
- idx_date_1__c
readOnlyOnUI:
- idx_date_1__c
- non_idx_text_1__c
additionalProperties: false
AccountingCode:
type: AccountingCode
schema:
type: object
properties:
AccountingCodeCustomText__c:
maxLength: 64
label: AccountingCodeCustomText
type: string
default: custom text
createdDate: '2022-02-01T08:41:03.000Z'
updatedDate: '2022-02-01T08:41:03.000Z'
AccountingCodeCustomDate__c:
format: date
label: AccountingCodeCustomDate
type: string
createdDate: '2022-02-08T07:20:15.000Z'
updatedDate: '2022-02-08T07:20:15.000Z'
AccountingCodeCustomPickList__c:
enum:
- Alpha
- Beta
- Omega
label: AccountingCodeCustomPickList
type: string
default: Alpha
createdDate: '2022-02-08T07:20:18.000Z'
updatedDate: '2022-02-08T07:20:18.000Z'
additionalProperties: false
count: 2
response:
- id: a8a0ff9f-3297-45a5-a523-4f5d5f4f393a
key: idx_date_1
segregationKey: Account
componentType: CustomFields
url: '-'
method: GET
payload:
label: idx_date_1
description: test
format: date
API_name: idx_date_1__c
UIReadOnly: true
indexed: true
result: DONE
error: '-'
templateId: null
errors: []
customObjects:
- segregationKeys:
- Available Custom Objects
originalPayload: {}
response:
- id: 456335f2-711d-4e73-b8ec-3309e78b403a
key: zzzzzzzzzz
segregationKey: Available Custom Objects
componentType: CustomObjects
url: /zzzzzzzzzz
method: GET
payload:
label: zzzzzzzzzz
api_name: zzzzzzzzzz
description: ' '
enableRecordMigration: 'false'
customFields:
- description: ' '
type: boolean
api_name: isFilterable__c
field_name: isFilterable
required: 'false'
filterable: 'true'
- description: ' '
type: string
api_name: picklist__c
field_name: picklist
required: 'false'
filterable: 'false'
- description: ' '
type: string
api_name: zzz__c
field_name: zzz
required: 'false'
filterable: 'false'
result: DONE
error: '-'
templateId: null
errors: []
dataAccessControl:
- errors: []
originalPayload: {}
response:
- componentType: dataAccessControl
error: '-'
id: 456335f2-711d-4e73-b8ec-3309e78b403a
key: zzzzzzzzzz
method: GET
payload: {}
result: DONE
segregationKey: Available dataAccessControl
templateId: null
url: /zzzzzzzzzz
segregationKeys:
- Available dataAccessControl
notifications:
- segregationKeys:
- Communication profile
- Email Templates
originalPayload:
2c92c8fb7ddc795b017dde4350c949a0:
- id: 2c92c8fb7ddc795b017dde437a0949a6
profileId: 2c92c8fb7ddc795b017dde4350c949a0
eventId: 2c92c8f9631ea3850163271f7fa02da0
eventName: New Invoice Posted
name: Invoice Posted within a Bill Run of Auto-Post
description: Trigger the notification when invoices are posted
within a bill run and the bill run has auto-post. This is to
support existing email notification behavior from within a bill
run.
active: false
hidden: false
param1: BILLRUN
param4: Not include invoice PDF
emailOption: true
emailTemplate: 2c92c8f9631ea3850163271f80152de2
emailTemplateName: Invoice Posted Default Email Template
calloutOption: false
contentType: APPLICATION_JSON
calloutRetriable: false
calloutAuth: false
calloutOauth2: false
calloutPreemptiveAuth: false
useCustomRequestBody: false
response:
- id: f5ee9c26-8420-4f92-9463-1983d1268281
key: B2C Customers
segregationKey: Communication profile
componentType: Notifications
url: settings/communication-profiles/2c92c8fb7ddc795b017dde4350c949a0
method: GET
payload:
id: 2c92c8fb7ddc795b017dde4350c949a0
name: B2C Customers
locale: default
description: ''
isDefault: false
result: DONE
error: '-'
templateId: null
errors: []
productCatalog:
- errors: []
originalPayload: {}
response:
- componentType: productCatalog
error: '-'
id: 456335f2-711d-4e73-b8ec-3309e78b403a
key: zzzzzzzzzz
method: GET
payload: {}
result: DONE
segregationKey: Available productCatalog
templateId: null
url: /zzzzzzzzzz
segregationKeys:
- Available productCatalog
settings:
- segregationKeys:
- Finance
- Billing
- Administration
- ManageMultiEntity
- Payments
- Taxation
- BillingDocumentConfiguration
- ManageDataAccessControl
originalPayload: {}
response:
- id: bfcb76d9-3fb8-4a15-8d13-fe0b805b5ee6
key: AccountingPeriods
segregationKey: Finance
componentType: Settings
url: v1/accounting-periods
method: GET
payload: {}
result: FAILED
error: '{"success":false,"reasons":[{"message":"Failed to get user
info","code":"90000011"}]}
'
templateId: null
- id: 6a27d0d3-3c4c-408f-b160-04510014ebf1
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: null
errors: []
workflows:
- segregationKeys:
- Payment to Provision
- Negative Invoices to Positive Account Credit Balance Limit 1
- Automated Dunning | 2nd Attempt Failed
- Subscription Price Uplift -- JSON Transform
originalPayload: {}
response:
- id: df74980b-ff25-4684-a950-7e0c25810a72
key: Resume Subscriptions for Accounts with Zero Balance Limit 1_0.0.13
segregationKey: Resume Subscriptions for Accounts with Zero Balance
Limit 1
componentType: WorkFlows
url: '1'
method: GET
payload:
id: 1
name: Resume Subscriptions for Accounts with Zero Balance Limit
1
description: ''
status: Active
ondemandTrigger: true
calloutTrigger: true
scheduledTrigger: false
interval: null
timezone: null
createdAt: '2022-08-21T10:51:22.613-07:00'
updatedAt: '2022-08-21T10:51:22.613-07:00'
priority: Medium
active_version:
id: 2483
name: Resume Subscriptions for Accounts with Zero Balance Limit
1
definitionId: 1
description: ''
type: Workflow::Setup
version: 0.0.13
ondemandTrigger: true
calloutTrigger: true
scheduledTrigger: false
interval: null
timezone: null
createdAt: '2022-08-21T10:51:22.613-07:00'
updatedAt: '2022-08-21T10:51:22.613-07:00'
priority: Medium
status: Active
created_by:
work_email: rkumar@zuora.com
created_at: '2021-11-22T19:06:54.279-08:00'
updated_at: '2022-09-06T05:16:20.455-07:00'
updated_by:
work_email: N/A
created_at: N/A
updated_at: N/A
latest_inactive_versions:
- id: 689
name: Resume Subscriptions for Accounts with Zero Balance Limit
1
definitionId: 1
description: ''
type: Workflow::Setup
version: 0.0.10
ondemandTrigger: true
calloutTrigger: true
scheduledTrigger: false
interval: null
timezone: null
createdAt: '2022-05-10T05:21:37.192-07:00'
updatedAt: '2022-05-10T05:21:37.192-07:00'
priority: Medium
status: Inactive
created_by:
work_email: rkumar@zuora.com
created_at: '2021-11-22T19:06:54.279-08:00'
updated_at: '2022-09-06T05:16:20.455-07:00'
updated_by:
work_email: N/A
created_at: N/A
updated_at: N/A
result: DONE
error: '-'
templateId: null
errors: []
description: Successfully retrieved the template metadata.
schema:
$ref: '#/definitions/SettingSourceComponentResponse'
'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/compare:
post:
summary: Compare settings between a source tenant and a target tenant
operationId: POST_CompareTemplate
consumes:
- multipart/form-data
produces:
- application/json
description: 'To Compare the configurations from the template downloaded and
used in deployment manager for migration which is available in source and
target tenant.
'
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: tenant
in: query
description: Customers need to specify tenant ID.
required: true
type: string
- name: template
in: formData
description: Template contains the config metadata and target tenant information.
required: false
type: file
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:
type: string
description: ''
createdDate: '2022-08-18T12:38:04.000Z'
updatedDate: '2022-08-18T12:38:04.000Z'
indexed:
- Last_Token_Transaction_Date__c
- idx_date_1__c
readOnlyOnUI:
- idx_date_1__c
- non_idx_text_1__c
additionalProperties: false
AccountingCode:
type: AccountingCode
schema:
type: object
properties:
AccountingCodeCustomText__c:
maxLength: 64
label: AccountingCodeCustomText
type: string
default: custom text
createdDate: '2022-02-01T08:41:03.000Z'
updatedDate: '2022-02-01T08:41:03.000Z'
AccountingCodeCustomDate__c:
format: date
label: AccountingCodeCustomDate
type: string
createdDate: '2022-02-08T07:20:15.000Z'
updatedDate: '2022-02-08T07:20:15.000Z'
AccountingCodeCustomPickList__c:
enum:
- Alpha
- Beta
- Omega
label: AccountingCodeCustomPickList
type: string
default: Alpha
createdDate: '2022-02-08T07:20:18.000Z'
updatedDate: '2022-02-08T07:20:18.000Z'
additionalProperties: false
count: 2
response:
- id: a8a0ff9f-3297-45a5-a523-4f5d5f4f393a
key: idx_date_1
segregationKey: Account
componentType: CustomFields
url: '-'
method: GET
payload:
label: idx_date_1
description: test
format: date
API_name: idx_date_1__c
UIReadOnly: true
indexed: true
result: DONE
error: '-'
templateId: null
errors: []
customObjects:
- segregationKeys:
- Available Custom Objects
originalPayload: {}
response:
- id: 456335f2-711d-4e73-b8ec-3309e78b403a
key: zzzzzzzzzz
segregationKey: Available Custom Objects
componentType: CustomObjects
url: /zzzzzzzzzz
method: GET
payload:
label: zzzzzzzzzz
api_name: zzzzzzzzzz
description: ' '
enableRecordMigration: 'false'
customFields:
- description: ' '
type: boolean
api_name: isFilterable__c
field_name: isFilterable
required: 'false'
filterable: 'true'
- description: ' '
type: string
api_name: picklist__c
field_name: picklist
required: 'false'
filterable: 'false'
- description: ' '
type: string
api_name: zzz__c
field_name: zzz
required: 'false'
filterable: 'false'
result: DONE
error: '-'
templateId: null
errors: []
dataAccessControl:
- errors: []
originalPayload: {}
response:
- componentType: dataAccessControl
error: '-'
id: 456335f2-711d-4e73-b8ec-3309e78b403a
key: zzzzzzzzzz
method: GET
payload: {}
result: DONE
segregationKey: Available dataAccessControl
templateId: null
url: /zzzzzzzzzz
segregationKeys:
- Available dataAccessControl
notifications:
- segregationKeys:
- Communication profile
- Email Templates
originalPayload:
2c92c8fb7ddc795b017dde4350c949a0:
- id: 2c92c8fb7ddc795b017dde437a0949a6
profileId: 2c92c8fb7ddc795b017dde4350c949a0
eventId: 2c92c8f9631ea3850163271f7fa02da0
eventName: New Invoice Posted
name: Invoice Posted within a Bill Run of Auto-Post
description: Trigger the notification when invoices are posted
within a bill run and the bill run has auto-post. This is to
support existing email notification behavior from within a bill
run.
active: false
hidden: false
param1: BILLRUN
param4: Not include invoice PDF
emailOption: true
emailTemplate: 2c92c8f9631ea3850163271f80152de2
emailTemplateName: Invoice Posted Default Email Template
calloutOption: false
contentType: APPLICATION_JSON
calloutRetriable: false
calloutAuth: false
calloutOauth2: false
calloutPreemptiveAuth: false
useCustomRequestBody: false
response:
- id: f5ee9c26-8420-4f92-9463-1983d1268281
key: B2C Customers
segregationKey: Communication profile
componentType: Notifications
url: settings/communication-profiles/2c92c8fb7ddc795b017dde4350c949a0
method: GET
payload:
id: 2c92c8fb7ddc795b017dde4350c949a0
name: B2C Customers
locale: default
description: ''
isDefault: false
result: DONE
error: '-'
templateId: null
errors: []
productCatalog:
- errors: []
originalPayload: {}
response:
- componentType: productCatalog
error: '-'
id: 456335f2-711d-4e73-b8ec-3309e78b403a
key: zzzzzzzzzz
method: GET
payload: {}
result: DONE
segregationKey: Available productCatalog
templateId: null
url: /zzzzzzzzzz
segregationKeys:
- Available productCatalog
settings:
- segregationKeys:
- Finance
- Billing
- Administration
- ManageMultiEntity
- Payments
- Taxation
- BillingDocumentConfiguration
- ManageDataAccessControl
originalPayload: {}
response:
- id: bfcb76d9-3fb8-4a15-8d13-fe0b805b5ee6
key: AccountingPeriods
segregationKey: Finance
componentType: Settings
url: v1/accounting-periods
method: GET
payload: {}
result: FAILED
error: '{"success":false,"reasons":[{"message":"Failed to get user
info","code":"90000011"}]}
'
templateId: null
- id: 6a27d0d3-3c4c-408f-b160-04510014ebf1
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: null
errors: []
workflows:
- segregationKeys:
- Payment to Provision
- Negative Invoices to Positive Account Credit Balance Limit 1
- Automated Dunning | 2nd Attempt Failed
- Subscription Price Uplift -- JSON Transform
originalPayload: {}
response:
- id: df74980b-ff25-4684-a950-7e0c25810a72
key: Resume Subscriptions for Accounts with Zero Balance Limit 1_0.0.13
segregationKey: Resume Subscriptions for Accounts with Zero Balance
Limit 1
componentType: WorkFlows
url: '1'
method: GET
payload:
id: 1
name: Resume Subscriptions for Accounts with Zero Balance Limit
1
description: ''
status: Active
ondemandTrigger: true
calloutTrigger: true
scheduledTrigger: false
interval: null
timezone: null
createdAt: '2022-08-21T10:51:22.613-07:00'
updatedAt: '2022-08-21T10:51:22.613-07:00'
priority: Medium
active_version:
id: 2483
name: Resume Subscriptions for Accounts with Zero Balance Limit
1
definitionId: 1
description: ''
type: Workflow::Setup
version: 0.0.13
ondemandTrigger: true
calloutTrigger: true
scheduledTrigger: false
interval: null
timezone: null
createdAt: '2022-08-21T10:51:22.613-07:00'
updatedAt: '2022-08-21T10:51:22.613-07:00'
priority: Medium
status: Active
created_by:
work_email: rkumar@zuora.com
created_at: '2021-11-22T19:06:54.279-08:00'
updated_at: '2022-09-06T05:16:20.455-07:00'
updated_by:
work_email: N/A
created_at: N/A
updated_at: N/A
latest_inactive_versions:
- id: 689
name: Resume Subscriptions for Accounts with Zero Balance Limit
1
definitionId: 1
description: ''
type: Workflow::Setup
version: 0.0.10
ondemandTrigger: true
calloutTrigger: true
scheduledTrigger: false
interval: null
timezone: null
createdAt: '2022-05-10T05:21:37.192-07:00'
updatedAt: '2022-05-10T05:21:37.192-07:00'
priority: Medium
status: Inactive
created_by:
work_email: rkumar@zuora.com
created_at: '2021-11-22T19:06:54.279-08:00'
updated_at: '2022-09-06T05:16:20.455-07:00'
updated_by:
work_email: N/A
created_at: N/A
updated_at: N/A
result: DONE
error: '-'
templateId: null
errors: []
description: OK
schema:
$ref: '#/definitions/CompareSchemaInfoResponse'
'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.
'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_artifacts/deploy:
post:
summary: Migrate settings from source tenant to target tenant
operationId: POST_MigrateTenantSettings
description: 'To migrate the selected configuration of a tenant in Deployment
Manager migration while using template from the compare screen.
'
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: tenant
in: query
description: Customers need to specify tenant ID in query parameter.
required: true
type: string
- in: body
name: request
description: Request Details.
required: true
schema:
$ref: '#/definitions/TemplateMigrationClientRequest'
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:
emailIds: daco@zuora.com
environment: US-API-Sandbox-Staging
id: aa7b4ffa-f30c-4f42-b240-9534f634e14f
migratedBy: Daco user
migrationDescription: Migration from/to Sandbox
migrationEnd: '2020-11-01 18:00:00'
migrationName: Job A
migrationStart: '2020-11-01 18:00:00'
response: []
sourceTenantDescription: Jren-Stage
sourceTenantName: Payment Gateway Test Tenant
status: DONE
type: Tenant
description: Successfully migrated from source to target.
schema:
$ref: '#/definitions/MigrationClientResponse'
'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.
'
/v1/contact-snapshots/{contact-snapshot-id}:
get:
tags:
- Contact Snapshots
summary: Retrieve a contact snapshot
description: 'Retrieves detailed information about the snapshot of a contact,
either a bill-to contact or sold-to contact.
'
operationId: GET_ContactSnapshot
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: contact-snapshot-id
in: path
description: 'The unique ID of the contact snapshot to be retrieved. For example,
2c92c8955bd63cc1015bd7c151af02ab.
'
required: true
type: string
responses:
'200':
description: ''
examples:
application/json:
address1: 4th street Custom colony
address2: Thoraipakkam
city: Chennai
contactId: 4028c7628741ebe3018745f2c4123514
country: India
county: null
fax: 43212
firstName: Pat
homePhone: 09877
id: 4028c7628741ebe3018745f2c4133515
lastName: Parker
mobilePhone: 1234567890
nickname: this is a nick name
otherPhone: 9876543210
otherPhoneType: Work
personalEmail: test123@gmail.com
state: TN
taxRegion: null
workEmail: test123@zuora.com
workPhone: 123
postalCode: 123456
description: null
success: true
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/GETContactSnapshotResponse'
/v1/contacts/{contactId}/scrub:
put:
summary: Scrub a contact
operationId: PUT_ScrubContact
description: "\nScrubs the sensitive data of a specific contact. \n\nYou can\
\ use this operation to replace all sensitive data in a contact and its related\
\ contact snapshot with dummy values that will be stored in Zuora databases.\
\ \n\nAfter scrubbing a contact, it is good practice to delete it. Otherwise,\
\ it might cause errors in subsequent operations.\n\n**Note**: To use this\
\ operation, you must ensure that the \"Scrub Sensitive Data of Contact\"\
\ billing permission is enabled in your user role. Contact your tenant administrator\
\ if you want to enable this permission. See [Scrub Contacts](https://knowledgecenter.zuora.com/BC_Subscription_Management/Customer_Accounts/A_How_to_Manage_Customer_Accounts/B_Key_Contacts/Scrub_Contacts)\
\ for more information.\n"
tags:
- Contacts
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth_optional'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: contactId
in: path
description: 'The ID of the contact that you want to scrub sensitive data
from.
'
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/contacts:
post:
summary: Create a contact
operationId: POST_CreateContact
description: 'Creates a contact for a specified account.
'
tags:
- Contacts
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTContactType'
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:
accountId: 6e767220676e6e61206776652075207570
accountNumber: A00000001
address1: 314, Bongora
address2: near Tech City
city: GHY
country: India
county: null
fax: '6174'
firstName: Kuhi
homePhone: '1234123'
id: 6b65657020726f6c6c696e672021
lastName: Das
mobilePhone: '123213'
nickname: Dorimi
otherPhone: '2314213'
otherPhoneType: Work
personalEmail: kuhiroll@example.com
state: Assam
taxRegion: null
workEmail: null
workPhone: null
zipCode: '123456'
contactDescription: This is a description for the contact
success: true
description: ''
schema:
$ref: '#/definitions/ContactResponse'
/v1/contacts/{contactId}:
get:
summary: Retrieve a contact
operationId: GET_Contact
description: 'Retrieves detailed information about a specific contact.
'
tags:
- Contacts
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: contactId
in: path
description: 'The ID of the contact that you want to retrieve.
'
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:
accountId: 72756e2061726e642026206465736572742075
accountNumber: A00000001
address1: 567, Rose Apartment
address2: Gate no. 2
city: Seattle
country: United States
county: King County
fax: '123456'
firstName: peter
homePhone: '86123456789'
id: 402881a2889f2e4301889f30e64e0019
lastName: parker
mobilePhone: '1234567890'
nickname: peet
otherPhone: '11111111111111111'
otherPhoneType: Work
personalEmail: peet@example.com
state: Washington
taxRegion: CA
workEmail: work.mail@example.com
workPhone: '3432'
zipCode: '123134'
contactDescription: This is a description
success: true
description: ''
schema:
$ref: '#/definitions/ContactResponse'
put:
summary: Update a contact
operationId: PUT_Contact
description: |
Updates a contact for a specified account.
You can update contacts for cancelled accounts.
tags:
- Contacts
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: contactId
in: path
description: 'The ID of the contact that you want to update.
'
required: true
type: string
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTContactType'
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:
accountId: 6e767220676e6e61206d616b65207520637279
accountNumber: A00000001
address1: new Address
address2: near Tech City
city: Mumbai
country: India
county: null
fax: '6174'
firstName: Kuhi
homePhone: '1234123'
id: 8a90f50888a3036e0188ab7b3ffe7b8a
lastName: Das
mobilePhone: '123213'
nickname: Dorimi
otherPhone: '2314213'
otherPhoneType: Work
personalEmail: kuhiroll@example.com
state: Assam
taxRegion: null
workEmail: null
workPhone: null
zipCode: '123134'
contactDescription: This is the new Description
success: true
description: ''
schema:
$ref: '#/definitions/ContactResponse'
delete:
summary: Delete a contact
operationId: DELETE_Contact
description: 'Deletes a contact.
'
tags:
- Contacts
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: contactId
in: path
description: 'The ID of the contact that you want to delete.
'
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/creditmemos:
post:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nCreates an ad-hoc credit memo from a product rate\
\ plan charge. Zuora supports the creation of credit memos from any type of\
\ product rate plan charge. The charges can also have any amount and any charge\
\ model, except for discout charge models. \n\nWhen credit memos are created\
\ from product rate plan charges, the specified amount with decimal places\
\ is now validated based on the decimal places supported by each currency.\n\
\nYou can create a credit memo only if you have the user permission. See [Billing\
\ Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n"
summary: Create a credit memo from a charge
operationId: POST_CreditMemoFromPrpc
tags:
- Credit Memos
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: 402890555a87d7f5015a88c7a6830022
number: CM00000015
accountId: 402890555a7e9791015a7f15fe44001c
accountNumber: A00000001
currency: USD
creditMemoDate: '2017-10-17'
targetDate: null
postedById: null
postedOn: null
status: Draft
amount: 2020
taxAmount: 0
totalTaxExemptAmount: 0
unappliedAmount: 2020
refundAmount: 0
appliedAmount: 0
comment: the comment
source: AdhocFromPrpc
sourceType: Standalone
sourceId: null
referredInvoiceId: null
reasonCode: Correcting invoice error
reversed: false
createdDate: '2017-03-01 15:31:10'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 15:31:10'
updatedById: 402881e522cf4f9b0122cf5d82860002
cancelledOn: null
cancelledById: null
latestPDFFileId: null
transferredToAccounting: 'No'
excludeFromAutoApplyRules: false
excludeItemBillingFromRevenueAccounting: true
autoApplyUponPosting: false
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
sequenceSetId: null
success: true
schema:
$ref: '#/definitions/GETCreditMemoType'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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* `charges` > `amount`\n\
* `charges` > `memoItemAmount`\n* `charges` > `chargeId`\n* `charges` >\
\ `productRatePlanChargeId` \n* `charges` > `comment`\n* `charges`\
\ > `description`\n* `customRates` > `currency`\n* `customRates` > `customFxRate`\
\ \n* `customRates` > `rateDate` \n"
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/CreditMemoFromChargeType'
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about all credit memos.\
\ \n\nFor a use case of this operation, see [Get credit memo](https://developer.zuora.com/rest-api/general-concepts/authentication//#Get-credit-memo).\n\
\n\n### Filtering\n\nYou can use query parameters to restrict the data returned\
\ in the response. Each query parameter corresponds to one field in the response\
\ body.\n\nIf the value of a filterable field is string, you can set the corresponding\
\ query parameter to `null` when filtering. Then, you can get the response\
\ data with this field value being `null`. \n \nExamples:\n\n- /v1/creditmemos?status=Posted\n\
\n- /v1/creditmemos?referredInvoiceId=null&status=Draft\n\n- /v1/creditmemos?status=Posted&type=External&sort=+number\n"
summary: List credit memos
operationId: GET_CreditMemos
tags:
- Credit Memos
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:
creditmemos:
- id: 2c92c8f95bd63b94015bd7c39289112e
number: CM00000002
accountId: 2c92c8f95bd63b98015bd7ab09ef0926
accountNumber: A00000001
currency: USD
creditMemoDate: '2017-05-05'
targetDate: null
postedById: null
postedOn: null
status: Draft
amount: 23
taxAmount: 0
totalTaxExemptAmount: 0
unappliedAmount: 23
refundAmount: 0
appliedAmount: 0
comment: ''
source: BillRun
sourceType: Standalone
sourceId: BR-00000024
referredInvoiceId: null
reasonCode: Correcting invoice error
reversed: false
createdDate: '2017-05-05 01:39:30'
createdById: 2c92c8f95b79c9ad015b80614273052c
updatedDate: '2017-05-05 01:39:30'
updatedById: 2c92c8f95b79c9ad015b80614273052c
cancelledOn: null
cancelledById: null
latestPDFFileId: 2c92c8955bd63b6c015bd7c395e90023
transferredToAccounting: 'No'
excludeFromAutoApplyRules: false
autoApplyUponPosting: false
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
sequenceSetId: null
- id: 2c92c8f95bd63b9d015bd7ad7fe206f9
number: CM00000001
accountId: 2c92c8f95bd63b98015bd7ab09ef0926
accountNumber: A00000001
currency: USD
creditMemoDate: '2017-05-01'
targetDate: null
postedById: null
postedOn: null
status: Draft
amount: 10
taxAmount: 0
totalTaxExemptAmount: 0
unappliedAmount: 10
refundAmount: 0
appliedAmount: 0
comment: ''
source: AdhocFromInvoice
sourceType: Standalone
sourceId: null
referredInvoiceId: 2c92c8955bd63cc1015bd7c151af02ab
reasonCode: Correcting invoice error
reversed: false
createdDate: '2017-05-05 01:15:23'
createdById: 2c92c8f95b79c9ad015b80614273052c
updatedDate: '2017-05-05 01:15:24'
updatedById: 2c92c8f95b79c9ad015b80614273052c
cancelledOn: null
cancelledById: null
latestPDFFileId: 2c92c8955bd63b6c015bd7ad8921001d
transferredToAccounting: 'No'
excludeFromAutoApplyRules: false
autoApplyUponPosting: false
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
sequenceSetId: null
success: true
schema:
$ref: '#/definitions/GETCreditMemoCollectionType'
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: accountId
in: query
type: string
required: false
description: 'This parameter filters the response based on the `accountId`
field.
'
- name: accountNumber
in: query
type: string
required: false
description: 'This parameter filters the response based on the `accountNumber`
field.
'
- name: amount
in: query
type: number
format: double
required: false
description: "This parameter filters the response based on the `amount` field.\
\ \n"
- name: appliedAmount
in: query
type: number
format: double
required: false
description: "This parameter filters the response based on the `appliedAmount`\
\ field. \n"
- name: autoApplyUponPosting
in: query
type: boolean
required: false
description: "This parameter filters the response based on the `autoApplyUponPosting`\
\ field. \n"
- name: createdById
in: query
type: string
required: false
description: "This parameter filters the response based on the `createdById`\
\ field. \n"
- name: createdDate
in: query
type: string
format: date-time
required: false
description: "This parameter filters the response based on the `createdDate`\
\ field. \n"
- name: creditMemoDate
in: query
type: string
format: date
required: false
description: "This parameter filters the response based on the `creditMemoDate`\
\ field. \n"
- name: currency
in: query
type: string
required: false
description: "This parameter filters the response based on the `currency`\
\ field. \n"
- name: excludeFromAutoApplyRules
in: query
type: boolean
required: false
description: "This parameter filters the response based on the `excludeFromAutoApplyRules`\
\ field. \n"
- name: number
in: query
type: string
required: false
description: "This parameter filters the response based on the `number` field.\
\ \n"
- name: referredInvoiceId
in: query
type: string
required: false
description: "This parameter filters the response based on the `referredInvoiceId`\
\ field. \n"
- name: refundAmount
in: query
type: number
format: double
required: false
description: "This parameter filters the response based on the `refundAmount`\
\ field. \n"
- name: status
in: query
type: string
required: false
description: "This parameter filters the response based on the `status` field.\
\ \n"
enum:
- Draft
- Posted
- Canceled
- Error
- PendingForTax
- Generating
- CancelInProgress
- name: targetDate
in: query
type: string
format: date
required: false
description: "This parameter filters the response based on the `targetDate`\
\ field. \n"
- name: taxAmount
in: query
type: number
format: double
required: false
description: "This parameter filters the response based on the `taxAmount`\
\ field. \n"
- name: totalTaxExemptAmount
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `totalTaxExemptAmount`
field.
'
- name: transferredToAccounting
in: query
type: string
required: false
description: "This parameter filters the response based on the `transferredToAccounting`\
\ field. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
- name: unappliedAmount
in: query
type: number
format: double
required: false
description: "This parameter filters the response based on the `unappliedAmount`\
\ field. \n"
- name: updatedById
in: query
type: string
required: false
description: "This parameter filters the response based on the `updatedById`\
\ field. \n"
- name: updatedDate
in: query
type: string
format: date-time
required: false
description: 'This parameter filters the response based on the `updatedDate`
field.
'
- 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\nA sortable field uses the following form: \n\n*operator* *field_name*\n\
\nYou can use at most two sortable fields in one URL path. Use a comma to\
\ separate sortable fields. For example: *operator* *field_name*, *operator*\
\ *field_name* \n\n*operator* is used to mark the order of sequencing.\
\ The operator is optional. If you only specify the sortable field without\
\ any operator, the response data is sorted in descending order by this\
\ field.\n\n - The `-` operator indicates an ascending order.\n - The\
\ `+` operator indicates a descending order.\n\nBy default, the response\
\ data is displayed in descending order by credit memo number.\n\n*field_name*\
\ indicates the name of a sortable field. The supported sortable fields\
\ of this operation are as below:\n\n - accountId\n - amount\n - appliedAmount\n\
\ - createdById\n - createdDate\n - creditMemoDate\n - number\n - referredInvoiceId\n\
\ - refundAmount\n - status\n - targetDate\n - taxAmount\n - totalTaxExemptAmount\n\
\ - transferredToAccounting\n - unappliedAmount\n - updatedDate\n\n \
\ \nExamples:\n\n- /v1/creditmemos?sort=+number\n\n- /v1/creditmemos?status=Processed&sort=-number,+amount\n"
/v1/creditmemos/bulk:
post:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n\nCreates multiple credit memos from invoices or\
\ product rate plan charges. You can create a maximum of 50 credit memos in\
\ one single request. \n\n- If you set the `sourceType` request field to `Invoice`,\
\ you can create multiple credit memos from invoices.\n- If you set the `sourceType`\
\ request field to `Standalone`, you can create multiple credit memos from\
\ product rate plan charges.\n\nThe credit memos that are created are each\
\ in separate database transactions. If the creation of one credit memo fails,\
\ other credit memos can still be created successfully. \n\nYou can create\
\ credit memos only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n\nZero-amount memo items are supported in the following\
\ scenarios:\n- If you want to correct taxation items only for an invoice,\
\ you can set the memo item amount to zero, but the taxation item amount to\
\ non-zero.\n- If you want to correct personal data in an invoice, you can\
\ set the memo item amount to zero to create a zero-amount credit memo from\
\ an invoice.\n"
summary: Create credit memos
operationId: POST_CreateCreditMemos
tags:
- Credit Memos
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
memos:
- id: ff8080817fe9d7b9017fe9e5382f04f5
number: CM00000001
accountId: ff8080817fe9d7b9017fe9e5234d04cb
accountNumber: A00000001
currency: USD
creditMemoDate: '2022-04-02'
targetDate: null
postedById: null
postedOn: null
status: Draft
amount: 100
taxAmount: 0
totalTaxExemptAmount: 0
unappliedAmount: 100
refundAmount: 0
appliedAmount: 0
comment: test
source: AdhocFromInvoice
sourceId: null
referredInvoiceId: ff8080817fe9d7b9017fe9e5317f04e0
reasonCode: Correcting invoice error
createdDate: '2022-04-02 18:49:47'
createdById: ff8080817fe9d7b9017fe9e41732030e
updatedDate: '2022-04-02 18:49:47'
updatedById: ff8080817fe9d7b9017fe9e41732030e
cancelledOn: null
cancelledById: null
latestPDFFileId: null
transferredToAccounting: 'No'
excludeFromAutoApplyRules: false
autoApplyUponPosting: false
reversed: false
taxStatus: null
sourceType: Invoice
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
sequenceSetId: null
success: true
- success: false
processId: 0356073CB721291A
reasons:
- code: 50000040
message: Cannot find a Invoice instance with id test.
objectIndex: 1
schema:
$ref: '#/definitions/BulkCreditMemosResponseType'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: |2
The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) for information about REST API version control.
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTBulkCreditMemosRequestType'
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n\n Updates the basic and finance information about\
\ multiple credit memos. You can update a maximum of 50 credit memos in one\
\ single request.\n \n The credit memos that are updated are each in separate\
\ database transactions. If the update of one credit memo fails, other credit\
\ memos can still be updated successfully. \n \n Currently, Zuora supports\
\ updating tax-exclusive memo items, but does not support updating tax-inclusive\
\ memo items.\n\n If the amount of a memo item is updated, the tax will be\
\ recalculated in the following conditions:\n - The memo is created from\
\ a product rate plan charge and you use Avalara to calculate the tax.\n \
\ - The memo is created from an invoice and you use Avalara or Zuora Tax to\
\ calculate the tax.\n\n You can update credit memos only if you have the\
\ user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n"
summary: Update credit memos
operationId: PUT_UpdateCreditMemos
tags:
- Credit Memos
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
memos:
- id: ff8080817fe9d7b9017fe9e5382f04f5
number: CM00000001
accountId: ff8080817fe9d7b9017fe9e5234d04cb
accountNumber: A00000001
currency: USD
creditMemoDate: '2022-04-02'
targetDate: null
postedById: null
postedOn: null
status: Draft
amount: 100
taxAmount: 0
totalTaxExemptAmount: 0
unappliedAmount: 100
refundAmount: 0
appliedAmount: 0
comment: test
source: AdhocFromInvoice
sourceId: null
referredInvoiceId: ff8080817fe9d7b9017fe9e5317f04e0
reasonCode: Correcting invoice error
createdDate: '2022-04-02 18:49:47'
createdById: ff8080817fe9d7b9017fe9e41732030e
updatedDate: '2022-04-02 18:49:47'
updatedById: ff8080817fe9d7b9017fe9e41732030e
cancelledOn: null
cancelledById: null
latestPDFFileId: null
transferredToAccounting: 'No'
excludeFromAutoApplyRules: false
autoApplyUponPosting: false
reversed: false
taxStatus: null
sourceType: Invoice
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
sequenceSetId: null
success: true
- success: false
id: ff8080817fe9d7b9017fe9e41732030f
processId: 0356073CB721291A
reasons:
- code: 50000040
message: Cannot find a Invoice instance with id.
objectIndex: 1
schema:
$ref: '#/definitions/BulkCreditMemosResponseType'
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_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: |2
The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) for information about REST API version control.
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTBulkCreditMemosRequestType'
/v1/invoices/{invoiceKey}/creditmemos:
post:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nCreates an ad-hoc credit memo from an invoice.\n\
\nYou can create a credit memo from an invoice only if you have the user permission.\
\ See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n\nFor a use case of this operation, see [Create credit\
\ memo](https://developer.zuora.com/rest-api/general-concepts/authentication//#Create-credit-memo).\n\
\nZero-amount memo items are supported in the following scenarios:\n- If you\
\ want to correct taxation items only for an invoice, you can set the memo\
\ item amount to zero, but the taxation item amount to non-zero.\n- If you\
\ want to correct personal data in an invoice, you can set the memo item amount\
\ to zero to create a zero-amount credit memo from an invoice.\n"
summary: Create a credit memo from an invoice
operationId: POST_CreditMemoFromInvoice
tags:
- Credit Memos
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: 402890555a87d7f5015a88bd27f80014
number: CM00000013
accountId: 402890555a7d4022015a7dabf5f60088
accountNumber: A00000001
currency: USD
creditMemoDate: '2017-11-30'
targetDate: null
postedById: null
postedOn: null
status: Draft
amount: 0.01
taxAmount: 0.01
totalTaxExemptAmount: 0
unappliedAmount: 0.01
refundAmount: 0
appliedAmount: 0
comment: the comment
source: AdhocFromInvoice
sourceType: Invoice
sourceId: null
referredInvoiceId: 402890555a7d4022015a7dadb3b300a4
reasonCode: Write-off
reversed: false
createdDate: '2017-03-01 15:19:42'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 15:19:42'
updatedById: 402881e522cf4f9b0122cf5d82860002
cancelledOn: null
cancelledById: null
latestPDFFileId: null
excludeItemBillingFromRevenueAccounting: true
transferredToAccounting: 'No'
excludeFromAutoApplyRules: false
autoApplyUponPosting: false
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
sequenceSetId: null
success: true
schema:
$ref: '#/definitions/GETCreditMemoType'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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* `items` > `comment`\n\
* `items` > `description`\n"
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/CreditMemoFromInvoiceType'
- type: string
in: path
description: 'The ID or number of an invoice that you want to create a credit
memo from. For example, 2c93808457d787030157e030d10f3f64 or INV00000001.
'
name: invoiceKey
required: true
/v1/creditmemos/{creditMemoKey}:
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about a specific credit\
\ memo.\n\nFor a use case of this operation, see [Get credit memo](https://developer.zuora.com/rest-api/general-concepts/authentication//#Get-credit-memo).\n"
summary: Retrieve a credit memo
operationId: GET_CreditMemo
tags:
- Credit Memos
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: 402890555a7e9791015a879f064a0054
number: CM00000012
accountId: 402890555a7e9791015a7f15fe44001c
accountNumber: A00000001
currency: USD
creditMemoDate: '2017-03-01'
targetDate: null
postedById: null
postedOn: null
status: Draft
amount: 3.1
taxAmount: 0.1
totalTaxExemptAmount: 0
unappliedAmount: 3.1
refundAmount: 0
appliedAmount: 0
comment: ''
source: API
sourceType: Standalone
sourceId: null
referredInvoiceId: 402890555a7e9791015a7f1756aa0035
reasonCode: Correcting invoice error
reversed: false
createdDate: '2017-03-01 10:07:10'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 10:08:43'
updatedById: 402881e522cf4f9b0122cf5d82860002
cancelledOn: null
cancelledById: null
latestPDFFileId: 402890555a7e9791015a879f07fb005e
transferredToAccounting: 'No'
excludeFromAutoApplyRules: false
autoApplyUponPosting: false
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
sequenceSetId: null
success: true
schema:
$ref: '#/definitions/GETCreditMemoType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
description: 'The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172
or CM00000001.
'
name: creditMemoKey
required: true
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nUpdates the basic and finance information about\
\ a credit memo. Currently, Zuora supports updating tax-exclusive memo items,\
\ but does not support updating tax-inclusive memo items. \n\nIf the amount\
\ of a memo item is updated, the tax will be recalculated in the following\
\ conditions:\n - The memo is created from a product rate plan charge and\
\ you use Avalara to calculate the tax.\n - The memo is created from an invoice\
\ and you use Avalara or Zuora Tax to calculate the tax.\n\nYou can update\
\ a credit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n"
summary: Update a credit memo
operationId: PUT_UpdateCreditMemo
tags:
- Credit Memos
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: 4028905f5a890526015a8d73f73d0015
number: CM00000001
accountId: 4028905f5a87c0ff015a87d25ae90025
accountNumber: A00000001
currency: USD
creditMemoDate: '2017-03-02'
targetDate: null
postedById: null
postedOn: null
status: Draft
amount: 10.76
taxAmount: 0.76
totalTaxExemptAmount: 0
unappliedAmount: 10.76
refundAmount: 0
appliedAmount: 0
comment: ''
source: AdhocFromPrpc
sourceId: null
sourceType: Standalone
referredInvoiceId: 4028905f5a87c0ff015a87d3f8f10043
reasonCode: Correcting invoice error
reversed: false
createdDate: '2017-03-02 13:17:51'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-02 13:19:00'
updatedById: 402881e522cf4f9b0122cf5d82860002
cancelledOn: null
cancelledById: null
latestPDFFileId: 4028905f5a890526015a8d7408730024
transferredToAccounting: 'No'
excludeFromAutoApplyRules: true
autoApplyUponPosting: false
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
sequenceSetId: null
success: true
schema:
$ref: '#/definitions/GETCreditMemoType'
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_HEADER_Zuora_Org_Ids'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTCreditMemoType'
- type: string
in: path
description: 'The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172
or CM00000001.
'
name: creditMemoKey
required: true
delete:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nDeletes a credit memo. Only credit memos with\
\ the Cancelled status can be deleted. \n\nYou can delete a credit memo only\
\ if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n"
summary: Delete a credit memo
operationId: DELETE_CreditMemo
tags:
- Credit Memos
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_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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: creditMemoKey
description: 'The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172
or CM00000001.
'
required: true
/v1/creditmemos/{creditMemoKey}/apply:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n\nApplies a posted credit memo to one or more invoices\
\ and debit memos. \n\nYou can apply a credit memo to an invoice or a debit\
\ memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n\nWhen you apply a credit memo, the total number\
\ of credit memo items and the items that credit memo items to be applied\
\ to must be less than or equal to 15,000.\n\nIf the limit is hit, you can\
\ follow the following instructions:\n\n- If you want to apply one credit\
\ memo to multiple invoices or debit memos, decrease the number of invoices\
\ or debit memos in the request.\n- If you want to apply one credit memo to\
\ a single invoice or debit memo with a large volume of items, you have to\
\ specify invoice items or debit memo items in the request. The maximum number\
\ of invoice items or debit memo items that you can specify in the request\
\ is 1,000.\n- If a credit memo has a large volume of items, you have to specify\
\ credit memo items in the request. The maximum number of credit memo items\
\ that you can specify in the request is 1,000.\n \nIf the Proration\
\ application rule is used, when applying credit memos, the following quantity\
\ must be less than or equal to 15,000: \n\n(number of invoice items + number\
\ of debit memo items) * number of credit memo items\n\nOtherwise, the First\
\ In First Out rule will be used instead of the Proration rule.\n"
summary: Apply a credit memo
operationId: PUT_ApplyCreditMemo
tags:
- Credit Memos
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: 4028905f5a890526015a8d73f73d0015
number: CM00000001
accountId: 4028905f5a87c0ff015a87d25ae90025
accountNumber: A00000001
currency: USD
creditMemoDate: '2017-03-02'
targetDate: null
postedById: 402881e522cf4f9b0122cf5d82860002
postedOn: '2017-03-02 13:21:55'
status: Posted
amount: 10.76
taxAmount: 0.76
totalTaxExemptAmount: 0
unappliedAmount: 2.66
refundAmount: 7.1
appliedAmount: 1
comment: ''
source: AdhocFromPrpc
sourceId: null
sourceType: Standalone
referredInvoiceId: 4028905f5a87c0ff015a87d3f8f10043
reasonCode: Correcting invoice error
reversed: false
createdDate: '2017-03-02 13:17:51'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-02 13:25:29'
updatedById: 402881e522cf4f9b0122cf5d82860002
cancelledOn: null
cancelledById: null
latestPDFFileId: 4028905f5a890526015a8d77af600036
transferredToAccounting: 'No'
excludeFromAutoApplyRules: true
autoApplyUponPosting: false
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
sequenceSetId: null
success: true
schema:
$ref: '#/definitions/GETCreditMemoType'
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_HEADER_Zuora_Org_Ids'
- name: body
in: body
required: true
schema:
$ref: '#/definitions/ApplyCreditMemoType'
- type: string
in: path
name: creditMemoKey
description: 'The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.
'
required: true
/v1/creditmemos/{creditMemoKey}/cancel:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nCancels a credit memo. Only credit memos with\
\ the Draft status can be cancelled. \n\nYou can cancel a credit memo only\
\ if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n"
summary: Cancel a credit memo
operationId: PUT_CancelCreditMemo
tags:
- Credit Memos
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: 402890555a87d7f5015a88c7a6830022
number: CM00000015
accountId: 402890555a7e9791015a7f15fe44001c
accountNumber: A00000001
currency: USD
creditMemoDate: '2017-10-17'
targetDate: null
postedById: null
postedOn: null
status: Canceled
amount: 2020
taxAmount: 0
totalTaxExemptAmount: 0
unappliedAmount: 2020
refundAmount: 0
appliedAmount: 0
comment: the comment
source: AdhocFromPrpc
sourceId: null
sourceType: Standalone
referredInvoiceId: null
reasonCode: Correcting invoice error
reversed: false
createdDate: '2017-03-01 15:31:10'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 15:36:57'
updatedById: 402881e522cf4f9b0122cf5d82860002
cancelledOn: '2017-09-03 19:59:07'
cancelledById: 402881e522cf4f9b0122cf5d82860002
latestPDFFileId: 402890555a87d7f5015a88c7a7a2002a
transferredToAccounting: 'No'
excludeFromAutoApplyRules: false
autoApplyUponPosting: false
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
sequenceSetId: null
success: true
schema:
$ref: '#/definitions/GETCreditMemoType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
description: 'The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172
or CM00000001.
'
name: creditMemoKey
required: true
/v1/creditmemos/{creditMemoKey}/emails:
post:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nSends a posted credit memo to the specified email\
\ addresses manually.\n\n\n\n### Notes\n - You must activate the **Email\
\ Credit Memo | Manually email Credit Memo** notification before emailing\
\ credit memos. To include the credit memo PDF in the email, select the **Include\
\ Credit Memo PDF** check box in the **Edit notification** dialog from the\
\ Zuora UI. See [Create and Edit Notifications](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/C_Create_Notifications#section_2)\
\ for more information.\n\n\n - Zuora sends the email messages based on the\
\ email template you set. You can set the email template to use in the **Delivery\
\ Options** panel of the **Edit notification** dialog from the Zuora UI. By\
\ default, the **Manual Email for Credit Memo Default Template** template\
\ is used. See [Create and Edit Email Templates](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/Create_Email_Templates)\
\ for more information.\n\n\n - The credit memos are sent only to the work\
\ email addresses or personal email addresses of the Bill To contact if the\
\ following conditions are all met:\n\n * The `useEmailTemplateSetting`\
\ field is set to `false`.\n * The email addresses are not specified in\
\ the `emailAddresses` field.\n"
summary: Email a credit memo
operationId: POST_EmailCreditMemo
tags:
- Credit Memos
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
required: true
description: ''
schema:
$ref: '#/definitions/PostCreditMemoEmailRequestType'
- name: creditMemoKey
type: string
in: path
required: true
description: 'The ID or number of a posted credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172
or CM00000001.
'
/v1/creditmemos/{creditMemoKey}/files:
post:
summary: Upload a file for a credit memo
operationId: POST_UploadFileForCreditMemo
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nUploads an externally generated PDF file for a\
\ credit memo that is in Draft or Posted status.\n\nTo use this operation,\
\ you must enable the Modify Modify Credit Memo permission. See [Billing Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n\nThis operation has the following restrictions:\n\
- Only the PDF file format is supported.\n- The maximum size of the PDF file\
\ to upload is 4 MB.\n- A maximum of 50 PDF files can be uploaded for one\
\ credit memo.\n"
consumes:
- multipart/form-data
tags:
- Credit Memos
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: creditMemoKey
in: path
description: 'The ID or number of the credit memo that you want to upload
a PDF file for. For example, 402890555a7e9791015a879f064a0054 or CM00000001.
'
required: true
type: string
- name: file
in: formData
description: 'The PDF file to upload for the credit memo.
'
type: file
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
fileId: 40289f466463d683016463ef8b7301a4
description: ''
schema:
$ref: '#/definitions/POSTUploadFileResponse'
x-code-samples:
- lang: curl
label: Curl
source: 'curl -X POST -H "Authorization: Bearer f21f017e4724445d8647b1f0de7ed6f1"
-F "file=@CreditMemoFile.pdf" "https://rest.zuora.com/v1/creditmemos/402890555a7e9791015a879f064a0054/files"
'
/v1/creditmemos/{creditMemoKey}/items:
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about all items of a\
\ credit memo. A credit memo item is a single line item in a credit memo.\
\ \n\n### Filtering\n\nYou can use query parameters to restrict the data returned\
\ in the response. Each query parameter corresponds to one field in the response\
\ body.\n\nIf the value of a filterable field is string, you can set the corresponding\
\ query parameter to `null` when filtering. Then, you can get the response\
\ data with this field value being `null`. \n\nExamples:\n \n - /v1/creditmemos/402890245c7ca371015c7cb40ac30015/items?amount=100\n\
\ \n - /v1/creditmemos/402890245c7ca371015c7cb40ac30015/items?amount=100&sort=createdDate\n\
\ \n"
summary: List credit memo items
operationId: GET_CreditMemoItems
tags:
- Credit Memos
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:
items:
- id: 402890555a7e9791015a879f064d0055
amount: 1
amountWithoutTax: 0
appliedAmount: 0
appliedToItemId: null
refundAmount: 0
unappliedAmount: 1
comment: ''
taxMode: TaxExclusive
processingType: Charge
quantity: 1
sku: SKU-00000001
skuName: New Component
serviceStartDate: '2017-02-27'
serviceEndDate: '2017-03-26'
sourceItemType: InvoiceDetail
sourceItemId: 402890555a7e9791015a7f1756bc0037
creditFromItemSource: CreditMemoItem
creditFromItemId: 402880e97a56f30b017a574012e50085
excludeItemBillingFromRevenueAccounting: true
createdDate: '2017-03-01 10:07:10'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 10:08:43'
updatedById: 402881e522cf4f9b0122cf5d82860002
subscriptionId: 402890d25bec1155015bec35cc7c0bc7
unitOfMeasure: Each
unitPrice: 1
soldToContactId: 402881e522cf4f9b0122cf5d82860003
soldToContactSnapshotId: 402881e522cf4f9b0122cf5d82860004
invoiceScheduleId: 402881e522cf4f9b0122cf5d82860005
invoiceScheduleItemId: 402881e522cf4f9b0122cf5d82860006
numberOfDeliveries: 1
financeInformation:
onAccountAccountingCode: null
onAccountAccountingCodeType: null
deferredRevenueAccountingCode: null
deferredRevenueAccountingCodeType: null
recognizedRevenueAccountingCode: null
recognizedRevenueAccountingCodeType: null
taxationItems:
data:
- id: 402890555a7e9791015a87a072880062
sourceTaxItemId: null
taxAmount: 0.1
appliedAmount: 0
unappliedAmount: 0.1
refundAmount: 0
name: STATE TAX
exemptAmount: 0
jurisdiction: CALIFORNIA
locationCode: '06'
taxCode: ServiceTaxCode
taxCodeDescription: This is tax code description!
taxDate: '2016-09-30'
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
financeInformation:
onAccountAccountingCode: Check
onAccountAccountingCodeType: Cash
salesTaxPayableAccountingCode: Check
salesTaxPayableAccountingCodeType: Cash
- id: 402890555a7e9791015a879f06610056
amount: 2
amountWithoutTax: 2
appliedAmount: 0
appliedToItemId: null
refundAmount: 0
unappliedAmount: 2
comment: ''
taxMode: TaxExclusive
processingType: Charge
quantity: 1
sku: SKU-00000001
skuName: New Component
serviceStartDate: '2017-02-27'
serviceEndDate: '2017-03-26'
sourceItemType: InvoiceDetail
sourceItemId: 402890555a7e9791015a7f1756bd0038
excludeItemBillingFromRevenueAccounting: true
creditFromItemSource: CreditMemoItem
creditFromItemId: 402880e97a56f30b017a574012f00086
createdDate: '2017-03-01 10:07:10'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 10:07:10'
updatedById: 402881e522cf4f9b0122cf5d82860002
subscriptionId: 402890d25bec1155015bec35cc7c0bc7
unitOfMeasure: Each
unitPrice: 2
soldToContactId: 402881e522cf4f9b0122cf5d82860003
soldToContactSnapshotId: 402881e522cf4f9b0122cf5d82860004
invoiceScheduleId: 402881e522cf4f9b0122cf5d82860005
invoiceScheduleItemId: 402881e522cf4f9b0122cf5d82860006
numberOfDeliveries: 1
financeInformation:
onAccountAccountingCode: null
onAccountAccountingCodeType: null
deferredRevenueAccountingCode: null
deferredRevenueAccountingCodeType: null
recognizedRevenueAccountingCode: null
recognizedRevenueAccountingCodeType: null
taxationItems:
data: []
success: true
schema:
$ref: '#/definitions/GETCreditMemoItemsListType'
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- type: string
in: path
name: creditMemoKey
description: 'The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172
or CM00000001.
'
required: true
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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 response fields:\n* `items` > `creditTaxItems`\n\
* `items` > `taxationItems`\n* `items` > `comment`\n* `items` > `description`\n"
- name: amount
in: query
type: number
format: double
required: false
description: "This parameter filters the response based on the `amount` field.\
\ \n"
- name: appliedAmount
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `appliedAmount`
field.
'
- name: createdById
in: query
type: string
required: false
description: "This parameter filters the response based on the `createdById`\
\ field. \n"
- name: createdDate
in: query
type: string
format: date-time
required: false
description: "This parameter filters the response based on the `createdDate`\
\ field. \n"
- name: id
in: query
type: string
required: false
description: "This parameter filters the response based on the `id` field.\
\ \n"
- name: refundAmount
in: query
type: number
format: double
required: false
description: "This parameter filters the response based on the `refundAmount`\
\ field. \n"
- name: serviceEndDate
in: query
type: string
format: date
required: false
description: "This parameter filters the response based on the `serviceEndDate`\
\ field. \n"
- name: serviceStartDate
in: query
type: string
format: date
required: false
description: "This parameter filters the response based on the `serviceStartDate`\
\ field. \n"
- name: sku
in: query
type: string
required: false
description: "This parameter filters the response based on the `sku` field.\
\ \n"
- name: skuName
in: query
type: string
required: false
description: "This parameter filters the response based on the `skuName` field.\
\ \n"
- name: sourceItemId
in: query
type: string
required: false
description: "This parameter filters the response based on the `sourceItemId`\
\ field. \n"
- name: subscriptionId
in: query
type: string
required: false
description: 'This parameter filters the response based on the `subscriptionId`
field.
'
- name: updatedById
in: query
type: string
required: false
description: "This parameter filters the response based on the `updatedById`\
\ field. \n"
- name: updatedDate
in: query
type: string
format: date-time
required: false
description: 'This parameter filters the response based on the `updatedDate`
field.
'
- 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\nA sortable field uses the following form: \n\n*operator* *field_name*\n\
\nYou can use at most two sortable fields in one URL path. Use a comma to\
\ separate sortable fields. For example: *operator* *field_name*, *operator*\
\ *field_name* \n\n*operator* is used to mark the order of sequencing.\
\ The operator is optional. If you only specify the sortable field without\
\ any operator, the response data is sorted in descending order by this\
\ field.\n\n - The `-` operator indicates an ascending order.\n - The\
\ `+` operator indicates a descending order.\n\nBy default, the response\
\ data is displayed in descending order by updated date.\n\n*field_name*\
\ indicates the name of a sortable field. The supported sortable fields\
\ of this operation are as below:\n\n - amount\n - appliedAmount\n -\
\ createdById\n - createdDate\n - id\n - refundAmount\n - serviceEndDate\n\
\ - serviceStartDate\n - sku\n - skuName\n - sourceItemId\n - subscriptionId\n\
\ - updatedById\n - updatedDate\n \nExamples:\n\n- /v1/creditmemos/402890245c7ca371015c7cb40ac30015/items?sort=createdDate\n\
\n- /v1/creditmemos/402890245c7ca371015c7cb40ac30015/items?amount=100&sort=createdDate\n"
/v1/creditmemos/{creditMemoKey}/items/{cmitemid}:
get:
description: |
**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Retrieves the information about a specific item of a credit memo. A credit memo item is a single line item in a credit memo.
summary: Retrieve a credit memo item
operationId: GET_CreditMemoItem
tags:
- Credit Memos
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: 402890555a7e9791015a879f064d0055
amount: 1
amountWithoutTax: 1
appliedAmount: 0
appliedToItemId: null
refundAmount: 0
unappliedAmount: 1
comment: ''
taxMode: TaxExclusive
processingType: Charge
quantity: 1
sku: SKU-00000001
skuName: New Component
serviceStartDate: '2017-02-27'
serviceEndDate: '2017-03-26'
sourceItemType: InvoiceDetail
sourceItemId: 402890555a7e9791015a7f1756bc0037
creditFromItemSource: CreditMemoItem
creditFromItemId: 402880e97a56f30b017a574012f00086
createdDate: '2017-03-01 10:07:10'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 10:08:43'
updatedById: 402881e522cf4f9b0122cf5d82860002
excludeItemBillingFromRevenueAccounting: true
subscriptionId: 402890d25bec1155015bec35cc7c0bc7
unitOfMeasure: Each
unitPrice: 1
soldToContactId: 402881e522cf4f9b0122cf5d82860003
soldToContactSnapshotId: 402881e522cf4f9b0122cf5d82860004
invoiceScheduleId: 402881e522cf4f9b0122cf5d82860005
invoiceScheduleItemId: 402881e522cf4f9b0122cf5d82860006
numberOfDeliveries: 1
financeInformation:
onAccountAccountingCode: null
onAccountAccountingCodeType: null
deferredRevenueAccountingCode: null
deferredRevenueAccountingCodeType: null
recognizedRevenueAccountingCode: null
recognizedRevenueAccountingCodeType: null
taxationItems:
data: []
success: true
schema:
$ref: '#/definitions/GETCreditMemoItemType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: cmitemid
description: 'The unique ID of a credit memo item. You can get the credit
memo item ID from the response of [List credit memo items](https://developer.zuora.com/api-references/api/operation/GET_CreditMemoItems).
'
required: true
- type: string
in: path
name: creditMemoKey
description: 'The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172
or CM00000001.
'
required: true
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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 response fields:\n* `creditTaxItems`\n\
* `taxationItems`\n* `comment`\n* `description`\n"
/v1/creditmemos/{creditMemoId}/items/{cmitemid}/taxation-items:
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n\nRetrieves information about the taxation items\
\ of a specific credit memo item. \n"
summary: List all taxation items of a credit memo item
operationId: GET_TaxationItemsOfCreditMemoItem
tags:
- Credit Memos
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. \
\ \n"
description: ''
examples:
application/json:
data:
- sourceTaxItemId: null
appliedAmount: 0
unappliedAmount: 10
refundAmount: 0
financeInformation:
onAccountAccountingCode: null
onAccountAccountingCodeType: null
salesTaxPayableAccountingCode: null
salesTaxPayableAccountingCodeType: null
id: 2c98901a68ff2680016903216a271a67
taxAmount: 10
name: taxName_0
exemptAmount: 10
jurisdiction: Jurisdiction
locationCode: '8'
taxCode: taxCode
taxCodeDescription: taxCodeDescription
taxDate: '2016-10-10'
taxRate: 0.1
taxRateDescription: taxRateDescription
taxRateType: Percentage
success: true
schema:
$ref: '#/definitions/GETTaxationItemsOfCreditMemoItemType'
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- type: string
in: path
name: cmitemid
description: 'The unique ID of a credit memo item. You can get the credit
memo item ID from the response of [List credit memo items](https://developer.zuora.com/api-references/api/operation/GET_CreditMemoItems).
'
required: true
- type: string
in: path
name: creditMemoId
description: 'The unique ID of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.
'
required: true
/v1/creditmemos/{creditMemoKey}/parts:
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about all parts of a\
\ credit memo. A credit memo can consist of an unapplied part, and several\
\ parts applied to invoices and debit memos. You can use this operation to\
\ get all the applied and unapplied portions of a credit memo. Note that a\
\ fully refunded credit memo does not contain any credit memo part.\n"
summary: List all parts of a credit memo
operationId: GET_CreditMemoParts
tags:
- Credit Memos
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:
parts:
- id: 4028905f5a890526015a8d77adea0029
invoiceId: null
debitMemoId: null
amount: 3.66
createdDate: '2017-03-02 13:21:55'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-02 13:21:55'
updatedById: 402881e522cf4f9b0122cf5d82860002
success: true
schema:
$ref: '#/definitions/GETCreditMemoPartsCollectionType'
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- type: string
in: path
name: creditMemoKey
description: 'The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.
'
required: true
/v1/creditmemos/{creditMemoKey}/parts/{partid}:
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about a specific credit\
\ memo part. A credit memo can consist of an unapplied part, and several parts\
\ applied to invoices and debit memos.\n\nA fully refunded credit memo does\
\ not contain any credit memo part.\n"
summary: Retrieve a credit memo part
operationId: GET_CreditMemoPart
tags:
- Credit Memos
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: 4028905f5a890526015a8d9adeb30059
invoiceId: 4028905f5a87c0ff015a87d3f8f10043
debitMemoId: null
amount: 1
createdDate: '2017-03-02 14:00:21'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-02 14:00:21'
updatedById: 402881e522cf4f9b0122cf5d82860002
success: true
schema:
$ref: '#/definitions/GETCreditMemoPartType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: partid
description: 'The unique ID of a specific credit memo part. You can get the
credit memo part ID from the response of [List all parts of a credit memo](https://developer.zuora.com/api-references/api/operation/GET_CreditMemoParts).
'
required: true
- type: string
in: path
name: creditMemoKey
description: 'The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.
'
required: true
/v1/creditmemos/{creditMemoKey}/pdfs:
post:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nCreates a PDF file for a specified credit memo.\
\ To access the generated PDF file, you can download it by clicking **View\
\ PDF** on the detailed credit memo page through the Zuora UI.\n\nThis REST\
\ API operation can be used only if you have the billing document file generation\
\ feature and the Billing user permission \"Regenerate PDF\" enabled.\n"
summary: Generate a credit memo PDF file
operationId: POST_CreditMemoPDF
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: creditMemoKey
in: path
description: 'The unique ID or number of the credit memo that you want to
create a PDF file for. For example, 8a8082e65b27f6c3015ba45ff82c7172 or
CM00000001.
'
required: true
type: string
tags:
- Credit Memos
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/POSTMemoPdfResponse'
/v1/creditmemos/{creditMemoKey}/post:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nPosts a credit memo to activate it. You can post\
\ credit memos only if you have the [Billing permissions](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles#Billing_Permissions).\n"
summary: Post a credit memo
operationId: PUT_PostCreditMemo
tags:
- Credit Memos
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: 402890555a7e9791015a879f064a0054
number: CM00000012
accountId: 402890555a7e9791015a7f15fe44001c
accountNumber: A00000001
currency: USD
creditMemoDate: '2017-03-01'
targetDate: null
postedById: 402881e522cf4f9b0122cf5d82860002
postedOn: '2017-03-01 14:28:06'
status: Posted
amount: 3.1
taxAmount: 0.1
totalTaxExemptAmount: 0
unappliedAmount: 3.1
refundAmount: 0
appliedAmount: 0
comment: ''
source: API
sourceId: null
sourceType: Standalone
referredInvoiceId: 402890555a7e9791015a7f1756aa0035
reasonCode: Correcting invoice error
reversed: false
createdDate: '2017-03-01 10:07:10'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 14:28:06'
updatedById: 402881e522cf4f9b0122cf5d82860002
cancelledOn: null
cancelledById: null
latestPDFFileId: null
transferredToAccounting: 'No'
excludeFromAutoApplyRules: false
autoApplyUponPosting: false
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
sequenceSetId: null
success: true
schema:
$ref: '#/definitions/GETCreditMemoType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: creditMemoKey
description: 'The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172
or CM00000001.
'
required: true
/v1/creditmemos/{creditMemoKey}/refunds:
post:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRefunds a full or partial posted credit memo to\
\ your customers. Only the amount of unapplied part could be refunded. \n\n\
You can refund a credit memo only if you have the user permission. See [Billing\
\ Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n\nWhen you refund a credit memo, the total number\
\ of credit memo items to be refunded must be less than or equal to 15,000.\n\
\nFor a use case of this operation, see [Refund processing](https://developer.zuora.com/rest-api/general-concepts/authentication//#Refund-processing).\n"
summary: Refund a credit memo
operationId: POST_RefundCreditMemo
tags:
- Credit Memos
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: 4028905f5a890526015a8d7af4280039
number: R-00000002
status: Processed
type: External
methodType: CreditCard
accountId: 4028905f5a87c0ff015a87d25ae90025
amount: 7.1
refundDate: '2017-03-02'
comment: null
paymentMethodId: null
paymentMethodSnapshotId: null
paymentId: null
creditMemoId: 4028905f5a890526015a8d73f73d0015
reasonCode: Standard Refund
gatewayId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondRefundReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: null
createdDate: '2017-03-02 13:25:29'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-02 13:25:29'
updatedById: 402881e522cf4f9b0122cf5d82860002
refundTransactionTime: null
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
onAccountAccountingCode: null
onAccountAccountingCodeType: null
transferredToAccounting: 'No'
success: true
schema:
$ref: '#/definitions/GETRefundCreditMemoType'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: body
in: body
required: true
schema:
$ref: '#/definitions/PostNonRefRefundType'
- type: string
in: path
name: creditMemoKey
description: 'The ID or number of the credit memo. For example, 2c92c8955bd63cc1015bd7c151af02ab
or CM00000001.
'
required: true
/v1/creditmemos/{creditMemoKey}/reverse:
put:
summary: Reverse a credit memo
operationId: PUT_ReverseCreditMemo
description: |
**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Reverses a posted credit memo. See [Reverse credit memos](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/B_Credit_and_Debit_Memos/C_Management_of_Credit_and_Debit_Memos/Reverse_credit_memos) for more information.
You can reverse a credit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.
**Restrictions**
You cannot reverse credit memos if any of the following conditions is met:
* A credit memo's applied amount is not 0.
* A credit memo is not in Posted status.
* A credit memo contains more than 2,000 items in total, including credit memo items, discount items, and taxation items.
tags:
- Credit Memos
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_HEADER_Zuora_Org_Ids'
- name: creditMemoKey
in: path
required: true
type: string
description: 'The ID or number of the credit memo. For example, 2c92c8955bd63cc1015bd7c151af02ab
or CM00000001.
'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PutReverseCreditMemoType'
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:
debitMemo:
id: 402890555a40ca7f015a5b099b0e307a
success: true
description: ''
schema:
$ref: '#/definitions/PutReverseCreditMemoResponseType'
/v1/creditmemos/{creditMemoKey}/taxationitems:
post:
description: |
**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Creates taxation items for a credit memo.
summary: Create taxation items for a credit memo
operationId: POST_CM_TaxationItems
tags:
- Credit Memos
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:
taxationItems:
- createdById: 402881e522cf4f9b0122cf5d82860002
createdDate: '2017-03-01 10:08:43'
exemptAmount: 0
id: 402890555a7e9791015a87a072880062
memoItemId: 402890555a7e9791015a879f064d0055
sourceTaxItemId: 402890555a7d4022015a7db254e200c1
jurisdiction: CALIFORNIA
locationCode: '06'
name: STATE TAX
taxAmount: 0.1
taxCode: ServiceTaxCode
taxCodeDescription: This is tax code description!
taxDate: '2016-09-30'
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
updatedById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 10:08:43'
financeInformation:
onAccountAccountingCode: Check
onAccountAccountingCodeType: Cash
salesTaxPayableAccountingCode: Check
salesTaxPayableAccountingCodeType: Cash
success: true
schema:
$ref: '#/definitions/GETTaxationItemListType'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: creditMemoKey
required: true
description: 'The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172
or CM00000001.
'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTTaxationItemListForCMType'
/v1/creditmemos/{creditMemoKey}/unapply:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n\nUnapplies an applied credit memo from one or more\
\ invoices and debit memos. The full applied amount from invoices and debit\
\ memos is transferred into the unapplied amount of the credit memo. \n\n\
You can unapply a credit memo from an invoice or a debit memo only if you\
\ have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n\nWhen you unapply a credit memo, the total number\
\ of credit memo items and the items that credit memo items to be unapplied\
\ from must be less than or equal to 15,000.\n\nIf the limit is hit, you can\
\ follow the following instructions:\n\n- If you want to unapply one credit\
\ memo without specifying invoices or debit memos and the limit is hit, you\
\ have to specify the invoice items or debit memo items in the request to\
\ decrease the number of items.\n- If you want to unapply one credit memo\
\ from multiple specified invoices or debit memos, decrease the number of\
\ invoices or debit memos in the request.\n- If you want to unapply one credit\
\ memo from a single invoice or debit memo with a large volume of items, you\
\ have to specify invoice items or debit memo items in the request. The maximum\
\ number of invoice items or debit memo items that you can specify in the\
\ request is 1,000.\n- If a credit memo has a large volume of items, you have\
\ to specify credit memo items in the request. The maximum number of credit\
\ memo items that you can specify in the request is 1,000.\n\n\nIf the Proration\
\ application rule is used, when unapplying credit memos, the following quantity\
\ must be less than or equal to 15,000: \n\n(number of invoice items + number\
\ of debit memo items) * number of credit memo items\n\nOtherwise, the First\
\ In First Out rule will be used instead of the Proration rule.\n"
summary: Unapply a credit memo
operationId: PUT_UnapplyCreditMemo
tags:
- Credit Memos
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: 4028905f5a890526015a8d73f73d0015
number: CM00000001
accountId: 4028905f5a87c0ff015a87d25ae90025
accountNumber: A00000001
currency: USD
creditMemoDate: '2017-03-02'
targetDate: null
postedById: 402881e522cf4f9b0122cf5d82860002
postedOn: '2017-03-02 13:21:55'
status: Posted
amount: 10.76
taxAmount: 0.76
sourceType: Standalone
totalTaxExemptAmount: 0
unappliedAmount: 3.66
refundAmount: 7.1
appliedAmount: 0
comment: ''
source: AdhocFromPrpc
sourceId: null
referredInvoiceId: 4028905f5a87c0ff015a87d3f8f10043
reasonCode: Correcting invoice error
reversed: false
createdDate: '2017-03-02 13:17:51'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-02 13:25:29'
updatedById: 402881e522cf4f9b0122cf5d82860002
cancelledOn: null
cancelledById: null
latestPDFFileId: 4028905f5a890526015a8d77af600036
transferredToAccounting: 'No'
excludeFromAutoApplyRules: true
autoApplyUponPosting: false
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
sequenceSetId: null
success: true
schema:
$ref: '#/definitions/GETCreditMemoType'
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_HEADER_Zuora_Org_Ids'
- name: body
in: body
required: true
schema:
$ref: '#/definitions/UnapplyCreditMemoType'
- type: string
in: path
name: creditMemoKey
description: 'The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.
'
required: true
/v1/creditmemos/{creditMemoKey}/unpost:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nUnposts a credit memo that is in Posted status.\
\ If a credit memo has been applied or refunded, you are not allowed to unpost\
\ it. After a credit memo is unposted, its status becomes Draft. \n\nYou can\
\ unpost credit memos only if you have the [Billing permissions](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles#Billing_Permissions).\n"
summary: Unpost a credit memo
operationId: PUT_UnpostCreditMemo
tags:
- Credit Memos
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: 402890555a7e9791015a879f064a0054
number: CM00000012
accountId: 402890555a7e9791015a7f15fe44001c
accountNumber: A00000001
currency: USD
creditMemoDate: '2017-03-01'
targetDate: null
postedById: 402881e522cf4f9b0122cf5d82860002
postedOn: '2017-03-01 14:28:06'
status: Draft
amount: 3.1
taxAmount: 0.1
totalTaxExemptAmount: 0
unappliedAmount: 3.1
refundAmount: 0
appliedAmount: 0
comment: ''
source: API
sourceId: null
sourceType: Standalone
referredInvoiceId: 402890555a7e9791015a7f1756aa0035
reasonCode: Correcting invoice error
reversed: false
createdDate: '2017-03-01 10:07:10'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 14:28:06'
updatedById: 402881e522cf4f9b0122cf5d82860002
cancelledOn: null
cancelledById: null
latestPDFFileId: null
transferredToAccounting: 'No'
excludeFromAutoApplyRules: false
autoApplyUponPosting: false
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
sequenceSetId: null
success: true
schema:
$ref: '#/definitions/GETCreditMemoType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: creditMemoKey
description: 'The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172
or CM00000001.
'
required: true
/v1/creditmemos/{creditMemoId}/write-off:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nWrite off a fully unapplied credit memo. When\
\ writing off a credit memo, a debit memo is automatically created, and then\
\ the credit memo to be written off is fully applied to the debit memo.\n\n\
Note that this operation only supports writing off credit memos that are fully\
\ unapplied. Credit memos that are not fully unapplied cannot be written off\
\ by this operation. \n"
summary: Write off a credit memo
operationId: PUT_WriteOffCreditMemo
tags:
- Credit Memos
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:
debitMemo:
id: 4028905f5a87c0ff015a87e49e6b0062
success: true
schema:
$ref: '#/definitions/PUTCreditMemoWriteOffResponseType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: creditMemoId
description: 'The unique ID of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.
'
required: true
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTCreditMemoWriteOff'
/v1/creditmemos/{creditMemoKey}/einvoice/generate:
put:
summary: Generate an e-invoice file for a credit memo
operationId: PUT_GenerateEInvoiceFileForCreditMemo
description: |
Generates an e-invoice file for a credit memo.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- Credit Memos
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_HEADER_Zuora_Org_Ids'
- name: creditMemoKey
in: path
required: true
type: string
description: 'The ID or number of the credit memo. For example, 2c92c8955bd63cc1015bd7c151af02ab
or CM-0000001.
'
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'
/events/event-triggers:
post:
tags:
- Custom Event Triggers
operationId: POST_EventTrigger
summary: Create an event trigger
description: "When you create an event trigger, you must specify the base object\
\ and define the trigger condition.\n\n### Specify the base object\nUse `baseObject`\
\ field to specify which object to define a trigger on. You can define an\
\ event trigger on any of the following objects:\n\n * Account\n * AccountingCode\n\
\ * AccountingPeriod\n * Amendment\n * BillingRun\n * Contact\n * CreditBalanceAdjustment\n\
\ * CreditMemo\n * CreditMemoApplication\n * CreditMemoApplicationItem\n\
\ * CreditMemoItem\n * DebitMemo\n * DebitMemoItem\n * Feature\n * Invoice\n\
\ * InvoiceAdjustment\n * InvoiceItem\n * InvoiceItemAdjustment\n * JournalEntry\n\
\ * JournalEntryItem\n * Order\n * OrderAction\n * OrderLineItem\n *\
\ Payment\n * PaymentApplication\n * PaymentMethod\n * PaymentPart\n *\
\ PaymentSchedule\n * PaymentScheduleItem\n * PrepaidValidityPeriodSummary\n\
\ * Product\n * ProductFeature\n * ProductRatePlan\n * ProductRatePlanCharge\n\
\ * ProductRatePlanChargeTier\n * RatePlan\n * RatePlanCharge\n * RatePlanChargeTier\n\
\ * Refund\n * RefundApplication\n * RevenueEvent\n * RevenueEventItem\n\
\ * RevenueSchedule\n * RevenueScheduleItem\n * Subscription\n * SubscriptionProductFeature\n\
\ * TaxationItem\n * UpdaterDetail\n * Usage\n\nIn addition to the above\
\ Zuora standard objects, you can also use custom objects as base objects\
\ for custom events.\n\n#### Tenant level base objects and tenant level event\
\ triggers\nZuora identifies the following base objects and custom objects\
\ as the tenant level base objects:\n\n * AccountingCode\n * AccountingPeriod\n\
\ * BillingRun\n * Feature\n * JournalEntry\n * JournalEntryItem\n *\
\ Product\n * ProductFeature\n * ProductRatePlan\n * ProductRatePlanCharge\n\
\ * ProductRatePlanChargeTier\n\nEvent triggers defined on tenant level base\
\ objects are tenant level event triggers. Notifications associated with tenant\
\ level events are system notifications. \n\n**Note:** Tenant level event\
\ triggers and system notifications are only available in the default profile.\
\ \n\n### Define the trigger condition\nThe `condition` field is a\
\ [JEXL](http://commons.apache.org/proper/commons-jexl/) expression that specifies\
\ when to trigger events. The expression can contain fields from the object\
\ that the trigger is defined on.\n\n**Note:** The condition cannot contain\
\ fields from [data source](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL)\
\ objects that are joined to the object that the trigger is defined on.\n\n\
For example, the following condition causes an event to be triggered whenever\
\ an invoice is posted with an amount greater than 1000:\n\n```changeType\
\ == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted'\
\ && Invoice.Amount > 1000```\n\nWhere:\n\n * `changeType` is a keyword that\
\ specifies the type of change that occurred to the Invoice object. For all\
\ objects, the supported values of `changeType` are `INSERT`, `UPDATE`, and\
\ `DELETE`.\n * `Invoice.Status` is the value of the Invoice object's `Status`\
\ field after the change occurred.\n * `Invoice.Status_old` is the value\
\ of the Invoice object's `Status` field before the change occurred.\n\nIn\
\ the above example, the value of `baseObject` is `Invoice`.\n\n#### Limitations\
\ \n\nThis event trigger has the following limitations:\n\n* Base object values\
\ for Zuora standard objects are case sensitive. For example, `PaymentMethod`\
\ is correct, and `Paymentmethod` or `paymentmethod` is incorrect.\n\n* Base\
\ object values for custom objects must be lowercase. For example, `default__vehicle`.\n\
\n* The INSERT change type is not supported on RatePlan base objects.\n\n\
* The INSERT change type is not supported on SubscriptionProductFeature base\
\ objects.\n\n* When creating custom events, you cannot match fields of the\
\ RatePlanCharge object against constant values for the `condition` field.\
\ For example, the following condition will cause errors: `RatePlanCharge.ShippingProcessStatus__c\
\ == 'Shipping Confirmed'`, where `Shipping Confirmed` is a constant value.\n\
\n* Fields on objects are case-sensitive. For example, `PaymentMethod.createdbyid`\
\ can result in errors. The correct format is `PaymentMethod.CreatedById`.\
\ \n\n* A condition cannot contain fields from data source objects that are\
\ joined to the base object.\n\n* Do not create duplicate events because they\
\ will be either merged or deleted. Zuora considers events that have the same\
\ trigger condition as duplicate events, regardless of event type names. \n\
\nSee [Custom Events](https://knowledgecenter.zuora.com/Central_Platform/Notifications/A_Z_Custom_Events)\
\ for more information. \n"
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: postEventTriggerRequest
in: body
required: true
schema:
$ref: '#/definitions/PostEventTriggerRequest'
responses:
200:
description: OK
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/EventTrigger'
examples:
application/json: |-
{
"id": "ac1ee535e8524858a72edb464212729d",
"baseObject": "Invoice",
"condition": "changeType == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted' && Invoice.Amount > 1000",
"description": "trigger an event when an invoice is posted with amount over 1000",
"eventType": {
"name": "LargeInvoicePosted",
"displayName": "Large Invoice Posted",
"description": "An invoice is posted with amount over 1000"
},
"active": true
}
400:
description: Bad Request
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/ErrorResponse'
examples:
application/json: |-
{
"reasons": [
{
"code": "MissingRequiredField",
"message": "eventType is missing"
}
]
}
500:
description: Server Error
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/ErrorResponse'
examples:
application/json: |-
{
"reasons": [
{
"code": "SystemError",
"message": "internal server error"
}
]
}
get:
tags:
- Custom Event Triggers
operationId: GET_EventTriggers
summary: List event triggers
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: baseObject
in: query
description: |
The Zuora object that trigger condition is defined upon. The format of the value in this field depends on the base object type:
- Standard object: object name, which should follow the pattern ^[A-Z][\w\-]*$. For example, `Invoice`.
- Custom object: `default__`. For example, `default__vehicle`.
required: false
type: string
- name: eventTypeName
in: query
description: 'The event type name. Should be specified in the pattern: ^[A-Za-z]{1,}[\w\-]*$'
required: false
type: string
- name: active
in: query
description: The status of the event trigger.
required: false
type: string
- name: start
in: query
description: The first index of the query result. Default to 0 if absent,
and the minimum is 0.
required: false
type: integer
default: 0
minimum: 0
- name: limit
in: query
description: The maximum number of data records to be returned. Default to
10 if absent.
required: false
type: integer
default: 10
minimum: 1
responses:
200:
description: OK
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: object
properties:
data:
type: array
items:
$ref: '#/definitions/EventTrigger'
next:
type: string
description: The link to the next page. No value if it is last page.
examples:
application/json: |-
{
"data": [
{
"id": "ac1ee535e8524858a72edb464212729d",
"baseObject": "Invoice",
"condition": "changeType == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted' && Invoice.Amount > 1000",
"description": "trigger an event when an invoice is posted with amount over 1000",
"eventType": {
"name": "LargeInvoicePosted",
"displayName": "Large Invoice Posted",
"description": "An invoice is posted with amount over 1000"
},
"active": true
}
],
"next": "https://api.zuora.com/events/event-triggers?start=1&limit=1"
}
400:
description: Bad Request
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/ErrorResponse'
examples:
application/json: |-
{
"reasons": [
{
"code": "FieldConstraintViolation",
"message": "start should be >= 0"
}
]
}
500:
description: Server Error
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/ErrorResponse'
examples:
application/json: |-
{
"reasons": [
{
"code": "SystemError",
"message": "internal server error"
}
]
}
/events/event-triggers/{id}:
get:
tags:
- Custom Event Triggers
operationId: GET_EventTrigger
summary: Retrieve an event trigger
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
required: true
type: string
format: uuid
responses:
200:
description: OK
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/EventTrigger'
examples:
application/json: |-
{
"id": "ac1ee535e8524858a72edb464212729d",
"baseObject": "Invoice",
"condition": "changeType == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted' && Invoice.Amount > 1000",
"description": "trigger an event when an invoice is posted with amount over 1000",
"eventType": {
"name": "LargeInvoicePosted",
"displayName": "Large Invoice Posted",
"description": "An invoice is posted with amount over 1000"
},
"active": true
}
404:
description: Not Found
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/ErrorResponse'
examples:
application/json: |-
{
"reasons": [
{
"code": "ObjectNotFound",
"message": "no event trigger found with the given id"
}
]
}
500:
description: Server Error
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/ErrorResponse'
examples:
application/json: |-
{
"reasons": [
{
"code": "SystemError",
"message": "internal server error"
}
]
}
put:
description: ''
tags:
- Custom Event Triggers
operationId: PUT_EventTrigger
summary: Update an event trigger
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
required: true
type: string
format: uuid
- name: putEventTriggerRequest
in: body
required: true
schema:
$ref: '#/definitions/PutEventTriggerRequest'
responses:
200:
description: OK
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/EventTrigger'
examples:
application/json: |-
{
"id": "ac1ee535e8524858a72edb464212729d",
"baseObject": "Invoice",
"condition": "changeType == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted' && Invoice.Amount > 5000",
"description": "trigger an event when an invoice is posted with amount over 5000",
"eventType": {
"name": "LargeInvoicePosted",
"displayName": "Large Invoice Posted",
"description": "An invoice is posted with amount over 5000"
},
"active": true
}
404:
description: Not Found
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/ErrorResponse'
examples:
application/json: |-
{
"reasons": [
{
"code": "ObjectNotFound",
"message": "no event trigger found with the given id"
}
]
}
500:
description: Server Error
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/ErrorResponse'
examples:
application/json: |-
{
"reasons": [
{
"code": "SystemError",
"message": "internal server error"
}
]
}
delete:
description: ''
tags:
- Custom Event Triggers
operationId: DELETE_EventTrigger
summary: Delete an event trigger
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
required: true
type: string
format: uuid
responses:
204:
description: No Content
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.
'
404:
description: Not Found
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/ErrorResponse'
examples:
application/json: |-
{
"reasons": [
{
"code": "ObjectNotFound",
"message": "no event trigger found with the given id"
}
]
}
500:
description: Server Error
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/ErrorResponse'
examples:
application/json: |-
{
"reasons": [
{
"code": "SystemError",
"message": "internal server error"
}
]
}
/v1/custom-exchange-rates/{currency}:
get:
summary: List custom exchange rates by currency
operationId: GET_CustomExchangeRates
description: "This feature is in **Limited Availability**. If you wish to have\
\ access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\
\ \n\nThis reference describes how to query custom foreign exchange rates\
\ from Zuora. You can use this API method to query exchange rates only if\
\ you use a custom exchange rate provider and upload rates with the Import\
\ Foreign Exchange Rates mass action. \n"
tags:
- Custom Exchange Rates
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_HEADER_Zuora_Org_Ids'
- name: currency
in: path
description: "The target base currency of the tenant. The exchange rates in\
\ the response are calculated in relation to the target currency.\n\nThe\
\ value must be a three-letter currency code, for example, USD. \n"
required: true
type: string
- name: startDate
in: query
description: |
Start date of the date range for which you want to get exchange rates.
The date must be in yyyy-mm-dd format, for example, 2016-01-15. The start date cannot be later than the end date.
required: true
type: string
- name: endDate
in: query
description: |
End date of the date range for which you want to get exchange rates.
The date must be in yyyy-mm-dd format, for example, 2016-01-16. The end date can be a maximum of 90 days after the start date.
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
inverse: false
rates:
'2019-04-28':
providerExchangeRateDate: '2019-04-28'
GBP: 1.135239621
USD: 0.889028445
'2019-04-29':
providerExchangeRateDate: '2019-04-29'
GBP: 1.134623962
USD: 0.892140244
'2019-04-30':
providerExchangeRateDate: '2019-04-30'
GBP: 1.134589832
USD: 0.892243287
description: ''
schema:
$ref: '#/definitions/GETCustomExchangeRatesType'
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/custom-exchange-rates/EUR?startDate=2019-04-28&endDate=2019-04-30"
'
/objects/definitions/default:
get:
summary: List custom object definitions
description: 'Get all custom objects definitions for a given tenant. If you
want to copy all the existing custom objects from an old tenant to a new tenant,
you can call this operation in your old tenant and then use its response directly
as the request of the [Create custom object definitions](https://developer.zuora.com/api-references/api/operation/POST_CustomObjectDefinitions)
call in the new tenant to import all the custom objects from the old tenant.
'
operationId: GET_AllCustomObjectDefinitionsInNamespace
tags:
- Custom Object Definitions
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: select
description: 'If you set `select` to `type`, the response will only contain
the `type` of each custom object.
'
in: query
required: false
type: string
enum:
- type
responses:
'200':
description: OK
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/GETAllCustomObjectDefinitionsInNamespaceResponse'
post:
summary: Create custom object definitions
operationId: POST_CustomObjectDefinitions
description: "You can post custom object definitions with the request body schema\
\ described below. \n\nThis operation also allows you to use the [List custom\
\ object definitions](https://developer.zuora.com/api-references/api/operation/GET_AllCustomObjectDefinitionsInNamespace)\
\ response schema as its request schema. If you want to copy all the existing\
\ custom objects from an old tenant to a new tenant, you can make a [List\
\ custom object definitions](https://developer.zuora.com/api-references/api/operation/GET_AllCustomObjectDefinitionsInNamespace)\
\ call in your old tenant and then use its response directly as the request\
\ of this operation in the new tenant to import all the custom objects from\
\ the old tenant.\n\nThe `label` field is the UI label of the custom object.\
\ The `object` field contains the API Name of the custom object.\n\n### Limitations\
\ \n\nThis custom object definition has the following limitations:\n\n* The\
\ maximum number of characters for the Custom Object API Name (`object`) is\
\ 64.\n* The maximum number of characters for the Custom Object Label (`label`)\
\ is\t64.\n* The maximum number of characters for the Custom Object Description\
\ 250.\n* The maximum number of custom fields in an custom object\tis 50.\n\
* The maximum number of characters for the custom field API name is\t64.\n\
* The maximum number of characters for the custom field label (`label`) is\t\
64.\n* The maximum number of characters for the custom field Description\t\
is 250.\n* The maximum number of picklist or multiselect options is 250.\n\
* The default maximum number of characters for the Text field is 512. You\
\ can configure the max length up to 8,192 characters when creating or updating\
\ the custom object definition via API.\n However, if the Text field is filterable,\
\ the max length must be 512 or less.\n* The maximum number of digits to the\
\ left of the decimal point for the Number field is 13, and to the right is\
\ 9.\n"
tags:
- Custom Object Definitions
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: custom object definitions
in: body
required: true
description: The custom object definitions to be created
schema:
$ref: '#/definitions/PostCustomObjectDefinitionsRequest'
responses:
'200':
description: OK
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/GETAllCustomObjectDefinitionsInNamespaceResponse'
'400':
description: Bad request
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/CommonErrorResponse'
/objects/definitions/default/{object}:
get:
summary: Retrieve a custom object definition
description: 'Retrieves the custom object definition by type for the given tenant.
'
operationId: GET_CustomObjectDefinitionByType
tags:
- Custom Object Definitions
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: object
in: path
required: true
type: string
description: Specifies the custom object's API name as object. It is case-sensitive.
responses:
'200':
description: OK
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/CustomObjectDefinition'
'404':
description: Resource Request-URI not found.
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/CommonErrorResponse'
delete:
summary: Delete a custom object definition
description: |
Deletes the custom object definition for the provided type.
**Note:** A custom object definition can only be deleted if no record of this custom object type exists.
operationId: Delete_CustomObjectDefinitionByType
tags:
- Custom Object Definitions
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: object
in: path
required: true
type: string
description: Specifies the custom object's API name as object. It is case-sensitive.
responses:
'200':
description: OK
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: string
description: The URI of the deleted custom object definition
format: uri
example: /objects/definitions/default/test_custom_object
/objects/migrations:
post:
summary: Update a custom object definition
operationId: POST_UpdateCustomObjectDefinition
description: "Updates a custom object definition by posting migration resource\
\ to initiate the migration of definitions.\n\n### Limitations \n\nUpdating\
\ custom field definition has the following limitations:\n\n* You can only\
\ have one action per update request.\n* You cannot delete fields from custom\
\ objects that contain records.\n* You can only add required fields to custom\
\ objects with no records.\n* You can change optional fields to required only\
\ on the custom objects with no records. \n"
tags:
- Custom Object Definitions
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: migration
in: body
required: true
description: Migration resource for object and namespace changes.
schema:
$ref: '#/definitions/MigrationUpdateCustomObjectDefinitionsRequest'
responses:
'200':
description: OK
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/MigrationUpdateCustomObjectDefinitionsResponse'
/objects/records/default/{object}:
post:
summary: Create custom object records
operationId: POST_CustomObjectRecords
description: "Creates custom object records with the given type. \n\nUpon creating\
\ records of a custom object type, the 200 response contains a list of records\
\ that have been successfully processed and stored.\n\n\n### Limitations \n\
\nThis call has the following limitations:\n* The maximum number of records\
\ that you can create by one call is 1,000.\n* The storage of empty strings\
\ in records is not supported.\n* Null values must be formatted as the following\
\ example: \n ```\n {\n \"records\": [\n {\n \"fieldName__c\"\
: null\n }\n ]\n }\n ```\n"
tags:
- Custom Object Records
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: object
in: path
required: true
type: string
description: Specifies the custom object's API name as object. It is case-sensitive.
- name: custom objects records
in: body
required: true
schema:
$ref: '#/definitions/PostCustomObjectRecordsRequest'
responses:
'200':
description: |
OK
The 200 response indicates that the records have been partially or completely created.
* If the `allowPartialSuccess` flag is set to `false`, the 200 response indicates that all object records have been successfully created.
* If the `allowPartialSuccess` flag is set to `true`, the 200 response indicates that some records might not be succesffully created and the error information might be contained in the response body.
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/PostCustomObjectRecordsResponse'
'400':
description: Failed schema validation
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/CustomObjectRecordsErrorResponse'
'401':
description: Unauthorized
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/ErrorResponse401Record'
'500':
description: Internal error. Retry the returned records.
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/CustomObjectRecordsThrottledResponse'
get:
summary: List records for a custom object
description: |
Lists all object records of the given type. You can also use the `q` query parameter to filter the output records.
### Custom Objects read consistency
Custom Objects support eventually consistency. When you read custom object records, the response might not reflect the result of a recently completed operation and might include some stale data. The operations include creating, updating, and deleting custom object records. If you repeat your read request after a short time, the response should return the latest data.
For example, if you create five records and perform a query that these five records satisfy the query conditions, there might be a delay before these records can be returned in the query result.
operationId: GET_AllRecordsForCustomObjectType
tags:
- Custom Object Records
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: object
in: path
required: true
type: string
description: Specifies the custom object's API name as object. It is case-sensitive.
- name: q
description: |
The query string to filter the records of a custom object. See the [Query syntax of custom object records](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Data_Model/Custom_object_records/Query_syntax_of_custom_object_records) for more information.
Note that the `q` parameter only applies to filterable fields.
in: query
required: false
type: string
- name: ids
description: |
UUIDs of the records to be queried. Each UUID must be a string of 36 characters. For example:
`GET /objects/records/default/passenger?ids=258d65b2-7bc6-4142-88bc-5184931af493&ids=82ecc9f7-b192-4f88-a4a3-4b2af6c750a1`
in: query
required: false
type: string
- name: pageSize
minimum: 1
maximum: 1000
description: The number of records returned per page in the response.
in: query
required: false
type: integer
- name: cursor
description: The `cursor` points to the last record of the previous result
set. The cursor record is not included in the query result. The call returns
the first page if `cursor` is not provided and `pageSize` is valid.
in: query
required: false
type: string
responses:
'200':
description: OK
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/QueryCustomObjectRecordsResponse'
/objects/records/default/{object}/{id}:
get:
summary: Retrieve a custom object record
description: 'Retrieves a record of a given type by ID.
'
operationId: GET_CustomObjectRecordByID
tags:
- Custom Object Records
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: object
in: path
required: true
type: string
description: Specifies the custom object's API name as object. It is case-sensitive.
- name: id
in: path
required: true
type: string
minLength: 36
maxLength: 36
format: uuid
description: Id identifier in uuid form
responses:
'200':
description: OK
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/CustomObjectRecordWithAllFields'
'404':
description: Not exist
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/CommonErrorResponse'
put:
summary: Update a custom object record
description: "Updates a record of the given type and ID.\n\n### Limitations\
\ \n\n* The storage of empty strings in records is not supported.\n* Null\
\ values must be formatted as the following example: \n ```\n {\n \"\
records\": [\n {\n \"fieldName__c\": null\n }\n ]\n }\n\
\ ```\n"
operationId: PUT_CustomObjectRecord
tags:
- Custom Object Records
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_If_Match'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: object
in: path
required: true
type: string
description: Specifies the custom object's API name as object. It is case-sensitive.
- name: id
in: path
required: true
type: string
minLength: 36
maxLength: 36
format: uuid
description: Id identifier in uuid form
- name: objectRecordRequest
in: body
required: true
schema:
$ref: '#/definitions/CustomObjectRecordWithOnlyCustomFields'
responses:
'200':
description: OK
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/CustomObjectRecordWithAllFields'
'404':
description: Object record does not exist
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/CommonErrorResponse'
patch:
summary: Partially update a custom object record
consumes:
- application/merge-patch+json
operationId: Patch_PartialUpdateCustomObjectRecord
description: "Updates one or many fields of a custom object record. Patch update\
\ uses JSON Merge Patch as specified in [RFC 7386](https://tools.ietf.org/html/rfc7386).\n\
\n### Limitations \n\n* The storage of empty strings in records is not supported.\n\
* Null values must be formatted as the following example: \n ```\n {\n \
\ \"records\": [\n {\n \"fieldName__c\": null\n }\n \
\ ]\n }\n ```\n"
tags:
- Custom Object Records
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: object
in: path
required: true
type: string
description: Specifies the custom object's API name as object. It is case-sensitive.
- name: id
in: path
required: true
type: string
minLength: 36
maxLength: 36
format: uuid
description: Id identifier in uuid form
- name: objectRecordPatchRequest
in: body
required: true
schema:
$ref: '#/definitions/CustomObjectRecordWithOnlyCustomFields'
responses:
'200':
description: OK
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/CustomObjectRecordWithAllFields'
'404':
description: Object record does not exist
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/CommonErrorResponse'
delete:
summary: Delete a custom object record
description: "Deletes a custom object record of the given type and ID.\n\nNote\
\ that 200 response will be returned under either of the following conditions:\n\
* The record is identified and successfully deleted\n* The record could not\
\ be found\n\nNote that\_the record is deleted immediately and, therefore,\
\ will not be retained upon successful deletion.\n"
operationId: Delete_CustomObjectRecordByID
tags:
- Custom Object Records
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: object
in: path
required: true
type: string
description: Specifies the custom object's API name as object. It is case-sensitive.
- name: id
in: path
required: true
type: string
minLength: 36
maxLength: 36
format: uuid
description: Id identifier in uuid form
responses:
'200':
description: OK
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: string
description: The URI of the deleted custom object record.
format: uri
example: /objects/records/default/test_custom_object/3a437f0b-fa7a-45bf-a9a5-2187a5a13ec0
/objects/batch/default/{object}:
post:
summary: Update or delete custom object records
operationId: POST_CustomObjectRecordsBatchUpdateOrDelete
description: "Makes a batch update or delete of custom object records.\n###\
\ Limitations \n\nThis call has the following limitations:\n* The maximum\
\ number of records that you can update by one call is 1,000.\n* The maximum\
\ number of records that you can delete by one call is 1,000.\n* The storage\
\ of empty strings in records is not supported.\n* Null values must be formatted\
\ as the following example: \n ```\n {\n \"action\": {\n \"\
type\": \"update\",\n \"records\": {\n \"64edb2a5-2796-4e95-9559-846f8636a01b\"\
: {\n \"fieldName__c\": null\n }\n }\n\
\ }\n }\n ```\n"
tags:
- Custom Object Records
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: object
in: path
required: true
type: string
description: Specifies the custom object's API name as object. It is case-sensitive.
- name: CustomObjectRecordBatchRequest
in: body
required: true
schema:
$ref: '#/definitions/CustomObjectRecordBatchRequest'
responses:
'200':
description: |
OK
For the bacth `delete` action, it indicates the batch records have been successfully deleted.
For the batch `update` action, it indicates that the batch records have been partially or completely updated.
* If the `allowPartialSuccess` flag is set to `false`, the 200 response indicates that all object records have been successfully updated.
* If the `allowPartialSuccess` flag is set to `true`, the 200 response indicates that some records might not be succesffully updated and the error information might be contained in the response body.
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/CustomObjectRecordsBatchUpdatePartialSuccessResponse'
'400':
description: |
Failed schema validation
For the batch `update` action, the 400 response only returns when the `allowPartialSuccess` flag is set to `false` and the batch records have failed schema validation.
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/CustomObjectRecordsErrorResponse'
'401':
description: Unauthorized
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/ErrorResponse401Record'
'500':
description: Internal error. Retry the returned records.
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/CustomObjectRecordsThrottledResponse'
/objects/jobs:
post:
summary: Submit a custom object bulk job
description: "Submits a bulk job request for a bulk operation on the specified\
\ custom object records. A succcessful call returns a newly created bulk job.\
\ The job ID can be used to poll the job status or upload the CSV file if\
\ it is a `create` or `update` job.\n\n### Limits\nThis custom object bulk\
\ jobs have the following limits:\n* The concurrent bulk job limit per tenant\
\ is 5. Bulk jobs in `accepted`, `pending`, or `in_progress` status are counted\
\ towards the concurrent bulk job limit.\n* The bulk job execuation order\
\ is not guaranteed, which means the bulk job that you submit ealier may be\
\ executed later. \n* Only the users that have the \"Delete Custom Objects\"\
\ permission can create a `delete` bulk job. Only the users that have the\
\ \"Edit Custom Objects\" permission can create a `create` or `update` bulk\
\ job. See [Platform Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/h_Platform_Roles#Platform_Permissions)\
\ for more information.\n"
operationId: POST_CustomObjectBulkJob
tags:
- Custom Object Jobs
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: CustomObjectBulkJobRequest
in: body
description: Custom Objects bulk job request
required: true
schema:
$ref: '#/definitions/CustomObjectBulkJobRequest'
responses:
'200':
description: OK
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/CustomObjectBulkJobResponse'
'400':
description: Invalid input
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/CommonErrorResponse'
examples:
application/json:
code: 71013020
message: Bad Request
'403':
description: Unauthorized
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.
'
schema:
$ref: '#/definitions/CommonErrorResponse'
examples:
application/json:
code: 71012514
message: User does not have permission to delete custom objects.
get:
summary: List all custom object bulk jobs
description: 'Lists all custom object bulk jobs submitted by your tenant.
'
operationId: GET_AllCustomObjectBulkJobs
tags:
- Custom Object Jobs
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: pageSize
maximum: 100
default: 25
description: The number of records returned per page in the response.
in: query
required: false
type: integer
- name: cursor
description: The `cursor` points to the last job of the previous result set.
The cursor job is not included in this query result. The call returns the
first page if `cursor` is not provided and `pageSize` is valid.
in: query
required: false
type: string
- name: status
description: The status of bulk jobs to be retrieved.
in: query
required: false
type: string
enum:
- pending
- accepted
- in_progress
- completed
- failed
- cancelled
responses:
'200':
description: OK
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.
'
schema:
$ref: '#/definitions/CustomObjectBulkJobResponseCollection'
x-code-samples:
- lang: curl
label: Curl
source: 'curl -X GET -H "Authorization: Bearer e5cb941a9b1f47838b4085b4d5e00415"
-H "Content-Type: application/json" "https://rest.zuora.com/objects/jobs?pageSize=2&cursor=a9e9a58d-0a11-4685-b1ab-99521dbc20a1"
'
/objects/jobs/{id}:
get:
summary: Retrieve a custom object bulk job
description: |
Retrieves the custom object bulk job details by job ID.
Only the users that have the "View Custom Objects" permission can retrieve custom object bulk jobs. See [Platform Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/h_Platform_Roles#Platform_Permissions) for more information.
operationId: GET_CustomObjectBulkJob
tags:
- Custom Object Jobs
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: id
in: path
description: The ID of the custom object bulk job to be retrieved.
required: true
type: string
format: uuid
responses:
'200':
description: OK
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.
'
schema:
$ref: '#/definitions/CustomObjectBulkJobResponse'
'404':
description: Bulk job not found
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.
'
schema:
$ref: '#/definitions/CommonErrorResponse'
examples:
application/json:
code: 71013040
message: Not Found.
/objects/jobs/{id}/files:
post:
summary: Upload a file for a custom object bulk job
description: |
Uploads a `.csv` file for a custom object bulk job to create or update custom object records. The job must be in `pending` status. Only one file is allowed per job. Each file supports only one type of operation, with an `id` column required for update operations. The job will start once the upload is finished.
Only the users that have the "Edit Custom Objects" permission can upload files to custom object bulk jobs. See [Platform Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/h_Platform_Roles#Platform_Permissions) for more information.
operationId: POST_UploadFileForCustomObjectBulkJob
tags:
- Custom Object Jobs
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: Content-Type
in: header
required: true
type: string
description: The `Content-Type` of the request must be `text/csv`.
- name: id
in: path
description: The ID of the custom object bulk job that the file is uploaded
to.
required: true
type: string
format: uuid
- name: file
in: body
required: true
schema:
type: string
description: The CSV file to be uploaded. The file must be encoded in UTF-8
and the file size limit is 15 MB.
consumes:
- text/csv
responses:
'200':
description: OK
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.
'
schema:
$ref: '#/definitions/CustomObjectBulkJobResponse'
examples:
application/json:
Id: 5112347a-f7a1-4373-99df-c082984de7be
CreatedById: 2c92c0f96a07409d016a0a58ab1172ec
UpdatedById: 2c92c0f96a07409d016a0a58ab1172ec
CreatedDate: '2021-03-10T00:05:54.207Z'
UpdatedDate: '2021-03-10T00:08:15.539Z'
operation: create
namespace: default
object: vehicle
status: in_progress
processingTime: 0
recordsProcessed: 0
'400':
description: Bad request
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.
'
schema:
$ref: '#/definitions/CommonErrorResponse'
examples:
application/json:
code: 71013620
message: Bad Request
'404':
description: Job not found
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.
'
schema:
$ref: '#/definitions/CommonErrorResponse'
examples:
application/json:
code: 71013040
message: Not Found.
'403':
description: Unauthorized
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.
'
schema:
$ref: '#/definitions/CommonErrorResponse'
examples:
application/json:
code: 71012515
message: User does not have permission to create custom objects.
x-code-samples:
- lang: curl
label: Curl
source: 'curl -X POST -H "Authorization: Bearer e5cb941a9b1f47838b4085b4d5e00415"
-H "Content-Type: text/csv" --data-binary "@CustomObjectRecords.csv" "https://rest.zuora.com/objects/jobs/5112347a-f7a1-4373-99df-c082984de7be/files"
'
/objects/jobs/{id}/errors:
get:
summary: List all errors for a custom object bulk job
description: 'Lists all errors for a custom object bulk job.
'
operationId: GET_CustomObjectBulkJobErrors
tags:
- Custom Object Jobs
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: id
in: path
description: The ID of the custom object bulk job that you retrieve errors
for.
required: true
type: string
format: uuid
responses:
'200':
description: OK
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.
'
schema:
$ref: '#/definitions/CustomObjectBulkJobErrorResponseCollection'
'404':
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: Job not found
schema:
$ref: '#/definitions/CommonErrorResponse'
examples:
application/json:
code: 71013040
message: Not Found.
/objects/jobs/{id}/cancel:
patch:
summary: Cancel a custom object bulk job
description: 'Cancel a custom object bulk job. Note that you can cancel a custom
object bulk job only if the job status is `accepted` or `pending`.
'
operationId: PATCH_CustomObjectBulkJob
tags:
- Custom Object Jobs
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: Zuora-Version
in: header
required: false
type: string
format: date
description: API version that determines the response schema. The default
version is used if this parameter is not included. Specify `Zuora-Version`
in the request header if you expect a specific response schema.
- name: id
in: path
description: The ID of the custom object bulk job that you want to cancel.
required: true
type: string
format: uuid
responses:
'200':
description: OK
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.
'
schema:
$ref: '#/definitions/CustomObjectBulkJobResponse'
examples:
application/json:
Id: 7f19b861-5ec7-479b-935c-fcfbd6477655
CreatedById: 11e64eef-ada8-786d-9658-00259058c29c
UpdatedById: 0fdfc048-0a9e-433f-ad23-d50e31448b2e
CreatedDate: '2022-12-01T21:24:04.337Z'
UpdatedDate: '2022-12-01T21:37:43.212Z'
operation: create
namespace: default
object: jobtest
status: cancelled
processingTime: 0
recordsProcessed: 0
'400':
description: Bad request
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.
'
schema:
$ref: '#/definitions/CommonErrorResponse'
examples:
application/json:
code: 71013620
message: Bad Request
'404':
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: Job not found
schema:
$ref: '#/definitions/CommonErrorResponse'
examples:
application/json:
code: 71013040
message: Job not found for id '7006ce52-91c9-11ed-a1eb-0242ac120002'.
/events/scheduled-events:
post:
tags:
- Custom Scheduled Events
summary: Create a scheduled event
operationId: POST_ScheduledEvent
description: 'To create a custom scheduled event, you must specify the base
object, the base field and the scheduled time.
'
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: postScheduledEventRequest
in: body
required: true
schema:
$ref: '#/definitions/PostScheduledEventRequest'
responses:
200:
description: OK
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/GetScheduledEventResponse'
400:
description: Bad Request
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/ErrorResponse'
examples:
application/json:
reasons:
- code: FieldConstraintViolation
message: name should follow ^[A-Za-z]{1,}[\w\-]*$
500:
description: Server Error
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/ErrorResponse'
examples:
application/json:
reasons:
- code: SystemError
message: internal server error
get:
tags:
- Custom Scheduled Events
summary: List all scheduled events
operationId: GET_ScheduledEvents
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: eventTypeName
in: query
description: 'The name of the scheduled event. Should be specified in the
pattern: ^[A-Za-z]{1,}[\\w\\-]*$'
required: false
type: string
- name: apiObject
in: query
description: 'The base object that the scheduled event is defined upon. Should
be specified in the pattern: ^[A-Z][\\w\\-]*$'
required: false
type: string
- name: apiField
in: query
description: 'The base field of the base object in the `apiObject` field.
Should be specified in the pattern: ^[A-Z][\\w\\-]*$'
required: false
type: string
- name: active
in: query
description: Indicate whether the scheduled event is active or inactive.
required: false
type: boolean
- name: start
in: query
description: The first index of the query result. Default to 0 if absent,
and the minimum is 0.
required: false
type: integer
default: 0
minimum: 0
- name: limit
in: query
description: The maximum number of data records to be returned. Default to
10 if absent.
required: false
type: integer
default: 10
minimum: 1
responses:
200:
description: OK
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: object
properties:
data:
type: array
items:
$ref: '#/definitions/GetScheduledEventResponse'
next:
type: string
description: The link to the next page. No value if it is last page.
example: /events/scheduled-events?start=10&limit=10
400:
description: Bad Request
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/ErrorResponse'
500:
description: Server Error
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/ErrorResponse'
examples:
application/json:
reasons:
- code: SystemError
message: internal server error
/events/scheduled-events/{id}:
get:
tags:
- Custom Scheduled Events
summary: Retrieve a scheduled event by ID
operationId: GET_ScheduledEventByID
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
description: The ID of the scheduled event.
required: true
type: string
responses:
200:
description: OK
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/GetScheduledEventResponse'
404:
description: Not Found
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/ErrorResponse'
examples:
application/json:
reasons:
- code: ResourceNotFound
message: no resource found with the given identifier event-type by
tenant id:10315 and id:59b8b0bfb3b94ce6a8fb96aed64d73c5
500:
description: Server Error
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/ErrorResponse'
examples:
application/json:
reasons:
- code: SystemError
message: internal server error
put:
tags:
- Custom Scheduled Events
summary: Update a scheduled event by ID
operationId: UPDATE_ScheduledEventByID
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
description: The ID of the scheduled event.
required: true
type: string
- name: putScheduledEventRequest
in: body
required: true
schema:
$ref: '#/definitions/PutScheduledEventRequest'
responses:
200:
description: OK
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/GetScheduledEventResponse'
400:
description: Bad Request
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/ErrorResponse'
examples:
application/json:
reasons:
- code: FieldConstraintViolation
message: name should follow ^[A-Za-z]{1,}[\w\-]*$
500:
description: Server Error
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/ErrorResponse'
examples:
application/json:
reasons:
- code: SystemError
message: internal server error
delete:
tags:
- Custom Scheduled Events
summary: Delete a scheduled event by ID
operationId: DELETE_ScheduledEventByID
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
description: The ID of the scheduled event.
required: true
type: string
responses:
204:
description: No Content
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.
'
404:
description: Not Found
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/ErrorResponse'
examples:
application/json:
reasons:
- code: ResourceNotFound
message: no resource found with the given identifier event-type by
tenant id:10315 and id:59b8b0bfb3b94ce6a8fb96aed64d73c5
500:
description: Server Error
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/ErrorResponse'
examples:
application/json:
reasons:
- code: SystemError
message: internal server error
/v1/multi-organizations/data-labeling-job:
post:
operationId: POST_DataLabelingJob
summary: Submit a data labeling job
description: 'Submits a data labeling job.
'
tags:
- Data Labeling
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: body
in: body
required: true
description: ''
schema:
$ref: '#/definitions/SubmitDataLabelingJobRequest'
responses:
'200':
description: OK
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/SubmitDataLabelingJobResponse'
examples:
application/json:
success: true
jobId: ff80808186beca0a0186bedbf7d3006f
jobStatus: Accepted
'400':
description: Bad Request
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/CommonErrorResponse'
examples:
application/json:
success: false
processId: 4C0112A0983D040C
reasons:
- code: 59620220
message: The queryType is invalid
requestId: 46a352ed-57a2-4a9f-b7cb-a8c864d839f3
/v1/multi-organizations/data-labeling-job/{job-id}:
get:
operationId: GET_DataLabelingJob
summary: Retrieve a data labeling job
description: 'Retrieves a data labeling job. You can use this operation to track
the status of the data labeling job.
'
tags:
- Data Labeling
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: job-id
in: path
required: true
type: string
format: uuid
minLength: 32
maxLength: 32
description: 'Identifier of the data labeling job.
'
responses:
'200':
description: OK
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/GetDataLabelingJobResponse'
examples:
application/json:
success: true
jobId: ff80808186b966950186b97922e200ab
objectType: Account
totalObject: 11
jobStatus: Completed
progress:
labeled: 9
failed: 1
timeout: 1
'404':
description: Not Found
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/CommonErrorResponse'
examples:
application/json:
success: false
processId: 4C0112A0983D039B
reasons:
- code: 50000020
message: The job does not exist
requestId: 46a352ed-57a2-4a9f-b7cb-a8c864d839f3
/query/jobs:
post:
operationId: POST_DataQueryJob
summary: Submit a data query
description: 'Submits a [data query](https://knowledgecenter.zuora.com/DC_Developers/BA_Data_Query)
to be performed by Zuora and creates a query job. You can use [Retrieve a
data query job](#operation/GET_DataQueryJob) to track the status of the query
job and obtain the URL of the query results.
'
tags:
- Data Queries
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: body
in: body
required: true
description: ''
schema:
$ref: '#/definitions/SubmitDataQueryRequest'
responses:
'200':
description: OK
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/SubmitDataQueryResponse'
examples:
application/json:
data:
id: 3a3e85c4-96e7-486b-ae02-827120104301
query: SELECT accountnumber, balance FROM Account WHERE Account.balance
> 100
useIndexJoin: false
sourceData: LIVE
queryStatus: accepted
remainingRetries: 3
updatedOn: '2018-08-17T13:14:18.204Z'
createdBy: 514f3ea1-6716-4f44-b6e0-9a8f0cf44bd2
'400':
description: Bad Request
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/DataQueryErrorResponse'
examples:
application/json:
code: 400
message: Unable to process JSON
get:
operationId: GET_DataQueryJobs
summary: List data query jobs
description: |
Returns a list of [data query](https://knowledgecenter.zuora.com/DC_Developers/BA_Data_Query) jobs that have been created in your Zuora tenant. You can filter the list by status.
If you are an administrator, you can retrieve all the query jobs in your tenant. Otherwise, you can only retrieve your own query jobs.
tags:
- Data Queries
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: queryStatus
in: query
required: false
type: string
enum:
- accepted
- in_progress
- completed
- failed
- cancelled
description: 'Filters the list of query jobs by status.
'
- name: pageSize
in: query
required: false
type: integer
maximum: 100
default: 20
description: 'The number of records returned per page in the response.
'
responses:
'200':
description: OK
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/GetDataQueryJobsResponse'
examples:
application/json:
data:
- id: bf3b5640-ddd1-4b4f-9a81-906ec2b84a89
query: SELECT s.id FROM Subscription s JOIN RatePlan rp ON s.id =
rp.subscriptionid WHERE rp.name = 'Premium Monthly'
useIndexJoin: false
sourceData: LIVE
queryStatus: in_progress
remainingRetries: 3
updatedOn: '2018-08-17T13:14:38.855Z'
createdBy: 514f3ea1-6716-4f44-b6e0-9a8f0cf44bd2
- id: 3a3e85c4-96e7-486b-ae02-827120104301
query: SELECT accountnumber, balance FROM Account WHERE Account.balance
> 100
useIndexJoin: false
sourceData: LIVE
queryStatus: completed
dataFile: https://example.s3.us-west-2.amazonaws.com/3a3e85c4-96e7-486b-ae02-827120104301_24921638725108715.json?X-Amz-Security-Token=...
outputRows: 24516
processingTime: 9212
remainingRetries: 3
updatedOn: '2018-08-17T13:14:19.17Z'
createdBy: 514f3ea1-6716-4f44-b6e0-9a8f0cf44bd2
/query/jobs/{job-id}:
get:
operationId: GET_DataQueryJob
summary: Retrieve a data query job
description: "Retrieves a [data query](https://knowledgecenter.zuora.com/DC_Developers/BA_Data_Query)\
\ job. You can use this operation to track the status of the query job and\
\ obtain the URL of the query results.\n\nIf you are an administrator, you\
\ can retrieve every query job in your tenant. \n\nIf you are a non-admin\
\ user and try to retrieve a query job that you are not the owner of, you\
\ will get a 403 response indicating that you are forbidden from viewing this\
\ job. As a non-admin user, you can only retrieve your own query job.\n"
tags:
- Data Queries
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: job-id
in: path
required: true
type: string
format: uuid
minLength: 36
maxLength: 36
description: 'Internal identifier of the query job.
'
responses:
'200':
description: OK
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/GetDataQueryJobResponse'
examples:
application/json:
data:
id: 3a3e85c4-96e7-486b-ae02-827120104301
query: SELECT accountnumber, balance FROM Account WHERE Account.balance
> 100
useIndexJoin: false
sourceData: LIVE
queryStatus: completed
dataFile: https://example.s3.us-west-2.amazonaws.com/3a3e85c4-96e7-486b-ae02-827120104301_24921638725108715.json?X-Amz-Security-Token=...
outputRows: 24516
processingTime: 9212
remainingRetries: 3
updatedOn: '2018-08-17T13:14:19.17Z'
createdBy: 514f3ea1-6716-4f44-b6e0-9a8f0cf44bd2
'403':
description: Forbidden
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/DataQueryErrorResponse'
examples:
application/json:
code: 1009
message: Access denied for restricted job ea50af05-6163-47e1-bf9b-c8e10648d8a3
'404':
description: Not Found
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/DataQueryErrorResponse'
examples:
application/json:
code: 1001
message: 'No such query: 1e8e8586-5366-4cdf-a01d-fae3b2cf8427'
delete:
operationId: DELETE_DataQueryJob
summary: Cancel a data query job
description: 'Cancels a [data query](https://knowledgecenter.zuora.com/DC_Developers/BA_Data_Query)
job, which prevents Zuora from performing the query. This operation is only
applicable if the status of the query job is `accepted` or `in_progress`.
'
tags:
- Data Queries
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: job-id
in: path
required: true
type: string
format: uuid
minLength: 64
maxLength: 64
description: 'Internal identifier of the query job.
'
responses:
'200':
description: OK
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/DeleteDataQueryJobResponse'
examples:
application/json:
data:
id: 3a3e85c4-96e7-486b-ae02-827120104301
query: SELECT accountnumber, balance FROM Account WHERE Account.balance
> 100
useIndexJoin: false
sourceData: LIVE
queryStatus: cancelled
remainingRetries: 3
updatedOn: '2018-08-17T13:22:16.965Z'
createdBy: 514f3ea1-6716-4f44-b6e0-9a8f0cf44bd2
'400':
description: Bad Request
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/DataQueryErrorResponse'
examples:
application/json:
code: 1003
message: Query job c20a8ff4-3960-4c85-b067-d5259035f523 is not in accepted
or in_progress status
/v1/debitmemos:
post:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nCreates an ad-hoc debit memo from a product rate\
\ plan charge. Zuora supports the creation of debit memos from any type of\
\ product rate plan charge. The charges can also have any amount and any charge\
\ model, except for discout charge models.\n\nWhen debit memos are created\
\ from product rate plan charges, the specified amount with decimal places\
\ is now validated based on the decimal places supported by each currency.\n\
\nYou can create a debit memo only if you have the user permission. See [Billing\
\ Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n"
summary: Create a debit memo from a charge
operationId: POST_DebitMemoFromPrpc
tags:
- Debit Memos
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: 4028ab1f87121698018712e8ed250a5b
number: DM00000001
accountId: 4028ab1f87121698018712e8e8fe0a4a
accountNumber: AN_1679649466484
debitMemoDate: '2023-03-24'
currency: USD
targetDate: null
dueDate: '2023-04-23'
postedOn: null
postedById: null
status: Draft
amount: 100.0
taxAmount: 0.0
totalTaxExemptAmount: 0.0
balance: 100.0
beAppliedAmount: 0.0
autoPay: true
comment: test
referredInvoiceId: null
transferredToAccounting: 'No'
reasonCode: Correcting invoice error
createdDate: '2023-03-24 14:47:47'
createdById: ee47f07f310c4bbeb436bb9ec0e0e627
updatedDate: '2023-03-24 14:47:47'
updatedById: ee47f07f310c4bbeb436bb9ec0e0e627
cancelledOn: null
cancelledById: null
referredCreditMemoId: null
latestPDFFileId: null
taxStatus: Complete
sourceType: Standalone
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
paymentTerm: null
sequenceSetId: null
success: true
schema:
$ref: '#/definitions/GETDebitMemoType'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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* `charges` > `amount`\n\
* `charges` > `memoItemAmount`\n* `charges` > `chargeId`\n* `charges` >\
\ `productRatePlanChargeId` \n* `charges` > `comment`\n* `charges`\
\ > `description`\n* `customRates` > `currency`\n* `customRates` > `customFxRate`\
\ \n* `customRates` > `rateDate`\n"
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/DebitMemoFromChargeType'
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n\nUpdates the due date for multiple debit memos in\
\ one single request. \n\nThis API operation will be deprecated. You can use\
\ the [Update debit memos](https://developer.zuora.com/api-references/api/operation/PUT_BulkUpdateDebitMemos)\
\ instead, which provides more flexible functionality.\n"
summary: Update due dates for debit memos
operationId: PUT_UpdateDebitMemosDueDates
tags:
- Debit Memos
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_HEADER_Zuora_Org_Ids'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTBatchDebitMemosRequest'
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'
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n\nRetrieves the information about all debit memos\
\ associated with all customer accounts.\n\n### Filtering\n\nYou can use query\
\ parameters to restrict the data returned in the response. Each query parameter\
\ corresponds to one field in the response body.\n\nIf the value of a filterable\
\ field is string, you can set the corresponding query parameter to `null`\
\ when filtering. Then, you can get the response data with this field value\
\ being `null`. \n\nExamples:\n\n- /v1/debitmemos?status=Posted\n\n- /v1/debitmemos?referredInvoiceId=null&status=Draft\n\
\n- /v1/debitmemos?status=Posted&type=External&sort=+number\n"
summary: List debit memos
operationId: GET_DebitMemos
tags:
- Debit Memos
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:
debitmemos:
- id: 402890555a87d7f5015a892f2ba10057
number: DM00000006
accountId: 402890555a7e9791015a7f15fe44001c
accountNumber: AN_1679649466484
debitMemoDate: '2017-10-17'
targetDate: null
dueDate: '2017-11-16'
postedOn: null
postedById: null
status: Draft
sourceType: Standalone
amount: 50
taxAmount: 0
totalTaxExemptAmount: 0
balance: 50
beAppliedAmount: 0
autoPay: true
comment: the comment
referredInvoiceId: null
transferredToAccounting: 'No'
reasonCode: Correcting invoice error
createdDate: '2017-03-01 17:24:14'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 17:24:14'
updatedById: 402881e522cf4f9b0122cf5d82860002
cancelledOn: null
cancelledById: null
latestPDFFileId: 402890555a87d7f5015a892f2c5c0060
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
paymentTerm: null
sequenceSetId: null
- id: 402890555a87d7f5015a89251edc0045
number: DM00000003
accountId: 402890555a7d4022015a7dabf5f60088
accountNumber: AN_1679649466488
debitMemoDate: '2017-11-30'
targetDate: null
dueDate: '2017-12-30'
postedOn: null
postedById: null
status: Draft
sourceType: Standalone
amount: 0.01
taxAmount: 0.01
totalTaxExemptAmount: 0
balance: 0.01
beAppliedAmount: 0
autoPay: true
comment: the comment
referredInvoiceId: 402890555a7d4022015a7dadb3b300a4
transferredToAccounting: 'No'
reasonCode: Charge Dispute
createdDate: '2017-03-01 17:13:15'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 17:13:15'
updatedById: 402881e522cf4f9b0122cf5d82860002
cancelledOn: null
cancelledById: null
latestPDFFileId: null
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
paymentTerm: null
sequenceSetId: null
- id: 402890555a87d7f5015a8919e4fe002e
number: DM00000002
accountId: 402890555a7d4022015a7dabf5f60088
accountNumber: AN_1679649466488
debitMemoDate: '2017-03-01'
targetDate: null
dueDate: '2017-03-31'
postedOn: null
postedById: null
status: Draft
sourceType: Standalone
amount: 9
taxAmount: 8
totalTaxExemptAmount: 0
balance: 9
beAppliedAmount: 0
autoPay: true
comment: ''
referredInvoiceId: 402890555a7d4022015a7dadb3b300a4
referredCreditMemoId: null
transferredToAccounting: 'No'
reasonCode: Correcting invoice error
createdDate: '2017-03-01 17:01:00'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 17:01:00'
updatedById: 402881e522cf4f9b0122cf5d82860002
cancelledOn: null
cancelledById: null
latestPDFFileId: 402890555a87d7f5015a8919e95d003a
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
paymentTerm: null
sequenceSetId: null
- id: 402890555a7e9791015a87b082940067
number: DM00000001
accountId: 402890555a7e9791015a7f15fe44001c
accountNumber: AN_1679649466684
debitMemoDate: '2017-03-01'
targetDate: null
dueDate: '2017-03-31'
postedOn: null
postedById: null
status: Draft
sourceType: Standalone
amount: 8.02
taxAmount: 0.02
totalTaxExemptAmount: 0
balance: 8.02
beAppliedAmount: 0
autoPay: true
comment: ''
referredInvoiceId: 402890555a7e9791015a7f1756aa0035
referredCreditMemoId: null
transferredToAccounting: 'No'
reasonCode: Correcting invoice error
createdDate: '2017-03-01 10:26:16'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 10:45:03'
updatedById: 402881e522cf4f9b0122cf5d82860002
cancelledOn: null
cancelledById: null
latestPDFFileId: 402890555a7e9791015a87b083f00072
taxStatus: null
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
paymentTerm: null
sequenceSetId: null
success: true
schema:
$ref: '#/definitions/GETDebitMemoCollectionType'
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: accountId
in: query
type: string
required: false
description: 'This parameter filters the response based on the `accountId`
field.
'
- name: accountNumber
in: query
type: string
required: false
description: 'This parameter filters the response based on the `accountNumber`
field.
'
- name: amount
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `amount` field.
'
- name: balance
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `balance` field.
'
- name: beAppliedAmount
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `beAppliedAmount`
field.
'
- name: createdById
in: query
type: string
required: false
description: 'This parameter filters the response based on the `createdById`
field.
'
- name: createdDate
in: query
type: string
format: date-time
required: false
description: 'This parameter filters the response based on the `createdDate`
field.
'
- name: currency
in: query
type: string
required: false
description: 'This parameter filters the response based on the `currency`
field.
'
- name: debitMemoDate
in: query
type: string
format: date
required: false
description: 'This parameter filters the response based on the `debitMemoDate`
field.
'
- name: dueDate
in: query
type: string
format: date
required: false
description: 'This parameter filters the response based on the `dueDate` field.
'
- name: number
in: query
type: string
required: false
description: 'This parameter filters the response based on the `number` field.
'
- name: referredInvoiceId
in: query
type: string
required: false
description: 'This parameter filters the response based on the `referredInvoiceId`
field.
'
- name: status
in: query
type: string
enum:
- Draft
- Posted
- Canceled
- Error
- PendingForTax
- Generating
- CancelInProgress
required: false
description: 'This parameter filters the response based on the `status` field.
'
- name: targetDate
in: query
type: string
format: date
required: false
description: 'This parameter filters the response based on the `targetDate`
field.
'
- name: taxAmount
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `taxAmount`
field.
'
- name: totalTaxExemptAmount
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `totalTaxExemptAmount`
field.
'
- name: updatedById
in: query
type: string
required: false
description: 'This parameter filters the response based on the `updatedById`
field.
'
- name: updatedDate
in: query
type: string
format: date-time
required: false
description: 'This parameter filters the response based on the `updatedDate`
field.
'
- 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\nA sortable field uses the following form: \n\n*operator* *field_name*\n\
\nYou can use at most two sortable fields in one URL path. Use a comma to\
\ separate sortable fields. For example: *operator* *field_name*, *operator*\
\ *field_name* \n\n*operator* is used to mark the order of sequencing.\
\ The operator is optional. If you only specify the sortable field without\
\ any operator, the response data is sorted in descending order by this\
\ field.\n\n - The `-` operator indicates an ascending order.\n - The\
\ `+` operator indicates a descending order.\n\nBy default, the response\
\ data is displayed in descending order by debit memo number.\n\n*field_name*\
\ indicates the name of a sortable field. The supported sortable fields\
\ of this operation are as below:\n\n - number\n - accountId\n - debitMemoDate\n\
\ - targetDate\n - dueDate\n - amount\n - taxAmount\n - totalTaxExemptAmount\n\
\ - balance\n - beAppliedAmount\n - referredInvoiceId\n - createdDate\n\
\ - createdById\n - updatedDate\n - updatedById\n \nExamples:\n\n- /v1/debitmemos?sort=+number\n\
\n- /v1/debitmemos?status=Processed&sort=-number,+amount\n"
/v1/debitmemos/bulk:
post:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n\nCreates multiple debit memos from invoices or product\
\ rate plan charges. You can create a maximum of 50 debit memos in one single\
\ request. \n\n- If you set the `sourceType` request field to `Invoice`, you\
\ can create multiple debit memos from invoices.\n- If you set the `sourceType`\
\ request field to `Standalone`, you can create multiple debit memos from\
\ product rate plan charges.\n\nThe debit memos that are created are each\
\ in separate database transactions. If the creation of one debit memo fails,\
\ other debit memos can still be created successfully.\n\nYou can create \
\ debit memos only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n"
summary: Create debit memos
operationId: POST_CreateDebitMemos
tags:
- Debit Memos
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
memos:
- id: 4028ab1f87121698018712ff1b0633e2
number: DM00000001
accountId: 4028ab1f87121698018712fef63e33cb
accountNumber: AN_Test11679650911374
debitMemoDate: '2023-03-24'
currency: USD
targetDate: null
dueDate: '2023-03-24'
postedOn: null
postedById: null
status: Draft
amount: 100.0
taxAmount: 0.0
totalTaxExemptAmount: 0.0
balance: 100.0
beAppliedAmount: 0.0
autoPay: true
comment: This is a comment
referredInvoiceId: null
transferredToAccounting: 'No'
reasonCode: Correcting invoice error
createdDate: '2023-03-24 15:12:01'
createdById: 3e2bcd869cea43eeb00d7a20cc1cb72b
updatedDate: '2023-03-24 15:12:01'
updatedById: 3e2bcd869cea43eeb00d7a20cc1cb72b
cancelledOn: null
cancelledById: null
referredCreditMemoId: null
latestPDFFileId: null
taxStatus: Complete
sourceType: Standalone
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
paymentTerm: null
sequenceSetId: null
organizationLabel: MS US
success: true
- success: false
processId: 0356073CB721291A
reasons:
- code: 50000040
message: Cannot find a Invoice instance with id test.
objectIndex: 1
schema:
$ref: '#/definitions/BulkDebitMemosResponseType'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: |2
The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) for information about REST API version control.
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTBulkDebitMemosRequestType'
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n\nUpdates the basic and finance information about\
\ multiple debit memos. You can update a maximum of 50 credit memos in one\
\ single request.\n \nThe credit memos that are updated are each in separate\
\ database transactions. If the update of one debit memo fails, other debit\
\ memos can still be updated successfully.\n\nCurrently, Zuora supports updating\
\ tax-exclusive memo items, but does not support updating tax-inclusive memo\
\ items.\n\nIf the amount of a memo item is updated, the tax will be recalculated\
\ in the following conditions:\n - The memo is created from a product rate\
\ plan charge and you use Avalara to calculate the tax.\n - The memo is created\
\ from an invoice and you use Avalara or Zuora Tax to calculate the tax.\n\
\nYou can update debit memos only if you have the user permission. See [Billing\
\ Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n"
summary: Update debit memos
operationId: PUT_UpdateDebitMemos
tags:
- Debit Memos
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
memos:
- id: 4028ab1f8712169801872685a5f46605
number: DM00000001
accountId: 4028ab1f87121698018726851cc765ee
accountNumber: AN_Test11679978470016
debitMemoDate: '2023-03-27'
currency: USD
targetDate: null
dueDate: '2023-03-27'
postedOn: null
postedById: null
status: Draft
amount: 100.0
taxAmount: 0.0
totalTaxExemptAmount: 0.0
balance: 100.0
beAppliedAmount: 0.0
autoPay: true
comment: new comment123
referredInvoiceId: null
transferredToAccounting: 'No'
reasonCode: Correcting invoice error
createdDate: '2023-03-28 10:11:45'
createdById: aff81dbb5dd846868685592640363b5b
updatedDate: '2023-03-28 10:12:37'
updatedById: aff81dbb5dd846868685592640363b5b
cancelledOn: null
cancelledById: null
referredCreditMemoId: null
latestPDFFileId: null
taxStatus: Complete
sourceType: Standalone
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
paymentTerm: null
sequenceSetId: null
organizationLabel: MS US
success: true
- id: 2c98907562482a8301624b9c0a1a0056
processId: string
reasons:
- code: string
message: string
objectIndex: 1
success: false
schema:
$ref: '#/definitions/BulkDebitMemosResponseType'
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_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: |2
The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) for information about REST API version control.
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTBulkDebitMemosRequestType'
/v1/invoices/{invoiceKey}/debitmemos:
post:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nCreates an ad-hoc debit memo from an invoice.\n\
\nYou can create a debit memo from an invoice only if you have the user permission.\
\ See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n"
summary: Create a debit memo from an invoice
operationId: POST_DebitMemoFromInvoice
tags:
- Debit Memos
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: 4028ab1f87121698018712fc005a2ba7
number: DM00000001
accountId: 4028ab1f87121698018712fb22312b70
accountNumber: AN_Test11679650660490
debitMemoDate: '2023-04-29'
currency: USD
targetDate: null
dueDate: '2023-04-29'
postedOn: null
postedById: null
status: Draft
amount: 1.0
taxAmount: 0.0
totalTaxExemptAmount: 0.0
balance: 1.0
beAppliedAmount: 0.0
autoPay: true
comment: the comment
referredInvoiceId: 4028ab1f87121698018712fb2a3b2b91
transferredToAccounting: 'No'
reasonCode: Correcting invoice error
createdDate: '2023-03-24 15:08:37'
createdById: bd19d326bce5465c81df19d3262954c3
updatedDate: '2023-03-24 15:08:37'
updatedById: bd19d326bce5465c81df19d3262954c3
cancelledOn: null
cancelledById: null
referredCreditMemoId: null
latestPDFFileId: null
taxStatus: null
sourceType: Invoice
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
paymentTerm: null
sequenceSetId: null
organizationLabel: MS US
success: true
schema:
$ref: '#/definitions/GETDebitMemoType'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- type: string
in: path
description: 'The ID or number of an invoice that you want to create a debit
memo from. For example, 2c93808457d787030157e030d10f3f64 or INV00000001.
'
name: invoiceKey
required: true
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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* `items` > `comment`\n\
* `items` > `description`\n"
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/DebitMemoFromInvoiceType'
/v1/debitmemos/{debitMemoKey}:
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about a specific debit\
\ memo.\n"
summary: Retrieve a debit memo
operationId: GET_DebitMemo
tags:
- Debit Memos
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: 4028ab1f87121698018722ff2bff58b8
number: DM00000001
accountId: 4028ab1f87121698018722ff25be58a1
accountNumber: AN_Test11679919358984
debitMemoDate: '2023-03-27'
currency: USD
targetDate: null
dueDate: '2023-03-27'
postedOn: null
postedById: null
status: Draft
amount: 100.0
taxAmount: 0.0
totalTaxExemptAmount: 0.0
balance: 100.0
beAppliedAmount: 0.0
autoPay: true
comment: This is a comment
referredInvoiceId: null
transferredToAccounting: 'No'
reasonCode: Correcting invoice error
createdDate: '2023-03-27 17:46:01'
createdById: 0124a1a5d0f84d4288d875fc3b34b1e1
updatedDate: '2023-03-27 17:46:01'
updatedById: 0124a1a5d0f84d4288d875fc3b34b1e1
cancelledOn: null
cancelledById: null
referredCreditMemoId: null
latestPDFFileId: null
taxStatus: Complete
sourceType: Standalone
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
paymentTerm: null
sequenceSetId: null
organizationLabel: MS US
success: true
schema:
$ref: '#/definitions/GETDebitMemoType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
description: 'The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e
or DM00000001.
'
name: debitMemoKey
required: true
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nUpdates the basic and finance information about\
\ a debit memo. Currently, Zuora supports updating tax-exclusive memo items,\
\ but does not support updating tax-inclusive memo items. \n\nIf the amount\
\ of a memo item is updated, the tax will be recalculated in the following\
\ conditions:\n - The memo is created from a product rate plan charge and\
\ you use Avalara to calculate the tax.\n - The memo is created from an invoice\
\ and you use Avalara or Zuora Tax to calculate the tax.\n\nYou can update\
\ a debit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n"
summary: Update a debit memo
operationId: PUT_DebitMemo
tags:
- Debit Memos
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: 4028ab1f87121698018722f8335b3ffb
number: DM00000001
accountId: 4028ab1f87121698018722f82d133fe4
accountNumber: AN_Test11679918902100
debitMemoDate: '2023-03-27'
currency: USD
targetDate: null
dueDate: '2023-03-27'
postedOn: null
postedById: null
status: Draft
amount: 100.0
taxAmount: 0.0
totalTaxExemptAmount: 0.0
balance: 100.0
beAppliedAmount: 0.0
autoPay: true
comment: new comment123
referredInvoiceId: null
transferredToAccounting: 'No'
reasonCode: Correcting invoice error
createdDate: '2023-03-27 17:38:24'
createdById: 97e12d40f0ab4418a95a93118b272fb6
updatedDate: '2023-03-27 17:38:27'
updatedById: 97e12d40f0ab4418a95a93118b272fb6
cancelledOn: null
cancelledById: null
referredCreditMemoId: null
latestPDFFileId: null
taxStatus: Complete
sourceType: Standalone
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
paymentTerm: null
sequenceSetId: null
organizationLabel: MS US
success: true
schema:
$ref: '#/definitions/GETDebitMemoType'
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_HEADER_Zuora_Org_Ids'
- name: body
in: body
required: true
schema:
$ref: '#/definitions/PUTDebitMemoType'
- type: string
in: path
name: debitMemoKey
description: 'The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e
or DM00000001.
'
required: true
delete:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nDeletes a debit memo. Only debit memos with the\
\ Cancelled status can be deleted. \n\nYou can delete a debit memo only if\
\ you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n"
summary: Delete a debit memo
operationId: DELETE_DebitMemo
tags:
- Debit Memos
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_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_HEADER_Zuora_Org_Ids'
- type: string
in: path
description: 'The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e
or DM00000003.
'
name: debitMemoKey
required: true
/v1/debitmemos/{debitMemoId}/application-parts:
get:
summary: List all application parts of a debit memo
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves information about the payments or credit\
\ memos that are applied to a specified debit memo.\n"
operationId: GET_DebitMemoApplicationParts
tags:
- Debit Memos
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_HEADER_Zuora_Org_Ids'
- name: debitMemoId
in: path
type: string
required: true
description: 'The unique ID of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e.
'
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: OK
examples:
application/json:
applicationParts:
- paymentId: null
creditMemoId: 4028905f60a165a50160b4f632ff023d
appliedAmount: 22
createdDate: '2018-01-02 11:42:16'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2018-01-02 11:42:16'
updatedById: 402881e522cf4f9b0122cf5d82860002
- paymentId: 4028905f60a165a50160b4f5d5cb0229
creditMemoId: null
appliedAmount: 11
createdDate: '2018-01-02 11:41:38'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2018-01-02 11:41:38'
updatedById: 402881e522cf4f9b0122cf5d82860002
success: true
schema:
$ref: '#/definitions/GetDebitMemoApplicationPartCollectionType'
/v1/debitmemos/{debitMemoKey}/cancel:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nCancels a debit memo. Only debit memos with the\
\ Draft status can be cancelled. \n\nYou can cancel a debit memo only if you\
\ have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n"
summary: Cancel a debit memo
operationId: PUT_CancelDebitMemo
tags:
- Debit Memos
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: 4028ab1f87121698018722fd34c6507d
number: DM00000001
accountId: 4028ab1f87121698018722fd2e705066
accountNumber: AN_Test11679919230033
debitMemoDate: '2023-03-27'
currency: USD
targetDate: null
dueDate: '2023-03-27'
postedOn: null
postedById: null
status: Canceled
amount: 100.0
taxAmount: 0.0
totalTaxExemptAmount: 0.0
balance: 100.0
beAppliedAmount: 0.0
autoPay: true
comment: This is a comment
referredInvoiceId: null
transferredToAccounting: 'No'
reasonCode: Correcting invoice error
createdDate: '2023-03-27 17:43:52'
createdById: bc0211e8ca1440eb97a0aff808f87293
updatedDate: '2023-03-27 17:43:59'
updatedById: bc0211e8ca1440eb97a0aff808f87293
cancelledOn: '2023-03-27 17:43:59'
cancelledById: bc0211e8ca1440eb97a0aff808f87293
referredCreditMemoId: null
latestPDFFileId: 4028ab1f87121698018722fd39fe5087
taxStatus: Complete
sourceType: Standalone
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
paymentTerm: null
sequenceSetId: null
organizationLabel: MS US
success: true
schema:
$ref: '#/definitions/GETDebitMemoType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
description: 'The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e
or DM00000003.
'
name: debitMemoKey
required: true
/v1/debitmemos/{debitMemoKey}/collect:
post:
description: |
**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
This API operation provides an easy way to let the client-side to collect an existing posted debit memo.
It supports the following steps:
1. Apply unapplied credit memos to the posted debit memo by Oldest-First-Largest-First rule if there are more than one unapplied credit memos.
2. Apply unapplied payments to the posted debit memo by Oldest-First-Largest-First rule if there are more than one unapplied payments.
3. Process payment to the posted debit memo if there is an open-balance on it.
**Restrictions**
Since this API will do lots of works, and some of them are resource consuming, we need to restrict the usage of this API by the following conditions:
1. If the target debit memo gets more than 10 debit memo items, the request will be rejected.
2. If `CreditMemo` is specified in `applicationOrder`, when there are more than 25 credit memos will be used to apply to the debit memo, the request will be rejected.
3. If `CreditMemo` is specified in `applicationOrder`, when there are more than 100 credit memo items will be used to apply to the debit memo, the request will be rejected.
4. If `UnappliedPayment` is specified in `applicationOrder`, when there are more than 25 payments will be used to apply to the debit memo, the request will be rejected.
summary: Collect a posted debit memo
operationId: POST_DebitMemoCollect
tags:
- Debit Memos
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: ''
examples:
application/json:
debitMemo:
id: 2c98902f6f1de6d1016f1dfc86aa3c34
number: DM00003326
appliedCreditMemos:
- id: 2c98902f6f1de6d1016f1def4c003bd8
number: CM00000452
appliedAmount: 12.8
unappliedAmount: 0E-9
- id: 2c98902f6f1de6d1016f1deef1b93bbe
number: CM00009201
appliedAmount: 9.99
unappliedAmount: 0E-9
appliedPayments:
- id: 2c98902f6f1de6d1016f1defbf3e3bf5
number: P-00001602
appliedAmount: 3.33
unappliedAmount: 0E-9
- id: 2c98902f6f1de6d1016f1def887f3bec
number: P-00001761
appliedAmount: 1.2
unappliedAmount: 0E-9
processedPayment:
id: 2c98902f6f1de6d1016f1dfc8ad23c68
number: P-00001803
status: Processed
amount: 12.68
paymentMethodId: 2c98902f6f1de6d1016f1dedba313ba2
gatewayId: 2c98902f6f1de6d1016f1ded559f3b9d
gatewayResponse: This transaction has been approved by Test gateway.
gatewayResponseCode: approve
success: true
schema:
$ref: '#/definitions/DebitMemoCollectResponse'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: body
in: body
required: true
schema:
$ref: '#/definitions/DebitMemoCollectRequest'
- name: debitMemoKey
in: path
type: string
required: true
description: 'The ID or number of a posted debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e.
'
/v1/debitmemos/{debitMemoKey}/emails:
post:
summary: Email a debit memo
operationId: POST_EmailDebitMemo
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nSends a posted debit memo to the specified email\
\ addresses manually.\n\n\n\n### Notes\n - You must activate the **Email\
\ Debit Memo | Manually email Debit Memo** notification before emailing debit\
\ memos. To include the debit memo PDF in the email, select the **Include\
\ Debit Memo PDF** check box in the **Edit notification** dialog from the\
\ Zuora UI. See [Create and Edit Notifications](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/C_Create_Notifications#section_2)\
\ for more information.\n\n\n - Zuora sends the email messages based on the\
\ email template you set. You can set the email template to use in the **Delivery\
\ Options** panel of the **Edit notification** dialog from the Zuora UI. By\
\ default, the **Manual Email for Debit Memo Default Template** template is\
\ used. See [Create and Edit Email Templates](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/Create_Email_Templates)\
\ for more information.\n\n\n - The debit memos are sent only to the work\
\ email addresses or personal email addresses of the Bill To contact if the\
\ following conditions are all met:\n\n * The `useEmailTemplateSetting`\
\ field is set to `false`.\n * The email addresses are not specified in\
\ the `emailAddresses` field.\n"
tags:
- Debit Memos
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
required: true
description: ''
schema:
$ref: '#/definitions/PostDebitMemoEmailType'
- name: debitMemoKey
in: path
type: string
required: true
description: 'The ID or number of a posted debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e
or DM00000001.
'
/v1/debitmemos/{debitMemoKey}/files:
post:
summary: Upload a file for a debit memo
operationId: POST_UploadFileForDebitMemo
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nUploads an externally generated PDF file for a\
\ debit memo that is in Draft or Posted status.\n\nTo use this operation,\
\ you must enable the Modify Debit Memo permission. See [Billing Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information.\n\nThis operation has the following restrictions:\n\
- Only the PDF file format is supported.\n- The maximum size of the PDF file\
\ to upload is 4 MB.\n- A maximum of 50 PDF files can be uploaded for one\
\ debit memo.\n"
consumes:
- multipart/form-data
tags:
- Debit Memos
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: debitMemoKey
in: path
description: 'The ID or number of the debit memo that you want to upload a
PDF file for. For example, 402890555a87d7f5015a8919e4fe002e or DM00000001.
'
required: true
type: string
- name: file
in: formData
description: 'The PDF file to upload for the debit memo.
'
type: file
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
fileId: 40289f466463d683016463ef8b7301a3
description: ''
schema:
$ref: '#/definitions/POSTUploadFileResponse'
x-code-samples:
- lang: curl
label: Curl
source: 'curl -X POST -H "Authorization: Bearer f21f017e4724445d8647b1f0de7ed6f1"
-F "file=@DebitMemoFile.pdf" "https://rest.zuora.com/v1/debitmemos/402890555a87d7f5015a8919e4fe002e/files"
'
/v1/debitmemos/{debitMemoKey}/items:
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about all items of a\
\ debit memo. A debit memo item is a single line item in a debit memo. \n\n\
### Filtering\n\nYou can use query parameters to restrict the data returned\
\ in the response. Each query parameter corresponds to one field in the response\
\ body.\n\nIf the value of a filterable field is string, you can set the corresponding\
\ query parameter to `null` when filtering. Then, you can get the response\
\ data with this field value being `null`. \n\nExamples:\n\n- /v1/debitmemos/402890245c7ca371015c7cb40b28001f/items?amount=100\n\
\n- /v1/debitmemos/402890245c7ca371015c7cb40b28001f/items?amount=100&sort=createdDate\n"
summary: List debit memo items
operationId: GET_DebitMemoItems
tags:
- Debit Memos
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:
items:
- id: 402890555a87d7f5015a89251ede0046
amount: 1
amountWithoutTax: 1
beAppliedAmount: 0
balance: 1
taxMode: TaxExclusive
sku: SKU-00000002
skuName: SKU-30
serviceStartDate: '2017-11-01'
serviceEndDate: '2017-11-30'
sourceItemType: InvoiceDetail
sourceItemId: 402890555a7d4022015a7dadb3b700a6
appliedToItemId: 402890555a7d4022015a2dadb3b700a6
excludeItemBillingFromRevenueAccounting: true
processingType: Charge
createdDate: '2017-03-01 17:13:15'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 17:13:15'
updatedById: 402881e522cf4f9b0122cf5d82860002
comment: This is comment!
subscriptionId: null
unitOfMeasure: Each
unitPrice: 1
quantity: 1
soldToContactId: 402881e522cf4f9b0122cf5d82860003
soldToContactSnapshotId: 402881e522cf4f9b0122cf5d82860004
financeInformation:
deferredRevenueAccountingCode: Subscription Revenue
deferredRevenueAccountingCodeType: SalesRevenue
recognizedRevenueAccountingCode: Subscription Revenue
recognizedRevenueAccountingCodeType: SalesRevenue
taxationItems:
data:
- id: 402890555a87d7f5015a89251ef10047
sourceTaxItemId: 402890555a7d4022015a7dadb39b00a1
taxAmount: 0.01
balance: 0.01
paymentAmount: 0
creditAmount: 0
name: STATE TAX
exemptAmount: 0
jurisdiction: CALIFORNIA
locationCode: '06'
taxCode: ZtaxCode
taxCodeDescription: ''
taxDate: '2017-11-30'
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
financeInformation:
salesTaxPayableAccountingCode: null
salesTaxPayableAccountingCodeType: null
success: true
schema:
$ref: '#/definitions/GETDebitMemoItemCollectionType'
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- type: string
in: path
description: 'The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e
or DM00000001.
'
name: debitMemoKey
required: true
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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 response fields:\n* `items` > `taxItems`\n\
* `items` > `taxationItems`\n* `items` > `comment`\n* `items` > `description`\n"
- name: amount
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `amount` field.
'
- name: beAppliedAmount
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `beAppliedAmount`
field.
'
- name: createdById
in: query
type: string
required: false
description: 'This parameter filters the response based on the `createdById`
field.
'
- name: createdDate
in: query
type: string
format: date-time
required: false
description: 'This parameter filters the response based on the `createdDate`
field.
'
- name: id
in: query
type: string
required: false
description: 'This parameter filters the response based on the `id` field.
'
- name: serviceEndDate
in: query
type: string
format: date
required: false
description: 'This parameter filters the response based on the `serviceEndDate`
field.
'
- name: serviceStartDate
in: query
type: string
format: date
required: false
description: 'This parameter filters the response based on the `serviceStartDate`
field.
'
- name: sku
in: query
type: string
required: false
description: 'This parameter filters the response based on the `sku` field.
'
- name: skuName
in: query
type: string
required: false
description: 'This parameter filters the response based on the `skuName` field.
'
- name: sourceItemId
in: query
type: string
required: false
description: 'This parameter filters the response based on the `sourceItemId`
field.
'
- name: subscriptionId
in: query
type: string
required: false
description: 'This parameter filters the response based on the `subscriptionId`
field.
'
- name: updatedById
in: query
type: string
required: false
description: 'This parameter filters the response based on the `updatedById`
field.
'
- name: updatedDate
in: query
type: string
format: date-time
required: false
description: 'This parameter filters the response based on the `updatedDate`
field.
'
- 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\nA sortable field uses the following form: \n\n*operator* *field_name*\n\
\nYou can use at most two sortable fields in one URL path. Use a comma to\
\ separate sortable fields. For example: *operator* *field_name*, *operator*\
\ *field_name* \n\n*operator* is used to mark the order of sequencing.\
\ The operator is optional. If you only specify the sortable field without\
\ any operator, the response data is sorted in descending order by this\
\ field.\n\n - The `-` operator indicates an ascending order.\n - The\
\ `+` operator indicates a descending order.\n\nBy default, the response\
\ data is displayed in descending order by updated date.\n\n*field_name*\
\ indicates the name of a sortable field. The supported sortable fields\
\ of this operation are as below:\n\n - id\n - amount\n - beAppliedAmount\n\
\ - sku\n - skuName\n - serviceStartDate\n - serviceEndDate\n - sourceItemId\n\
\ - createdDate\n - createdById\n - updatedDate\n - updatedById\n -\
\ subscriptionId\n \nExamples:\n\n- /v1/debitmemos/402890245c7ca371015c7cb40b28001f/items?sort=createdDate\n\
\n- /v1/debitmemos/402890245c7ca371015c7cb40b28001f/items?amount=100&sort=createdDate\n"
/v1/debitmemos/{debitMemoKey}/items/{dmitemid}:
get:
description: |
**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Retrieves information about a specific item of a debit memo. A debit memo item is a single line item in a debit memo.
summary: Retrieve a debit memo item
operationId: GET_DebitMemoItem
tags:
- Debit Memos
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: 402890555a87d7f5015a8919e500002f
amount: 1
amountWithoutTax: 1
beAppliedAmount: 0
balance: 1
quantity: 1
taxMode: TaxExclusive
sku: SKU-00000002
skuName: ZTax Component
serviceStartDate: '2017-02-27'
serviceEndDate: '2017-03-26'
sourceItemType: InvoiceDetail
sourceItemId: 402890555a7d4022015a7dadb3b700a6
appliedToItemId: 402890555a7d4022015a2dadb3b700a6
processingType: Charge
createdDate: '2017-03-01 17:01:00'
excludeItemBillingFromRevenueAccounting: true
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 17:01:00'
updatedById: 402881e522cf4f9b0122cf5d82860002
comment: aa
subscriptionId: null
unitOfMeasure: Each
unitPrice: 1
soldToContactId: 402881e522cf4f9b0122cf5d82860003
soldToContactSnapshotId: 402881e522cf4f9b0122cf5d82860004
financeInformation:
deferredRevenueAccountingCode: Subscription Revenue
deferredRevenueAccountingCodeType: SalesRevenue
recognizedRevenueAccountingCode: Subscription Revenue
recognizedRevenueAccountingCodeType: SalesRevenue
taxationItems:
data:
- id: 402890555a87d7f5015a8919e8450031
sourceTaxItemId: 402890555a7d4022015a7dadb39b00a1
taxAmount: 5
balance: 5
paymentAmount: 0
creditAmount: 0
name: my tax
exemptAmount: 0
jurisdiction: USA
locationCode: ''
taxCode: ZtaxCode
taxCodeDescription: ''
taxDate: '2017-02-27'
taxRate: 5
taxRateDescription: desc3
taxRateType: FlatFee
financeInformation:
salesTaxPayableAccountingCode: null
salesTaxPayableAccountingCodeType: null
success: true
schema:
$ref: '#/definitions/GETDebitMemoItemType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
description: 'The unique ID of a debit memo item. You can get the debit memo
item ID from the response of [List debit memo items](https://developer.zuora.com/api-references/api/operation/GET_DebitMemoItems).
'
name: dmitemid
required: true
- type: string
in: path
description: 'The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e
or DM00000001.
'
name: debitMemoKey
required: true
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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 response fields:\n* `taxItems`\n* `taxationItems`\n\
* `comment`\n* `description`\n"
/v1/debitmemos/{debitMemoId}/items/{dmitemid}/taxation-items:
get:
description: |
**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Retrieves information about the taxation items of a specific debit memo item.
summary: List all taxation items of a debit memo item
operationId: GET_TaxationItemsOfDebitMemoItem
tags:
- Debit Memos
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. \
\ \n"
description: ''
examples:
application/json:
data:
- balance: 10
sourceTaxItemId: null
paymentAmount: 0
creditAmount: 0
financeInformation:
salesTaxPayableAccountingCode: null
salesTaxPayableAccountingCodeType: null
id: 402883836904567d01690530df760231
taxAmount: 10
name: taxName_0
exemptAmount: 10
jurisdiction: Jurisdiction
locationCode: '8'
taxCode: taxCode
taxCodeDescription: taxCodeDescription
taxDate: '2016-10-10'
taxRate: 0.1
taxRateDescription: taxRateDescription
taxRateType: Percentage
success: true
schema:
$ref: '#/definitions/GETTaxationItemsOfDebitMemoItemType'
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- type: string
in: path
description: 'The unique ID of a debit memo item. You can get the debit memo
item ID from the response of [List debit memo items](https://developer.zuora.com/api-references/api/operation/GET_DebitMemoItems).
'
name: dmitemid
required: true
- type: string
in: path
description: 'The unique ID of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e.
'
name: debitMemoId
required: true
/v1/debitmemos/{debitMemoKey}/pdfs:
post:
summary: Generate a debit memo PDF file
description: |
**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Creates a PDF file for a specified debit memo. To access the generated PDF file, you can download it by clicking **View PDF** on the detailed debit memo page through the Zuora UI.
This REST API operation can be used only if you have the billing document file generation feature and the Billing user permission "Regenerate PDF" enabled.
operationId: POST_DebitMemoPDF
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: debitMemoKey
in: path
description: 'The unique ID or number of the debit memo that you want to create
a PDF file for. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.
'
required: true
type: string
tags:
- Debit Memos
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/POSTMemoPdfResponse'
/v1/debitmemos/{debitMemoKey}/post:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nPosts a debit memo to activate it. You can post\
\ debit memos only if you have the [Billing permissions](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles#Billing_Permissions).\n"
summary: Post a debit memo
operationId: PUT_PostDebitMemo
tags:
- Debit Memos
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: 4028ab1f87121698018722fa8d73483a
number: DM00000001
accountId: 4028ab1f87121698018722fa86dc4823
accountNumber: AN_Test11679919056161
debitMemoDate: '2023-03-27'
currency: USD
targetDate: null
dueDate: '2023-03-27'
postedOn: '2023-03-27 17:41:03'
postedById: e758a64e80f54439913241f9aa537127
status: Posted
amount: 100.0
taxAmount: 0.0
totalTaxExemptAmount: 0.0
balance: 100.0
beAppliedAmount: 0.0
autoPay: true
comment: This is a comment
referredInvoiceId: null
transferredToAccounting: 'No'
reasonCode: Correcting invoice error
createdDate: '2023-03-27 17:40:58'
createdById: e758a64e80f54439913241f9aa537127
updatedDate: '2023-03-27 17:41:03'
updatedById: e758a64e80f54439913241f9aa537127
cancelledOn: null
cancelledById: null
referredCreditMemoId: null
latestPDFFileId: null
taxStatus: Complete
sourceType: Standalone
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
paymentTerm: null
sequenceSetId: null
organizationLabel: MS US
success: true
schema:
$ref: '#/definitions/GETDebitMemoType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
description: 'The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e
or DM00000001.
'
name: debitMemoKey
required: true
/v1/debitmemos/{debitMemoKey}/unpost:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nUnposts a debit memo that is in Posted status.\
\ If any credit memo or payment has been applied to a debit memo, you are\
\ not allowed to unpost the debit memo. After a debit memo is unposted, its\
\ status becomes Draft.\n\nYou can unpost debit memos only if you have the\
\ [Billing permissions](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles#Billing_Permissions).\n"
summary: Unpost a debit memo
operationId: PUT_UnpostDebitMemo
tags:
- Debit Memos
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: 4028ab1f87121698018722f3b60c375b
number: DM00000001
accountId: 4028ab1f87121698018722f3af193744
accountNumber: AN_Test11679918607694
debitMemoDate: '2023-03-27'
currency: USD
targetDate: null
dueDate: '2023-03-27'
postedOn: null
postedById: null
status: Draft
amount: 100.0
taxAmount: 0.0
totalTaxExemptAmount: 0.0
balance: 100.0
beAppliedAmount: 0.0
autoPay: true
comment: This is a comment
referredInvoiceId: null
transferredToAccounting: 'No'
reasonCode: Correcting invoice error
createdDate: '2023-03-27 17:33:29'
createdById: c24f12918d5b45d0b7f9da297b8b7a9d
updatedDate: '2023-03-27 17:33:42'
updatedById: c24f12918d5b45d0b7f9da297b8b7a9d
cancelledOn: null
cancelledById: null
referredCreditMemoId: null
latestPDFFileId: 4028ab1f87121698018722f3bb0b376b
taxStatus: Complete
sourceType: Standalone
taxMessage: null
einvoiceStatus: null
einvoiceFileId: null
einvoiceErrorCode: null
einvoiceErrorMessage: null
billToContactId: null
billToContactSnapshotId: null
paymentTerm: null
sequenceSetId: null
organizationLabel: MS US
success: true
schema:
$ref: '#/definitions/GETDebitMemoType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
description: 'The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e
or DM00000001.
'
name: debitMemoKey
required: true
/v1/debitmemos/{debitMemoKey}/taxationitems:
post:
description: |
**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Creates taxation items for a debit memo.
summary: Create taxation items for a debit memo
operationId: POST_DM_TaxationItems
tags:
- Debit Memos
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:
taxationItems:
- createdById: 402881e522cf4f9b0122cf5d82860002
createdDate: '2017-03-01 10:27:20'
exemptAmount: 0
id: 402890555a7e9791015a87b17cee0076
memoItemId: 402890555a7e9791015a87b082980068
sourceTaxItemId: 402890555a7d4022015a7db254e200c2
jurisdiction: CALIFORNIA
locationCode: '06'
name: STATE TAX
taxAmount: 0.01
taxCode: ServiceTaxCode
taxCodeDescription: This is tax code description!
taxDate: '2016-06-05'
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
updatedById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 10:27:20'
financeInformation:
onAccountAccountingCode: null
onAccountAccountingCodeType: null
salesTaxPayableAccountingCode: Check
salesTaxPayableAccountingCodeType: Cash
- createdById: 402881e522cf4f9b0122cf5d82860002
createdDate: '2017-03-01 10:27:20'
exemptAmount: 0
id: 402890555a7e9791015a87b17cf10077
memoItemId: 402890555a7e9791015a87b082d5006a
jurisdiction: CALIFORNIA
locationCode: '06'
name: STATE TAX
taxAmount: 0.02
taxCode: ServiceTaxCode
taxCodeDescription: This is tax code description!
taxDate: '2016-06-05'
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
updatedById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 10:27:20'
financeInformation:
onAccountAccountingCode: null
onAccountAccountingCodeType: null
salesTaxPayableAccountingCode: Check
salesTaxPayableAccountingCodeType: Cash
success: true
schema:
$ref: '#/definitions/GETTaxationItemListType'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: debitMemoKey
description: 'The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e
or DM00000001.
'
required: true
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTTaxationItemListForDMType'
/v1/debitmemos/{debitMemoKey}/einvoice/generate:
put:
summary: Generate an e-invoice file for a debit memo
operationId: PUT_GenerateEInvoiceFileForDebitMemo
description: |
Generates an e-invoice file for a debit memo.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- Debit Memos
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_HEADER_Zuora_Org_Ids'
- name: debitMemoKey
in: path
required: true
type: string
description: 'The ID or number of the debit memo. For example, 2c92c8955bd63cc1015bd7c151af02ab
or DM-0000001.
'
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/adjustments:
post:
summary: Create a delivery adjustment
operationId: Create_Adjustment
description: "Describes how to create one or more delivery adjustments for a\
\ subscription. \n\n**Notes**: \n- The Delivery Adjustments feature is in\
\ the Early Adopter phase. We are actively soliciting feedback from a small\
\ set of early adopters before releasing it as generally available. To manage\
\ and access this feature through the self-service interface, see [Enable\
\ billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features)\
\ in the Knowledge Center.\n- This operation supports a partial success scenario:\
\ when at least one eligible delivery adjustment exists for a given time period,\
\ \u201Csuccess = true\u201D as well as eligible delivery adjustments and\
\ ineligible delivery adjustments are returned in the response; only when\
\ no delivery adjustment is eligible, \u201Csuccess=false\u201D is returned.\n"
tags:
- Delivery 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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 specify
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:
totalNumberOfDeliveries: 1.0
totalAmount: -5.0
adjustments:
- adjustmentId: 4028818886a2149b0186a237d0ff003b
adjustmentNumber: ADJ-00000001
deliveryDate: '2023-02-26'
deliveryDay: sunday
amount: -5.0
reason: string
subscriptionNumber: A-S00000001
chargeNumber: C-00000001
deferredRevenueAccountingCode: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
billingDate: '2023-02-26'
creditMemoNumber: CM00000001
status: Billed
eligible: true
ineligibleAdjustments:
- adjustmentId: null
adjustmentNumber: null
deliveryDate: '2023-02-27'
deliveryDay: monday
amount: null
reason: string
subscriptionNumber: A-S00000001
chargeNumber: C-00000001
deferredRevenueAccountingCode: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
billingDate: null
status: null
eligible: false
errorMessage: Subscription does not have a delivery scheduled for
this day
success: true
get:
summary: List all delivery adjustments of a subscription
operationId: GET_Subscription_Adjustments
description: |
Describes how to retrieve detailed information about delivery adjustments of a subscription.
**Note**: The Delivery Adjustments feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Enable billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features) in the Knowledge Center.
tags:
- Delivery 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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 specify
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
schema:
$ref: '#/definitions/GETAdjustmentsBySubscriptionNumberResponseType'
examples:
application/json:
adjustments:
- adjustmentId: 4028818886a2149b0186a237d0ff003b
adjustmentNumber: ADJ-00000001
deliveryDate: '2023-02-26'
deliveryDay: sunday
amount: -5.0
reason: string
subscriptionNumber: A-S00000001
chargeNumber: C-00000001
deferredRevenueAccountingCode: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
billingDate: '2023-02-26'
creditMemoNumber: CM00000001
status: Billed
- adjustmentId: 4028818886a2149b0186a2404f67003c
adjustmentNumber: ADJ-00000002
deliveryDate: '2023-02-27'
deliveryDay: monday
amount: -5.0
reason: string
subscriptionNumber: A-S00000001
chargeNumber: C-00000001
deferredRevenueAccountingCode: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
billingDate: '2023-02-27'
creditMemoNumber: CM00000002
debitMemoNumber: DM00000002
status: Cancelled
success: true
/v1/adjustments/{adjustment-key}:
get:
summary: Retrieve a delivery adjustment
operationId: GET_Adjustment
description: |
Describes how to retrieve detailed information about a delivery adjustment.
**Note**: The Delivery Adjustments feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Enable billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features) in the Knowledge Center.
tags:
- Delivery 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: adjustment-key
in: path
description: The delivery adjustment ID or number to retrieve.
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 specify
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
description: ''
schema:
$ref: '#/definitions/GETAdjustmentByIdResponseType'
examples:
application/json:
adjustmentId: 4028818886a2149b0186a2404f67003c
adjustmentNumber: ADJ-00000001
deliveryDate: '2023-02-26'
deliveryDay: sunday
amount: -5.0
reason: string
subscriptionNumber: A-S00000001
chargeNumber: C-00000001
deferredRevenueAccountingCode: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
billingDate: '2023-02-26'
creditMemoNumber: CM00000001
status: Billed
/v1/adjustments/preview:
post:
summary: Preview a delivery adjustment
operationId: Preview_Adjustment
description: "Describes how to preview delivery adjustments of a subscription.\n\
\n**Notes**: \n- The Delivery Adjustments feature is in the Early Adopter\
\ phase. We are actively soliciting feedback from a small set of early adopters\
\ before releasing it as generally available. To manage and access this feature\
\ through the self-service interface, see [Enable billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features)\
\ in the Knowledge Center.\n- This operation supports a partial success scenario:\
\ when at least one eligible delivery adjustment exists for a given time period,\
\ \u201Csuccess = true\u201D as well as eligible delivery adjustments and\
\ ineligible delivery adjustments are returned in the response; only when\
\ no delivery adjustment is eligible, \u201Csuccess=false\u201D is returned.\n"
tags:
- Delivery 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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 specify
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:
totalNumberOfDeliveries: 1.0
totalAmount: -5.0
adjustments:
- adjustmentId: 'null'
adjustmentNumber: 'null'
deliveryDate: '2023-02-26'
deliveryDay: sunday
amount: -5.0
reason: string
subscriptionNumber: A-S00000001
chargeNumber: C-00000001
deferredRevenueAccountingCode: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
billingDate: '2023-02-26'
creditMemoNumber: null
status: null
eligible: true
ineligibleAdjustments:
- adjustmentId: null
adjustmentNumber: null
deliveryDate: '2023-02-27'
deliveryDay: monday
amount: null
reason: string
subscriptionNumber: A-S00000001
chargeNumber: C-00000001
deferredRevenueAccountingCode: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
billingDate: null
status: null
eligible: false
errorMessage: Subscription does not have a delivery scheduled for
this day
success: true
/v1/adjustments/{adjustmentId}/cancel:
put:
summary: Cancel a delivery adjustment
operationId: PUT_CancelAdjustment
description: |
Describes how to cancel an unbilled delivery adjustment.
**Note**: The Delivery Adjustments feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Enable billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features) in the Knowledge Center.
tags:
- Delivery 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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: adjustmentId
in: path
description: 'The ID of the delivery 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 specify
a tracing identifier in the request headers, Zuora returns the same
tracing identifier. Otherwise, Zuora does not set this header.
'
examples:
application/json:
debitMemoNumber: DM00000001
success: true
description: ''
schema:
$ref: '#/definitions/GETCancelAdjustmentResponseType'
/v1/describe/{object}:
get:
summary: Describe an object
operationId: GET_Describe
description: "Provides a reference listing of each object that is available\
\ in your Zuora tenant.\n\nThe information returned by this call is useful\
\ if you are using [CRUD: Create Export](https://developer.zuora.com/api-references/api/operation/Object_POSTExport)\
\ or the [AQuA API](https://knowledgecenter.zuora.com/DC_Developers/T_Aggregate_Query_API)\
\ to create a data source export. See [Export ZOQL](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL)\
\ for more information.\n\n### Response\nThe response contains an XML document\
\ that lists the fields of the specified object. Each of the object's fields\
\ is represented by a `` element in the XML document.\n \nEach ``\
\ element contains the following elements:\n\n| Element | Description\
\ \
\ \
\ \
\ |\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\
| `` | API name of the field. \
\ \
\ \
\ \
\ |\n| `` | Name of the field in the Zuora user interface.\
\ \
\ \
\ \
\ |\n| `` | Data type of the field. The possible\
\ data types are: `boolean`, `date`, `datetime`, `decimal`, `integer`, `picklist`,\
\ `text`, `timestamp`, and `ZOQL`. If the data type is `picklist`, the ``\
\ element contains an `` element that lists the possible values of\
\ the field. |\n| `` | Specifies the availability of the field.\
\ If the `` element lists the `export` context, the field is available\
\ for use in data source exports. \
\ \
\ |\n\nThe `` element contains other\
\ elements that provide legacy information about the field. This information\
\ is not directly related to the REST API.\n\nResponse sample:\n```xml\n\n\n ProductRatePlanCharge \n\
\ Product Rate Plan Charge \n \n ...\n \n\
\ TaxMode \n Tax Mode \n picklist \n\
\ \n TaxExclusive \n TaxInclusive \n\
\ \n \n export \n \
\ \n ...\n \n ...\n \n \n\
```\n\nIt is strongly recommended that your integration checks ``\
\ elements in the response. If your integration does not check ``\
\ elements, your integration may process fields that are not available for\
\ use in data source exports. See [Changes to the Describe API](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL/Changes_to_the_Describe_API)\
\ for more information.\n"
tags:
- Describe
produces:
- text/xml; charset=utf-8
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_HEADER_Zuora_Org_Ids'
- name: object
in: path
required: true
description: |
API name of an object in your Zuora tenant. For example, `InvoiceItem`. See [Zuora Object Model](https://developer.zuora.com/rest-api/general-concepts/object-model/) for the list of valid object names.
Depending on the features enabled in your Zuora tenant, you may not be able to list the fields of some objects.
type: string
- name: showCurrencyConversionInformation
description: "Set the value to `yes` to get additional currency conversion\
\ information in the result.\n**Notes:** \n- When **Automatically include\
\ additional Currency Conversion information** in currency conversion settings\
\ is checked, you can pass `yes` to get additional fields in the result.\
\ See [Configure Foreign Currency Conversion](https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance/D_Finance_Settings/F_Foreign_Currency_Conversion#:~:text=Automatically%20include%20additional%20Currency%20Conversion%20information%20in%20data%20source%20exports%3A%C2%A0Select%20this%20check%20box%20if%20you%20want%20to%20access%20foreign%20currency%20conversion%20data%20through%20data%20source%20exports.)\
\ to check the **Automatically include additional Currency Conversion information**.\n\
- By default if you need additional Currency Conversion information, submit\
\ a request at Zuora Global Support . Set this parameter value to `no` to not\
\ include the additional currency conversion information in the result.\n"
in: query
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: 'Returns an XML document that lists the fields of the specified
object
'
schema:
type: string
'404':
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: 'Returns an XML document that indicates the error
'
schema:
type: string
/v1/einvoice/service-providers:
post:
summary: Create an e-invoicing service provider
operationId: POST_EInvoicingServiceProvider
description: |
Creates an e-invoicing service provider.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- E-Invoicing
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/CreateEInvoicingServiceProviderRequest'
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: 4028948972a2bf990172bc9b27724eef
name: Sovos e-invoice service
serviceProviderNumber: EISP-00000001
provider: Sovos
test: 'false'
apiKey: e765630e-1cf0-437e-8041-680a85eca651
description: ''
schema:
$ref: '#/definitions/GetEInvoicingServiceProviderResponse'
get:
summary: List e-invoicing service providers
operationId: GET_EInvoicingServiceProviders
description: |
Lists information about e-invoicing service providers.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- E-Invoicing
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_HEADER_Zuora_Org_Ids'
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:
serviceProviders:
- id: 4028948972a2bf990172bc9b27724eef
name: Sovos e-invoice service
serviceProviderNumber: EISP-00000001
provider: Sovos
test: 'false'
apiKey: e765630e-1cf0-437e-8041-680a85eca651
description: ''
schema:
$ref: '#/definitions/ListEInvoicingServiceProvidersResponse'
/v1/einvoice/service-providers/{key}:
get:
summary: Retrieve an e-invoicing service provider
operationId: GET_EInvoicingServiceProvider
description: |
Retrieves information about an e-invoicing service privider.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- E-Invoicing
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_HEADER_Zuora_Org_Ids'
- name: key
in: path
description: 'The unique ID or number of the e-invoicing service provider
that you want to retrieve information about.
'
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: 4028948972a2bf990172bc9b27724eef
name: Sovos e-invoice service
serviceProviderNumber: EISP-00000001
provider: Sovos
test: 'false'
apiKey: e765630e-1cf0-437e-8041-680a85eca651
description: ''
schema:
$ref: '#/definitions/GetEInvoicingServiceProviderResponse'
put:
summary: Update an e-invoicing service provider
operationId: PUT_UpdateEInvoicingServiceProvider
description: |
Updates information about an e-invoicing service privider.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- E-Invoicing
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_HEADER_Zuora_Org_Ids'
- name: key
in: path
required: true
type: string
description: 'The unique ID or number of the e-invoicing service provider
that you want to update.
'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/UpdateEInvoicingServiceProviderRequest'
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: 4028948972a2bf990172bc9b27724eef
name: Sovos e-invoice service
serviceProviderNumber: EISP-00000001
provider: Sovos
test: 'true'
apiKey: e765630e-1cf0-437e-8041-680a85eca651
description: ''
schema:
$ref: '#/definitions/GetEInvoicingServiceProviderResponse'
delete:
summary: Delete an e-invoicing service provider
operationId: DELETE_EInvoicingServiceProvider
description: |
Deletes an e-invoicing service privider.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- E-Invoicing
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_HEADER_Zuora_Org_Ids'
- name: key
in: path
description: "The unique ID or number of the e-invoicing service provider\
\ that you want to \n"
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/einvoice/business-regions:
post:
summary: Create an e-invoicing business region
operationId: POST_CreateEInvoicingBusinessRegion
description: |
Creates an e-invoicing business region.
You must create business regions to store the business detail information as a seller. If you have multiple GSTINs for different states, you can create multiple business region objects for India.
The business region objects can be looked up according to the country and state, and its related fields can be mapped accordingly within the e-invoice file template.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- E-Invoicing
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/CreateEInvoicingBusinessRegionRequest'
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: 4028b2aa8890c524018890c7e9ef3826
country: JP
businessName: legal business name
businessNumber: '20002039'
businessNumberSchemaId: 088
businessRegionNumber: EIBR-00000002
tradeName: Zuora
taxRegisterNumber: TAX393999
addressLine1: ''
addressLine2: ''
postalCode: '368779'
city: Tokyo
state: ''
contactName: ''
email: ''
phoneNumber: ''
serviceProviderId: 4028948972a2bf990172bc9b27724ddc
description: ''
schema:
$ref: '#/definitions/GetEInvoicingBusinessRegionResponse'
get:
summary: List e-invoicing business regions
operationId: GET_EInvoicingBusinessRegions
description: |
Lists information about e-invoicing business regions.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- E-Invoicing
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_HEADER_Zuora_Org_Ids'
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:
regions:
- country: JP
businessName: legal business name
businessNumber: '20002039'
businessNumberSchemaId: 088
businessRegionNumber: EIBR-00000008
tradeName: Zuora
taxRegisterNumber: TAX393999
endpointId: 08992
endpointSchemeId: 088
addressLine1: ''
addressLine2: ''
postalCode: '368779'
city: Tokyo
state: ''
phoneNumber: ''
contactName: ''
email: ''
serviceProviderId: 4028948972a2bf990172bc9b27724ddc
- country: FR
businessName: legal business name
businessNumber: '20002039'
businessNumberSchemaId: 088
businessRegionNumber: EIBR-00000006
tradeName: Zuora
taxRegisterNumber: TAX393999
endpointId: 08992
endpointSchemeId: 088
addressLine1: ''
addressLine2: ''
postalCode: '368779'
city: Paris
state: ''
phoneNumber: ''
contactName: ''
email: ''
serviceProviderId: 4028948972a2bf990172bc9b27724ddc
success: true
description: ''
schema:
$ref: '#/definitions/ListEInvoicingBusinessRegionsResponse'
/v1/einvoice/business-regions/{key}:
get:
summary: Retrieve an e-invoicing business region
operationId: GET_EInvoicingBusinessRegion
description: |
Retrieves information about an e-invoicing business region.
You can search for an e-invoicing business region by key. The key can be the unique ID or number of an e-invoicing business region.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- E-Invoicing
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_HEADER_Zuora_Org_Ids'
- name: key
in: path
description: 'The unqiue ID or number of the e-invoicing business region that
you want to retrieve information about.
'
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: 8a90f508885201ad018856a2d9070163
country: IT
businessName: legal business name
businessNumber: '20002039'
businessNumberSchemeId: 088
businessRegionNumber: EIBR-00000002
tradeName: Zuora
endpointId: 08992
endpointSchemeId: 088
taxRegisterNumber: TAX393999
state: ''
city: Rome
postalCode: '368779'
addressLine1: ''
addressLine2: ''
contactName: ''
phoneNumber: ''
email: ''
serviceProviderId: 8a90876c8851d877018855e81a6b710d
success: true
description: ''
schema:
$ref: '#/definitions/GetEInvoicingBusinessRegionResponse'
put:
summary: Update an e-invoicing business region
operationId: PUT_UpdateEInvoicingBusinessRegion
description: "Updates an e-invoicing business region by key. The key can be\
\ the unique ID or number of an e-invoicing business region.\n\n**Note**:\
\ This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.\
\ \n"
tags:
- E-Invoicing
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_HEADER_Zuora_Org_Ids'
- name: key
in: path
required: true
type: string
description: 'The unqiue ID or number of the e-invoicing business region that
you want to update.
'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/UpdateEInvoicingBusinessRegionRequest'
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:
country: JP
businessName: legal business name
businessNumber: '20002039'
businessNumberSchemaId: '88'
businessRegionNumber: EIBR-00000002
tradeName: Zuora
taxRegisterNumber: TAX393999
endpointId: '8992'
endpointSchemeId: '88'
addressLine1: null
addressLine2: null
postalCode: '368779'
city: Tokyo
state: null
contactName: null
email: null
phoneNumber: null
serviceProviderId: 4028948972a2bf990172bc9b27724ddc
description: ''
schema:
$ref: '#/definitions/GetEInvoicingBusinessRegionResponse'
delete:
summary: Delete an e-invoicing business region
operationId: DELETE_EInvoicingBusinessRegion
description: |
Deletes an e-invoicing business region by key. The key can be the unique ID or number of an e-invoicing business region.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- E-Invoicing
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_HEADER_Zuora_Org_Ids'
- name: key
in: path
description: 'The unqiue ID or number of the e-invoicing business region that
you want to delete.
'
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/einvoice/templates:
post:
summary: Create an e-invoice file template
operationId: POST_CreateEInvoiceFileTemplate
description: "Creates an e-invoice file templates for your billing documents,\
\ including invoices, credit memos, and debit memos. \n\nZuora provides default\
\ e-invoice file templates, so you can just customize them as needed. For\
\ example, some country specific fields like HSN (Harmonized System of Nomenclature)\
\ might be stored on product rate plan charges.\n\n**Note**: This operation\
\ is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.\n"
tags:
- E-Invoicing
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/CreateEInvoiceFileTemplateRequest'
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: 4028818484f483d20184f5006b97003f
name: Sovos e-invoice service
templateNumber: EITEMP-00000003
provider: Sovos
country: IN
documentType: Invoice
content: base64 encoded content
success: true
description: ''
schema:
$ref: '#/definitions/GetEInvoiceFileTemplateResponse'
get:
summary: List e-invoice file templates
operationId: GET_EInvoiceFileTemplates
description: |
Lists information about e-invoice file templates.
You can query e-invoice file templates by conditions. For example, if your service provider is Sovos, you can use the following example URL to retrieve information about a list of e-invoice file templates for invoices in India:
`/v1/einvoice/templates?country=IN&documentType=Invoice&provider=Sovos`
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- E-Invoicing
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_HEADER_Zuora_Org_Ids'
- name: country
in: query
description: 'The short name of a country or region where you must comply
with e-invoicing requirements. For example, `IN` for India. For the full
list of country names and codes, see ISO Standard Country Codes .
'
required: true
type: string
- name: documentType
in: query
description: 'The type of billing documents for which the e-invoice file template
is intended.
'
enum:
- Invoice
- CreditMemo
- DebitMemo
required: true
type: string
- name: provider
in: query
description: "The name of the e-invoicing service provider that assists in\
\ generating e-invoice files. \n"
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:
templates:
- id: 402833ec89d46b390189d51402d937b0
country: SA
name: EInvoice Template Name
templateNumber: EITEMP-00000006
documentType: Invoice
provider: Sovos
- id: 402833ec89d46b390189d514030537b2
country: SA
name: EInvoice Template Name
templateNumber: EITEMP-00000008
documentType: CreditMemo
provider: Sovos
- id: 402833ec89d46b390189d514032037b4
country: SA
name: EInvoice Template Name
templateNumber: EITEMP-00000009
documentType: DebitMemo
provider: Sovos
success: true
description: ''
schema:
$ref: '#/definitions/ListEInvoiceFileTemplatesResponse'
/v1/einvoice/templates/{key}:
get:
summary: Retrieve an e-invoice file template
operationId: GET_EInvoiceFileTemplate
description: |
Retrieves information about an e-invoice file template.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- E-Invoicing
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_HEADER_Zuora_Org_Ids'
- name: key
in: path
description: 'The unique number or ID of the e-invoice file template that
you want to retrieve information about.
'
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: 4028818484f483d20184f5006b97003f
name: Sovos e-invoice service
provider: Sovos
country: IN
templateNumber: EITEMP-00000003
documentType: Invoice
content: base64 encoded content
success: true
description: ''
schema:
$ref: '#/definitions/GetEInvoiceFileTemplateResponse'
put:
summary: Update an e-invoice file template
operationId: PUT_EInvoiceFileTemplate
description: |
Updates information about an e-invoice file template.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- E-Invoicing
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_HEADER_Zuora_Org_Ids'
- name: key
in: path
required: true
type: string
description: 'The unique number or ID of the e-invoice file template that
you want to update.
'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/UpdateEInvoiceFileTemplateRequest'
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: 4028818484f483d20184f5006b97003f
name: Sovos e-invoice service
provider: Sovos
country: IN
templateNumber: EITEMP-00000003
documentType: Invoice
content: base64 encoded content
success: true
description: ''
schema:
$ref: '#/definitions/GetEInvoiceFileTemplateResponse'
delete:
summary: Delete an e-invoice file template
operationId: DELETE_EInvoiceFileTemplate
description: |
Deletes an e-invoice file template by key. The key can be the unique ID or number of an e-invoice file template.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- E-Invoicing
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_HEADER_Zuora_Org_Ids'
- name: key
in: path
description: 'The unique ID or number of the e-invoice file template that
you want to delete.
'
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'
/system-health/payments/volume-summary:
get:
operationId: GET_SystemHealthPaymentVolumeSummary
summary: List payment volume summary records
description: |
Returns a summary of electronic payments handled by your Zuora tenant within a specified time range.
You can filter the summary by payment gateway type and payment method type.
tags:
- Electronic Payments Health
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: paymentGatewayType
in: query
required: false
type: string
description: 'Filters the volume summary by payment gateway type. Example:
`Adyen`.
'
- name: paymentMethodType
in: query
required: false
type: string
description: 'Filters the volume summary by payment method type. Example:
`CreditCard`.
'
- name: startTime
in: query
required: true
type: string
format: date-time
description: |
Start time of the volume summary.
Format: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-22T09:07+0800`.
- name: endTime
in: query
required: true
type: string
format: date-time
description: |
End time of the volume summary.
Format: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-22T09:07+0800`.
responses:
'200':
description: OK
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/GetPaymentVolumeSummaryResponse'
examples:
application/json:
data:
- paymentGatewayType: Sample
paymentMethodType: CreditCard
total: 100
error: 80
success: 20
- paymentGatewayType: Adyen
paymentMethodType: CreditCard
total: 200
error: 10
success: 190
- '...'
'400':
description: Bad Request
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/SystemHealthErrorResponse'
examples:
application/json:
timestamp: '2022-09-29T05:54:46.007+00:00'
status: 400
error: Bad Request
message: Timezone is different between 'startTime' and 'endTime'.
path: /system-health/payments/volume-summary
x-code-samples:
- lang: curl
label: Curl
source: |
curl -i -X GET \
'https://rest.zuora.com/system-health/payments/volume-summary?paymentGatewayType=string&paymentMethodType=string&startTime=2022-09-22T09:07-0800&endTime=2022-09-25T09:07-0800' \
-H 'Authorization: Bearer 7la16f1afa6f48099dc0605d7a175846'
/v1/files/{file-id}:
get:
summary: Retrieve a file
operationId: GET_Files
description: |
Retrieve files such as export results, invoices, and accounting period reports.
The response content type depends on the type of file that you retrieve.
For example, if you retrieve an invoice PDF, the value of the `Content-Type`
header in the response is `application/pdf;charset=UTF-8`.
Other content types include:
- `text/csv` for CSV files
- `application/msword` for Microsoft Word files
- `application/vnd.ms-excel` and `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`
for Microsoft Excel files (*.xls* and *.xlsx* respectively)
- `application/zip` and `application/x-gzip` for ZIP and Gzip files respectively
- `text/html` for HTML files
- `text/plain` for text files
The response always contains character encoding information in the `Content-Type` header.
For example, `Content-Type: application/zip;charset=UTF-8`.
**Note:** The maximum file size is 2,047 MB. If you have a data request that exceeds this limit, Zuora returns the following 403 response: `2047MB `. Submit a request at Zuora Global Support to determine if large file optimization is an option for you.
tags:
- Files
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_HEADER_Zuora_Org_Ids'
- name: file-id
in: path
description: 'The Zuora ID of the file to retrieve.
'
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: ''
x-code-samples:
- lang: curl
label: Curl
source: 'curl -X GET -H "Authorization: Bearer 6d151216ef504f65b8ff6e9e9e8356d3"
-H "Accept: application/pdf" "https://rest.zuora.com/v1/files/2c92c08c55534cf00155581fb474314d"
-o invoice.pdf
'
/v1/fulfillments:
post:
summary: Create fulfillments
operationId: Create_Fulfillment
description: |2
Creates one or multiple Fulfillment objects. You can also generate invoices or memos for these Fulfillment objects in this API call. The following tutorials demonstrate how to use this operation:
* [Create a sales order line item with fulfillments](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AD_Create_a_sales_order_line_item_with_fulfillments)
* [Create a return order line item with fulfillments](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/Create_a_return_order_line_item_with_fulfillments)
tags:
- Fulfillments
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PostFulfillmentsRequestType'
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/PostFulfillmentsResponseType'
examples:
application/json:
fulfillments:
- id: 4028828c82819b740182821bb3b415c6
fulfillmentNumber: F-00000001
- id: 4028828c82819b740182821bb3bc15c7
fulfillmentNumber: F-00000002
invoiceNumbers:
- INV00000001
creditMemoNumbers: null
paymentNumber: P-00000001
paidAmount: 100.0
success: true
/v1/fulfillments/{key}:
get:
summary: Retrieve a fulfillment
operationId: GET_Fulfillment
description: |
Retrieves the detailed information about a specified fulfillment. The following tutorial demonstrates how to use this operation:
* [View details of a fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/H_View_details_of_a_fulfillment)
tags:
- Fulfillments
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_HEADER_Zuora_Org_Ids'
- name: key
in: path
description: The id or fulfillment number of the Fulfillment to retrieve.
required: true
type: string
format: UUID
- name: fulfillment-items
in: query
description: Return the related fulfillment items or not.
default: false
required: false
type: boolean
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/GetFulfillmentResponseType'
examples:
application/json:
success: true
fulfillment:
id: 4028828c82819b74018281a69d3f0d93
fulfillmentNumber: F-00000001
orderLineItemId: 4028828c82819b74018281a69adf0d4e
fulfillmentDate: '2022-01-01'
fulfillmentType: Delivery
quantity: 1.0
state: SentToBilling
billTargetDate: '2022-01-01'
description: description
trackingNumber: T-00091912
carrier: carrier
fulfillmentSystem: fulfillment system
fulfillmentLocation: location
externalId: 9dc1a064-b5d1-4d7b-bd0b-ca26a1be8e01
customFields:
priority__c: Hight
fulfillmentItems:
- id: 4028828c82819b74018281a69d680d98
fulfillmentId: 4028828c82819b74018281a69d3f0d93
description: description
itemIdentifier: 87309cf0-10c7-4130-8da2-439c96daa1ff
customFields:
category__c: Old
put:
summary: Update a fulfillment
operationId: PUT_Fulfillment
description: |2
Updates a specified fulfillment. The `state` field of a fulfillment can only be updated when it is in a different state, to trigger the state transition. The other fields of a fulfillment can only be updated when the fulfillment is in the `Executing` state, or when the fulfillment is in the `Booked` state and the user has the "Allow Edit Of Booked Order Line Items" permission.
The following tutorial demonstrates how to use this operation:
* [Update or cancel a fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/H_Update_a_fulfillment)
tags:
- Fulfillments
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_HEADER_Zuora_Org_Ids'
- name: key
in: path
description: The id or fulfillment number of the Fulfillment to update.
required: true
type: string
format: UUID
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PutFulfillmentRequestType'
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/CommonResponseType'
examples:
application/json:
success: true
delete:
summary: Delete a fulfillment
operationId: Delete_Fulfillment
description: 'Deletes a specified fulfillment. A fulfillment can only be deleted
when it is in the `Executing` state.
'
tags:
- Fulfillments
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_HEADER_Zuora_Org_Ids'
- name: key
in: path
description: The id or fulfillment number of the Fulfillment to delete.
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/CommonResponseType'
examples:
application/json:
success: true
/v1/fulfillment-items:
post:
summary: Create fulfillment items
operationId: Create_FulfillmentItem
description: 'Creates one or multiple fulfillment items.
'
tags:
- Fulfillments
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PostFulfillmentItemsRequestType'
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/PostFulfillmentItemsResponseType'
examples:
application/json:
fulfillmentItems:
- id: 4028828c82819b74018282544fea17c6
- id: 4028828c82819b7401828254507a17c7
success: true
/v1/fulfillment-items/{id}:
get:
summary: Retrieve a fulfillment item
operationId: GET_FulfillmentItem
description: "Retrieves the detailed information about a specified fulfillment\
\ item. \n"
tags:
- Fulfillments
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_HEADER_Zuora_Org_Ids'
- name: id
in: path
description: The id of the Fulfillment Item 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/GetFulfillmentItemResponseType'
examples:
application/json:
success: true
fulfillmentItem:
id: 4028828c82819b7401828257303a19b6
fulfillmentId: 4028828c82819b74018282572f6719b4
description: item description
itemIdentifier: 5da7a054-24c6-4f29-866b-2c570d844fd0
customFields:
PICKLIST_CF__c: option_2
put:
summary: Update a fulfillment item
operationId: PUT_FulfillmentItem
description: "Updates a specified fulfillment item. \n"
tags:
- Fulfillments
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_HEADER_Zuora_Org_Ids'
- name: id
in: path
description: The id of the Fulfillment Item to update.
required: true
type: string
format: UUID
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PutFulfillmentItemRequestType'
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/CommonResponseType'
examples:
application/json:
success: true
delete:
summary: Delete a fulfillment item
operationId: Delete_FulfillmentItem
description: 'Deletes a specified fulfillment item.
'
tags:
- Fulfillments
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_HEADER_Zuora_Org_Ids'
- name: id
in: path
description: The id of the Fulfillment Item to delete.
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/CommonResponseType'
examples:
application/json:
success: true
/v1/hostedpages:
get:
summary: List hosted pages
operationId: Get_HostedPages
description: |
Returns the Payment Pages configuration metadata,
specifically, page ID, page version, payment method type.
The following are the version-specific and general REST requests for Payment Pages:
* The request for Payment Pages 2.0 configuration information: `GET /hostedpages?version=2`
* The request for all versions of Payment Pages configuration information: `GET /hostedpages`
### Notes
If you do not have the corresponding tenant setting enabled, such as specifying the request `version` parameter to 2 but disabliing Payment Pages 2.0, you will receive an error.
tags:
- Hosted Pages
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_HEADER_Zuora_Org_Ids'
- name: versionNumber
in: query
description: 'Version of the Payment Pages for which you want to retrieve
the configuration information. Specify 2 for Payment Pages 2.0.
'
required: false
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:
hostedpages:
- pageId: 8a85858f49a3f2230149abccaa2e004a
pageType: ACH
pageVersion: 2.0
- pageId: 8a85858f49a3f2230149abcd99090057
pageType: Bank Transfer
pageVersion: 2.0
- pageId: 8a85858f49a3f2230149a71083d40019
pageType: Credit Card
pageVersion: 2.0
success: true
description: ''
schema:
$ref: '#/definitions/GetHostedPagesType'
/v1/invoice-schedules:
post:
tags:
- Invoice Schedules
summary: Create an invoice schedule
description: |
Creates an invoice schedule.
### Limitations
This API operation has the following limitations:
* You can create at most 50 invoice schedule items in one request.
* You can associate at most 10 orders with an invoice schedule in one request.
* You can associate at most 300 subscriptions with an invoice schedule in one request, including those contained in orders and separate subscriptions.
operationId: POST_CreateInvoiceSchedule
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- in: body
name: Request
description: ''
required: true
schema:
$ref: '#/definitions/POSTCreateInvoiceScheduleRequest'
responses:
'200':
description: ''
examples:
application/json:
id: e2441b3e24eb42859194be7da2403b38
number: IS-00000004
status: Pending
nextRunDate: '2022-02-24'
totalAmount: 70200.0
actualAmount: 70200.0
billedAmount: 0.0
unbilledAmount: 70200.0
notes: 2022 Billing Schedule
currency: USD
scheduleItems:
- id: 8a8881aa82118bec018211daf9f01680
amount: 50000.0
actualAmount: 50000.0
status: Pending
runDate: '2022-02-24'
targetDateForAdditionalSubscriptions: '2022-02-24'
percentage: null
- id: 8a8881aa82118bec018211daf9f11681
amount: 14000.0
status: Pending
actualAmount: 14000.0
runDate: '2022-10-17'
targetDateForAdditionalSubscriptions: '2022-10-17'
percentage: null
- id: 8a8881aa82118bec018211daf9f11682
amount: 6200.0
actualAmount: 6200.0
status: Pending
runDate: '2022-11-14'
targetDateForAdditionalSubscriptions: '2022-11-14'
percentage: null
orders:
- O-00000007
- O-00000008
specificSubscriptions:
- orderKey: O-00000008
subscriptionKey: S-00000008
invoiceSeparately: false
additionalSubscriptionsToBill:
- S-00000001
- S-00000002
success: true
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/InvoiceScheduleResponses'
/v1/invoice-schedules/{scheduleKey}:
put:
tags:
- Invoice Schedules
summary: Update an invoice schedule
description: "Updates a pending invoice schedule.\n\nYou can use this API operation\
\ to update invoice schedules in the following aspects:\n- Update notes and\
\ pending invoice schedule items\n- Update orders associated with invoice\
\ schedules\n- Remove or add invoice schedule items\n\nFor more samples, see\
\ [Edit invoice schedules](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Billing_Schedule/Billing_Schedule_tutorials/Edit_invoice_schedules).\n\
\n### Restrictions and limitations \n\nWhen updating invoice schedules through\
\ the REST API, keep the following restrictions and limitations in mind:\n\
- You can only update invoice schedule items in Pending status.\n- You can\
\ only add orders or specific subscriptions to pending invoice schedules,\
\ and remove orders or specific subscriptions from pending invoice schedules.\n\
- For the invoice schedule items that you want to update, you must include\
\ the new values for these items in the request.\n- For the invoice schedule\
\ items that you want to keep unchanged, you must include all the existing\
\ information about these items in the request. Otherwise, the existing invoice\
\ schedule items that you do not mention in the request are deleted.\n- For\
\ the orders that you want to keep unchanged for an invoice schedule, you\
\ must include all the existing order numbers associated with the invoice\
\ schedule in the request. Otherwise, the existing orders that you do not\
\ mention in the request are removed.\n"
operationId: PUT_UpdateInvoiceSchedule
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_HEADER_Zuora_Org_Ids'
- name: scheduleKey
in: path
description: 'The unique ID or number of the invoice schedule to be updated.
For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.
'
required: true
type: string
- in: body
name: Request
description: ''
required: true
schema:
$ref: '#/definitions/PUTUpdateInvoiceScheduleRequest'
responses:
'200':
description: ''
examples:
application/json:
id: e2441b3e24eb42859194be7da2403b38
number: IS-00000004
status: Pending
nextRunDate: '2022-02-24'
totalAmount: 70200.0
billedAmount: 0.0
actualAmount: 70200.0
unbilledAmount: 70200.0
notes: 2022 Billing Schedule
currency: USD
scheduleItems:
- id: 8a8881aa82118bec018211daf9f01680
amount: 54000.0
actualAmount: 54000.0
status: Pending
runDate: '2022-02-24'
targetDateForAdditionalSubscriptions: '2022-02-24'
percentage: null
- id: 8a8881aa82118bec018211daf9f11681
amount: 10000.0
actualAmount: 10000.0
status: Pending
runDate: '2022-10-17'
targetDateForAdditionalSubscriptions: '2022-10-17'
percentage: null
- id: 8a8881aa82118bec018211daf9f11682
amount: 6200.0
actualAmount: 6200.0
status: Pending
runDate: '2022-11-14'
targetDateForAdditionalSubscriptions: '2022-11-14'
percentage: null
orders:
- O-00000007
- O-00000008
specificSubscriptions:
- orderKey: O-00000008
subscriptionKey: S-00000008
invoiceSeparately: false
additionalSubscriptionsToBill:
- S-00000001
- S-00000002
success: true
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/InvoiceScheduleResponses'
get:
tags:
- Invoice Schedules
summary: Retrieve an invoice schedule
description: 'Retrieves detailed information about an invoice schedule.
'
operationId: GET_InvoiceSchedule
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: scheduleKey
in: path
description: 'The unique ID or number of the invoice schedule to be retrieved.
For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.
'
required: true
type: string
responses:
'200':
description: ''
examples:
application/json:
id: e2441b3e24eb42859194be7da2403b38
number: IS-00000004
status: PartiallyProcessed
nextRunDate: '2022-10-17'
totalAmount: 70200.0
billedAmount: 50000.0
actualAmount: 20200.0
unbilledAmount: 20200.0
notes: 2022 Billing Schedule
currency: USD
scheduleItems:
- id: 8a8881aa82118bec018211daf9f01680
amount: 50000.0
actualAmount: 0.0
status: Processed
invoiceId: 8a8881aa82118bec018211dafc1e1695
runDate: '2022-02-24'
targetDateForAdditionalSubscriptions: '2022-02-24'
percentage: null
- id: 8a8881aa82118bec018211daf9f11681
amount: 14000.0
actualAmount: 14000.0
status: Pending
runDate: '2022-10-17'
targetDateForAdditionalSubscriptions: '2022-10-17'
percentage: null
- id: 8a8881aa82118bec018211daf9f11682
amount: 6200.0
actualAmount: 6200.0
status: Pending
runDate: '2022-11-14'
targetDateForAdditionalSubscriptions: '2022-11-14'
percentage: null
orders:
- O-00000007
- O-00000008
specificSubscriptions:
- orderKey: O-00000008
subscriptionKey: S-00000008
invoiceSeparately: false
additionalSubscriptionsToBill:
- S-00000001
- S-00000002
success: true
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/InvoiceScheduleResponses'
delete:
tags:
- Invoice Schedules
summary: Delete an invoice schedule
description: 'Deletes an invoice schedule in Pending status. The status of the
invoice schedule to be deleted must be `Pending`.
'
operationId: DELETE_InvoiceSchedule
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_HEADER_Zuora_Org_Ids'
- name: scheduleKey
in: path
description: 'The unique ID or number of the invoice schedule to be deleted.
For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.
'
required: true
type: string
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/CommonResponseType'
/v1/invoice-schedules/{scheduleKey}/pause:
put:
tags:
- Invoice Schedules
summary: Pause an invoice schedule
description: |
Pauses an invoice schedule immediately.
After one invoice schedule is paused, it cannot be automatically executed by Zuora Scheduler or by the [Execute an invoice schedule](https://developer.zuora.com/api-references/api/operation/POST_ExecuteInvoiceSchedule/) API operation.
If you want to run a paused invoice schedule, you can create a bill run with the target date greater than the next run date of the invoice schedule.
operationId: PUT_PauseInvoiceSchedule
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_HEADER_Zuora_Org_Ids'
- name: scheduleKey
in: path
description: 'The unique ID or number of the schedule to be paused. For example,
2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.
'
required: true
type: string
responses:
'200':
description: ''
examples:
application/json:
id: e2441b3e24eb42859194be7da2403b38
number: IS-00000004
status: Paused
nextRunDate: '2022-10-17'
totalAmount: 70200.0
billedAmount: 50000.0
actualAmount: 20200.0
unbilledAmount: 20200.0
notes: 2022 Billing Schedule
currency: USD
scheduleItems:
- id: 8a8881aa82118bec018211daf9f01680
amount: 50000.0
actualAmount: 0.0
status: Processed
invoiceId: 8a8881aa82118bec018211dafc1e1695
runDate: '2022-02-24'
targetDateForAdditionalSubscriptions: '2022-02-24'
percentage: null
- id: 8a8881aa82118bec018211daf9f11681
amount: 14000.0
actualAmount: 14000.0
status: Pending
runDate: '2022-10-17'
targetDateForAdditionalSubscriptions: '2022-10-17'
percentage: null
- id: 8a8881aa82118bec018211daf9f11682
amount: 6200.0
actualAmount: 6200.0
status: Pending
runDate: '2022-11-14'
targetDateForAdditionalSubscriptions: '2022-11-14'
percentage: null
orders:
- O-00000007
- O-00000008
specificSubscriptions:
- orderKey: O-00000008
subscriptionKey: S-00000008
success: true
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/InvoiceScheduleResponses'
/v1/invoice-schedules/{scheduleKey}/resume:
put:
tags:
- Invoice Schedules
summary: Resume an invoice schedule
description: |
Resumes an invoice schedule in Paused status immediately.
After an invoice schedule is resumed, it can continue to be automatically executed by Zuora Scheduler or by the [Execute an invoice schedule](https://developer.zuora.com/api-references/api/operation/POST_ExecuteInvoiceSchedule/) API operation.
operationId: PUT_ResumeInvoiceSchedule
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_HEADER_Zuora_Org_Ids'
- name: scheduleKey
in: path
description: 'The unique ID or number of the schedule to be resumed. For example,
2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.
'
required: true
type: string
responses:
'200':
description: ''
examples:
application/json:
id: e2441b3e24eb42859194be7da2403b38
number: IS-00000004
status: PartiallyProcessed
nextRunDate: '2022-10-17'
totalAmount: 70200.0
billedAmount: 50000.0
actualAmount: 20200.0
unbilledAmount: 20200.0
notes: 2022 Billing Schedule
currency: USD
scheduleItems:
- id: 8a8881aa82118bec018211daf9f01680
amount: 50000.0
actualAmount: 0.0
status: Processed
invoiceId: 8a8881aa82118bec018211dafc1e1695
runDate: '2022-02-24'
targetDateForAdditionalSubscriptions: '2022-02-24'
percentage: null
- id: 8a8881aa82118bec018211daf9f11681
amount: 14000.0
actualAmount: 14000.0
status: Pending
runDate: '2022-10-17'
targetDateForAdditionalSubscriptions: '2022-10-17'
percentage: null
- id: 8a8881aa82118bec018211daf9f11682
amount: 6200.0
actualAmount: 6200.0
status: Pending
runDate: '2022-11-14'
targetDateForAdditionalSubscriptions: '2022-11-14'
percentage: null
orders:
- O-00000007
- O-00000008
specificSubscriptions:
- orderKey: O-00000008
subscriptionKey: S-00000008
success: true
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/InvoiceScheduleResponses'
/v1/invoice-schedules/{scheduleKey}/execute:
post:
tags:
- Invoice Schedules
summary: Execute an invoice schedule
description: "Executes an invoice schedule immediately.\n\nDuring the execution,\
\ a bill run is created and generates an invoice or a credit memo asynchronously.\n\
\nWhen you use this API operation to execute an invoice schedule item, you\
\ have the flexibility to decide whether to specify a specific item ID.\n\n\
- If you specify the unique ID of an invoice schedule item to be executed\
\ in the request, the corresponding invoice schedule item is executed.\n-\
\ If you do not specify the ID of any invoice schedule item in the request,\
\ the subscription end date is used as the target date to determine the next\
\ pending schedule item to be executed. \n\nFor more samples, see [Execute\
\ invoice schedules](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Billing_Schedule/Billing_Schedule_tutorials/Execute_invoice_schedules).\n"
operationId: POST_ExecuteInvoiceSchedule
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: scheduleKey
in: path
description: 'The unique ID or number of the schedule to be executed. For
example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.
'
required: true
type: string
- in: body
name: Request
description: ''
required: true
schema:
$ref: '#/definitions/POSTExecuteInvoiceScheduleRequest'
responses:
'200':
description: ''
examples:
id: 8ad0823f82b5b2520182c5cec5fe40fb
autoEmail: false
autoPost: false
autoRenewal: false
billRunNumber: BR-00001017
invoiceDate: '2022-02-24'
noEmailForZeroAmountInvoice: false
status: Pending
targetDate: '2022-02-24'
createdById: 2c92c0f84298ac5901429dea196212be
createdDate: '2022-08-22 06:47:18'
updatedById: 2c92c0f84298ac5901429dea196212be
updatedDate: '2022-08-22 06:47:18'
billRunFilters:
- filterType: InvoiceSchedule
accountId: 8ad09c4b82b5c6330182c5ccab3570e6
success: true
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/ExecuteInvoiceScheduleBillRunResponse'
/v1/invoices/batch:
post:
description: "Creates multiple standalone invoices for selling physical goods,\
\ services or other items on a non-recurring basis to your subscription customers.\n\
\nTo use this operation, you must have the \"Create Standalone Invoice\" and\
\ \"Modify Invoice\" user permissions. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information. As of Zuora Release 2022.03.R5, newly created standard\
\ Billing users have the \u201CCreate Standalone Invoice\u201D permission\
\ enabled by default.\n\n### Limitations\n\nThis operation has the following\
\ limitations:\n* You can create a maximum of 50 invoices in one request.\n\
* You can create a maximum of 1,000 invoice items in one request.\n"
summary: Create standalone invoices
operationId: POST_StandaloneInvoices
tags:
- Invoices
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PostBatchInvoicesType'
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: 4028818484f483d20184f5006b97003f
invoiceNumber: INV00000001
accountId: 4028818484f483d20184f4f7efc40001
amount: 700.0
amountWithoutTax: 700.0
discount: 0.0
invoiceDate: '2022-10-31'
dueDate: '2022-11-30'
autoPay: true
comments: ''
status: Posted
transferredToAccounting: string
sourceType: Subscription
sequenceSetId: 402881e522cf4f9b0122cf5d82860003
adjustmentAmount: 0.0
balance: 700.0
billToContactSnapshotId: 402881e522cf4f9b0122cf5d82860004
createdById: 402881e522cf4f9b0122cf5d82860002
createdDate: '2022-12-08 19:49:16'
includesOneTime: true
includesRecurring: true
includesUsage: true
lastEmailSentDate: '2022-12-08 19:51:16'
paymentAmount: 0.0
postedBy: 402881e522cf4f9b0122cf5d82860002
postedDate: '2022-12-09'
refundAmount: 0.0
soldToContactSnapshotId: 402881e522cf4f9b0122cf5d82860005
source: BillRun
sourceId: BR-00000001
targetDate: '2022-10-31'
updatedById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2022-12-08 19:51:23'
billRunId: 4028818484f483d20184f50064950035
IntegrationId__NS: string
IntegrationStatus__NS: string
SyncDate__NS: string
complexity__c: Middle
description__c: description
currency: USD
success: true
- success: false
processId: CA037C0B8C5B0682
reasons:
- code: 58490020
message: No account is found with accountId ff8080817cda56fa017cda87aaa2071f.
objectIndex: 1
success: true
schema:
$ref: '#/definitions/PostBatchInvoiceResponse'
/v1/invoices:
post:
description: "Creates a standalone invoice for selling physical goods, services\
\ or other items on a non-recurring basis to your subscription customers.\n\
\nTo use this operation, you must have the \"Create Standalone Invoice\" and\
\ \"Modify Invoice\" user permissions. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\
\ for more information. As of Zuora Release 2022.03.R5, newly created standard\
\ Billing users have the \u201CCreate Standalone Invoice\u201D permission\
\ enabled by default.\n"
summary: Create a standalone invoice
operationId: POST_StandaloneInvoice
tags:
- Invoices
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PostInvoiceType'
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: 4028818484f483d20184f5006b97003f
invoiceNumber: INV00000001
accountId: 4028818484f483d20184f4f7efc40001
amount: 700.0
amountWithoutTax: 700.0
discount: 0.0
invoiceDate: '2022-10-31'
dueDate: '2022-11-30'
autoPay: true
comments: ''
status: Posted
transferredToAccounting: string
sourceType: Subscription
sequenceSetId: 402881e522cf4f9b0122cf5d82860006
adjustmentAmount: 0.0
balance: 700.0
billToContactSnapshotId: 402881e522cf4f9b0122cf5d82860007
createdById: 402881e522cf4f9b0122cf5d82860002
createdDate: '2022-12-08 19:49:16'
includesOneTime: true
includesRecurring: true
includesUsage: true
lastEmailSentDate: '2022-12-08 19:51:16'
paymentAmount: 0.0
postedBy: 402881e522cf4f9b0122cf5d82860002
postedDate: '2022-12-09'
refundAmount: 0.0
soldToContactSnapshotId: 402881e522cf4f9b0122cf5d82860008
source: BillRun
sourceId: BR-00000001
targetDate: '2022-10-31'
updatedById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2022-12-08 19:51:23'
billRunId: 4028818484f483d20184f50064950035
IntegrationId__NS: string
IntegrationStatus__NS: string
SyncDate__NS: string
complexity__c: Middle
description__c: description
currency: EUR
success: true
schema:
$ref: '#/definitions/PostInvoiceResponse'
put:
description: "Updates multiple invoices in batches with one call. \n\n### Limitations\
\ \nThis operation has the following limitations:\n* You can update a maximum\
\ of 50 invoices by one call.\n"
summary: Update invoices
operationId: PUT_BatchUpdateInvoices
tags:
- Invoices
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_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PutBatchInvoiceType'
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'
/v1/invoices/bulk-post:
post:
summary: Post invoices
operationId: POST_PostInvoices
description: |
Posts multiple invoices.
You can post a maximum of 50 invoices in one single request. Additionally, you can also update invoice dates while posting the invoices.
tags:
- Invoices
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTInvoicesBatchPostType'
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/InvoicesBatchPostResponseType'
examples:
application/json:
success: true
invoices:
- id: 402890555a7e9791015a7f15fe440123
success: true
- id: 402890555a7e9791015a7f15fe44013a
success: true
- success: false
processId: F3D4DAF98E6CE569
reasons:
- code: 59210020
message: Only invoices with Draft status can be posted.
id: ff808081804f25b001804f2d8971079f
/v1/invoices/{invoiceKey}:
put:
summary: Update an invoice
operationId: PUT_UpdateInvoice
description: "Updates a specific invoice. \n"
tags:
- Invoices
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_HEADER_Zuora_Org_Ids'
- name: invoiceKey
in: path
required: true
type: string
description: 'The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab
or INV-0000001.
'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PutInvoiceType'
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/PutInvoiceResponseType'
examples:
application/json:
id: 40288ae9600808280160081dc9c13f15
number: INV00000090
accountId: 40288ae9600808280160081db1533506
invoiceDate: '2017-11-29'
currency: USD
targetDate: '2017-11-29'
dueDate: '2017-12-18'
postedOn: null
postedById: null
status: Draft
amount: 100
taxAmount: 0
totalTaxExemptAmount: 0
balance: 100
discount: 0.0
comment: ''
autoPay: false
transferredToAccounting: 'No'
creditBalanceAdjustmentAmount: 0
createdDate: '2017-11-29 22:10:58'
createdById: 40288ae9600808280160081d833a311a
updatedDate: '2017-11-30 13:47:52'
updatedById: 40288ae9600808280160081d833a311a
cancelledOn: null,
cancelledById: null,
success: true
delete:
summary: Delete an invoice
operationId: DELETE_DeleteInvoice
description: |
Deletes a specific invoice.
Whether to delete an invoice synchronously or asynchronously depends on the number of invoice items contained in the invoice. By default, if an invoice contains less than 100 items, the invoice is deleted synchronously. Otherwise, the invoice is deleted asynchronously. If you want to change the threshold, submit a request at Zuora Global Support .
tags:
- Invoices
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_HEADER_Zuora_Org_Ids'
- name: invoiceKey
in: path
required: true
type: string
description: 'The ID or number of the invoice to be deleted. For example,
2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.
'
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/DeleteInvoiceResponseType'
examples:
application/json:
id: 40288ae9600808280160081dc9c13f15
jobId: 40288ae9600808280160081db1533506
jobStatus: Completed
success: true
get:
summary: Retrieve an invoice
operationId: Get_GetInvoice
description: 'Retrieves a specific invoice.
'
tags:
- Invoices
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_HEADER_Zuora_Org_Ids'
- name: invoiceKey
in: path
required: true
type: string
description: 'The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab
or INV-0000001.
'
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/PostInvoiceResponse'
examples:
application/json:
id: 4028818484f483d20184f5006b97003f
invoiceNumber: INV00000001
accountId: 4028818484f483d20184f4f7efc40001
amount: 700.0
amountWithoutTax: 700.0
discount: 0.0
invoiceDate: '2022-10-31'
dueDate: '2022-11-30'
autoPay: true
comments: ''
status: Posted
transferredToAccounting: string
sourceType: Subscription
sequenceSetId: 402881e522cf4f9b0122cf5d82860009
adjustmentAmount: 0.0
balance: 700.0
billToContactSnapshotId: 402881e522cf4f9b0122cf5d82860010
createdById: 402881e522cf4f9b0122cf5d82860002
createdDate: '2022-12-08 19:49:16'
includesOneTime: true
includesRecurring: true
includesUsage: true
lastEmailSentDate: '2022-12-08 19:51:16'
paymentAmount: 0.0
postedBy: 402881e522cf4f9b0122cf5d82860002
postedDate: '2022-12-09'
refundAmount: 0.0
soldToContactSnapshotId: 402881e522cf4f9b0122cf5d82860011
source: BillRun
sourceId: BR-00000001
targetDate: '2022-10-31'
updatedById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2022-12-08 19:51:23'
billRunId: 4028818484f483d20184f50064950035
IntegrationId__NS: string
IntegrationStatus__NS: string
SyncDate__NS: string
complexity__c: Middle
description__c: description
currency: USD
success: true
/v1/invoices/{invoiceKey}/application-parts:
get:
summary: List all application parts of an invoice
description: |
**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) 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.
Retrieves information about the payments or credit memos that are applied to a specified invoice.
operationId: GET_InvoiceApplicationParts
tags:
- Invoices
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_HEADER_Zuora_Org_Ids'
- name: invoiceKey
in: path
type: string
required: true
description: 'The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab
or INV-0000001.
'
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: OK
examples:
application/json:
applicationParts:
- paymentId: null
creditMemoId: 4028905f60a165a50160b4f632ff023d
appliedAmount: 22
createdDate: '2018-01-02 11:42:16'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2018-01-02 11:42:16'
updatedById: 402881e522cf4f9b0122cf5d82860002
- paymentId: 4028905f60a165a50160b4f5d5cb0229
creditMemoId: null
appliedAmount: 11
createdDate: '2018-01-02 11:41:38'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2018-01-02 11:41:38'
updatedById: 402881e522cf4f9b0122cf5d82860002
success: true
schema:
$ref: '#/definitions/GetInvoiceApplicationPartCollectionType'
/v1/invoices/{invoiceKey}/emails:
post:
summary: Email an invoice
operationId: POST_EmailInvoice
description: |
Sends a posted invoice to the specified email addresses manually.
### Notes
- You must activate the **Manual Email For Invoice | Manual Email For Invoice** notification before emailing invoices. To include the invoice PDF in the email, select the **Include Invoice PDF** check box in the **Edit notification** dialog from the Zuora UI. See [Create and Edit Notifications](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/C_Create_Notifications#section_2) for more information.
- Zuora sends the email messages based on the email template you set. You can set the email template to use in the **Delivery Options** panel of the **Edit notification** dialog from the Zuora UI. By default, the **Invoice Posted Default Email Template** template is used. See [Create and Edit Email Templates](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/Create_Email_Templates) for more information.
- The invoices are sent only to the work email addresses or personal email addresses of the Bill To contact if the following conditions are all met:
* The `useEmailTemplateSetting` field is set to `false`.
* The email addresses are not specified in the `emailAddresses` field.
tags:
- Invoices
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PostInvoiceEmailRequestType'
- name: invoiceKey
in: path
type: string
required: true
description: 'The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab
or INV-0000001.
'
/v1/invoices/{invoiceKey}/files:
post:
summary: Upload a file for an invoice
operationId: POST_UploadFileForInvoice
description: |
Uploads an externally generated invoice PDF file for an invoice that is in Draft or Posted status.
To use this operation, you must enable the Modify Invoice permission. See [Billing Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.
This operation has the following restrictions:
- Only the PDF file format is supported.
- The maximum size of the PDF file to upload is 4 MB.
- A maximum of 50 PDF files can be uploaded for one invoice.
consumes:
- multipart/form-data
tags:
- Invoices
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: invoiceKey
in: path
description: 'The ID or number of the invoice that you want to upload a PDF
file for. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV00000001.
'
required: true
type: string
- name: file
in: formData
description: 'The PDF file to upload for the invoice.
'
type: file
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
fileId: 40289f466463d683016463ef8b7301a2
description: ''
schema:
$ref: '#/definitions/POSTUploadFileResponse'
x-code-samples:
- lang: curl
label: Curl
source: 'curl -X POST -H "Authorization: Bearer f21f017e4724445d8647b1f0de7ed6f1"
-F "file=@InvoiceFile.pdf" "https://rest.zuora.com/v1/invoices/2c92c8955bd63cc1015bd7c151af02ab/files"
'
get:
summary: List all files of an invoice
operationId: GET_InvoiceFiles
description: "Retrieves the information about all PDF files of a specified invoice.\
\ \n\nInvoice PDF files are returned in reverse chronological order by the\
\ value of the `versionNumber` field.\n**Note**: This API only retrieves the\
\ PDF files that have been generated. If the latest PDF file is being generated,\
\ it will not be included in the response.\nYou can use the [Query](https://developer.zuora.com/api-references/api/operation/Action_POSTquery)\
\ action to get the latest PDF file, for example: `\"select Body from Invoice\
\ where Id = '2c93808457d787030157e0324aea5158'\"`.\nSee [Query an Invoice\
\ Body](https://knowledgecenter.zuora.com/Central_Platform/API/G_SOAP_API/E1_SOAP_API_Object_Reference/Invoice/Query_an_Invoice_Body_Field)\
\ for more information.\n"
tags:
- Invoices
parameters:
- $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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- name: invoiceKey
in: path
description: 'The unique ID or number of an invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab
or INV00000001.
'
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/GETInvoiceFilesResponse'
examples:
application/json:
invoiceFiles:
- id: 2c98901f62d7d83d0162d7facec2262f
versionNumber: 1524041954479
pdfFileUrl: /v1/files/2c98901f62d7d83d0162d7facea6262d
- id: 2c98901f62d7d83d0162d7f4a9792629
versionNumber: 1524041551946
pdfFileUrl: /v1/files/2c98901f62d7d83d0162d7f4a95c2627
- id: 2c98901f62d7d83d0162d7f491ea2626
versionNumber: 1524041544112
pdfFileUrl: /v1/files/2c98901f62d7d83d0162d7f490f22624
success: true
/v1/invoices/{invoiceKey}/items:
get:
summary: List all items of an invoice
operationId: GET_InvoiceItems
description: "Retrieves the information about all items of a specified invoice.\
\ \n"
tags:
- Invoices
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- name: invoiceKey
in: path
description: 'The unique ID or number of an invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab
or INV00000001.
'
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/GETInvoiceItemsResponse'
examples:
application/json:
invoiceItems:
- id: 2c92c095511f5b4401512682dd017989
subscriptionName: A-S00000004
subscriptionId: 2c92c0f9511f56b2015126814ad532cc
serviceStartDate: 2015-11-20
serviceEndDate: 2015-11-30
balance: 21.1
chargeAmount: 21.1
chargeDescription: ''
chargeName: Annual Fee
chargeDate: '2015-11-20 19:53:00'
chargeType: Recurring
processingType: Charge
excludeItemBillingFromRevenueAccounting: true
chargeId: 2c92c0f9511f56b2015126814af832d2
description: ''
productName: TeamCollab Enterprise
sourceItemType: SubscriptionComponent
quantity: 1
taxAmount: 0
unitOfMeasure: ''
unitPrice: 21.1
appliedToItemId: null
soldToContactId: 2c92c0f9511f56b2015126814ad532cd
soldToContactSnapshotId: 2c92c0f9511f56b2015126814ad532cd
invoiceScheduleId: 402881e522cf4f9b0122cf5d82860005
invoiceScheduleItemId: 402881e522cf4f9b0122cf5d82860006
numberOfDeliveries: 1
taxationItems:
data:
- balance: 2.11
paymentAmount: 0
creditAmount: 0
id: 2c98901a68ff26800168ffce6eeb0ffe
taxAmount: 2.11
name: taxName
exemptAmount: 0
jurisdiction: County
locationCode: 000-1
taxCode: TAXCODE-1
taxCodeDescription: null
taxDate: 2015-11-20
taxRate: 0.1
taxRateDescription: ''
taxRateType: Percentage
- id: 3e28d61d442f433797e268e2b7c11eeb
subscriptionName: A-S00000004
subscriptionId: c2d9a5768db440cbbf2709a55c614bed
serviceStartDate: 2015-11-20
serviceEndDate: 2015-11-30
chargeAmount: -2.1
chargeDescription: ''
chargeName: Discount
chargeDate: '2015-11-20 19:53:00'
chargeType: OneTime
processingType: Discount
sourceItemType: SubscriptionComponent
excludeItemBillingFromRevenueAccounting: true
chargeId: 1b3dede652fa47db833a83be55d850a5
description: ''
productName: TeamCollab Enterprise
quantity: 0
taxAmount: 0
unitOfMeasure: ''
unitPrice: 10.0
appliedToItemId: 2c92c095511f5b4401512682dd017989
soldToContactId: 2c92c0f9511f56b2015126814ad532cd
soldToContactSnapshotId: 2c92c0f9511f56b2015126814ad532cd
invoiceScheduleId: 402881e522cf4f9b0122cf5d82860005
invoiceScheduleItemId: 402881e522cf4f9b0122cf5d82860006
numberOfDeliveries: 1
taxationItems:
data:
- balance: 0.21
paymentAmount: 0
creditAmount: 0
id: 2c98901a68ff26800168ffce6eeb0ffe
taxAmount: 0.21
name: taxName
exemptAmount: 0
jurisdiction: County
locationCode: 000-1
taxCode: TAXCODE-1
taxCodeDescription: null
taxDate: 2015-11-20
taxRate: 0.1
taxRateDescription: ''
taxRateType: Percentage
success: true
/v1/invoices/{invoiceKey}/items/{itemId}/taxation-items:
get:
summary: List all taxation items of an invoice item
operationId: GET_TaxationItemsOfInvoiceItem
description: "Retrieves information about the taxation items of a specific invoice\
\ item. \n"
tags:
- Invoices
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- name: invoiceKey
in: path
description: 'The unique ID or number of an invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab
or INV00000001.
'
required: true
type: string
- name: itemId
in: path
description: 'The unique ID of an invoice item. For example, 2c86c8955bd63cc1015bd7c151af02ef.
'
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. \
\ \n"
description: ''
schema:
$ref: '#/definitions/GETInvoiceTaxationItemsResponse'
examples:
application/json:
data:
- balance: 10
paymentAmount: 0
creditAmount: 0
id: 2c98901a68ff26800168ffce84e3102c
taxAmount: 10
name: test
exemptAmount: 0
jurisdiction: test
locationCode: code - 001
taxCode: taxcode
taxCodeDescription: description
taxDate: 2019-02-18
taxRate: 2
taxRateDescription: test
taxRateType: FlatFee
- balance: 10
paymentAmount: 0
creditAmount: 0
id: 2c98901a68ff26800168ffce85d6102e
taxAmount: 10
name: test
exemptAmount: 0
jurisdiction: test
locationCode: code - 001
taxCode: taxcode
taxCodeDescription: description
taxDate: 2019-02-18
taxRate: 2
taxRateDescription: test
taxRateType: FlatFee
success: true
/v1/invoices/{invoiceKey}/reverse:
put:
summary: Reverse an invoice
operationId: PUT_ReverseInvoice
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n\nReverses a posted invoice. \n\n**Restrictions**\n\
\nYou are not allowed to reverse an invoice if any of the following restrictions\
\ is met:\n* Payments and credit memos are applied to the invoice.\n* The\
\ invoice is split.\n* The invoice is not in Posted status.\n* The total amount\
\ of the invoice is less than 0 (a negative invoice).\n* Using Tax Connector\
\ for Extension Platform to calculate taxes.\n* An invoice contains more than\
\ 2,000 items in total, including invoice items, discount items, and taxation\
\ items.\n\nSee [Invoice Reversal](https://knowledgecenter.zuora.com/CB_Billing/IA_Invoices/Reverse_Posted_Invoices)\
\ for more information.\n"
tags:
- Invoices
parameters:
- $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_HEADER_Zuora_Org_Ids'
- name: invoiceKey
in: path
required: true
type: string
description: 'The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab
or INV-0000001.
'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PutReverseInvoiceType'
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:
creditMemo:
id: 402890555a40ca7f015a5b099b0e307a
success: true
description: ''
schema:
$ref: '#/definitions/PutReverseInvoiceResponseType'
/v1/invoices/{invoiceKey}/write-off:
put:
summary: Write off an invoice
operationId: PUT_WriteOffInvoice
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n\nWrites off a posted invoice. \n\nBy writing off\
\ an invoice, a credit memo is created and applied to the invoice. The generated\
\ credit memo items and credit memo taxation items are applied to invoice\
\ items and invoice taxation items based on the configured default application\
\ rule. If an invoice is written off, the balance of each invoice item and\
\ invoice taxation item must be zero.\n\nIf you set the **Create credit memos\
\ mirroring invoice items billing rule** to **Yes**, you can write off an\
\ invoice even if all its items have zero balance.\n\n**Restrictions**: You\
\ cannot write off an invoice if any of the following restrictions is met:\n\
* The balance of an invoice has been changed before Invoice Settlement is\
\ enabled.\n For example, before Invoice Settlement is enabled, any credit\
\ balance adjustments, invoice item adjustments, or invoice adjustments have\
\ been applied to an invoice.\n* An invoice contains more than 2,000 items\
\ in total, including invoice items, discount items, and taxation items.\n\
See [Invoice Write-off](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/IA_Invoices/Invoice_Write-Off)\
\ for more information. \n"
tags:
- Invoices
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_HEADER_Zuora_Org_Ids'
- name: invoiceKey
in: path
required: true
type: string
description: 'The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab
or INV-0000001.
'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTWriteOffInvoiceRequest'
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:
creditMemo:
id: 402890555a40ca7f015a5b099b0e307a
success: true
description: ''
schema:
$ref: '#/definitions/PUTWriteOffInvoiceResponse'
/v1/invoices/{invoiceKey}/taxationitems:
post:
description: 'Creates taxation items for an invoice.
'
summary: Create taxation items for an invoice
operationId: POST_INV_TaxationItems
tags:
- Invoices
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:
taxationItems:
- createdById: 402881e522cf4f9b0122cf5d82860002
createdDate: '2017-03-01 10:08:43'
exemptAmount: 0
id: 402890555a7e9791015a87a072880062
invoiceItemId: 402890555a7e9791015a879f064d0055
jurisdiction: CALIFORNIA
locationCode: '06'
name: STATE TAX
taxAmount: 0.1
taxCode: ServiceTaxCode
taxMode: TaxExclusive
taxCodeDescription: This is tax code description!
taxDate: '2016-09-30'
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
updatedById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 10:08:43'
financeInformation:
accountsReceivableAccountingCode: Check
accountsReceivableAccountingCodeType: Cash
salesTaxPayableAccountingCode: Check
salesTaxPayableAccountingCodeType: Cash
success: true
schema:
$ref: '#/definitions/GETTaxationItemListType'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: invoiceKey
required: true
description: 'The unique ID or number of an invoice. For example, 8a8082e65b27f6c3015ba45ff82c7172
or INV00000001.
'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTTaxationItemList'
/v1/invoices/{invoiceKey}/einvoice/generate:
put:
summary: Generate an e-invoice file for an invoice
operationId: PUT_GenerationEInvoiceGenerationForInvoices
description: |
Generates an e-invoice file for an invoice.
**Note**: This operation is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
tags:
- Invoices
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_HEADER_Zuora_Org_Ids'
- name: invoiceKey
in: path
required: true
type: string
description: 'The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab
or INV-0000001.
'
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/journal-runs:
post:
summary: Create a journal run
operationId: POST_JournalRun
description: 'This REST API reference describes how to create a journal run.
Request and response field descriptions and sample code are provided.
'
tags:
- Journal Runs
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTJournalRunType'
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:
journalRunNumber: JR-00000008
success: true
description: ''
schema:
$ref: '#/definitions/POSTJournalRunResponseType'
/v1/journal-runs/{jr-number}:
get:
summary: Retrieve a journal run
operationId: GET_JournalRun
description: 'This REST API reference describes how to get information about
a journal run. Request and response field descriptions and sample code are
provided.
'
tags:
- Journal Runs
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_HEADER_Zuora_Org_Ids'
- name: jr-number
in: path
description: 'Journal run number. Must be a valid journal run number in the
format `JR-00000001`.
'
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:
number: JR-00000002
status: Completed
executedOn: '2014-11-15 22:05:12'
segmentationRuleName: s1
totalJournalEntryCount: 2
targetStartDate: '2016-03-01'
targetEndDate: '2016-03-31'
journalEntryDate: '2016-02-02'
transactionTypes:
- type: Invoice Item
success: true
description: ''
schema:
$ref: '#/definitions/GETJournalRunType'
delete:
summary: Delete a journal run
operationId: DELETE_JournalRun
description: "This reference describes how to delete a journal run using the\
\ REST API.\n \n You can only delete journal runs that\
\ have already been canceled.\n \n You must have the\
\ \"Delete Cancelled Journal Run\" Zuora Finance user permission enabled to\
\ delete journal runs.\n"
tags:
- Journal Runs
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_HEADER_Zuora_Org_Ids'
- name: jr-number
in: path
required: true
type: string
description: 'Journal run number. Must be a valid journal run number in the
format `JR-00000001`.
'
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/journal-runs/{jr-number}/cancel:
put:
summary: Cancel a journal run
operationId: PUT_JournalRun
description: "This reference describes how to cancel a journal run using the\
\ REST API.\n \nThe summary journal entries in the journal run are\
\ canceled asynchronously. See the \"Example\" section below for details.\n\
\ \nYou must have the \"Cancel Journal Run\" Zuora Finance user permission\
\ enabled to cancel journal runs.\n\n### Notes\nWhen you cancel a journal\
\ run, the summary journal entries associated with that journal run are canceled\
\ asynchronously. A response of `{ \"success\": true }` means only that the\
\ specified journal run has a status of \"Pending\", \"Error\", or \"Completed\"\
\ and therefore can be canceled, but does not mean that the whole journal\
\ run was successfully canceled.\n\nFor example, let's say you want to cancel\
\ journal run JR-00000075. The journal run status is \"Completed\" and it\
\ contains ten journal entries. One of the journal entries has its Transferred\
\ to Accounting status set to \"Yes\", meaning that the entry cannot be canceled.\
\ The workflow might go as follows:\n1. You make an API call to cancel the\
\ journal run.\n2. The journal run status is \"Completed\", so you receive\
\ a response of `{ \"success\": true }`.\n3. Zuora begins asynchronously canceling\
\ journal entries associated with the journal run. The journal entry whose\
\ Transferred to Accounting status is \"Yes\" fails to be canceled. The cancelation\
\ process continues, and the other journal entries are successfully canceled.\n\
4. The journal run status remains as \"Completed\". The status does not change\
\ to \"Canceled\" because the journal run still contains a journey entry that\
\ is not canceled.\n"
tags:
- Journal Runs
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_HEADER_Zuora_Org_Ids'
- name: jr-number
in: path
required: true
type: string
description: "Journal run number. Must be a valid journal run number in the\
\ format JR-00000001. \nYou can only cancel a journal run whose status is\
\ \"Pending\", \"Error\", or \"Completed\".\n"
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/bulk:
post:
summary: Perform a mass action
operationId: POST_MassUpdater
description: "Describes how to perform a mass action through the REST API. \n\
\nUsing this API method, you send a multipart/form-data request containing\
\ a `.csv` file with data about the mass action you want to perform. Zuora\
\ returns a key and then asynchronously processes the mass action. You can\
\ use the key to get details about the result of the mass action.\n\nIf you\
\ want to use this operation to perform the Mass Payment Upload (MPU) mass\
\ action, see [Mass Payment Upload](https://knowledgecenter.zuora.com/Billing/Finance/Mass_Updater/Mass_Payment_Upload)\
\ for more information.\n"
consumes:
- multipart/form-data
tags:
- Mass Updater
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: file
in: formData
required: true
type: file
description: |
File containing data about the mass action you want to perform. The file requirements are the same as when uploading a file through the Mass Updater in the Zuora UI. The file must be a `.csv` file or a zipped `.csv` file.
The maximum file size is 4 MB.
The data in the file must be formatted according to the mass action type you want to perform.
- name: params
in: formData
required: true
type: string
description: |
Container for the following fields. You must format this parameter as a JSON object.
* `actionType` (string, **Required**) - Type of mass action you want to perform. The following mass actions are supported: `UpdateAccountingCode`, `CreateRevenueSchedule`, `UpdateRevenueSchedule`, `DeleteRevenueSchedule`, `ImportFXRate`, and `MPU`.
* `checksum` (string) - An MD5 checksum that is used to validate the integrity of
the uploaded file. The checksum is a 32-character 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
bulkKey: 402892f04c97b89a014c97bb30a50003
description: ''
schema:
$ref: '#/definitions/POSTMassUpdateResponseType'
x-code-samples:
- lang: curl
label: cURL
source: 'curl -X POST -H "Authorization: Bearer f21f017e4724445d8647b1f0de7ed6f1"
-F "file=@CreateRevenueSchedules.csv" -F "params="{\"actionType\": \"CreateRevenueSchedule\"}"
"https://rest.zuora.com/v1/bulk"
'
/v1/bulk/{bulk-key}:
get:
summary: List all results of a mass action
operationId: GET_MassUpdater
description: "Describes how to get information about the result of a mass action\
\ through the REST API. \n"
tags:
- Mass Updater
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_HEADER_Zuora_Org_Ids'
- name: bulk-key
in: path
description: 'String of 32 characters that identifies a mass action. You get
the bulk-key after performing a mass action through the REST API.
'
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:
actionType: UpdateAccountingCode
inputSize: 354
uploadedBy: smith@example.com
uploadedOn: '2015-04-07 14:22:09'
status: Completed
startedOn: '2015-04-07 14:22:11'
endedOn: '2015-04-07 14:32:01'
outputSize: 350
outputURL: https://rest.zuora.com/v1/files/402892c84c9285b1014c9293f5320007
outputType: (url:.csv.zip)
totalCount: 3
processedCount: 3
errorCount: 1
successCount: 2
success: true
description: ''
schema:
$ref: '#/definitions/GETMassUpdateType'
/v1/bulk/{bulk-key}/stop:
put:
summary: Stop a mass action
operationId: PUT_MassUpdater
description: |
Describes how to stop a mass action through the REST API. You can stop a mass action when its status is Pending or Processing. After you have stopped a mass action, you can get the mass action result to see details of the mass action.
- If you stop a mass action when its status is Pending, no response file is generated because no records have been processed.
- If you stop a mass action when its status is Processing, a response file is generated. You can check the response file to see which records have been processed and which have not. In the response file, the **Success** column has the value `Y` (successful) or `N` (failed) for processed records, and a blank value for unprocessed records.
Records that have already been processed when a mass action is stopped are not rolled back.
tags:
- Mass Updater
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_HEADER_Zuora_Org_Ids'
- name: bulk-key
in: path
required: true
type: string
description: 'String of 32 characters that identifies a mass action. You get
the bulk-key after performing a mass action through the REST API.
'
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'
/notifications/notification-definitions:
post:
summary: Create a notification definition
operationId: POST_Create_Notification_Definition
tags:
- Notifications
description: "Creates a notification definition. If a filter rule is specified,\
\ it will be evaluated to\nsee if the notification definition is qualified\
\ to handle the incoming events \nduring runtime. If the notification is qualified,\
\ it will send the email and\ninvoke the callout if it has an email template\
\ or a callout. \n\n**Note**: This operation is only applicable to notifications\
\ for custom events and custom scheduled events.\n"
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_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: entity
in: body
description: The request body used to create the notification definition.
required: true
schema:
$ref: '#/definitions/POSTPublicNotificationDefinitionRequest'
responses:
'200':
description: OK
schema:
$ref: '#/definitions/GETPublicNotificationDefinitionResponse'
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.
'
'400':
description: Bad Request
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"ConstraintViolated",
"message":"The email template is defined on a different EventType other than the notification's"
}
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.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"404",
"message":"HTTP 404 Not Found"
}
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.
'
'405':
description: Method Not Allowed
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"405",
"message":"HTTP 405 Method Not Allowed"
}
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.
'
'415':
description: Unsupported Media Type
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"415",
"message":"HTTP 415 Unsupported Media Type"
}
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.
'
'500':
description: Internal Server Error
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"500",
"message":"A temporary problem in the service occurred, you can retry later."
}
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.
'
get:
summary: List notification definitions
operationId: GET_Query_Notification_Definitions
tags:
- Notifications
description: |
Queries notification definitions with the specified filters.
**Note**: This operation is only applicable to notifications for custom events and custom scheduled events. You can use the Settings API to list all notifications under a particular communication profile including notificatiions for standard events. For more information, see [Get all notifications under a particular communication profile](https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Get_all_Notifications_under_a_particular_Communication_Profile).
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: start
in: query
description: The first index of the query result.
allowEmptyValue: true
default: 1
type: integer
format: int32
- name: limit
in: query
description: The maximum number of results the query should return.
allowEmptyValue: true
default: 20
type: integer
format: int32
minimum: 1
maximum: 100
- name: profileId
in: query
description: Id of the profile.
allowEmptyValue: true
type: string
format: uuid
- name: eventTypeName
in: query
description: The name of the event.
allowEmptyValue: true
type: string
- name: emailTemplateId
in: query
description: The ID of the email template.
allowEmptyValue: true
type: string
format: uuid
responses:
'200':
description: OK
schema:
type: object
properties:
next:
type: string
description: The URI to query the next page of data, e.g. '/notification-definitions?start=1&limit=10'.
The start equals request's start+limit, and the limit equals the
request's limit. If the current page is the last page, this value
is null.
example: /notification-definitions?start=1&limit=10
data:
type: array
items:
$ref: '#/definitions/GETPublicNotificationDefinitionResponse'
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.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"404",
"message":"HTTP 404 Not Found"
}
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.
'
'405':
description: Method Not Allowed
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"405",
"message":"HTTP 405 Method Not Allowed"
}
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.
'
'415':
description: Unsupported Media Type
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"415",
"message":"HTTP 415 Unsupported Media Type"
}
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.
'
'500':
description: Internal Server Error
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"500",
"message":"A temporary problem in the service occurred, you can retry later."
}
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.
'
/notifications/notification-definitions/{id}:
put:
summary: Update a notification definition
operationId: PUT_Update_Notification_Definition
tags:
- Notifications
description: |
Updates a notification definition.
**Note**: This operation is only applicable to notifications for custom events and custom scheduled events. You can use the Settings API to update notifications for standard events. For more information, see [Update a notification definition](https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Update_a_notification_definition).
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: id
in: path
description: The ID of the notification definition to be updated.
required: true
type: string
format: uuid
- name: PUTPublicNotificationDefinitionRequest
in: body
description: The request body of the notification definition to be updated.
required: true
schema:
$ref: '#/definitions/PUTPublicNotificationDefinitionRequest'
responses:
'200':
description: OK
schema:
$ref: '#/definitions/GETPublicNotificationDefinitionResponse'
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.
'
'400':
description: Bad Request
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"ConstraintViolated",
"message":"The email template is defined on a different EventType other than the notification's"
}
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.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"404",
"message":"HTTP 404 Not Found"
}
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.
'
'405':
description: Method Not Allowed
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"405",
"message":"HTTP 405 Method Not Allowed"
}
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.
'
'415':
description: Unsupported Media Type
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"415",
"message":"HTTP 415 Unsupported Media Type"
}
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.
'
'500':
description: Internal Server Error
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"500",
"message":"A temporary problem in the service occurred, you can retry later."
}
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.
'
get:
summary: Retrieve a notification definition
operationId: GET_Get_Notification_Definition
tags:
- Notifications
description: |
Queries the notification definition of the given ID.
**Note**: This operation is only applicable to notifications for custom events and custom scheduled events. You can use the Settings API to retrieve notifications for standard events. For more information, see [Get a notification definition](https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Get_a_notification_definition).
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: id
in: path
description: The ID of the notification definition.
required: true
type: string
format: uuid
responses:
'200':
description: OK
schema:
$ref: '#/definitions/GETPublicNotificationDefinitionResponse'
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.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"404",
"message":"HTTP 404 Not Found"
}
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-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.
'
Zuora-Request-Id:
type: string
description: The Zuora request ID passed from the request or generated
by the API Gateway.
'405':
description: Method Not Allowed
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"405",
"message":"HTTP 405 Method Not Allowed"
}
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.
'
'415':
description: Unsupported Media Type
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"415",
"message":"HTTP 415 Unsupported Media Type"
}
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.
'
'500':
description: Internal Server Error
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"500",
"message":"A temporary problem in the service occurred, you can retry later."
}
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.
'
delete:
summary: Delete a notification definition
operationId: DELETE_Delete_Notification_Definition
tags:
- Notifications
description: |
Deletes a notification definition.
**Note**: This operation is only applicable to notifications for custom events and custom scheduled events. You can use the Settings API to delete notifications for standard events. For more information, see [Delete a notification definition](https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Delete_a_notification_definition).
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: id
in: path
description: The ID of the notification definition to be deleted.
required: true
type: string
format: uuid
responses:
'204':
description: No Content
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.
'
'400':
description: Bad Request
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"ObjectNotFound",
"message":"The notification definition with id 6e569e1e05f040eda51a927b140c0ac2 does not exist"
}
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.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"404",
"message":"HTTP 404 Not Found"
}
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.
'
'405':
description: Method Not Allowed
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"405",
"message":"HTTP 405 Method Not Allowed"
}
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.
'
'415':
description: Unsupported Media Type
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"415",
"message":"HTTP 415 Unsupported Media Type"
}
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.
'
'500':
description: Internal Server Error
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"500",
"message":"A temporary problem in the service occurred, you can retry later."
}
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.
'
/notifications/email-templates:
post:
summary: Create an email template
operationId: POST_Create_Email_Template
tags:
- Notifications
description: "Creates an email template. \n\nThis operation supports creating\
\ the email template for all event types.\n\n- If you specify the `eventCategory`\
\ field, the email template is created based on a standard event. See [Standard\
\ Event Categories](https://knowledgecenter.zuora.com/Central_Platform/Notifications/A_Standard_Events/Standard_Event_Category_Code_for_Notification_Histories_API)\
\ for all standard event category codes.\n- If you specify the `eventTypeName`\
\ field, the email template is created based on the corresponding custom event\
\ or custom scheduled event. See [Custom event triggers](https://developer.zuora.com/api-references/api/tag/Custom-Event-Triggers/)\
\ for more information about custom events, and [Custom scheduled events](https://developer.zuora.com/api-references/api/tag/Custom-Scheduled-Events/)\
\ for more information about custom scheduled events.\n"
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_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: POSTPublicEmailTemplateRequest
in: body
description: The request body to create an email template.
required: true
schema:
$ref: '#/definitions/POSTPublicEmailTemplateRequest'
responses:
'200':
description: OK
schema:
$ref: '#/definitions/GETPublicEmailTemplateResponse'
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.
'
'400':
description: Bad Request
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"ObjectNotFound",
"message":"eventType {com.zuora.notification, AccountEdit} does not exist"
}
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.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"404",
"message":"HTTP 404 Not Found"
}
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.
'
'405':
description: Method Not Allowed
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"405",
"message":"HTTP 405 Method Not Allowed"
}
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.
'
'415':
description: Unsupported Media Type
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"415",
"message":"HTTP 415 Unsupported Media Type"
}
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.
'
'500':
description: Internal Server Error
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"500",
"message":"A temporary problem in the service occurred, you can retry later."
}
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.
'
get:
summary: List email templates
operationId: GET_Query_Email_Templates
tags:
- Notifications
description: 'Queries email templates. This operation supports querying email
templates for all event types.
'
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: start
in: query
description: The first index of the query result.
allowEmptyValue: true
default: 1
type: integer
format: int32
- name: limit
in: query
description: The maximum number of results the query should return.
allowEmptyValue: true
default: 20
type: integer
format: int32
minimum: 1
maximum: 100
- name: eventCategory
in: query
description: The event category code for standard events.
allowEmptyValue: true
type: number
- name: eventTypeName
in: query
description: The name of the custom event or custom scheduled event.
allowEmptyValue: true
type: string
- name: name
in: query
description: The name of the email template.
allowEmptyValue: true
type: string
responses:
'200':
description: OK
schema:
type: object
properties:
next:
type: string
description: The URI to query the next page of data, e.g. '/notification-definitions?start=1&limit=10'.
The start equals request's start+limit, and the limit equals the
request's limit. If the current page is the last page, this value
is null.
data:
type: array
items:
$ref: '#/definitions/GETPublicEmailTemplateResponse'
examples:
application/json:
next: /notification-definitions?start=1&limit=10
data:
- id: 6e569e1e05f040eda51a927b140c0ac2
createdBy: 6e569e1e05f040eda51a927b140c0ac3
createdOn: '2017-04-18T07:36:19.798Z'
updatedBy: 6e569e1e05f040eda51a927b140c0ac4
updatedOn: '2017-04-18T07:36:19.798Z'
eventTypeName: AccountEdit
name: Account Edit Email
description: Email when an account is edited
encodingType: UTF8
fromName: Example Co. Ltd.
fromEmailType: TenantEmail
replyToEmailType: TenantEmail
ccEmailType: SpecificEmails
ccEmailAddress: user@example.com
bccEmailAddress: user@example.com
toEmailType: SpecificEmails
toEmailAddress: DummyEmailAddress@example.com
emailSubject: Account has been edited
emailBody: Dear user,the account has been edited.
Example Co. Ltd.
active: true
isHtml: true
- id: 6e569e1e05f040eda51a927b70e31f4e
createdBy: 6e569e1e05f040eda51a927b140c0ac3
createdOn: '2017-04-18T07:37:20.798Z'
updatedBy: 6e569e1e05f040eda51a927b140c0ac4
updatedOn: '2017-04-18T07:37:20.798Z'
eventCategory: 1110
name: Invoice Posted Email
description: Email when an invoice is posted
encodingType: UTF8
fromName: Example Co. Ltd.
fromEmailType: SpecificEmail
fromEmailAddress: EmailAddress1@example.com
replyToEmailType: TenantEmail
ccEmailType: SpecificEmails
ccEmailAddress: user@example.com
bccEmailAddress: user@example.com
toEmailType: BillToContact
emailSubject: Invoice has been posted
emailBody: Dear user,the invoice has been posted.
Example Co. Ltd.
active: true
isHtml: true
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.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"404",
"message":"HTTP 404 Not Found"
}
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.
'
'405':
description: Method Not Allowed
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"405",
"message":"HTTP 405 Method Not Allowed"
}
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.
'
'415':
description: Unsupported Media Type
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"415",
"message":"HTTP 415 Unsupported Media Type"
}
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.
'
'500':
description: Internal Server Error
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"500",
"message":"A temporary problem in the service occurred, you can retry later."
}
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.
'
/notifications/email-templates/import:
post:
summary: Create or update email templates
operationId: POST_CreateOrUpdateEmailTemplates
tags:
- Notifications
description: |
Creates email templates for standard or custom events if you do not specify email template IDs, or updates existing email templates if you specify valid email template IDs.
For each email template when you are creating email templates, whether the template is created for a standard event, a custom event, or a custom scheduled event is dependent on whether you specify the `eventCategory` or `eventTypeName` field.
- If you specify the `eventCategory` field, the email template is created based on a standard event. See [Standard Event Categories](https://knowledgecenter.zuora.com/Central_Platform/Notifications/A_Standard_Events/Standard_Event_Category_Code_for_Notification_Histories_API) for all standard event category codes.
- If you specify the `eventTypeName` field, the email template is created based on the corresponding custom event or custom scheduled event. See [Custom event triggers](https://developer.zuora.com/api-references/api/tag/Custom-Event-Triggers/) for more information about custom events, and [Custom scheduled events](https://developer.zuora.com/api-references/api/tag/Custom-Scheduled-Events/) for more information about custom scheduled events.
The maximum number of email templates that you can create or update by one call is 1,000.
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_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: POSTCreateOrUpdateEmailTemplateRequest
in: body
description: The request body to import or update email templates.
required: true
schema:
$ref: '#/definitions/POSTCreateOrUpdateEmailTemplateRequest'
responses:
'200':
description: OK
schema:
$ref: '#/definitions/CreateOrUpdateEmailTemplatesResponse'
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.
'
/notifications/email-templates/{id}:
put:
summary: Update an email template
operationId: PUT_Update_Email_Template
tags:
- Notifications
description: 'Updates an email template. This operation supports updating the
email template for all event types.
'
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: id
in: path
description: The ID of the email template to be updated.
required: true
type: string
format: uuid
- name: PUTPublicEmailTemplateRequest
in: body
description: The request body to update an email template.
required: true
schema:
$ref: '#/definitions/PUTPublicEmailTemplateRequest'
responses:
'200':
description: OK
schema:
$ref: '#/definitions/GETPublicEmailTemplateResponse'
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.
'
'400':
description: Bad Request
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"ObjectNotFound",
"message":"eventType {com.zuora.notification, AccountEdit} does not exist"
}
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.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"404",
"message":"HTTP 404 Not Found"
}
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.
'
'405':
description: Method Not Allowed
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"405",
"message":"HTTP 405 Method Not Allowed"
}
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.
'
'415':
description: Unsupported Media Type
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"415",
"message":"HTTP 415 Unsupported Media Type"
}
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.
'
'500':
description: Internal Server Error
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"500",
"message":"A temporary problem in the service occurred, you can retry later."
}
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.
'
get:
summary: Retrieve an email template
operationId: GET_Get_Email_Template
tags:
- Notifications
description: 'Queries the email template based on the specified ID. This operation
supports retrieving the email template for all event types.
'
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: id
in: path
description: The ID of the email template.
required: true
type: string
format: uuid
responses:
'200':
description: OK
schema:
$ref: '#/definitions/GETPublicEmailTemplateResponse'
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:
examples:
application/json:
id: 6e569e1e05f040eda51a927b140c0ac2
createdBy: 6e569e1e05f040eda51a927b140c0ac3
createdOn: '2017-04-18T07:36:19.798Z'
updatedBy: 6e569e1e05f040eda51a927b140c0ac4
updatedOn: '2017-04-18T07:36:19.798Z'
eventTypeName: AccountEdit
name: Account Edit Email
description: Email when an account is edited
encodingType: UTF8
fromName: Example Co. Ltd.
fromEmailType: TenantEmail
replyToEmailType: TenantEmail
ccEmailType: SpecificEmails
ccEmailAddress: user@example.com
bccEmailAddress: user@example.com
toEmailType: SpecificEmails
toEmailAddress: DummyEmailAddress@example.com
emailSubject: Account has been edited
emailBody: Dear user,the account has been edited.
Example Co. Ltd.
active: true
isHtml: true
'400':
description: Bad Request
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"ObjectNotFound",
"message":"The email template with id 6e569e1e05f040eda51a927b140c0ac2 does not exist in this tenant"
}
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.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"404",
"message":"HTTP 404 Not Found"
}
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.
'
'405':
description: Method Not Allowed
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"405",
"message":"HTTP 405 Method Not Allowed"
}
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.
'
'415':
description: Unsupported Media Type
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"415",
"message":"HTTP 415 Unsupported Media Type"
}
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.
'
'500':
description: Internal Server Error
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"500",
"message":"A temporary problem in the service occurred, you can retry later."
}
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.
'
delete:
summary: Delete an email template
operationId: DELETE_Delete_Email_Template
tags:
- Notifications
description: 'Deletes an email template. This operation supports deleting an
email template for all event types.
'
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: id
in: path
description: The ID of the email template to be deleted.
required: true
type: string
format: uuid
responses:
'204':
description: No Content
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.
'
'400':
description: Bad Request
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"ObjectNotFound",
"message":"The email template with id 6e569e1e05f040eda51a927b140c0ac2 does not exist in this tenant"
}
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.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"404",
"message":"HTTP 404 Not Found"
}
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.
'
'405':
description: Method Not Allowed
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"405",
"message":"HTTP 405 Method Not Allowed"
}
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.
'
'415':
description: Unsupported Media Type
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"415",
"message":"HTTP 415 Unsupported Media Type"
}
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.
'
'500':
description: Internal Server Error
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"code":"500",
"message":"A temporary problem in the service occurred, you can retry later."
}
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.
'
/notifications/history:
delete:
summary: Delete notification histories for an account
operationId: DELETE_Delete_Notification_History_For_Account
tags:
- Notifications
description: 'Delete all notification histories for the given account. All email
and callout notifications for this account will be deleted upon successful
operation.
'
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: accountId
in: query
description: The ID of the account whose notification histories are to be
deleted.
required: true
type: string
format: uuid
responses:
'202':
description: Accepted
schema:
$ref: '#/definitions/NotificationsHistoryDeletionTaskResponse'
examples:
application/json: |-
{
"id": "2be2f02afc504d1b83fb3cd095ce4dc6",
"status": "RUNNING",
"tenantId": "9",
"createdBy": "402881e522cf4f9b0122cf5d82860002",
"createdOn": 1610358627000,
"accountId": "2c9e8084769a87be0176f0cfa138001e"
}
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.
'
'400':
description: Bad Request
schema:
type: string
description: The error message notifying that `accountId` must not be
empty.
example: may not be null (path = PublicNotificationHistoryResource.deleteHistoryByAccountId.query
param accountId, invalidValue = null)
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.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"reasons": [
{
"code": "404",
"message": "HTTP 404 Not Found"
}
]
}
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.
'
x-code-samples:
- lang: curl
label: Curl
source: 'curl -X DELETE -H "Authorization: Bearer 6d151216ef504f65b8ff6e9e9e8356d3"
-H "Content-Type: application/json" "https://rest.zuora.com//notifications/history?accountId=402892c74c9193cd014c96bbe7c101f9"
'
/notifications/history/tasks/{id}:
get:
summary: Retrieve a notification history deletion task
operationId: GET_Get_Notification_History_Deletion_Task
tags:
- Notifications
description: 'Get the notification history deletion task by ID.
'
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: id
in: path
description: 'The ID of the notification history deletion task. You can get
the deletion task ID from the 202 response body of the [Delete notification
histories for an account](https://developer.zuora.com/api-references/api/operation/DELETE_Delete_Notification_History_For_Account)
operation.
'
required: true
type: string
format: uuid
responses:
'200':
description: OK
schema:
$ref: '#/definitions/NotificationsHistoryDeletionTaskResponse'
examples:
application/json: |-
{
"id": "2be2f02afc504d1b83fb3cd095ce4dc6",
"status": "FINISHED",
"tenantId": "9",
"createdBy": "402881e522cf4f9b0122cf5d82860002",
"createdOn": 1610358627000,
"accountId": "2c9e8084769a87be0176f0cfa138001e"
}
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.
'
'404':
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
examples:
application/json: |-
{
"reasons": [
{
"code": "ObjectNotFound",
"message": "history task with id 2be2f02afc504d1b83fb3cd095ce4dc7 not found"
}
]
}
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.
'
/notifications/email-histories/resend:
post:
summary: Resend email notifications
operationId: POST_ResendEmailNotifications
description: |
Resends email notifications if your customers did not receive previous email notifications.
Details about the status codes and response contents of this operation are as follows:
| Scenario | Status code | Response content |
|----------------------------------------|-----------------|-------------------------------------------------------------|
| Success for all notifications | 202 Accepted | (blank) |
| Success for at least one notification | 202 Accepted | Error code and error message of each failed notification |
| Failure for all notifications | 400 Bad Request | Error code and error message of each failed notification |
tags:
- Notifications
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_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: POSTResendEmailNotifications
in: body
description: The request body to resend email notifications.
required: true
schema:
$ref: '#/definitions/POSTResendEmailNotifications'
responses:
'202':
description: Accepted
schema:
$ref: '#/definitions/ResendEmailNotificationsFailedResponse'
examples:
application/json:
a00000000000000000000000000000000:
code: ObjectNotFound
message: Email history does not exist.
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.
'
'400':
description: Bad Request
schema:
$ref: '#/definitions/ResendEmailNotificationsFailedResponse'
examples:
application/json:
a00000000000000000000000000000000:
code: ObjectNotFound
message: Email history does not exist.
a00000000000000000000000000000001:
code: ObjectNotFound
message: Email history does not exist.
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.
'
/notifications/callout-histories/resend:
post:
summary: Resend callout notifications
operationId: POST_ResendCalloutNotifications
description: |
Resends callout notifications if your customers did not receive previous callout notifications.
Details about the status codes and response contents of this operation are as follows:
| Scenario | Status code | Response content |
|----------------------------------------|-----------------|-------------------------------------------------------------|
| Success for all notifications | 202 Accepted | (blank) |
| Success for at least one notification | 202 Accepted | Error code and error message of each failed notification |
| Failure for all notifications | 400 Bad Request | Error code and error message of each failed notification |
tags:
- Notifications
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_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: POSTResendCalloutNotifications
in: body
description: The request body to resend callout notifications.
required: true
schema:
$ref: '#/definitions/POSTResendCalloutNotifications'
responses:
'202':
description: Accepted
schema:
$ref: '#/definitions/ResendCalloutNotificationsFailedResponse'
examples:
application/json:
a00000000000000000000000000000000:
code: ObjectNotFound
message: Callout history does not exist.
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.
'
'400':
description: Bad Request
schema:
$ref: '#/definitions/ResendCalloutNotificationsFailedResponse'
examples:
application/json:
a00000000000000000000000000000000:
code: ObjectNotFound
message: Callout history does not exist.
a00000000000000000000000000000001:
code: ObjectNotFound
message: Callout history does not exist.
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.
'
/v1/notification-history/callout:
get:
summary: List callout notification histories
operationId: GET_CalloutHistory
description: 'Describes how to get a notification history for callouts.
'
tags:
- Notifications
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: endTime
in: query
type: string
format: date-time
description: The final date and time of records to be returned. Defaults to
now. Use format yyyy-MM-ddTHH:mm:ss.
required: false
- name: startTime
in: query
type: string
format: date-time
description: The initial date and time of records to be returned. Defaults
to (end time - 1 day). Use format yyyy-MM-ddTHH:mm:ss.
required: false
- name: objectId
in: query
type: string
description: "The ID of an object that triggered a callout notification. \n"
required: false
- name: failedOnly
in: query
type: boolean
description: 'If `true`, only return failed records. If `false`, return all
records in the given date range. The default value is `true`.
'
required: false
- name: eventCategory
in: query
type: string
description: |
Category of records to be returned by event category.
The following formats are supported:
* `{Event Type Namespace}:{Event Type Name}` if the Custom Events feature is enabled in your tenant. For example: `user.notification:NewSubscriptionCreated`.
* Numeric code of the event category if the Custom Events feature is not enabled in your tenant. For example, `1210`. See [Event Category Code](https://knowledgecenter.zuora.com/DC_Developers/AA_REST_API/Event_Categories_for_Notification_Histories) for more information.
required: false
- name: includeResponseContent
in: query
type: boolean
description: ''
required: 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:
calloutHistories:
- responseCode: 405
requestUrl: https://www.google.com
requestMethod: POST
eventCategory: 1210
notification: New Subscription Created
attemptedNum: 3
createTime: '2015-01-13T03:33:51'
eventContext:
: USD
:
Charge Name: recurringcharge
Charge Type: Recurring
Effective Start Date: 01 / 01 / 2016
Unit Price: 50.0
QTY: 5.0
Total: 250.0
: $
: Mary
: 01/01/2016
: '50'
: '0'
: 01/01/2016
: test
: A-S00000003
: 402881e54ade80c8014ade884c48000b
: smith@example.com
: A00000001
: 01/01/2016
: 2015-01-13T22:31:43.248+0800
: 'No'
:
id: 402892fa47866fe701478674a5c100eb
EmailTemplate: New Subscription Created Default Email Template
Event: New Subscription Created
Profile: Default Profile
emailAction: true
calloutAction: true
updatedOn: 01/12/2015 03:23:08
updatedBy: 402892fa47866fe7014786749d9b0002
: Smith
: 402881e54ae37f31014ae3b514e100fd
: 01/01/2016
: $12,500.00
: 402881e54ade80c8014ade884c51000c
: $250.00
: 402881e54ade80c8014ade884c51000c
: SubscriptionCreated
: termed
: 402881e54ade80c8014ade884c48000b
: 01/13/2015
: 03/01/2020
: 402881e54ae37f31014ae3b514e100fd
: 402892fa47866fe701478674a4ff0093
: smith@example.com
nextPage: https://localhost:8080/apps/v1/notification-history/callout?page=2&pageSize=1&startTime=2015-01-12T00:00:00&endTime=2015-01-15T00:00:00&failedOnly=false&eventCategory=1000
success: true
description: ''
schema:
$ref: '#/definitions/GETCalloutHistoryVOsType'
/v1/notification-history/email:
get:
summary: List email notification histories
operationId: GET_EmailHistory
description: "Describes how to get a notification history for notification emails.\n\
\n\n### Notes\nRequest parameters and their values may be appended with a\
\ \"?\" following the HTTPS GET request. Additional request parameter are\
\ separated by \"&\". \n\nFor example:\n\n`GET https://rest.zuora.com/v1/notification-history/email?startTime=2015-01-12T00:00:00&endTime=2015-01-15T00:00:00&failedOnly=false&eventCategory=1000&pageSize=1`\n"
tags:
- Notifications
parameters:
- $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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: accountId
in: query
type: string
description: ID of an account. By specifying this query parameter, you can
filter email notification histories by account.
- name: endTime
in: query
type: string
format: date-time
description: The end date and time of records to be returned. Defaults to
now. Use format yyyy-MM-ddTHH:mm:ss. The maximum date range (endTime - startTime)
is three days.
required: false
- name: startTime
in: query
type: string
format: date-time
description: The initial date and time of records to be returned. Defaults
to (end time - 1 day). Use format yyyy-MM-ddTHH:mm:ss. The maximum date
range (endTime - startTime) is three days.
required: false
- name: objectId
in: query
type: string
description: 'The Id of an object that triggered an email notification.
'
required: false
- name: failedOnly
in: query
type: boolean
description: 'If `true`, only returns failed records. When `false`, returns
all records in the given date range. Defaults to `true` when not specified.
'
required: false
- name: eventCategory
in: query
type: number
description: |
Category of records to be returned by event category.
The following formats are supported:
* `{Event Type Namespace}:{Event Type Name}` if the Custom Events feature is enabled in your tenant. For example: `user.notification:NewSubscriptionCreated`.
* Numeric code of the event category if the Custom Events feature is not enabled in your tenant. For example, `1210`. See [Event Category Code](https://knowledgecenter.zuora.com/DC_Developers/AA_REST_API/Event_Categories_for_Notification_Histories) for more information.
required: 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:
emailHistories:
- accountId: 2c9e8084769a87be0176f0cfa138001e
result: OK
errorMessage: null
eventCategory: 1210
notification: New Subscription Created
subject: New subscription A-S00000003 was created and activated
toEmail: smith@example.com
fromEmail: no-reply@example.com
cc: bob@example.com,chris@example.com
bcc: ceo@example.com,cto@example.com
replyTo: supportexample.com
sendTime: '2015-01-13T03:31:43'
nextPage: https://localhost:8080/apps/v1/notification-history/email?page=2&pageSize=1&startTime=2015-01-12T00:00:00&endTime=2015-01-15T00:00:00&failedOnly=false&eventCategory=1000
success: true
description: ''
schema:
$ref: '#/definitions/GETEmailHistoryVOsType'
/oauth/token:
post:
tags:
- OAuth
summary: Create an OAuth token
operationId: createToken
description: |
Creates a bearer token that enables an OAuth client to authenticate with the Zuora REST API. The OAuth client must have been created using the Zuora UI. See [Authentication](https://developer.zuora.com/rest-api/general-concepts/authentication/) for more information.
**Note:** When using this operation, do not set any authentication headers such as `Authorization`, `apiAccessKeyId`, or `apiSecretAccessKey`.
You should not use this operation to generate a large number of bearer tokens in a short period of time; each token should be used until it expires. If you receive a 429 Too Many Requests response when using this operation, reduce the frequency of requests. This endpoint is rate limited by IP address.
For the rate limit information of authentication, see [Rate and concurrent request limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/).
consumes:
- application/x-www-form-urlencoded
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: client_id
in: formData
minLength: 36
maxLength: 36
description: 'The Client ID of the OAuth client.
'
required: true
type: string
- name: client_secret
in: formData
maxLength: 42
description: 'The Client Secret that was displayed when the OAuth client was
created.
'
type: string
required: true
- name: grant_type
in: formData
required: true
type: string
description: 'The OAuth grant type that will be used to generate the token.
The value of this parameter must be `client_credentials`.
'
enum:
- client_credentials
responses:
200:
headers:
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.
'
X-RateLimit-Limit-minute:
type: integer
description: 'The rate limit of this operation, in requests per minute.
See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
X-RateLimit-Remaining-minute:
type: integer
description: 'The number of requests that you may make in the next minute.
See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
examples:
application/json:
access_token: c652cbc0ea384b9f81856a93a2a74538
token_type: bearer
expires_in: 3599
scope: user.7c4d5433dc234c369a01b9719ecd059f entity.1a2b7a37-3e7d-4cb3-b0e2-883de9e766cc
entity.c92ed977-510c-4c48-9b51-8d5e848671e9 service.echo.read tenant.19
jti: c652cbc0ea384b9f81856a93a2a74539
description: OK
schema:
$ref: '#/definitions/tokenResponse'
429:
headers:
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.
'
X-RateLimit-Limit-minute:
type: integer
description: 'The rate limit of this operation, in requests per minute.
See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
X-RateLimit-Remaining-minute:
type: integer
description: 'The number of requests that you may make in the next minute.
See [rate limits](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits#Rate_limits)
for more information.
'
description: Too Many Requests
x-code-samples:
- lang: curl
label: Curl
source: 'curl -X POST -H "Content-Type: application/x-www-form-urlencoded"
-d "client_id=b64e42ba-7e1a-4bc6-9146-5e1b420306b5" --data-urlencode "client_secret=dOFENLWU193EEoEsWjPZrcjLKVr5OrN1HC9Kqg"
-d "grant_type=client_credentials" "https://rest.zuora.com/oauth/token"
'
/v1/offers:
post:
summary: Create an offer
operationId: POST_CreateOffer
description: |
Creates an offer.
**Note**: This operation is in the **Beta** phase.
tags:
- Offers
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTOfferRequest'
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: 402880ec86c02ee70186c0414db00075
number: OF-00000003
success: true
description: ''
schema:
$ref: '#/definitions/POSTOfferResponse'
get:
summary: List offers
operationId: GET_ListOffers
description: |
Retrieves basic information about all offers.
**Note**: This operation is in the **Beta** phase.
tags:
- Offers
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_HEADER_Zuora_Org_Ids'
- $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:
offers:
- id: 402880ec86c02ee70186c035c9a7002c
name: test
number: OF-00000001
description: some description
type: Static
pricingLevel: Component
effectiveStartTime: '2023-02-20 12:00:00'
effectiveEndTime: '2023-12-30 12:05:00'
productRatePlanCharges:
- id: 402880ec86c02ee70186c0348334001c
productRatePlanId: 402880ec86c02ee70186c0343360000f
sequence: 1
name: charge 1
number: PC-00000001
type: Recurring
model: FlatFee
description: null
chargeConfiguration:
id: 402880ec86c02ee70186c035c9ac0036
triggerEvent: ContractEffective
billingTiming: IN_ADVANCE
billCycleType: DefaultFromCustomer
billCycleDay: null
weeklyBillCycleDay: null
billingPeriod: Month
specificBillingPeriod: null
billingPeriodAlignment: AlignToCharge
endDateCondition: Subscription_End
upToPeriods: null
upToPeriodsType: null
priceBookItems:
- id: 402880ec86c02ee70186c035c9ab0030
number: PBI-00000004
productChargeId: 402880ec86c02ee70186c0348334001c
offerId: 402880ec86c02ee70186c035c9a7002c
offerNumber: OF-00000001
effectiveStartDate: '2023-02-21'
effectiveEndDate: '2023-12-31'
currency: USD
defaultQuantity: 1
listPriceBase: Per_Billing_Period
includedUnits: null
price: 80
overagePrice: null
tiers: null
intervalPrices: null
success: true
description: ''
schema:
$ref: '#/definitions/ListAllOffersResponse'
/v1/offers/{offer-key}:
get:
summary: Retrieve an offer
operationId: GET_RetrieveOffer
description: |
Retrieves basic information about an offer.
**Note**: This operation is in the **Beta** phase.
tags:
- Offers
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_HEADER_Zuora_Org_Ids'
- name: offer-key
in: path
description: 'The unique number or ID of the offer 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: 402880ec86c02ee70186c035c9a7002c
name: test
number: OF-00000001
description: some description
type: Static
pricingLevel: Component
effectiveStartTime: '2023-02-20 12:00:00'
effectiveEndTime: '2023-12-30 12:05:00'
productRatePlanCharges:
- id: 402880ec86c02ee70186c0348334001c
productRatePlanId: 402880ec86c02ee70186c0343360000f
sequence: 1
name: charge 1
number: PC-00000001
type: Recurring
model: FlatFee
description: null
chargeConfiguration:
id: 402880ec86c02ee70186c035c9ac0036
triggerEvent: ContractEffective
billingTiming: IN_ADVANCE
billCycleType: DefaultFromCustomer
billCycleDay: null
weeklyBillCycleDay: null
billingPeriod: Month
specificBillingPeriod: null
billingPeriodAlignment: AlignToCharge
endDateCondition: Subscription_End
upToPeriods: null
upToPeriodsType: null
priceBookItems:
- id: 402880ec86c02ee70186c035c9ab0030
number: PBI-00000004
productChargeId: 402880ec86c02ee70186c0348334001c
offerId: 402880ec86c02ee70186c035c9a7002c
offerNumber: OF-00000001
effectiveStartDate: '2023-02-21'
effectiveEndDate: '2023-12-31'
currency: USD
defaultQuantity: 1
listPriceBase: Per_Billing_Period
includedUnits: null
price: 80
overagePrice: null
tiers: null
intervalPrices: null
success: true
description: ''
schema:
$ref: '#/definitions/GETOfferResponse'
delete:
summary: Delete an offer
operationId: DELETE_Offer
description: "Deletes an offer.\n\n**Note**: This operation is in the **Beta**\
\ phase.\n \n"
tags:
- Offers
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_HEADER_Zuora_Org_Ids'
- name: offer-key
in: path
description: 'The unique number or ID of the offer 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'
/open-payment-method-types:
post:
summary: Create a draft custom payment method type
operationId: POST_CreateDraftOpenPaymentMethodType
description: 'Creates a draft version of a custom payment method type. Revision
number 1 is assigned to this version. You can update your draft version through
the [Update a custom payment method type](https://developer.zuora.com/api-references/api/operation/PUT_UpdateOpenPaymentMethodType/)
operation. You must publish your draft version through the [Publish a custom
payment method type](https://developer.zuora.com/api-references/api/operation/PUT_PublishOpenPaymentMethodType/)
operation before your custom payment method type goes live.
'
tags:
- Custom Payment Method Types
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_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTCreateOpenPaymentMethodTypeRequest'
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:
status: Draft
paymentMethodType: AmazonPay__C_12368
revision: 1
publishDate: ''
description: ''
schema:
$ref: '#/definitions/POSTCreateOpenPaymentMethodTypeResponse'
/open-payment-method-types/publish/{paymentMethodTypeName}:
put:
summary: Publish a custom payment method type
operationId: PUT_PublishOpenPaymentMethodType
description: 'Publish the latest draft revision of a specific custom payment
method type.
'
tags:
- Custom Payment Method Types
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: paymentMethodTypeName
required: true
description: 'The API name of the custom payment method type, such as `AmazonPay__c_12368`.
'
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:
internalName: AmazonPay
label: ZuoraQA Amazon Pay
revision: 1
version: '2021-11-22'
status: Published
tenantId: '9'
entityId: ''
methodReferenceIdField: AmazonToken
userReferenceIdField: AmazonAccount
subTypeField: AmazonTokenType
fields:
- name: AmazonToken
type: string
description: The Token value
defaultValue: null
label: AmazonToken
index: 1
maxLength: 100
minLength: 1
checksum: true
required: true
visible: true
representer: true
editable: true
- name: AmazonTokenType
type: string
description: The Type of Token, e.g. GoCardlessToken
defaultValue: null
label: Amazon TokenType
index: 2
maxLength: 100
minLength: 1
checksum: true
required: true
visible: true
representer: true
editable: true
description: ''
schema:
$ref: '#/definitions/PUTPublishOpenPaymentMethodTypeResponse'
/open-payment-method-types/{paymentMethodTypeName}:
put:
summary: Update a custom payment method type
operationId: PUT_UpdateOpenPaymentMethodType
description: |
Update the latest draft version of your custom payment method type. If the latest draft version has been published, the revision number is increased by 1 after the draft version is updated. You must publish your latest revision again through the [Publish a custom payment method type](https://developer.zuora.com/api-references/api/operation/PUT_PublishOpenPaymentMethodType/) operation before your updated custom payment method type goes live.
**Note:** In the request body, you need to provide all the fields that define this custom payment method type including fields to be updated and the unchanged fields.
tags:
- Custom Payment Method Types
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: paymentMethodTypeName
required: true
description: 'The API name of the custom payment method type, such as `AmazonPay__c_12368`.
'
- name: body
in: body
required: true
description: ''
schema:
$ref: '#/definitions/PUTUpdateOpenPaymentMethodTypeRequest'
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:
status: Draft
paymentMethodType: AmazonPay__c_12368
revision: 2
publishDate: ''
description: ''
schema:
$ref: '#/definitions/PUTUpdateOpenPaymentMethodTypeResponse'
/open-payment-method-types/{paymentMethodTypeName}/draft/{revisionNumber}:
get:
summary: Retrieve a specific draft revision of a custom payment method type
operationId: GET_OpenPaymentMethodTypeRevision
description: 'Retrieves a specific draft revision of a custom payment method
type.
'
tags:
- Custom Payment Method Types
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: paymentMethodTypeName
type: string
in: path
required: true
description: 'The API name of the custom payment method type, such as `AmazonPay__c_12368`.
'
- name: revisionNumber
type: integer
in: path
required: true
description: 'The revision number of the draft revision to be 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:
internalName: AmazonPay
label: ZuoraQA Amazon Pay
revision: 1
version: '2021-11-22'
status: Published
tenantId: '9'
entityId: f707d981-3ad2-4484-9c24-a93bf6b83411
methodReferenceIdField: AmazonToken
userReferenceIdField: AmazonAccount
subTypeField: AmazonTokenType
fields:
- name: AmazonToken
type: string
description: The Token value
defaultValue: null
label: AmazonToken
index: 1
maxLength: 100
minLength: 1
checksum: true
required: true
visible: true
representer: true
editable: true
- name: AmazonTokenType
type: string
description: The Type of Token, e.g. GoCardlessToken
defaultValue: null
label: Amazon TokenType
index: 2
maxLength: 100
minLength: 1
checksum: true
required: true
visible: true
representer: true
editable: true
description: ''
schema:
$ref: '#/definitions/GETOpenPaymentMethodTypeRevisionResponse'
/open-payment-method-types/{paymentMethodTypeName}/published:
get:
summary: Retrieve a published custom payment method type
operationId: GET_OpenPaymentMethodTypePublish
description: 'Retrieves a published custom payment method type.
'
tags:
- Custom Payment Method Types
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: paymentMethodTypeName
type: string
in: path
required: true
description: 'The API name of the custom payment method type, such as `AmazonPay__c_12368`.
'
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:
internalName: AmazonPay
label: ZuoraQA Amazon Pay
revision: 1
version: '2021-11-22'
status: Published
tenantId: '9'
entityId: f707d981-3ad2-4484-9c24-a93bf6b83411
methodReferenceIdField: AmazonToken
userReferenceIdField: AmazonAccount
subTypeField: AmazonTokenType
fields:
- name: AmazonToken
type: string
description: The Token value
defaultValue: null
label: AmazonToken
index: 1
maxLength: 100
minLength: 1
checksum: true
required: true
visible: true
representer: true
editable: true
- name: AmazonTokenType
type: string
description: The Type of Token, e.g. GoCardlessToken
defaultValue: null
label: Amazon TokenType
index: 2
maxLength: 100
minLength: 1
checksum: true
required: true
visible: true
representer: true
editable: true
description: ''
schema:
$ref: '#/definitions/GETOpenPaymentMethodTypeRevisionResponse'
/v1/operations/invoice-collect:
post:
summary: Invoice and collect
operationId: POST_TransactionInvoicePayment
description: "Generates and posts invoices and credit memos and collects payments\
\ for posted invoices. Credit memos are only available if you have the Invoice\
\ Settlement feature enabled and negative charges exist. Credit memos will\
\ not be applied to invoices. If draft invoices and credit memos exist when\
\ you run this operation, this operation will post the invoices and credit\
\ memos. Note that draft credit memos created from an invoice or a product\
\ rate plan charge will not be posted.\n\nYou can use this operation to generate\
\ invoices and collect payments on the posted invoices,\n or else simply collect\
\ payment on a specified existing\ninvoice. The customer's default payment\
\ method is used, and the full\namount due is collected. The operation depends\
\ on the parameters you\nspecify.\n\n- To generate one or more new invoices\
\ for that customer and collect\npayment on the generated and other unpaid\
\ invoice(s), leave the **invoiceId** field empty. \n\n- To collect payment\
\ on an existing invoice, specify the invoice ID. \n\n\nThe operation is atomic;\
\ if any part is unsuccessful, the entire\noperation is rolled back.\n\nWhen\
\ an error occurs, gateway reason codes and error messages are returned the\
\ error response of this operation. The following items are some gateway response\
\ code examples.\n\n- Orbital: `05 Do Not Honor`; `14 Invalid Credit Card\
\ Number`\n- Vantiv: `301 Invalid Account Number`; `304 Lost/Stolen Card`\
\ \n- CyberSource2: `202 Expired card`; `231 Invalid account number`\n\n\
For more reason code information, see the corresponding payment gateway documentation.\
\ \n\n\n### Notes\n\nTimeouts may occur when using this method on an account\
\ that\nhas an extremely high number of subscriptions.\n"
tags:
- Operations
parameters:
- $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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. \n\nYou need to set\
\ this parameter if you use the following fields:\n* documentDate\n* targetDate\
\ \n\nIf you have the Invoice Settlement feature enabled, you\
\ need to specify this parameter. Otherwise, an error is returned.\n\n\n\
See [Zuora REST API Versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions)\
\ for more information.\n"
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTInvoiceCollectType'
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:
invoices:
- invoiceId: 4028925a4cb74ec9014cb7540988002e
invoiceNumber: INV00000091
invoiceAmount: 801.73
creditMemos:
- id: 402890555a7e9791015a879f064a0054
memoNumber: CM00000012
memoAmount: 801.73
paymentId: 402892053e100406013e1024ab7c00e3
amountCollected: 801.73
success: true
description: ''
schema:
$ref: '#/definitions/POSTInvoiceCollectResponseType'
/v1/operations/billing-preview:
post:
summary: Generate a billing preview
operationId: POST_BillingPreview
description: "\nGenerates a preview of future invoice items for one customer\
\ account. Use the BillingPreview call to calculate how much a single customer\
\ will be invoiced from the most recent invoice to a specific end of term\
\ date in the future.\n\nAdditionally, you can use the BillingPreview service\
\ to access real-time data on an individual customer's usage consumption.\
\ \n\nThe BillingPreview call only calculates taxes for charges in the subscription\
\ if you use [Zuora Tax](https://knowledgecenter.zuora.com/Billing/Taxes/A_Zuora_Tax)\
\ and the product rate plan charge associated with the invoice item uses the\
\ [tax inclusive mode](https://knowledgecenter.zuora.com/Billing/Taxes/A_Zuora_Tax/D_Associate_tax_codes_with_product_charges_and_set_the_tax_mode);\
\ otherwise, this call does not calculate taxes.\n\nIf you have the Invoice\
\ Settlement feature enabled, you can also generate a preview of future credit\
\ memo items for one customer account. The Invoice Settlement feature is generally\
\ available as of Zuora Billing Release 296 (March 2021). This feature includes\
\ Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement.\
\ If you want to enable Invoice Settlement, see [Invoice Settlement Enablement\
\ and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n"
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PostBillingPreviewParam'
tags:
- Operations
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:
accountId: 402890b75972406c0159724cd4d00011
invoiceItems:
- id: 93ac165212294c1a8bef1c8f99121461
subscriptionName: A-S00000001
subscriptionId: 402890b75972406c0159724e2e810029
subscriptionNumber: A-S00000001
serviceStartDate: '2017-05-01'
serviceEndDate: '2017-05-31'
chargeAmount: 100
chargeDescription: ''
chargeName: positive-charge
chargeNumber: C-00000001
chargeId: 402890b75972406c0159724e2eec0031
productName: FA-freshAir
quantity: 1
taxAmount: 0
unitOfMeasure: License
chargeDate: '2017-01-06 16:38:26'
chargeType: Recurring
numberOfDeliveries: 0
processingType: Charge
appliedToItemId: null
- id: 3e28d61d442f433797e268e2b7c11eeb
subscriptionName: A-S00000001
subscriptionId: c2d9a5768db440cbbf2709a55c614bed
subscriptionNumber: A-S00000001
serviceStartDate: '2017-05-01'
serviceEndDate: '2017-05-31'
chargeAmount: 10
chargeDescription: ''
chargeName: discount-charge
chargeNumber: C-00000003
chargeId: 402890b75972406c0159724e2eec0031
productName: FA-freshAir
quantity: 0
taxAmount: 0
unitOfMeasure: ''
chargeDate: '2017-01-06 16:38:26'
chargeType: Recurring
numberOfDeliveries: 1
processingType: Discount
appliedToItemId: 93ac165212294c1a8bef1c8f99121461
creditMemoItems:
- id: cf6326638f3c4ddda3722734aebd7ba7
subscriptionId: 402890b75972406c0159724e2e810029
amount: 50
amountWithoutTax: 50
comment: ''
sku: SKU-00000001
skuName: negative_charge
serviceStartDate: '2017-05-01'
serviceEndDate: '2017-05-31'
unitOfMeasure: License
ratePlanChargeId: 402890b75972406c0159724e2ef10032
quantity: 1
chargeDate: '2017-01-06 16:38:26'
chargeType: Recurring
numberOfDeliveries: 0
processingType: Charge
subscriptionNumber: A-S00000001
chargeNumber: C-00000002
- id: 3e28d61d442f433797e268e2b7c11eeb
subscriptionName: A-S00000001
subscriptionId: c2d9a5768db440cbbf2709a55c614bed
subscriptionNumber: A-S00000001
serviceStartDate: '2017-05-01'
serviceEndDate: '2017-05-31'
chargeAmount: 5
chargeDescription: ''
chargeName: discount-charge
chargeNumber: C-00000003
chargeId: 402890b75972406c0159724e2eec0031
productName: FA-freshAir
quantity: 0
taxAmount: 0
unitOfMeasure: ''
chargeDate: '2017-01-06 16:38:26'
chargeType: Recurring
numberOfDeliveries: 1
processingType: Discount
appliedToItemId: cf6326638f3c4ddda3722734aebd7ba7
success: true
description: ''
schema:
$ref: '#/definitions/BillingPreviewResult'
/v1/operations/jobs/{jobId}:
get:
summary: Retrieve an operation job
description: |
Retrieves information about a specific operation job.
Currently, you can only use this API operation to retrieve the status information about invoice deletion operation jobs.
operationId: GET_OperationJob
tags:
- Operations
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_HEADER_Zuora_Org_Ids'
- name: jobId
in: path
type: string
required: true
description: 'The ID of the operation job to retrieve information about. For
example, 2c92c8955bd63cc1015bd7c151af02ab.
'
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: OK
examples:
application/json:
id: 4028818484a949680184a95174cb0019
operationType: Delete
objectType: Invoice
objectId: 4028818484a949680184a9510c960009
status: Completed
success: true
schema:
$ref: '#/definitions/GetOperationJobResponseType'
/v1/orderActions/{id}:
put:
summary: Update an order action
operationId: PUT_OrderActions
description: Updates the change reason and custom fields for an order action.
tags:
- Order Actions
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_HEADER_Zuora_Org_Ids'
- name: id
in: path
description: The id of the Order Action to update.
required: true
type: string
- name: ModifyRequest
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTOrderActionsRequestType'
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/CommonResponseType'
examples:
application/json:
success: true
/v1/order-line-items/{itemId}:
get:
summary: Retrieve an order line item
operationId: GET_OrderLineItem
description: |
**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders) will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature enabled by default. If you are a new customer who onboard on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) and want to enable the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature, submit a request at [Zuora Global Support](https://support.zuora.com/). If you are an existing [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) customer and want to enable the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature, submit a request at [Zuora Global Support](https://support.zuora.com/).
Retrieves the detailed information about a specified order line item. The following tutorial demonstrates how to use this operation:
* [View details of an order line item](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/GJ_View_details_of_an_order_line_item)
tags:
- Order Line Items
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_HEADER_Zuora_Org_Ids'
- name: itemId
in: path
description: The id of the Order Line Item to retrieve.
required: true
type: string
format: UUID
- name: fulfillment
in: query
description: 'Return the related fulfillments or not.
'
default: false
required: false
type: boolean
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/GetOrderLineItemResponseType'
examples:
application/json:
success: true
orderLineItem:
id: 4028fc827a0e48c1017a0e4dccc60002
orderId: 4028fc827a0e48c1017a0e58b9330014
itemName: webcam
itemNumber: '1'
itemState: Executing
itemType: Product
description: With Dual Stereo Microphones, HD 1080p, Black,USB connectivity
for ease of use.
relatedSubscriptionNumber: Warranty-00002
purchaseOrderNumber: 960-000764
productCode: C9201
amount: 10000
amountWithoutTax: 10000
quantity: 2
amountPerUnit: 5000
listPricePerUnit: 59
listPrice: 118
billTargetDate: null
soldTo: 4028fc828244a0ac018244dfc9a90bee
soldToSnapshotId: 4028fc828244a0ac018244dfc9b00bf0
billTo: 2c9081a03c6d7b51013c6d7e2dfc09fa
billToSnapshotId: 4028fc8487c0a43c0187c12a91500060
ownerAccountId: ff80808187ff38570187ff433f974203
ownerAccountNumber: AN_1683614809986
ownerAccountName: AC_AC_16836148099861683614809986
invoiceOwnerAccountId: ff80808187ff38570187ff433cbd38ef
invoiceOwnerAccountNumber: AN_1683614809001
invoiceOwnerAccountName: AC_AC_16836148090011683614809001
transactionDate: '2021-02-01'
accountingCode: null
UOM: null
productRatePlanChargeId: null
customFields:
externalNumber5__c: olinumber-023
put:
summary: Update an order line item
operationId: PUT_OrderLineItem
description: |
**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders) will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature enabled by default. If you are a new customer who onboard on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) and want to enable the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature, submit a request at [Zuora Global Support](https://support.zuora.com/). If you are an existing [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) customer and want to enable the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature, submit a request at [Zuora Global Support](https://support.zuora.com/).
Updates a specified order line item. The following tutorials demonstrate how to use this operation:
* [Update an order line item](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/GH_Update_an_order_line_item)
* [Cancel an order line item](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/GZ_Cancel_an_order_line_item)
tags:
- Order Line Items
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_HEADER_Zuora_Org_Ids'
- name: itemId
in: path
description: The id of the Order Line Item to update.
required: true
type: string
format: UUID
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTOrderLineItemRequestType'
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/PutOrderLineItemResponseType'
examples:
application/json:
success: true
/v1/order-line-items/bulk:
post:
summary: Update order line items
operationId: Post_OrderLineItems
description: "**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to enable\
\ the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. If you are a new customer who onboard on [Orders\
\ Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization)\
\ and want to enable the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature, submit a request at [Zuora Global Support](https://support.zuora.com/).\
\ If you are an existing [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization)\
\ customer and want to enable the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature, submit a request at [Zuora Global Support](https://support.zuora.com/).\n\
\nBulk-updates multiple order line items. You can also choose to generate\
\ an invoice for these updated order line items.\n\nThe maximum number of\
\ order line items allowable to update in a call is 100. \n"
tags:
- Order Line Items
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PostOrderLineItemsRequestType'
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/GetOrderLineItemResponseType'
/v1/orders/preview:
post:
summary: Preview an order
operationId: POST_PreviewOrder
description: "**Notes**:\n - This operation is only available if you have the\
\ [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature enabled. If you are an existing Zuora Subscribe and Amend customer, we recommend you enable\
\ Orders Harmonization to access the Orders feature. With Orders, you can access both existing\
\ functions for subscription and billing management and the new features on Zuora Billing.\n - The [Order Line\
\ Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to enable\
\ the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n - You cannot preview offers through this\
\ operation.\n - You cannot preview enhanced discounts. \n\nRetrieves\
\ the preview of the charge metrics and invoice items of a specified order.\
\ Preview for subscriptions and order line items are both supported. This\
\ operation is only an order preview and no order is created. \n\nYou can\
\ also use this operation to preview billing for a standalone order. For more\
\ information, see Preview billing for a standalone order . The Standalone Orders 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](https://support.zuora.com).\n\
\n#### Billing preview behavior regarding draft invoices\nBy default, the\
\ billing preview behavior regarding draft invoices is as below:\n* When you\
\ preview billing for your order and the order contains subscriptions only,\
\ the draft invoices are excluded.\n* When you preview billing for your order\
\ and the order contains order line items only, the draft invoices are included.\n\
* When you preview billing for an order that contains both subscriptions \
\ order line items, the draft invoices are included for both subscriptions\
\ and order line items.\n\nHowever, if you want to always exclude the draft\
\ invoices in billing preview, submit a request at [Zuora Global Support](https://support.zuora.com).\n\
\n#### Limits on Orders API\nThe limit of orders allowed on a subscription\
\ is 1000.\n\nThe limit of order line items allowed in an order is 100.\n\n\
Zuora has the following limits on the Orders synchronous API to prevent performance\
\ degradation: \n* Up to 50 subscriptions are allowed in a single [Create\
\ an order](https://developer.zuora.com/api-references/api/operation/POST_Order)\
\ or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder)\
\ operation call.\n* Up to 50 order actions are allowed in a single [Create\
\ an order](https://developer.zuora.com/api-references/api/operation/POST_Order)\
\ or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder)\
\ operation call.\n* Up to 50 order actions are allowed on a single subscription\
\ in a [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order)\
\ or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder)\
\ operation call.\n\nIf you have an Order that exceeds any limits of the above,\
\ Zuora recommends you use the following asynchronous API operations:\n* [Create\
\ an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\n\
* [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\n\
* [Retrieve the status and response of a job](https://developer.zuora.com/api-references/api/operation/GET_JobStatusAndResponse)\
\ for checking the status of the asynchronous API operations\n\nZuora has\
\ the following limits on the Orders asynchronous API operations to prevent\
\ performance degradation:\n* Up to 300 subscriptions are allowed in a single\
\ [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\
\ or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\
\ operation call.\n* Up to 300 order actions are allowed in a single [Create\
\ an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\
\ or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\
\ operation call.\n* Up to 300 order actions are allowed on a single subscription\
\ in a [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\
\ or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\
\ operation call.\n"
tags:
- Orders
parameters:
- $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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTOrderPreviewRequestType'
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/PostOrderPreviewResponseType'
examples:
application/json:
success: true
previewResult:
chargeMetrics:
- subscriptionNumber: A-S00000101
charges:
- productRatePlanId: 2c98901f6706718c016706b8c0720012
productRatePlanChargeId: 2c98901f6706718c016706b91c6e001f
originRatePlanId: 2c98919c67a5ae9d0167a6901c5a027f
chargeNumber: C-00000211
cmrr:
regular: 30
discount: null
regularDelta: 0
discountDelta: null
tcv:
regular: 11.61
discount: null
regularDelta: -348.39
discountDelta: null
tcb:
regular: 11.61
discount: null
regularDelta: -348.39
discountDelta: null
- subscriptionNumber: A-S00000100
charges:
- productRatePlanId: 2c98901f6706718c016706b8c0720012
productRatePlanChargeId: 2c98901f6706718c016706b91c6e001f
originRatePlanId: 2c98919c67a5ae9d0167a68f8eb20262
chargeNumber: C-00000210
cmrr:
regular: 40
discount: null
regularDelta: 10
discountDelta: null
tcv:
regular: 480
discount: null
regularDelta: 120
discountDelta: null
tcb:
regular: 480
discount: null
regularDelta: 120
discountDelta: null
- subscriptionNumber: A-S00000102
charges:
- productRatePlanId: 2c98901f6706718c016706b8c0720012
productRatePlanChargeId: 2c98901f6706718c016706b91c6e001f
originRatePlanId: 2c98919c67a5ae9d0167a69089bd029c
chargeNumber: C-00000212
cmrr:
regular: 30
discount: null
regularDelta: 30
discountDelta: null
tcv:
regular: 359.61
discount: null
regularDelta: 348
discountDelta: null
tcb:
regular: 360
discount: null
regularDelta: 348.39
discountDelta: null
invoices:
- amount: 141.93
amountWithoutTax: 141.93
taxAmount: 0
targetDate: '2019-01-01'
invoiceItems:
- serviceStartDate: '2018-12-01'
serviceEndDate: '2018-12-12'
amountWithoutTax: 11.61
taxAmount: 0
chargeDescription: ''
chargeName: Charge
chargeNumber: C-00000212
processingType: Charge
productName: Product
productRatePlanChargeId: 2c98901f6706718c016706b91c6e001f
subscriptionNumber: A-S00000102
additionalInfo:
quantity: 2
unitOfMeasure: Each
numberOfDeliveries: 2
- serviceStartDate: '2018-12-23'
serviceEndDate: '2018-12-31'
amountWithoutTax: 8.71
taxAmount: 0
chargeDescription: ''
chargeName: Charge
chargeNumber: C-00000212
processingType: Charge
productName: Product
productRatePlanChargeId: 2c98901f6706718c016706b91c6e001f
subscriptionNumber: A-S00000102
additionalInfo:
quantity: 2
unitOfMeasure: Each
numberOfDeliveries: 2
- serviceStartDate: '2019-01-01'
serviceEndDate: '2019-01-31'
amountWithoutTax: 30
taxAmount: 0
chargeDescription: ''
chargeName: Charge
chargeNumber: C-00000212
processingType: Charge
productName: Product
productRatePlanChargeId: 2c98901f6706718c016706b91c6e001f
subscriptionNumber: A-S00000102
additionalInfo:
quantity: 2
unitOfMeasure: Each
numberOfDeliveries: 2
- serviceStartDate: '2018-12-01'
serviceEndDate: '2018-12-12'
amountWithoutTax: 11.61
taxAmount: 0
chargeDescription: ''
chargeName: Charge
chargeNumber: C-00000211
processingType: Charge
productName: Product
productRatePlanChargeId: 2c98901f6706718c016706b91c6e001f
subscriptionNumber: A-S00000101
additionalInfo:
quantity: 2
unitOfMeasure: Each
numberOfDeliveries: 2
- serviceStartDate: '2018-12-01'
serviceEndDate: '2018-12-31'
amountWithoutTax: 40
taxAmount: 0
chargeDescription: ''
chargeName: Charge
chargeNumber: C-00000210
processingType: Charge
productName: Product
productRatePlanChargeId: 2c98901f6706718c016706b91c6e001f
subscriptionNumber: A-S00000100
additionalInfo:
quantity: 2
unitOfMeasure: Each
numberOfDeliveries: 2
- serviceStartDate: '2019-01-01'
serviceEndDate: '2019-01-31'
amountWithoutTax: 40
taxAmount: 0
chargeDescription: ''
chargeName: Charge
chargeNumber: C-00000210
processingType: Charge
productName: Product
productRatePlanChargeId: 2c98901f6706718c016706b91c6e001f
subscriptionNumber: A-S00000100
additionalInfo:
quantity: 2
unitOfMeasure: Each
numberOfDeliveries: 2
orderDeltaMetrics:
orderDeltaMrr:
- subscriptionNumber: A-S00000100
orderActionId: 4028818475f8cfd5017608b0a0d303d2
orderActionType: CreateSubscription
orderActionSequence: 0
chargeNumber: C-00000210
productRatePlanChargeId: 4028818278829c7b01788313e5d704d4
ratePlanChargeId: 4028818475f8cfd5017608b0a2aa03de
startDate: '2020-01-01'
endDate: '2021-01-01'
currency: USD
grossAmount: 100.0
netAmount: 80.0
orderDeltaTcv:
- subscriptionNumber: A-S00000100
orderActionId: 4028818475f8cfd5017608b0a0d303d2
orderActionType: CreateSubscription
orderActionSequence: 0
chargeNumber: C-00000210
productRatePlanChargeId: 4028818278829c7b01788313e5d704d4
ratePlanChargeId: 4028818475f8cfd5017608b0a2aa03de
startDate: '2020-01-01'
endDate: '2021-01-01'
currency: USD
grossAmount: 1200.0
netAmount: 960.0
- orderLineItemId: 69ee0828eb844c7e8ae66dbe3ef68dc4
productRatePlanChargeId: 4028818475f8cfd5017608b0a2aa03de
startDate: '2020-01-01'
endDate: '2020-01-02'
currency: USD
orderLineItemNumber: '1'
grossAmount: 565.0
netAmount: 565.0
orderDeltaTcb:
- subscriptionNumber: A-S00000100
orderActionId: 4028818475f8cfd5017608b0a0d303d2
orderActionType: CreateSubscription
orderActionSequence: 0
chargeNumber: C-00000210
productRatePlanChargeId: 4028818278829c7b01788313e5d704d4
ratePlanChargeId: 4028818475f8cfd5017608b0a2aa03de
startDate: '2020-01-01'
endDate: '2021-01-01'
currency: USD
grossAmount: 1200.0
netAmount: 960.0
- orderLineItemId: 69ee0828eb844c7e8ae66dbe3ef68dc4
productRatePlanChargeId: 4028818475f8cfd5017608b0a2aa03de
startDate: '2020-01-01'
endDate: '2020-01-02'
currency: USD
orderLineItemNumber: '1'
grossAmount: 565.0
netAmount: 565.0
/v1/async/orders/preview:
post:
summary: Preview an order asynchronously
operationId: POST_PreviewOrderAsynchronously
description: "**Notes:** \n- This operation is only available if you have the\
\ [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature enabled. Orders is now generally available as of Zuora Billing Release\
\ 284 (August 2020). If you are an existing Zuora Subscribe and Amend customer, we recommend you enable\
\ Orders Harmonization to access the Orders feature. With Orders, you can access both existing\
\ functions for subscription and billing management and the new features on Zuora Billing.\n- The [Order Line\
\ Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to enable\
\ the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n- You cannot preview offers through\
\ this operation.\n- You cannot preview enhanced discounts.\n\nIn the case\
\ where a normal \"Preview an order\" operation call will time out, use this\
\ operation instead to preview an order asynchronously. A job will be previewing\
\ the order in the back end; the job ID will be returned for tracking the\
\ job status and result.\n\n#### Billing preview behavior regarding draft\
\ invoices\nBy default, the billing preview behavior regarding draft invoices\
\ is as below:\n* When you preview billing for your order and the order contains\
\ subscriptions only, the draft invoices are excluded.\n* When you preview\
\ billing for your order and the order contains order line items only, the\
\ draft invoices are included.\n* When you preview billing for an order that\
\ contains both subscriptions order line items, the draft invoices are included\
\ for both subscriptions and order line items.\n\nHowever, if you want to\
\ always exclude the draft invoices in billing preview, submit a request at\
\ [Zuora Global Support](https://support.zuora.com).\n\n#### Limits on Orders\
\ API\n\nThe limit of orders allowed on a subscription is 1000.\n\nThe limit\
\ of order line items allowed in an order is 100.\n\nZuora has the following\
\ limits on the Orders synchronous API to prevent performance degradation:\
\ \n* Up to 50 subscriptions are allowed in a single [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order)\
\ or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder)\
\ operation call.\n* Up to 50 order actions are allowed in a single [Create\
\ an order](https://developer.zuora.com/api-references/api/operation/POST_Order)\
\ or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder)\
\ operation call.\n* Up to 50 order actions are allowed on a single subscription\
\ in a [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order)\
\ or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder)\
\ operation call.\n\nIf you have an Order that exceeds any limits of the above,\
\ Zuora recommends you use the following asynchronous API operations:\n* [Create\
\ an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\n\
* [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\n\
* [Retrieve the status and response of a job](https://developer.zuora.com/api-references/api/operation/GET_JobStatusAndResponse)\
\ for checking the status of the asynchronous API operations\n\nZuora has\
\ the following limits on the Orders asynchronous API operations to prevent\
\ performance degradation:\n* Up to 300 subscriptions are allowed in a single\
\ [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\
\ or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\
\ operation call.\n* Up to 300 order actions are allowed in a single [Create\
\ an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\
\ or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\
\ operation call.\n* Up to 300 order actions are allowed on a single subscription\
\ in a [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\
\ or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\
\ operation call.\n"
tags:
- Orders
parameters:
- $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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTOrderPreviewAsyncRequestType'
responses:
202:
description: Accepted
examples:
application/json:
jobId: 2c90a02d676688200167770ce20601b6
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.
'
Location:
type: string
description: URL for accessing the job result, in the format of `/async-jobs/{jobId}`.
For example, `/async-jobs/2c90a02d676688200167770ce20601b6`
schema:
type: object
properties:
jobId:
type: string
format: UUID
description: The ID of an asynchronous job that will be returned for
tracking the status and result of the job.
/v1/orders:
post:
summary: Create an order
operationId: POST_Order
description: "**Note:** This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature enabled. If you are an existing Zuora Subscribe and Amend customer, we recommend you enable\
\ Orders Harmonization to access the Orders feature. With Orders, you can access both existing\
\ functions for subscription and billing management and the new features on Zuora Billing.\n\n**Note:** The [Order\
\ Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to enable\
\ the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n\nYou can use this operation to create\
\ subscriptions and make changes to subscriptions by creating orders. You\
\ can also use this operation to create order line items by creating orders.\
\ The following tutorials demonstrate how to use this operation:\n\n * [Create\
\ a Subscription](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/A_Create_a_Subscription)\n\
\ * [Add a Product to a Subscription](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/A_Add_a_Product_to_a_Subscription)\n\
\ * [Create a Ramp Deal](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/B_Create_a_Ramp_Deal)\n\
\ * [Add a Product Mid-Interval Update on a Ramp Deal](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/E_Update_a_Product_in_a_Ramp_Deal)\n\
\ * [Add a Product in a Ramp Deal](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/C_Add_a_Product_in_a_Ramp_Deal)\n\
\ * [Change the Terms and Conditions of a Ramp Deal](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/D_Change_the_Terms_and_Conditions_of_a_Ramp_Deal_and_Update_the_Ramp)\n\
\ * [Change the Owner of a Subscription](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Change_the_Owner_of_a_Subscription)\n\
\ * [Change the Terms and Conditions of a Subscription](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Change_the_Terms_and_Conditions_of_a_Subscription)\n\
\ * [Renew a Subscription](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Renew_a_Subscription)\n\
\ * [Renew a Subscription and Upgrade a Product](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Renew_a_Subscription_and_Upgrade_a_Product)\n\
\ * [Replace a Product in a Subscription](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Replace_a_Product_in_a_Subscription)\n\
\ * [Update a Product in a Subscription](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Update_a_Product_in_a_Subscription)\n\
\ * [Cancel a Subscription](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/D_Cancel_a_Subscription)\n\
\ * [Remove a Product from a Subscription](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/D_Remove_a_Product_from_a_Subscription)\n\
\ * [Create sales order line items](https://knowledgecenter.zuora.com/Zuora_Billing/Manage_non-subscription_transactions/Order_Line_Items/B_Manage_Order_Line_Items/AA_Create_a_sales_order_line_item_with_fulfillments)\n\
\ * [Associate order line items with new subscriptions](https://knowledgecenter.zuora.com/Zuora_Billing/Manage_non-subscription_transactions/Order_Line_Items/B_Manage_Order_Line_Items/C_Associate_an_order_line_item_with_a_new_subscription)\n\
\ * [Return order line items](https://knowledgecenter.zuora.com/Zuora_Billing/Manage_non-subscription_transactions/Order_Line_Items/B_Manage_Order_Line_Items/DA_Return_an_order_line_item_with_fulfillments)\n\
\nYou can also use this operation to create orders and save the orders as\
\ scehduled orders. The Scheduled Orders feature is in the **Early Adopter**\
\ phase. We are actively soliciting feedback from a small set of early adopters\
\ before releasing it as generally available. To manage and access features\
\ from the self-service interface, see Enable billing features by yourself .\n\nIn addition,\
\ you can use this operation to place a standalone order to subscribe without\
\ pre-defining a product catalog in Zuora Billing. For more information, see\
\ Create a subscription using a standalone order . The\
\ Standalone Orders 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](https://support.zuora.com).\n\
\n**Note:** If you received a timeout error message when creating an order,\
\ the call is still running in the backend and the order will be created.\n\
\nThe limit of orders allowed on a subscription is 1000.\n\nThe limit of order\
\ line items allowed in an order is 100.\n\nZuora has the following limits\
\ on the Orders synchronous API to prevent performance degradation: \n* Up\
\ to 50 subscriptions are allowed in a single [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order)\
\ or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder)\
\ operation call.\n* Up to 50 order actions are allowed in a single [Create\
\ an order](https://developer.zuora.com/api-references/api/operation/POST_Order)\
\ or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder)\
\ operation call.\n* Up to 50 order actions are allowed on a single subscription\
\ in a [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order)\
\ or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder)\
\ operation call.\n\nIf you have an Order that exceeds any limits of the above,\
\ Zuora recommends you use the following asynchronous API operations:\n* [Create\
\ an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\n\
* [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\n\
* [Retrieve the status and response of a job](https://developer.zuora.com/api-references/api/operation/GET_JobStatusAndResponse)\
\ for checking the status of the asynchronous API operations\n\nZuora has\
\ the following limits on the Orders asynchronous API operations to prevent\
\ performance degradation:\n* Up to 300 subscriptions are allowed in a single\
\ [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\
\ or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\
\ operation call.\n* Up to 300 order actions are allowed in a single [Create\
\ an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\
\ or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\
\ operation call.\n* Up to 300 order actions are allowed on a single subscription\
\ in a [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\
\ or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\
\ operation call.\n\n\n**Note:** When you are to suspend a subcription (via\
\ the `suspend` order action), if in the same \"Create an order\" call you\
\ are to perform other subsequent order actions on the supscription to suspend,\
\ you must first resume the subscription (via a `resume` order action). \n\
\n**Note:** When using this operation to create an account, create a subscription,\
\ run billing, and collect payment in a single call, if any error occurs during\
\ the call, such as a payment processing failure and a tax engine failure,\
\ then all the other steps will be rolled back. This means that the invoice\
\ will not be generated, the subscription will not be created, and the account\
\ will not be created.\n"
tags:
- Orders
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- type: boolean
in: query
description: 'Specify whether to return IDs associated with the numbers returned
in the "Create an order" operation.
'
name: returnIds
required: false
default: false
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. \n\nYou need to set\
\ this parameter if you use the following fields:\n* subscriptions\n* subscriptionNumbers\n"
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTOrderRequestType'
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
orderNumber: OM-00002
accountNumber: A00000001
status: Pending
subscriptions:
- subscriptionNumber: SM-00001
status: Pending Activation
- subscriptionNumber: SM-00002
status: Pending Acceptance
- subscriptionNumber: SM-00003
status: Active
- subscriptionNumber: SM-00004
status: Pending Acceptance
- subscriptionNumber: SM-00005
status: Suspended
- subscriptionNumber: SM-00006
status: Active
invoiceNumbers:
- INV00000001
paymentNumber: P-00000002
paidAmount: 300
orderLineItems:
- id: bd78c0522adf42c2aa0fccacc997fa20
itemNumber: '116'
schema:
$ref: '#/definitions/PostOrderResponseType'
get:
summary: List orders
operationId: GET_AllOrders
description: "**Note:** This feature is only available if you have the [Order\
\ Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics)\
\ feature enabled. As of Zuora Billing Release 284, Orders is generally available\
\ and the Order Metrics feature is no longer available as a standalone feature.\
\ If you are an existing Subscribe and Amend customer and want Order Metrics\
\ only, you must turn on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization).\
\ You can still keep the existing Subscribe and Amend API integrations to\
\ create and manage subscriptions.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to enable\
\ the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n\nRetrieves information about all orders\
\ in your tenant. You can set the `status` query parameter to an order status\
\ to retrieve orders in that order status. If you do not set a value for this\
\ query parameter, the query parameter has a default value `all`, and orders\
\ of all statuses are returned. \nBy default, it returns the first page of\
\ the orders. \n"
tags:
- Orders
parameters:
- $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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: dateFilterOption
in: query
description: 'The date type to filter on. This field value can be orderDate
or updatedDate. Default is orderDate.
'
required: false
type: string
- name: startDate
in: query
description: 'The result will only contain the orders with the date of dateFilterOption
later than or equal to this date.
'
required: false
type: string
format: date
- name: endDate
in: query
description: 'The result will only contains orders with the date of dateFilterOption
earlier than or equal to this date.
'
required: false
type: string
format: date
- name: status
in: query
description: The status of orders.
required: false
type: string
enum:
- all
- cancelled
- completed
- draft
- executing
- failed
- pending
- scheduled
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/GetAllOrdersResponseType'
examples:
application/json:
orders:
- orderNumber: O-00000002
orderDate: '2017-03-01'
createdDate: '2018-03-14 15:12:58'
createdBy: 2c989028622282520162235ab0f603ba
updatedDate: '2018-03-14 15:12:58'
updatedBy: 2c989028622282520162235ab0f603ba
existingAccountNumber: accountA_Num
currency: USD
status: Completed
description: This is a description for the Order.
subscriptions:
- subscriptionNumber: A-S00000001
customFields:
sub_cf_picklist__c: null
baseVersion: 1
newVersion: 2
orderActions:
- type: UpdateProduct
sequence: 0
triggerDates:
- triggerDate: '2017-03-01'
name: ContractEffective
- triggerDate: '2017-03-01'
name: ServiceActivation
- triggerDate: '2017-03-01'
name: CustomerAcceptance
updateProduct:
ratePlanId: 2c989028622282520162235acd1b05d2
uniqueToken: null
specificUpdateDate: null
newRatePlanId: 2c989028622282520162235ada870649
chargeUpdates:
- description: null
chargeNumber: C-00000001
uniqueToken: null
newRatePlanChargeId: 2c989028622282520162235adabc0651
pricing:
recurringVolume:
quantity: 7
tiers: []
priceChangeOption: null
priceIncreasePercentage: null
effectiveDate:
specificTriggerDate: null
billing:
billingPeriodAlignment: null
customFields:
srpc_cf_picklist__c: null
customFields: {}
customFields:
oa_cf_text__c: null
orderLineItems:
- id: 4028fc827a0e48c1017a0e4dccc60002
orderId: 4028fc827a0e48c1017a0e58b9330014
itemName: webcam
itemNumber: '1'
itemState: Executing
itemType: Product
description: With Dual Stereo Microphones, HD 1080p, Black,USB connectivity
for ease of use.
purchaseOrderNumber: 960-000764
productCode: C9201
amount: 10000
amountWithoutTax: 10000
quantity: 2
amountPerUnit: 5000
listPricePerUnit: 59
listPrice: 118
billTargetDate: null
soldTo: 4028fc828244a0ac018244dfc9a90bee
soldToSnapshotId: 4028fc828244a0ac018244dfc9b00bf0
billTo: 2c9081a03c6d7b51013c6d7e2dfc09fa
billToSnapshotId: 4028fc8487c0a43c0187c12a91500060
ownerAccountId: ff80808187ff38570187ff433f974203
ownerAccountNumber: AN_1683614809986
ownerAccountName: AC_AC_16836148099861683614809986
invoiceOwnerAccountId: ff80808187ff38570187ff433cbd38ef
invoiceOwnerAccountNumber: AN_1683614809001
invoiceOwnerAccountName: AC_AC_16836148090011683614809001
transactionStartDate: '2021-02-01'
transactionEndDate: '2021-02-01'
accountingCode: null
UOM: null
productRatePlanChargeId: null
customFields:
orderLineItemCF__c: olinumber-023
customFields:
order_cf_date__c: '2017-01-01'
- orderNumber: O-00000001
orderDate: '2017-01-01'
createdDate: '2018-03-14 15:12:55'
createdBy: 2c989028622282520162235ab0f603ba
updatedDate: '2018-03-14 15:12:55'
updatedBy: 2c989028622282520162235ab0f603ba
existingAccountNumber: accountA_Num
currency: USD
status: Completed
subscriptions:
- subscriptionNumber: A-S00000001
customFields:
sub_cf_picklist__c: sub123
baseVersion: null
newVersion: 1
orderActions:
- type: CreateSubscription
sequence: 0
triggerDates:
- triggerDate: '2017-01-01'
name: ContractEffective
- triggerDate: '2017-01-01'
name: ServiceActivation
- triggerDate: '2017-01-01'
name: CustomerAcceptance
createSubscription:
subscriptionOwnerAccountNumber: accountA_Num
terms:
autoRenew: false
renewalSetting: RENEW_WITH_SPECIFIC_TERM
initialTerm:
startDate: '2017-01-01'
period: 12
periodType: Month
termType: TERMED
renewalTerms:
- period: 0
periodType: Month
invoiceSeparately: null
notes: null
subscribeToRatePlans:
- productRatePlanId: 2c989028622282520162235ac91605b3
newRatePlanId: 2c989028622282520162235acd1b05d2
uniqueToken: null
chargeOverrides:
- description: null
chargeNumber: C-00000001
productRateplanChargeId: 2c989028622282520162235aca7a05b9
uniqueToken: null
pricing:
recurringVolume:
quantity: 12
tiers: []
listPriceBase: Per_Billing_Period
priceChangeOption: null
priceIncreasePercentage: null
startDate:
specificTriggerDate: null
endDate:
endDateCondition: null
specificEndDate: null
upToPeriods: null
upToPeriodsType: null
billing:
billCycleDay: null
billingPeriod: null
billCycleType: null
billingTiming: null
billingPeriodAlignment: null
specificBillingPeriod: null
weeklyBillCycleDay: null
customFields:
srpc_cf_picklist__c: null
customFields: {}
customFields:
order_cf_date__c: '2017-01-01'
success: true
/v1/async/orders:
post:
summary: Create an order asynchronously
operationId: POST_CreateOrderAsynchronously
description: "**Note:** This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature enabled. If you are an existing Zuora Subscribe and Amend customer, we recommend you enable\
\ Orders Harmonization to access the Orders feature. With Orders, you can access both existing\
\ functions for subscription and billing management and the new features on Zuora Billing.\n\n**Note:** The [Order\
\ Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to enable\
\ the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n\nIn the case where a normal \"Create\
\ an order\" operation call will time out, use this operation instead to create\
\ an order asynchronously. A job will be creating the order in the back end;\
\ the job ID will be returned for tracking the job status and result. \n\n\
Note that this operation doesn't support auto-refund and invoice write-off\
\ during subscription cancellation. Use the \"Create an order\" operation\
\ instead.\n\nThe limit of orders allowed on a subscription is 1000.\n\nThe\
\ limit of order line items allowed in an order is 100.\n\nZuora has the following\
\ limits on the Orders synchronous API to prevent performance degradation:\
\ \n* Up to 50 subscriptions are allowed in a single [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order)\
\ or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder)\
\ operation call.\n* Up to 50 order actions are allowed in a single [Create\
\ an order](https://developer.zuora.com/api-references/api/operation/POST_Order)\
\ or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder)\
\ operation call.\n* Up to 50 order actions are allowed on a single subscription\
\ in a [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order)\
\ or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder)\
\ operation call.\n\nIf you have an Order that exceeds any limits of the above,\
\ Zuora recommends you use the following asynchronous API operations:\n* [Create\
\ an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\n\
* [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\n\
* [Retrieve the status and response of a job](https://developer.zuora.com/api-references/api/operation/GET_JobStatusAndResponse)\
\ for checking the status of the asynchronous API operations\n\nZuora has\
\ the following limits on the Orders asynchronous API operations to prevent\
\ performance degradation:\n* Up to 300 subscriptions are allowed in a single\
\ [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\
\ or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\
\ operation call.\n* Up to 300 order actions are allowed in a single [Create\
\ an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\
\ or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\
\ operation call.\n* Up to 300 order actions are allowed on a single subscription\
\ in a [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\
\ or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\
\ operation call.\n"
tags:
- Orders
parameters:
- $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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- type: boolean
in: query
description: 'Specify whether to return IDs for the [Get job status and response](https://developer.zuora.com/api-references/api/operation/GET_JobStatusAndResponse)
operation. If you set this query parameter to `true`, the corresponding
IDs, which are associated with the numbers returned in this operation, can
be returned in the "Get job status and response" response body.
'
name: returnIds
required: false
default: false
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. \n\nYou need to set\
\ this parameter if you want to use the following fields:\n* subscriptions\n\
* subscriptionNumbers\n* subscriptionIds (when the `returnId` query parameter\
\ is set to `true`)\n"
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTOrderAsyncRequestType'
responses:
202:
description: Accepted
examples:
application/json:
jobId: 1bc24f315d7b48d3a20245bfe73bdceb
success: 'true'
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.
'
Location:
type: string
description: URL for accessing the job result, in the format of `/async-jobs/{jobId}`.
For example, `/async-jobs/1bc24f315d7b48d3a20245bfe73bdceb`
schema:
type: object
properties:
jobId:
type: string
format: UUID
description: The ID of an asynchronous job that will be returned for
tracking the status and result of the job.
success:
type: boolean
description: Indicates whether the operation call succeeded.
/v1/orders/{orderNumber}:
get:
summary: Retrieve an order
operationId: GET_Order
description: "**Note:** This feature is only available if you have the [Order\
\ Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics)\
\ feature enabled. As of Zuora Billing Release 284, Orders is generally available\
\ and the Order Metrics feature is no longer available as a standalone feature.\
\ If you are an existing Subscribe and Amend customer and want Order Metrics\
\ only, you must turn on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization).\
\ You can still keep the existing Subscribe and Amend API integrations to\
\ create and manage subscriptions.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to enable\
\ the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n\nRetrieves the detailed information\
\ about a specified order.\n"
tags:
- Orders
parameters:
- $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_HEADER_Zuora_Org_Ids'
- name: orderNumber
in: path
description: The order number to be retrieved.
required: true
type: string
format: 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/GetOrderResponse'
examples:
application/json:
success: true
order:
orderNumber: O-00000282
orderDate: '2018-10-01'
createdDate: '2018-12-13 17:21:43'
createdBy: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2018-12-13 17:21:45'
updatedBy: 402881e522cf4f9b0122cf5d82860002
existingAccountNumber: A00000101
currency: USD
status: Completed
description: This is a description for the Order.
invoiceScheduleId: ec6f0d5dc8af451ab95343fb3c588c1a
subscriptions:
- subscriptionNumber: A-S00000100
subscriptionOwnerAccountNumber: A00000001
externallyManagedBy: null
customFields: {}
baseVersion: 1
newVersion: 2
orderActions:
- type: UpdateProduct
sequence: 0
triggerDates:
- triggerDate: '2018-12-01'
name: ContractEffective
- triggerDate: '2018-12-01'
name: ServiceActivation
- triggerDate: '2018-12-01'
name: CustomerAcceptance
updateProduct:
ratePlanId: 2c98919c67a5ae9d0167a68f8eb20262
uniqueToken: null
specificUpdateDate: null
newRatePlanId: 2c98919c67a5ae9d0167a6df3011036e
chargeUpdates:
- description: null
chargeNumber: C-00000210
uniqueToken: null
newRatePlanChargeId: 2c98919c67a5ae9d0167a6df304b0372
pricing:
recurringPerUnit:
listPrice: 20
quantity: null
priceChangeOption: null
priceIncreasePercentage: null
effectiveDate:
specificTriggerDate: null
billing:
billingPeriodAlignment: null
customFields: {}
customFields: {}
customFields: {}
- subscriptionNumber: A-S00000101
subscriptionOwnerAccountNumber: A00000001
externallyManagedBy: null
customFields: {}
baseVersion: 1
newVersion: 2
orderActions:
- type: Suspend
sequence: 0
triggerDates:
- triggerDate: '2018-12-01'
name: ContractEffective
- triggerDate: '2018-12-01'
name: ServiceActivation
- triggerDate: '2018-12-01'
name: CustomerAcceptance
suspend:
suspendPolicy: Today
suspendPeriods: null
suspendPeriodsType: null
suspendSpecificDate: null
suspendDate: '2018-12-13'
customFields: {}
- subscriptionNumber: A-S00000102
subscriptionOwnerAccountNumber: A00000001
externallyManagedBy: null
customFields: {}
baseVersion: 2
newVersion: 3
orderActions:
- type: Resume
sequence: 0
triggerDates:
- triggerDate: '2018-12-12'
name: ContractEffective
- triggerDate: '2018-12-12'
name: ServiceActivation
- triggerDate: '2018-12-12'
name: CustomerAcceptance
resume:
resumePolicy: FixedPeriodsFromSuspendDate
resumePeriods: 10
resumePeriodsType: Day
resumeSpecificDate: null
extendsTerm: true
resumeDate: '2018-12-23'
customFields: {}
- type: TermsAndConditions
sequence: 1
triggerDates:
- triggerDate: '2018-12-12'
name: ContractEffective
- triggerDate: '2018-12-12'
name: ServiceActivation
- triggerDate: '2018-12-12'
name: CustomerAcceptance
termsAndConditions:
autoRenew: null
renewalSetting: null
initialTerm:
startDate: null
period: 375
periodType: Day
termType: null
renewalTerms:
- period: null
periodType: null
customFields: {}
orderLineItems:
- id: 4028fc827a0e48c1017a0e4dccc60002
orderId: 4028fc827a0e48c1017a0e58b9330014
itemName: webcam
itemNumber: '1'
itemState: Executing
itemType: Product
description: With Dual Stereo Microphones, HD 1080p, Black,USB connectivity
for ease of use.
purchaseOrderNumber: 960-000764
productCode: C9201
amount: 10000
amountWithoutTax: 10000
quantity: 2
amountPerUnit: 5000
listPricePerUnit: 59
listPrice: 118
billTargetDate: null
soldTo: 4028fc828244a0ac018244dfc9a90bee
soldToSnapshotId: 4028fc828244a0ac018244dfc9b00bf0
billTo: 2c9081a03c6d7b51013c6d7e2dfc09fa
billToSnapshotId: 4028fc8487c0a43c0187c12a91500060
ownerAccountId: ff80808187ff38570187ff433f974203
ownerAccountNumber: AN_1683614809986
ownerAccountName: AC_AC_16836148099861683614809986
invoiceOwnerAccountId: ff80808187ff38570187ff433cbd38ef
invoiceOwnerAccountNumber: AN_1683614809001
invoiceOwnerAccountName: AC_AC_16836148090011683614809001
transactionStartDate: '2021-02-01'
transactionEndDate: '2021-02-01'
accountingCode: null
UOM: null
productRatePlanChargeId: null
customFields:
orderLineItemCF__c: olinumber-023
customFields: {}
delete:
tags:
- Orders
summary: Delete an order
description: "**Note:** This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature enabled. If you are an existing Zuora Subscribe and Amend customer, we recommend you enable\
\ Orders Harmonization to access the Orders feature. With Orders, you can access both existing\
\ functions for subscription and billing management and the new features on Zuora Billing.\n\n**Note:** The [Order\
\ Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to enable\
\ the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n\nDeletes a specified order. \n\n*\
\ All the subscriptions changed by this order are deleted. After the deletion,\
\ the subscriptions are rolled back to the previous version. \n\n* All the\
\ order line items created in this order are deleted.\n\nYou are not allowed\
\ to delete an order if the charges that are affected by this order are invoiced.\n"
operationId: DELETE_Order
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_HEADER_Zuora_Org_Ids'
- name: orderNumber
in: path
description: The number of the order to be deleted.
required: true
type: string
format: 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/CommonResponseType'
examples:
application/json:
success: true
put:
tags:
- Orders
summary: Update an order
operationId: PUT_Order
description: "**Notes:** \n- This operation is only available if you have the\
\ [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature enabled. If you are an existing Zuora Subscribe and Amend customer, we recommend you enable\
\ Orders Harmonization to access the Orders feature. With Orders, you can access both existing\
\ functions for subscription and billing management and the new features on Zuora Billing.\n- Update an order\
\ is only valid for draft or scheduled orders. The Scheduled Orders feature is in the Early Adopter phase.\
\ We are actively soliciting feedback from a small set of early adopters before\
\ releasing it as generally available. To manage and access features from\
\ the self-service interface, see Enable billing features by yourself .\n- This operation\
\ doesn't support auto-refund and invoice write-off during subscription cancellation.\
\ Use the \"Create an order\" operation instead.\n- You must provide full\
\ payload when using the \"Update an order\" operation. That is, if you want\
\ to edit one order action, you need to provide all other order actions in\
\ the payload. Otherwise, the other order actions will be removed.\n"
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_HEADER_Zuora_Org_Ids'
- name: orderNumber
in: path
description: Order number of a order in which you are to update.
required: true
type: string
format: string
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTOrderRequestType'
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/PostOrderResponseType'
examples:
application/json:
success: true
orderNumber: OM-00002
accountNumber: A00000001
status: Pending
subscriptions:
- subscriptionNumber: SM-00001
status: Pending Activation
- subscriptionNumber: SM-00002
status: Pending Acceptance
- subscriptionNumber: SM-00003
status: Active
- subscriptionNumber: SM-00004
status: Pending Acceptance
- subscriptionNumber: SM-00005
status: Suspended
- subscriptionNumber: SM-00006
status: Active
invoiceNumbers:
- INV00000001
paymentNumber: P-00000002
paidAmount: 300
orderLineItems:
- id: bd78c0522adf42c2aa0fccacc997fa20
itemNumber: '116'
/v1/async-jobs/{jobId}:
get:
summary: Retrieve the status and response of a job
operationId: GET_JobStatusAndResponse
description: "**Note:** This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature enabled. If you are an existing Zuora Subscribe and Amend customer, we recommend you enable\
\ Orders Harmonization to access the Orders feature. With Orders, you can access both existing\
\ functions for subscription and billing management and the new features on Zuora Billing.\n\n**Note:** The [Order\
\ Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to enable\
\ the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n\nGet the status and response of an\
\ asynchronous job. Currently, an asynchronous job created by \"Create an\
\ order asynchronously\" or \"Preview an order asynchronously\" is supported.\n"
tags:
- Orders
parameters:
- $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'
- in: path
name: jobId
description: UUID of the asynchronous job created by an asynchronous API operation.
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: OK
examples:
application/json:
status: Completed
errors: null
result:
success: true
orderNumber: OM-00002
accountNumber: A00000001
status: Pending
subscriptions:
- subscriptionNumber: SM-00001
status: Pending Activation
- subscriptionNumber: SM-00002
status: Pending Acceptance
- subscriptionNumber: SM-00003
status: Active
- subscriptionNumber: SM-00004
status: Pending Acceptance
invoiceNumbers:
- INV00000001
paymentNumber: P-00000002
paidAmount: 300
orderLineItems:
- id: bd78c0522adf42c2aa0fccacc997fa20
itemNumber: '116'
success: true
schema:
type: object
properties:
status:
type: string
description: Type of job status.
enum:
- Processing
- Failed
- Completed
errors:
type: string
description: Error messages returned if the job failed.
result:
$ref: '#/definitions/JobResult'
success:
type: boolean
description: Indicates whether the operation call succeeded.
/v1/orders/subscriptionOwner/{accountNumber}:
get:
summary: List orders of a subscription owner
operationId: GET_OrdersBySubscriptionOwner
description: "**Note:** This feature is only available if you have the [Order\
\ Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics)\
\ feature enabled. As of Zuora Billing Release 284, Orders is generally available\
\ and the Order Metrics feature is no longer available as a standalone feature.\
\ If you are an existing Subscribe and Amend customer and want Order Metrics\
\ only, you must turn on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization).\
\ You can still keep the existing Subscribe and Amend API integrations to\
\ create and manage subscriptions.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to enable\
\ the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n\nRetrieves the detailed information\
\ about all orders for a specified subscription owner. Any orders containing\
\ the changes on the subscriptions owned by this account are returned.\n\n\
**Note**: You cannot retrieve detailed information about draft orders or scheduled\
\ orders through this operation.\n"
tags:
- Orders
parameters:
- $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_HEADER_Zuora_Org_Ids'
- name: accountNumber
in: path
description: The subscription owner account number.
required: true
type: string
format: string
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: dateFilterOption
in: query
description: |
The date type to filter on.
This field value can be 'orderDate' or 'updatedDate'. Default is orderDate.
required: false
type: string
- name: startDate
in: query
description: 'The result will only contain the orders with the date of ''dateFilterOption''
later than or equal to this date.
'
required: false
type: string
format: date
- name: endDate
in: query
description: 'The result will only contain the orders with the date of ''dateFilterOption''
earlier than or equal to this date.
'
required: false
type: string
format: date
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/GetOrdersResponse'
examples:
application/json:
orders:
- orderNumber: O-00000002
orderDate: '2017-03-01'
createdDate: '2018-03-14 15:12:58'
createdBy: 2c989028622282520162235ab0f603ba
updatedDate: '2018-03-14 15:12:58'
updatedBy: 2c989028622282520162235ab0f603ba
existingAccountNumber: accountA_Num
currency: USD
status: Completed
description: This is a description for the Order.
invoiceScheduleId: ec6f0d5dc8af451ab95343fb3c588c1a
subscriptions:
- subscriptionNumber: A-S00000001
customFields:
sub_cf_picklist__c: null
baseVersion: 1
newVersion: 2
orderActions:
- type: UpdateProduct
sequence: 0
triggerDates:
- triggerDate: '2017-03-01'
name: ContractEffective
- triggerDate: '2017-03-01'
name: ServiceActivation
- triggerDate: '2017-03-01'
name: CustomerAcceptance
updateProduct:
ratePlanId: 2c989028622282520162235acd1b05d2
uniqueToken: null
specificUpdateDate: null
newRatePlanId: 2c989028622282520162235ada870649
chargeUpdates:
- description: null
chargeNumber: C-00000001
uniqueToken: null
newRatePlanChargeId: 2c989028622282520162235adabc0651
pricing:
recurringVolume:
quantity: 7
tiers: []
priceChangeOption: null
priceIncreasePercentage: null
effectiveDate:
specificTriggerDate: null
billing:
billingPeriodAlignment: null
customFields:
srpc_cf_picklist__c: null
customFields: {}
customFields:
oa_cf_text__c: null
customFields:
order_cf_date__c: '2017-01-01'
- orderNumber: O-00000001
orderDate: '2017-01-01'
createdDate: '2018-03-14 15:12:55'
createdBy: 2c989028622282520162235ab0f603ba
updatedDate: '2018-03-14 15:12:55'
updatedBy: 2c989028622282520162235ab0f603ba
existingAccountNumber: accountA_Num
currency: USD
status: Completed
subscriptions:
- subscriptionNumber: A-S00000001
customFields:
sub_cf_picklist__c: sub123
baseVersion: null
newVersion: 1
orderActions:
- type: CreateSubscription
sequence: 0
triggerDates:
- triggerDate: '2017-01-01'
name: ContractEffective
- triggerDate: '2017-01-01'
name: ServiceActivation
- triggerDate: '2017-01-01'
name: CustomerAcceptance
createSubscription:
subscriptionOwnerAccountNumber: accountA_Num
terms:
autoRenew: false
renewalSetting: RENEW_WITH_SPECIFIC_TERM
initialTerm:
startDate: '2017-01-01'
period: 12
periodType: Month
termType: TERMED
renewalTerms:
- period: 0
periodType: Month
invoiceSeparately: null
notes: null
subscribeToRatePlans:
- productRatePlanId: 2c989028622282520162235ac91605b3
newRatePlanId: 2c989028622282520162235acd1b05d2
uniqueToken: null
chargeOverrides:
- description: null
chargeNumber: C-00000001
productRateplanChargeId: 2c989028622282520162235aca7a05b9
uniqueToken: null
pricing:
recurringVolume:
quantity: 12
tiers: []
listPriceBase: Per_Billing_Period
priceChangeOption: null
priceIncreasePercentage: null
startDate:
specificTriggerDate: null
endDate:
endDateCondition: null
specificEndDate: null
upToPeriods: null
upToPeriodsType: null
billing:
billCycleDay: null
billingPeriod: null
billCycleType: null
billingTiming: null
billingPeriodAlignment: null
specificBillingPeriod: null
weeklyBillCycleDay: null
customFields:
srpc_cf_picklist__c: null
customFields: {}
customFields:
oa_cf_text__c: oa cf test
customFields:
order_cf_date__c: '2017-01-01'
success: true
/v1/orders/subscription/{subscriptionNumber}:
get:
summary: List orders by subscription number
operationId: GET_OrdersBySubscriptionNumber
description: "**Note:** This feature is only available if you have the [Order\
\ Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics)\
\ feature enabled. As of Zuora Billing Release 284, Orders is generally available\
\ and the Order Metrics feature is no longer available as a standalone feature.\
\ If you are an existing Subscribe and Amend customer and want Order Metrics\
\ only, you must turn on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization).\
\ You can still keep the existing Subscribe and Amend API integrations to\
\ create and manage subscriptions.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to enable\
\ the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n\nRetrieves the detailed information about\
\ all orders for a specified subscription. You can set the `status` query\
\ parameter to an order status to retrieve orders in that order status. If\
\ you do not set a value for this query parameter, the query parameter has\
\ a default value `all`, and orders of all statuses are returned.\n"
tags:
- Orders
parameters:
- $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_HEADER_Zuora_Org_Ids'
- name: subscriptionNumber
in: path
description: The subscription number.
required: true
type: string
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: dateFilterOption
in: query
description: 'The date type to filter on. This field value can be ''orderDate''
or ''updatedDate''. Default is orderDate.
'
required: false
type: string
- name: startDate
in: query
description: 'The result will only contain the orders with the date of ''dateFilterOption''
later than or equal to this date.
'
required: false
type: string
format: date
- name: endDate
in: query
description: 'The result will only contain the orders with the date of ''dateFilterOption''
earlier than or equal to this date.
'
required: false
type: string
format: date
- name: status
in: query
description: The status of orders.
required: false
type: string
enum:
- all
- cancelled
- completed
- draft
- executing
- failed
- pending
- scheduled
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/GetOrdersResponse'
examples:
application/json:
orders:
- orderNumber: O-00000002
orderDate: '2017-03-01'
createdDate: '2018-03-14 15:12:58'
createdBy: 2c989028622282520162235ab0f603ba
updatedDate: '2018-03-14 15:12:58'
updatedBy: 2c989028622282520162235ab0f603ba
existingAccountNumber: accountA_Num
currency: USD
status: Completed
description: This is a description for the Order.
invoiceScheduleId: ec6f0d5dc8af451ab95343fb3c588c1a
subscriptions:
- subscriptionNumber: A-S00000001
customFields:
sub_cf_picklist__c: null
baseVersion: 1
newVersion: 2
orderActions:
- type: UpdateProduct
sequence: 0
triggerDates:
- triggerDate: '2017-03-01'
name: ContractEffective
- triggerDate: '2017-03-01'
name: ServiceActivation
- triggerDate: '2017-03-01'
name: CustomerAcceptance
updateProduct:
ratePlanId: 2c989028622282520162235acd1b05d2
uniqueToken: null
specificUpdateDate: null
newRatePlanId: 2c989028622282520162235ada870649
chargeUpdates:
- description: null
chargeNumber: C-00000001
uniqueToken: null
newRatePlanChargeId: 2c989028622282520162235adabc0651
pricing:
recurringVolume:
quantity: 7
tiers: []
priceChangeOption: null
priceIncreasePercentage: null
effectiveDate:
specificTriggerDate: null
billing:
billingPeriodAlignment: null
customFields:
srpc_cf_picklist__c: null
customFields: {}
customFields:
oa_cf_text__c: null
customFields:
order_cf_date__c: '2017-01-01'
- orderNumber: O-00000001
orderDate: '2017-01-01'
createdDate: '2018-03-14 15:12:55'
createdBy: 2c989028622282520162235ab0f603ba
updatedDate: '2018-03-14 15:12:55'
updatedBy: 2c989028622282520162235ab0f603ba
existingAccountNumber: accountA_Num
currency: USD
status: Completed
subscriptions:
- subscriptionNumber: A-S00000001
customFields:
sub_cf_picklist__c: sub123
baseVersion: null
newVersion: 1
orderActions:
- type: CreateSubscription
sequence: 0
triggerDates:
- triggerDate: '2017-01-01'
name: ContractEffective
- triggerDate: '2017-01-01'
name: ServiceActivation
- triggerDate: '2017-01-01'
name: CustomerAcceptance
createSubscription:
subscriptionOwnerAccountNumber: accountA_Num
terms:
autoRenew: false
renewalSetting: RENEW_WITH_SPECIFIC_TERM
initialTerm:
startDate: '2017-01-01'
period: 12
periodType: Month
termType: TERMED
renewalTerms:
- period: 0
periodType: Month
invoiceSeparately: null
notes: null
subscribeToRatePlans:
- productRatePlanId: 2c989028622282520162235ac91605b3
newRatePlanId: 2c989028622282520162235acd1b05d2
uniqueToken: null
chargeOverrides:
- description: null
chargeNumber: C-00000001
productRateplanChargeId: 2c989028622282520162235aca7a05b9
uniqueToken: null
pricing:
recurringVolume:
quantity: 12
tiers: []
listPriceBase: Per_Billing_Period
priceChangeOption: null
priceIncreasePercentage: null
startDate:
specificTriggerDate: null
endDate:
endDateCondition: null
specificEndDate: null
upToPeriods: null
upToPeriodsType: null
billing:
billCycleDay: null
billingPeriod: null
billCycleType: null
billingTiming: null
billingPeriodAlignment: null
specificBillingPeriod: null
weeklyBillCycleDay: null
customFields:
srpc_cf_picklist__c: null
customFields: {}
customFields:
oa_cf_text__c: oa cf test
customFields:
order_cf_date__c: '2017-01-01'
success: true
/v1/orders/invoiceOwner/{accountNumber}:
get:
summary: List orders of an invoice owner
operationId: GET_OrdersByInvoiceOwner
description: "**Note:** This feature is only available if you have the [Order\
\ Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics)\
\ feature enabled. As of Zuora Billing Release 284, Orders is generally available\
\ and the Order Metrics feature is no longer available as a standalone feature.\
\ If you are an existing Subscribe and Amend customer and want Order Metrics\
\ only, you must turn on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization).\
\ You can still keep the existing Subscribe and Amend API integrations to\
\ create and manage subscriptions.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to enable\
\ the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n\nRetrieves the detailed information\
\ about all orders for a specified invoice owner. You can set the `status`\
\ query parameter to an order status to retrieve orders in that order status.\
\ If you do not set a value for this query parameter, the query parameter\
\ has a default value `all`, and orders of all statuses are returned.\n"
tags:
- Orders
parameters:
- $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_HEADER_Zuora_Org_Ids'
- name: accountNumber
in: path
description: The invoice owner account number.
required: true
type: string
format: string
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: dateFilterOption
in: query
description: 'The date type to filter on. This field value can be orderDate
or updatedDate. Default is orderDate.
'
required: false
type: string
- name: startDate
in: query
description: 'The result will only contain the orders with the date of dateFilterOption
later than or equal to this date.
'
required: false
type: string
format: date
- name: endDate
in: query
description: 'The result will only contain the orders with the date of dateFilterOption
earlier than or equal to this date.
'
required: false
type: string
format: date
- name: status
in: query
description: The status of orders.
required: false
type: string
enum:
- all
- cancelled
- completed
- draft
- executing
- failed
- pending
- scheduled
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/GetOrdersResponse'
examples:
application/json:
orders:
- orderNumber: O-00000002
orderDate: '2017-03-01'
createdDate: '2018-03-14 15:12:58'
createdBy: 2c989028622282520162235ab0f603ba
updatedDate: '2018-03-14 15:12:58'
updatedBy: 2c989028622282520162235ab0f603ba
existingAccountNumber: accountA_Num
currency: USD
status: Completed
description: This is a description for the Order.
invoiceScheduleId: ec6f0d5dc8af451ab95343fb3c588c1a
subscriptions:
- subscriptionNumber: A-S00000001
customFields:
sub_cf_picklist__c: null
baseVersion: 1
newVersion: 2
orderActions:
- type: UpdateProduct
sequence: 0
triggerDates:
- triggerDate: '2017-03-01'
name: ContractEffective
- triggerDate: '2017-03-01'
name: ServiceActivation
- triggerDate: '2017-03-01'
name: CustomerAcceptance
updateProduct:
ratePlanId: 2c989028622282520162235acd1b05d2
uniqueToken: null
specificUpdateDate: null
newRatePlanId: 2c989028622282520162235ada870649
chargeUpdates:
- description: null
chargeNumber: C-00000001
uniqueToken: null
newRatePlanChargeId: 2c989028622282520162235adabc0651
pricing:
recurringVolume:
quantity: 7
tiers: []
priceChangeOption: null
priceIncreasePercentage: null
effectiveDate:
specificTriggerDate: null
billing:
billingPeriodAlignment: null
customFields:
srpc_cf_picklist__c: null
customFields: {}
customFields:
oa_cf_text__c: null
customFields:
order_cf_date__c: '2017-01-01'
- orderNumber: O-00000001
orderDate: '2017-01-01'
createdDate: '2018-03-14 15:12:55'
createdBy: 2c989028622282520162235ab0f603ba
updatedDate: '2018-03-14 15:12:55'
updatedBy: 2c989028622282520162235ab0f603ba
existingAccountNumber: accountA_Num
currency: USD
status: Completed
subscriptions:
- subscriptionNumber: A-S00000001
customFields:
sub_cf_picklist__c: sub123
baseVersion: null
newVersion: 1
orderActions:
- type: CreateSubscription
sequence: 0
triggerDates:
- triggerDate: '2017-01-01'
name: ContractEffective
- triggerDate: '2017-01-01'
name: ServiceActivation
- triggerDate: '2017-01-01'
name: CustomerAcceptance
createSubscription:
subscriptionOwnerAccountNumber: accountA_Num
terms:
autoRenew: false
renewalSetting: RENEW_WITH_SPECIFIC_TERM
initialTerm:
startDate: '2017-01-01'
period: 12
periodType: Month
termType: TERMED
renewalTerms:
- period: 0
periodType: Month
invoiceSeparately: null
notes: null
subscribeToRatePlans:
- productRatePlanId: 2c989028622282520162235ac91605b3
newRatePlanId: 2c989028622282520162235acd1b05d2
uniqueToken: null
chargeOverrides:
- description: null
chargeNumber: C-00000001
productRateplanChargeId: 2c989028622282520162235aca7a05b9
uniqueToken: null
pricing:
recurringVolume:
quantity: 12
tiers: []
listPriceBase: Per_Billing_Period
priceChangeOption: null
priceIncreasePercentage: null
startDate:
specificTriggerDate: null
endDate:
endDateCondition: null
specificEndDate: null
upToPeriods: null
upToPeriodsType: null
billing:
billCycleDay: null
billingPeriod: null
billCycleType: null
billingTiming: null
billingPeriodAlignment: null
specificBillingPeriod: null
weeklyBillCycleDay: null
customFields:
srpc_cf_picklist__c: null
customFields: {}
customFields:
oa_cf_text__c: oa cf test
customFields:
order_cf_date__c: '2017-01-01'
success: true
/v1/orders/{orderNumber}/customFields:
put:
tags:
- Orders
summary: Update order custom fields
description: |
**Note:** This feature is only available if you have the [Order Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics) feature enabled. As of Zuora Billing Release 284, Orders is generally available and the Order Metrics feature is no longer available as a standalone feature. If you are an existing Subscribe and Amend customer and want Order Metrics only, you must turn on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization). You can still keep the existing Subscribe and Amend API integrations to create and manage subscriptions.
**Note:** To update the custom fields of an order line item, you must use the "Update an order line item" or "Update order line items" operation.
Updates the custom fields of a specified order.
operationId: PUT_UpdateOrderCustomFields
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_HEADER_Zuora_Org_Ids'
- name: orderNumber
in: path
description: The order number.
required: true
type: string
format: string
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTOrderPatchRequestType'
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/CommonResponseType'
examples:
application/json:
success: true
/v1/subscriptions/{subscriptionNumber}/customFields:
put:
tags:
- Orders
summary: Update subscription custom fields
description: |
**Note:** This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature enabled. If you are an existing Zuora Subscribe and Amend customer, we recommend you enable Orders Harmonization to access the Orders feature. With Orders, you can access both existing functions for subscription and billing management and the new features on Zuora Billing.
Updates the custom fields of a specified subscription.
operationId: PUT_UpdateSubscriptionCustomFields
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_HEADER_Zuora_Org_Ids'
- name: subscriptionNumber
in: path
description: The subscription number to be updated.
required: true
type: string
format: string
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTSubscriptionPatchRequestType'
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/CommonResponseType'
examples:
application/json:
success: true
/v1/orders/{orderNumber}/triggerDates:
put:
tags:
- Orders
summary: Update order action trigger dates
description: |
**Note:** This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature enabled. If you are an existing Zuora Subscribe and Amend customer, we recommend you enable Orders Harmonization to access the Orders feature. With Orders, you can access both existing functions for subscription and billing management and the new features on Zuora Billing.
Updates the triggering dates for either of the following order actions:
* CreateSubscription
* AddProduct
* UpdateProduct
* RemoveProduct
* RenewSubscription
* TermsAndConditions
operationId: PUT_OrderTriggerDates
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_HEADER_Zuora_Org_Ids'
- name: orderNumber
in: path
description: Order number of a pending order in which you are to update an
order action's triggering dates.
required: true
type: string
format: string
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTOrderActionTriggerDatesRequestType'
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/PUTOrderTriggerDatesResponseType'
examples:
application/json:
success: true
orderNumber: OM-00002
accountNumber: A00000001
status: Pending
subscriptions:
- subscriptionNumber: SM-00001
status: Pending Activation
- subscriptionNumber: SM-00002
status: Pending Acceptance
- subscriptionNumber: SM-00003
status: Active
- subscriptionNumber: SM-00004
status: Pending Acceptance
/v1/orders/{orderNumber}/activate:
put:
tags:
- Orders
summary: Activate an order
description: |
**Note:** This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature enabled. If you are an existing Zuora Subscribe and Amend customer, we recommend you enable Orders Harmonization to access the Orders feature. With Orders, you can access both existing functions for subscription and billing management and the new features on Zuora Billing.
Activate order is only available for draft orders.
operationId: PUT_OrderActivate
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_HEADER_Zuora_Org_Ids'
- name: orderNumber
in: path
description: Order number of a order in which you are to activate.
required: true
type: string
format: 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/PostOrderResponseType'
examples:
application/json:
success: true
orderNumber: OM-00002
accountNumber: A00000001
status: Pending
subscriptions:
- subscriptionNumber: SM-00001
status: Pending Activation
- subscriptionNumber: SM-00002
status: Pending Acceptance
- subscriptionNumber: SM-00003
status: Active
- subscriptionNumber: SM-00004
status: Pending Acceptance
- subscriptionNumber: SM-00005
status: Suspended
- subscriptionNumber: SM-00006
status: Active
invoiceNumbers:
- INV00000001
paymentNumber: P-00000002
paidAmount: 300
orderLineItems:
- id: bd78c0522adf42c2aa0fccacc997fa20
itemNumber: '116'
/v1/orders/{orderNumber}/cancel:
put:
tags:
- Orders
summary: Cancel an order
description: |
**Note:** This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature enabled. If you are an existing Zuora Subscribe and Amend customer, we recommend you enable Orders Harmonization to access the Orders feature. With Orders, you can access both existing functions for subscription and billing management and the new features on Zuora Billing.
**Note:** Cancellation is only valid for draft or scheduled orders. If the order is not in draft or scheduled status, the API returns an error.
The Scheduled Orders feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access features from the self-service interface, see Enable billing features by yourself .
operationId: PUT_OrderCancel
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_HEADER_Zuora_Org_Ids'
- name: orderNumber
in: path
description: The order number of the draft order you wish to cancel.
required: true
type: string
format: string
- name: body
in: body
description: ''
required: false
schema:
type: object
properties:
cancelReason:
type: string
description: The reason for cancelling the order.
example: Customer cancelled the order.
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/PutOrderCancelResponse'
examples:
application/json:
success: true
orderNumber: OM-00002
accountNumber: A00000001
status: Cancelled
CancelReason: Customer cancelled the order.
/v1/orders/subscription/{subscription-key}/pending:
get:
summary: List pending orders by subscription number
operationId: GET_PendingOrdersBySubscriptionNumber
description: "**Note:** This feature is only available if you have the [Order\
\ Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics)\
\ feature enabled. As of Zuora Billing Release 284, Orders is generally available\
\ and the Order Metrics feature is no longer available as a standalone feature.\
\ If you are an existing Subscribe and Amend customer and want Order Metrics\
\ only, you must turn on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization).\
\ You can still keep the existing Subscribe and Amend API integrations to\
\ create and manage subscriptions.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to enable\
\ the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n\nRetrieves the detailed information about\
\ all pending orders for a specified subscription.\n"
tags:
- Orders
parameters:
- $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_HEADER_Zuora_Org_Ids'
- name: subscription-key
in: path
description: 'Subscription number. For example, A-S00000135.
'
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:
orders:
- orderNumber: O-00000001
orderDate: '2017-01-01'
createdDate: '2018-03-14 15:12:55'
createdBy: 2c989028622282520162235ab0f603ba
updatedDate: '2018-03-14 15:12:55'
updatedBy: 2c989028622282520162235ab0f603ba
existingAccountNumber: accountA_Num
currency: USD
status: Pending
invoiceScheduleId: ec6f0d5dc8af451ab95343fb3c588c1a
subscriptions:
- subscriptionNumber: A-S00000001
customFields:
sub_cf_picklist__c: sub123
baseVersion: null
newVersion: 1
orderActions:
- type: CreateSubscription
sequence: 0
triggerDates:
- triggerDate: '2017-01-01'
name: ContractEffective
- triggerDate: '2017-01-01'
name: ServiceActivation
createSubscription:
subscriptionOwnerAccountNumber: accountA_Num
terms:
autoRenew: false
renewalSetting: RENEW_WITH_SPECIFIC_TERM
initialTerm:
startDate: '2017-01-01'
period: 12
periodType: Month
termType: TERMED
renewalTerms:
- period: 0
periodType: Month
subscribeToRatePlans:
- productRatePlanId: 2c989028622282520162235ac91605b3
newRatePlanId: 2c989028622282520162235acd1b05d2
chargeOverrides:
- chargeNumber: C-00000001
productRateplanChargeId: 2c989028622282520162235aca7a05b9
pricing:
recurringVolume:
quantity: 12
tiers: []
listPriceBase: Per_Billing_Period
customFields: {}
customFields:
order_cf_date__c: '2017-01-01'
success: true
description: ''
schema:
$ref: '#/definitions/GetAllOrdersResponseType'
/v1/payment-methods/{payment-method-id}/authorize:
post:
description: "Enables you to authorize the availability of funds for a transaction\
\ but delay the capture of funds until a later time. Subsequently, use [Create\
\ a payment](https://developer.zuora.com/api-references/api/operation/POST_CreatePayment)\
\ or [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order/)\
\ to capture the authorized funds, or use [Cancel authorization](https://developer.zuora.com/api-references/api/operation/POST_CancelAuthorization)\
\ to cancel the authorization. \n\nFor gateway integrations that support this\
\ operation, see Delayed Capture .\n \n"
summary: Create authorization
operationId: POST_CreateAuthorization
tags:
- Payment Authorization
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: payment-method-id
type: string
in: path
description: 'The unique ID of the payment method where the authorization
is created.
'
required: true
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTDelayAuthorizeCapture'
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/POSTAuthorizeResponse'
/v1/payment-methods/{payment-method-id}/voidAuthorize:
post:
description: 'Allows you to cancel an authorization. For gateway integrations
that support this operation, see Delayed Capture .
'
summary: Cancel authorization
operationId: POST_CancelAuthorization
tags:
- Payment Authorization
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: payment-method-id
type: string
in: path
description: 'The unique ID of the payment method where the authorization
is cancelled.
'
required: true
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTVoidAuthorize'
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/POSTVoidAuthorizeResponse'
/v1/gateway-settlement/payments/{payment-key}/settle:
post:
summary: Settle a payment
operationId: POST_SettlePayment
description: |
If the Asynchronous Payment Statuses feature is not enabled, this API operation sets the Gateway State field of the payment to `Settled` and returns the Payment object as response.
If the Asynchronous Payment Statuses feature is enabled, for ACH and Bank Transfer payments, this API operation sets the Payment Status field to `Processed` and the Gateway State field to `Settled`.
tags:
- Payment Gateway Reconciliation
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: payment-key
in: path
required: true
type: string
description: The payment number starting with "P-" or the unique payment ID.
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTSettlePaymentRequest'
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: 2c90c8e26a6a5271016a8e78ba502e4b
number: P-00000017
status: Processed
type: Electronic
accountId: 2c90c8e26a6a5271016a6fda7f922c10
amount: 332
appliedAmount: 0
unappliedAmount: 0
refundAmount: 0
creditBalanceAmount: 0
currency: USD
effectiveDate: '2019-05-06'
comment: ''
paymentMethodId: 2c90c8e26a6a5271016a6fdf9b5f2caa
paymentMethodSnapshotId: 2c90c8e26a6a5271016a8e78ba4a2e4a
authTransactionId: null
bankIdentificationNumber: '411111'
gatewayId: 2c90c8e26a6a5271016a74321ba82ce0
gatewayOrderId: null
gatewayResponse: Approved
gatewayResponseCode: '100'
gatewayState: Settled
markedForSubmissionOn: null
referenceId: '5571684390686343603009'
secondPaymentReferenceId: '549536'
softDescriptor: null
softDescriptorPhone: null
submittedOn: '2019-05-06 11:47:19'
settledOn: '2019-04-06 23:00:00'
cancelledOn: null
createdDate: '2019-05-06 11:47:17'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2019-05-06 12:11:05'
updatedById: 402881e522cf4f9b0122cf5d82860002
financeInformation: null
gatewayReconciliationStatus: succeeded
gatewayReconciliationReason: paid
payoutId: PAYOUT123
success: true
description: ''
schema:
$ref: '#/definitions/POSTSettlePaymentResponse'
/v1/gateway-settlement/payments/{payment-key}/reject:
post:
summary: Reject a payment
operationId: POST_RejectPayment
description: |
If the Asynchronous Payment Statuses feature is not enabled, this API operation sets the Gateway State field of the payment to `FailedToSettle`, creates a refund for the payment amount, and returns the Refund object as response.
If the Asynchronous Payment Statuses feature is enabled, for ACH and Bank Transfer payments, this API operation sets the Payment Status field to `Error` and the Gateway State field to `FailedToSettle`, and unapply the payment if it is already applied.
tags:
- Payment Gateway Reconciliation
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: payment-key
in: path
required: true
type: string
description: The payment number starting with "P-" or the unique payment ID.
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTRejectPaymentRequest'
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: 2c90c8e26a6a5271016a8e8232892e60
number: R-00000001
status: Processed
type: External
methodType: CreditCard
accountId: 2c90c8e26a6a5271016a6fda7f922c10
amount: 121
refundDate: '2019-05-06'
comment: null
paymentMethodId: 2c90c8e26a6a5271016a749380452cfc
paymentMethodSnapshotId: null
paymentId: 2c90c8e26a6a5271016a8e80de242e56
creditMemoId: null
reasonCode: Payment Rejection
gatewayId: null
gatewayResponse: Insufficient funds latest msg 1
gatewayResponseCode: '0231'
gatewayState: FailedToSettle
markedForSubmissionOn: null
referenceId: '825522036728874689'
secondRefundReferenceId: '825522036690700110'
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: '2019-05-07 20:56:32'
cancelledOn: null
createdDate: '2019-05-06 11:57:38'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2019-05-06 11:57:38'
updatedById: 402881e522cf4f9b0122cf5d82860002
refundTransactionTime: null
financeInformation: null
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
description: ''
schema:
$ref: '#/definitions/POSTRejectPaymentResponse'
/v1/gateway-settlement/payments/{payment-key}/chargeback:
post:
summary: Reverse a payment
operationId: POST_ReversePayment
description: |
If the Asynchronous Payment Statuses feature is not enabled, this API operation sets the Gateway State field of the payment to `Settled`, creates a refund for the amount specified in the request, and returns the Refund object as response.
If the Asynchronous Payment Statuses feature is enabled, for ACH and Bank Transfer payments that are reversed before they are settled, this API operation sets the Payment Status field to `Processed`, sets the Gateway State field of the payment to `Settled`, creates an external refund for the amount specified in the request, and returns the Refund object as response.
tags:
- Payment Gateway Reconciliation
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: payment-key
in: path
required: true
type: string
description: The payment number starting with "P-" or the unique payment ID.
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTReversePaymentRequest'
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: 2c90c8e26a6a5271016a8e8232892e60
number: R-00000001
status: Processed
type: External
methodType: CreditCard
accountId: 2c90c8e26a6a5271016a6fda7f922c10
amount: 121
refundDate: '2019-05-06'
comment: null
paymentMethodId: 2c90c8e26a6a5271016a749380452cfc
paymentMethodSnapshotId: null
paymentId: 2c90c8e26a6a5271016a8e80de242e56
creditMemoId: null
reasonCode: Payment Reversal
gatewayId: null
gatewayResponse: Insufficient funds latest msg 1
gatewayResponseCode: '0231'
gatewayState: Settled
markedForSubmissionOn: null
referenceId: '825522036728874689'
secondRefundReferenceId: '825522036690700110'
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: '2019-05-07 20:56:32'
cancelledOn: null
createdDate: '2019-05-06 11:57:38'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2019-05-06 11:57:38'
updatedById: 402881e522cf4f9b0122cf5d82860002
refundTransactionTime: null
financeInformation: null
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
description: ''
schema:
$ref: '#/definitions/POSTReversePaymentResponse'
/v1/refunds/{refund-key}/reconcile:
post:
summary: Reconcile a refund
operationId: POST_ReconcileRefund
description: 'Reconciles a refund when receiving the gateway reconciliation
request or event.
'
tags:
- Payment Gateway Reconciliation
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: refund-key
in: path
required: true
type: string
description: "The refund number starting with \u201CR-\u201D or the unique\
\ refund ID."
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTReconcileRefundRequest'
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/POSTReconcileRefundResponse'
/v1/paymentgateways:
get:
description: 'Retrieves the basic information about all the payment gateways.
'
summary: List all payment gateways
operationId: GET_Paymentgateways
tags:
- Payment Gateways
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:
paymentgateways:
- id: 4028905f5702783601570291e14c0015
name: Test Gateway Adapter
type: Test Gateway
isDefault: true
isActive: true
success: true
schema:
$ref: '#/definitions/GETPaymentGatwaysResponse'
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_HEADER_Zuora_Org_Ids'
/v1/payment-method-updaters/batches:
post:
summary: Create a Payment Method Updater batch asynchronously
operationId: POST_PaymentMethodUpdaterBatch
description: 'Creates a Payment Method Updater (PMU) batch asynchronously. PMU
for American Express (AMEX) is not supported.
'
tags:
- Payment Method Updater
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTPaymentMethodUpdaterBatchRequest'
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: false
processId: CFF02E89CBBC584E
reasons:
- code: 70370120
message: '''updaterAccountId'' may not be empty.'
requestId: 228fab35-add0-4538-9523-32ce55a009db
description: ''
schema:
$ref: '#/definitions/POSTPaymentMethodUpdaterResponse'
/v1/payment-method-updaters:
get:
summary: List Payment Method Updater instances
operationId: GET_PaymentMethodUpdaterInstances
description: 'Retrieves the detailed information of all Payment Method Updater
(PMU) instances on your tenant, except for American Express (AMEX).
'
tags:
- Payment Method Updater
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_HEADER_Zuora_Org_Ids'
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:
updaters:
- id: 418734b01fbb11ee821f0e4e5eec84cf
updaterName: CyberSourceUpdater
updaterGatewayType: CyberSource
daysToUpdateBeforeBcd: 7
isDefault: true
isActive: true
processVisa: true
processMastercard: true
processAssociatedGwOnly: true
processAutopayDefaultPmOnly: true
isTest: true
- id: 418739741fbb11ee821f0e4e5eec84cf
updaterName: WorldPayUpdater
updaterGatewayType: WorldPay
daysToUpdateBeforeBcd: 8
isDefault: false
isActive: true
processVisa: true
processMastercard: true
processAssociatedGwOnly: true
processAutopayDefaultPmOnly: true
isTest: true
success: true
description: ''
schema:
$ref: '#/definitions/GETPaymentMethodUpdaterInstancesResponse'
/v1/payment-methods:
post:
summary: Create a payment method
operationId: POST_PaymentMethods
description: "You can use this operation to create either a payment method associated\
\ with a specific customer account, or an orphan payment method that is not\
\ associated with any customer account. The orphan payment method must be\
\ associated with a customer account within 10 days. Otherwise, it will be\
\ deleted.\n\nThis operation supports the payment methods listed below.\n\
\ \n### Credit Card\nThe following request body fields are applicable\
\ to this payment method:\n* `cardHolderInfo` (`cardHolderName` required)\n\
* `cardNumber` (required)\n* `cardType` (required)\n* `expirationMonth` (required)\n\
* `expirationYear` (required)\n* `mitConsentAgreementRef`\n* `mitConsentAgreementSrc`\n\
* `mitNetworkTransactionId`\n* `mitProfileAction`\n* `mitProfileType`\n* `mitProfileAgreedOn`\n\
* `securityCode`\n* `checkDuplicated`\n* `mandateInfo`\n\n### Credit Card\
\ (CC) Reference Transaction\nThe following request body fields are applicable\
\ to this payment method:\n* `tokenId` (required)\n* `secondTokenId`\n* `creditCardMaskNumber`\n\
* `mandateInfo`\n\n### ACH\nThe following request body fields are applicable\
\ to this payment method:\n* `bankABACode` (required)\n* `bankAccountName`\
\ (required)\n* `bankAccountNumber` (required)\n* `bankAccountType` (required)\n\
* `bankName` (required)\n* `addressLine1`\n* `addressLine2`\n* `phone`\n*\
\ `city`\n* `country`\n* `state`\n* `zipCode`\n* `mandateInfo`\n\n### SEPA\n\
The following request body fields are applicable to this payment method:\n\
* `IBAN` (required). This field is required, except for creating tokenized\
\ SEPA payment methods on Adyen Integration v2.0.\n* `accountHolderInfo` (required)\n\
* `businessIdentificationCode`\n* `mandateInfo`\n* `accountMaskNumber`\n\n\
### Betalingsservice (Direct Debit DK)\nThe following request body fields\
\ are applicable to this payment method:\n* `accountNumber` (required)\n*\
\ `identityNumber` (required)\n* `bankCode` (required)\n* `accountHolderInfo`\
\ (required)\n* `mandateInfo`\n\n### Autogiro (Direct Debit SE)\nThe following\
\ request body fields are applicable to this payment method: \n* `accountNumber`\
\ (required)\n* `identityNumber` (required)\n* `branchCode` (required)\n*\
\ `accountHolderInfo` (required) \n* `mandateInfo`\n\n### Bacs (Direct Debit\
\ UK)\nThe following request body fields are applicable to this payment method:\
\ \n* `accountNumber` (required). This field is required, except for\
\ creating tokenized BACS payment methods on Stripe v2.\n* `bankCode` (required)\n\
* `accountHolderInfo` (required)\n* `mandateInfo`\n* `accountMaskNumber`\n\
\n### Becs (Direct Entry AU)\nThe following request body fields are applicable\
\ to this payment method: \n* `accountNumber` (required)\n* `branchCode`\
\ (required)\n* `accountHolderInfo` (required)\n* `mandateInfo`\n\n### Becsnz\
\ (Direct Debit NZ)\nThe following request body fields are applicable to this\
\ payment method: \n* `accountNumber` (required)\n* `bankCode` (required)\n\
* `branchCode` (required)\n* `accountHolderInfo` (required)\n* `mandateInfo`\n\
\n### PAD (Pre-Authorized Debit)\nThe following request body fields are applicable\
\ to this payment method:\n* `accountNumber` (required)\n* `bankCode` (required)\n\
* `branchCode` (required)\n* `accountHolderInfo` (required)\n* `mandateInfo`\n\
\n### PayPal Express Checkout\nThe following request body fields are specific\
\ to this payment method:\n* `BAID` (required)\n* `email` (required)\n\n###\
\ PayPal Native Express Checkout\nThe following request body fields are specific\
\ to this payment method:\n* `BAID` (required)\n* `email` (optional)\n\n###\
\ PayPal Adaptive\nThe following request body fields are specific to this\
\ payment method:\n* `preapprovalKey` (required)\n* `email` (required)\n\n\
### PayPal Commerce Platform\nThe following request body fields are applicable\
\ to the creation of a payment method with the PayPal Commerce Platform gateway\
\ integration:\n* `BAID` (required)\n* `email` (required)\n\n\n### Apple Pay\
\ on Adyen Integration v2.0\nSee [Set up Adyen Apple Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Apple_Pay_on_Web/Set_up_Adyen_Apple_Pay)\
\ for details.\n\n### Google Pay on Adyen Integration v2.0\nSee [Set up Adyen\
\ Google Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Adyen_Google_Pay)\
\ for details.\n\n### Google Pay on Chase Paymentech Orbital Gateway\nSee\
\ [Set up Google Pay on Chase](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Google_Pay_on_Chase)\
\ for details.\n\n### Custom payment methods\nWith the support of Universal\
\ Payment Connector (UPC) and Open Payment Method (OPM) services, you can\
\ create custom payment methods by using the fields defined in a definition\
\ file for this type of custom payment method. 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 details.\n"
tags:
- Payment Methods
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTPaymentMethodRequest'
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: 2c92a09650a7a80a0150ab50a5b746bd
success: true
description: ''
schema:
$ref: '#/definitions/POSTPaymentMethodResponse'
/v1/payment-methods/decryption:
post:
summary: Create an Apple Pay payment method
operationId: POST_PaymentMethodsDecryption
description: |
The decryption API endpoint can conditionally perform 4 tasks in one atomic call:
* Decrypt Apple Pay Payment token
* Create Credit Card Payment Method in Zuora with decrypted Apple Pay information
* Create a stored credential profile within the Apple Pay payment method
* Process Payment on a specified Invoice (optional)
tags:
- Payment Methods
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTPaymentMethodDecryption'
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:
paymentMethodId: 2c92c8f83dcbd8b1013dcce1d6a600ce
success: true
description: ''
schema:
$ref: '#/definitions/POSTPaymentMethodResponseDecryption'
/v1/payment-methods/{payment-method-id}:
put:
summary: Update a payment method
operationId: PUT_PaymentMethod
description: "This operation allows you to update an existing payment method.\
\ \n\nThe following request body fields can be updated for any payment method\
\ types except for Credit Card Reference Transaction:\n* `authGateway`\n*\
\ `gatewayOptions`\n* `accountHolderInfo`\n* `ipAddress`\n* Custom fields\n\
\nThe following request body fields can be updated only for the Credit Card\
\ payment method:\n* `expirationMonth` \n* `expirationYear`\n* `securityCode`\n\
\nThe following request body field can be updated for the Credit Card, Credit\
\ Card Reference Transaction, ACH, and Bank Transfer payment methods:\n* `mandateInfo`\
\ \n"
tags:
- Payment Methods
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_HEADER_Zuora_Org_Ids'
- name: payment-method-id
in: path
required: true
type: string
description: Unique ID of the payment method to update.
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTPaymentMethodRequest'
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: 2c92c0f86c99b4eb016cae1ee301728f
success: true
description: ''
schema:
$ref: '#/definitions/PUTPaymentMethodResponse'
get:
summary: Retrieve a payment method
operationId: GET_PaymentMethod
description: |
This operation allows you to get the detailed information about a payment method.
**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:
- Payment Methods
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_HEADER_Zuora_Org_Ids'
- name: payment-method-id
in: path
required: true
type: string
description: Unique ID of the payment method to update.
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/GETPaymentMethodResponse'
delete:
summary: Delete a payment method
operationId: DELETE_PaymentMethods
description: |
Deletes a credit card payment method.
If the specified payment method is the account's default payment
method, the request will fail. In that case, you must first designate a
different payment method for that customer to be the default.
tags:
- Payment Methods
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_HEADER_Zuora_Org_Ids'
- name: payment-method-id
in: path
required: true
type: string
description: Unique identifier of a payment method. (Since this ID is unique,
and linked to a customer account in the system, no customer identifier is
needed.)
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/payment-methods/{payment-method-id}/verify:
put:
description: |
Sends an authorization request to the corresponding payment gateway to verify the payment method, even though no changes are made for the payment method. Supported payment methods are Credit Cards and Paypal.
Zuora now supports performing a standalone zero dollar verification or one dollar authorization for credit cards. It also supports a billing agreement status check on PayPal payment methods.
If a payment method is created by Hosted Payment Pages and is not assigned to any billing account, the payment method cannot be verified through this operation.
summary: Verify a payment method
operationId: PUT_VerifyPaymentMethods
tags:
- Payment Methods
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'
- type: string
in: path
name: payment-method-id
required: true
description: 'The ID of the payment method to be verified.
'
- name: body
in: body
required: true
description: ''
schema:
$ref: '#/definitions/PUTVerifyPaymentMethodType'
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
paymentMethodId: 402890765d9ce329015da18034ee0057
schema:
$ref: '#/definitions/PUTVerifyPaymentMethodResponseType'
/v1/payment-methods/{payment-method-id}/scrub:
put:
tags:
- Payment Methods
summary: Scrub a payment method
operationId: PUT_ScrubPaymentMethods
description: "\nThis operation enables you to replace all sensitive data in\
\ a payment method, related payment method snapshot table, and four related\
\ log tables with dummy values that will be stored in Zuora databases. \n\n\
This operation will scrub the sensitive data and soft-delete the specified\
\ payment method at the same time. \n\nIf you want to delete or anonymize\
\ personal data in Zuora, you must scrub the payment method before anonymizing\
\ the associated account and contact. See [Delete or anonymize personal data](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Responding_to_individual_requests_for_access%2C_correction%2C_and_deletion_of_data_under_applicable_privacy_laws#Edit_and_correct_personal_data)\
\ for more information.\n\n**Note:** In order to use this operation, you must\
\ ensure that the **Scrub Sensitive Data of Specific Payment Method payments**\
\ permission is enabled in your user role. Contact your tenant administrator\
\ if you want to enable this permission. See [Scrub Payment Methods](https://knowledgecenter.zuora.com/CB_Billing/L_Payment_Methods/Scrub_Payment_Methods)\
\ for more information.\n"
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_HEADER_Zuora_Org_Ids'
- name: payment-method-id
in: path
required: true
description: 'The ID of the payment method where you want to scrub the sensitive
data.
'
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/payment-methods/{payment-method-id}/profiles:
post:
description: |
Creates a stored credential profile within a payment method.
The stored credential profile represents a consent agreement that you have established with a customer. When you use the payment method in a transaction, Zuora may include information from the stored credential profile to inform the payment processor that the transaction is related to your pre-existing consent agreement with the customer.
summary: Create a stored credential profile
operationId: POST_CreateStoredCredentialProfile
tags:
- Payment Methods
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: payment-method-id
type: string
in: path
required: true
description: 'ID of a payment method.
'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/CreateStoredCredentialProfileRequest'
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
paymentMethodId: 402881836953a3c7016953aec290000d
number: 3
description: ''
schema:
$ref: '#/definitions/ModifiedStoredCredentialProfileResponse'
get:
description: 'Retrieves the stored credential profiles within a payment method.
'
summary: List stored credential profiles of a payment method
operationId: GET_StoredCredentialProfiles
tags:
- Payment Methods
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_HEADER_Zuora_Org_Ids'
- name: payment-method-id
type: string
in: path
required: true
description: 'ID of a payment method.
'
- name: includeAll
type: boolean
default: false
in: query
description: |
Specifies whether to retrieve all the stored credential profiles within the payment method.
By default, Zuora returns only the stored credential profiles with `Agreed` or `Active` status. If you set this parameter to `true`, Zuora returns all the stored credential profiles.
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:
profiles:
- paymentMethodId: 402881836953a3c7016953aec290000d
number: 1
brand: Visa
status: Cancelled
type: Recurring
consentAgreementSrc: External
consentAgreementRef: ACCT1338AgreementV1.pdf
agreedOn: '2019-03-06 07:45:55'
activatedOn: '2019-03-06 07:45:55'
cancelledOn: '2019-03-13 07:52:16'
expiredOn: null
- paymentMethodId: 402881836953a3c7016953aec290000d
number: 2
brand: Visa
status: Active
type: Recurring
consentAgreementSrc: External
consentAgreementRef: ACCT1338AgreementV2.pdf
agreedOn: '2019-03-13 07:55:08'
activatedOn: '2019-03-13 07:55:08'
cancelledOn: null
expiredOn: null
success: true
schema:
$ref: '#/definitions/GetStoredCredentialProfilesResponse'
/v1/payment-methods/{payment-method-id}/profiles/{profile-number}/cancel:
post:
description: |
Cancels a stored credential profile within a payment method.
Cancelling the stored credential profile indicates that the stored credentials are no longer valid, per a customer request. You cannot reactivate the stored credential profile after you have cancelled it.
summary: Cancel a stored credential profile
operationId: POST_CancelStoredCredentialProfile
tags:
- Payment Methods
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: payment-method-id
type: string
in: path
required: true
description: 'ID of a payment method.
'
- name: profile-number
type: integer
in: path
required: true
description: 'Number that identifies a stored credential profile within the
payment method.
'
consumes: []
x-code-samples:
- lang: curl
label: Curl
source: 'curl -X POST -H "Authorization: Bearer 6d151216ef504f65b8ff6e9e9e8356d3"
"https://rest.zuora.com/v1/payment-methods/{payment-method-id}/profiles/{profile-number}/cancel"
'
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
paymentMethodId: 402881836953a3c7016953aec290000d
number: 1
description: ''
schema:
$ref: '#/definitions/ModifiedStoredCredentialProfileResponse'
/v1/payment-methods/{payment-method-id}/profiles/{profile-number}/expire:
post:
description: |
Expires a stored credential profile within a payment method.
Expiring the stored credential profile indicates that the stored credentials are no longer valid, per an expiration policy in the stored credential transaction framework. You cannot reactivate the stored credential profile after you have expired it.
summary: Expire a stored credential profile
operationId: POST_ExpireStoredCredentialProfile
tags:
- Payment Methods
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: payment-method-id
type: string
in: path
required: true
description: 'ID of a payment method.
'
- name: profile-number
type: integer
in: path
required: true
description: 'Number that identifies a stored credential profile within the
payment method.
'
consumes: []
x-code-samples:
- lang: curl
label: Curl
source: 'curl -X POST -H "Authorization: Bearer 6d151216ef504f65b8ff6e9e9e8356d3"
"https://rest.zuora.com/v1/payment-methods/{payment-method-id}/profiles/{profile-number}/expire"
'
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
paymentMethodId: 402881836953a3c7016953aec290000d
number: 2
description: ''
schema:
$ref: '#/definitions/ModifiedStoredCredentialProfileResponse'
/payment-methods/apple-pay/domains:
post:
description: "Before adding Apple Pay to your checkout flow by integrating with\
\ the JavaScript SDK provided by Zuora, your domains that will show the Apple\
\ Pay button must be registered with Apple. Use this operation to register\
\ a domain. \n\nFor more information about Zuora's JavaScript SDK for Apple\
\ Pay integration, see Set up Apple Pay through the JavaScript SDK approach .\n"
summary: Register an Apple Pay domain
operationId: POST_RegisterApplePayDomain
tags:
- Payment Methods
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTRegisterApplePayDomainRequest'
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: 402881a38924ff1001892502da090021
domainName: testapplepay.zuora.com
domainVerified: true
success: true
description: ''
schema:
$ref: '#/definitions/POSTRegisterApplePayDomainResponse'
get:
description: |
Use this operation to retrieve details of your domains that are already registered with Apple for Apple Pay button integration implemented through Zuora's JavaScript SDK.
You can use `domainName` as the query parameter to restrict domains returned in the response. Specify a domain name and the registered domains containing the specified domain name will be returned.
For more information about Zuora's JavaScript SDK for Apple Pay integration, see Set up Apple Pay through the JavaScript SDK approach .
summary: List registered Apple Pay domains
operationId: GET_ListApplePayDomains
tags:
- Payment Methods
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: domainName
type: string
in: query
description: "Specifies a domain name such as `zuora.com` and the registered\
\ domains containing the specified domain name will be returned. \n\nFor\
\ example, `test1.zuora.com` and `test2.zuora.com` are two registered domains,\
\ but `zuora.com` is not registered. If you specify `zuora.com` in this\
\ query field, the data of `test1.zuora.com` and `test2.zuora.com` will\
\ be returned.\n"
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:
domains:
- id: 402881a38924ff1001892502da090021
domainName: testapplepay.zuora.com
domainVerified: true
createdBy: 402881e522cf4f9b0122cf5d82860002
createdOn: '2023-07-05 00:44:51'
updatedBy: 402881e522cf4f9b0122cf5d82860002
updatedOn: '2023-07-05 00:44:51'
- id: 402881a3891fe7b401891fec61d40036
domainName: test1.zuora.com
domainVerified: false
createdBy: 402881e522cf4f9b0122cf5d82860002
createdOn: '2023-07-04 01:02:12'
updatedBy: 402881e522cf4f9b0122cf5d82860002
updatedOn: '2023-07-04 01:02:12'
success: true
description: ''
schema:
$ref: '#/definitions/GETListApplePayDomainsResponse'
/payment-methods/apple-pay/domains/{id}:
delete:
description: |
Use this operation to unregister a domain with Apple for Apple Pay button integration implemented through Zuora's JavaScript SDK.
For more information about Zuora's JavaScript SDK for Apple Pay integration, see Set up Apple Pay through the JavaScript SDK approach .
summary: Unregister an Apple Pay domain
operationId: DELETE_UnregisterApplePayDomain
tags:
- Payment Methods
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: id
in: path
required: true
type: string
description: The ID of the domain, such as `402881a38924ff1001892502da090021`.
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/DELETEUnresigerApplePayDomainResponse'
/web-payments/sessions:
post:
description: 'When implementing Apple Pay integration by using Zuora''s JavaScript
SDK, use this operation to create a payment session on your server side. The
response of this API operation contains a token for the payment session data.
Send the token back to your client side to use in the subsequent implementation
step. For more information, see [Set up Apple Pay through the JavaScript SDK
approach](https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B_Define_Payment_Methods/Set_up_Apple_Pay_for_gateway_integrations_other_than_Adyen_Integration_v2.0).
'
summary: Create a payment session
operationId: POST_CreatePaymentSession
tags:
- Payment Methods
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTCreatePaymentSessionRequest'
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:
token: LTljuuLaDQnHxeVpWaX6zq2xY2FJ6sSE
description: ''
schema:
$ref: '#/definitions/POSTCreatePaymentSessionResponse'
/v1/payment-runs:
post:
description: |
Creates a payment run. You can create a payment run to be executed immediately after it is created, or a scheduled payment run to be executed in future.
To filter the payments to be collected for a payment run, you can use either of the following methods but not both:
- Use the `accountId`, `batch`, `billCycleDay`, `currency`, `paymentGatewayId`, and `billingRunId` fields to define the billing documents to be collected.
- Use the `data` field to specify the records of accounts and billing documents to be collected, in a more flexible manner. See [Create custom payment runs through Zuora REST API](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/K_Payment_Operations/CA_Payment_Runs/Create_custom_payment_runs_through_Zuora_REST_API) for more information.
If no filter criteria are specified in the request body, the payment run collects payments for all accounts.
summary: Create a payment run
operationId: POST_PaymentRun
tags:
- Payment Runs
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- in: body
name: body
required: true
description: ''
schema:
$ref: '#/definitions/POSTPaymentRunRequest'
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: 2c92c0856078bbcb0160957bbb8f0b32
number: PR-00002120
targetDate: '2017-12-28'
runDate: null
status: Completed
executedOn: '2017-12-28 09:00:06'
completedOn: '2017-12-28 09:00:06'
applyCreditBalance: false
consolidatedPayment: false
processPaymentWithClosedPM: false
collectPayment: true
createdDate: '2017-12-27 09:00:02'
createdById: 2c92c0f958fffd7d015914aeefc71a5d
updatedDate: '2017-12-28 09:00:06'
updatedById: 2c92c0f958fffd7d015914aeefc71a5d
success: true
schema:
$ref: '#/definitions/GETPaymentRunType'
get:
description: "Retrieves the information about all payment runs. You can define\
\ filterable fields to restrict the data returned in the response.\n\n###\
\ Filtering\n\nYou can use query parameters to restrict the data returned\
\ in the response. Each query parameter corresponds to one field in the response\
\ body.\n\nIf the value of a filterable field is string, you can set the corresponding\
\ query parameter to `null` when filtering. Then, you can get the response\
\ data with this field value being `null`. \n\nExamples:\n\n- /v1/payment-runs?status=Processed\n\
\n- /v1/payment-runs?targetDate=2017-10-10&status=Pending\n\n- /v1/payment-runs?status=Completed&sort=+updatedDate\n"
summary: List payment runs
operationId: GET_PaymentRuns
tags:
- Payment Runs
produces:
- application/json
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: createdById
in: query
type: string
required: false
description: 'This parameter filters the response based on the `createdById`
field.
'
- name: createdDate
in: query
type: string
format: date-time
required: false
description: 'This parameter filters the response based on the `createdDate`
field.
'
- name: status
in: query
type: string
enum:
- Pending
- Processing
- Completed
- Error
- Canceled
required: false
description: 'This parameter filters the response based on the `status` field.
'
- name: targetDate
in: query
type: string
format: date
required: false
description: 'This parameter filters the response based on the `targetDate`
field.
'
- name: updatedById
in: query
type: string
required: false
description: 'This parameter filters the response based on the `updatedById`
field.
'
- name: updatedDate
in: query
type: string
format: date-time
required: false
description: 'This parameter filters the response based on the `updatedDate`
field.
'
- 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\nA sortable field uses the following form: \n\n*operator* *field_name*\n\
\nYou can use at most two sortable fields in one URL path. Use a comma to\
\ separate sortable fields. For example: *operator* *field_name*, *operator*\
\ *field_name* \n\n*operator* is used to mark the order of sequencing.\
\ The operator is optional. If you only specify the sortable field without\
\ any operator, the response data is sorted in descending order by this\
\ field.\n\n - The `-` operator indicates an ascending order.\n - The\
\ `+` operator indicates a descending order.\n\nBy default, the response\
\ data is displayed in descending order by payment run number.\n\n*field_name*\
\ indicates the name of a sortable field. The supported sortable fields\
\ of this operation are as below:\n\n - targetDate\n - status\n - createdDate\n\
\ - createdById\n - updatedDate\n - updatedById\n\nExamples:\n\n- /v1/payment-runs?sort=+createdDate\n\
\n- /v1/payment-runs?status=Processing&sort=-createdById,+targetDate\n"
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:
paymentRuns:
- id: 2c92c0856078bbcb016096576ccb75ca
number: PR-00002121
targetDate: '2017-12-28'
runDate: null
status: Completed
executedOn: '2017-12-28 13:00:00'
completedOn: '2017-12-28 13:00:00'
applyCreditBalance: false
consolidatedPayment: false
processPaymentWithClosedPM: false
collectPayment: true
createdDate: '2017-12-27 13:00:00'
createdById: 2c92c0f956bc8fcb0156f8eee04b4d54
updatedDate: '2017-12-28 13:00:00'
updatedById: 2c92c0f956bc8fcb0156f8eee04b4d54
nextPage: /payment-runs?page=2
success: true
schema:
$ref: '#/definitions/GETPaymentRunCollectionType'
/v1/payment-runs/{paymentRunKey}:
put:
summary: Update a payment run
operationId: PUT_PaymentRun
description: |
Updates the information about an unexecuted payment run. Only pending payment runs can be updated.
If none of the **accountId**, **batch**, **billCycleDay**, **currency**, **paymentGatewayId**, and **billingRunId** fields is specified in the request body, the corresponding payment run collects payments for all accounts.
tags:
- Payment Runs
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_HEADER_Zuora_Org_Ids'
- in: path
name: paymentRunKey
description: 'The unique ID of a payment run or the payment run number. For
example, 402890245f097f39015f0f074a2e0566.
'
required: true
type: string
- in: body
name: body
required: true
description: ''
schema:
$ref: '#/definitions/PUTPaymentRunRequest'
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: 402890245f097f39015f0f074a2e0566
number: PR-00000391
status: Pending
rundate: null
targetDate: '2017-10-12'
completedOn: null
accountId: 402890245f097f39015f0e9fcdd60558
executedOn: null
autoApplyCreditMemo: true
autoApplyUnappliedPayment: true
consolidatedPayment: true
processPaymentWithClosedPM: true
collectPayment: true
createdDate: '2017-09-22 12:37:22'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-09-22 12:37:22'
updatedById: 402881e522cf4f9b0122cf5d82860002
success: true
schema:
$ref: '#/definitions/GETPaymentRunType'
get:
summary: Retrieve a payment run
operationId: GET_PaymentRun
description: 'Retrives the information about a specific payment run.
'
tags:
- Payment Runs
produces:
- application/json
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_HEADER_Zuora_Org_Ids'
- in: path
name: paymentRunKey
description: 'The unique ID of a payment run or the payment run number. For
example, 402890245f097f39015f0f074a2e0566.
'
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: ''
examples:
application/json:
id: 2c92c0856078bbcb0160957bbb8f0b32
number: PR-00002120
targetDate: '2017-12-28'
runDate: null
status: Completed
executedOn: '2017-12-28 09:00:06'
completedOn: '2017-12-28 09:00:06'
applyCreditBalance: false
consolidatedPayment: false
processPaymentWithClosedPM: false
collectPayment: true
createdDate: '2017-12-27 09:00:02'
createdById: 2c92c0f958fffd7d015914aeefc71a5d
updatedDate: '2017-12-28 09:00:06'
updatedById: 2c92c0f958fffd7d015914aeefc71a5d
success: true
schema:
$ref: '#/definitions/GETPaymentRunType'
delete:
summary: Delete a payment run
operationId: DELETE_PaymentRun
description: 'Deletes a payment run. Only payment runs with the Canceled or
Error status can be deleted.
'
tags:
- Payment Runs
produces:
- application/json
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'
- in: path
name: paymentRunKey
description: 'The unique ID of a payment run or the payment run number. For
example, 402890245f097f39015f0f074a2e0566.
'
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/CommonResponseType'
examples:
application/json:
success: true
/v1/payment-runs/{paymentRunKey}/summary:
get:
summary: Retrieve a payment run summary
operationId: GET_PaymentRunSummary
description: 'Retrives the summary of a payment run.
'
tags:
- Payment Runs
produces:
- application/json
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'
- in: path
name: paymentRunKey
description: 'The unique ID of a payment run or the payment run number. For
example, 402890245f097f39015f0f074a2e0566.
'
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: ''
examples:
application/json:
numberOfErrors: 0
numberOfReceivables: 1
numberOfPayments: 1
numberOfUnprocessedReceivables: 0
numberOfCreditBalanceAdjustments: 0
numberOfInvoices: 0
numberOfUnprocessedInvoices: 0
numberOfCreditMemos: 1
numberOfDebitMemos: 1
numberOfUnappliedPayments: 1
numberOfUnprocessedDebitMemos: 0
totalValues:
- totalValueOfReceivables: 256 USD
totalValueOfPayments: 56 USD
totalValueOfErrors: 0 USD
totalValueOfUnprocessedReceivables: 0 USD
totalValueOfCreditBalance: 0 USD
totalValueOfInvoices: 0 USD
totalValueOfUnprocessedInvoices: 0 USD
totalValueOfDebitMemos: 256 USD
totalValueOfCreditMemos: 100 USD
totalValueOfUnappliedPayments: 100 USD
totalValueOfUnprocessedDebitMemos: 0 USD
success: true
schema:
$ref: '#/definitions/GETPaymentRunSummaryResponse'
/v1/payment-runs/{paymentRunKey}/data:
get:
summary: Retrieve payment run data
operationId: GET_PaymentRunData
description: "Retrieves payment run data and the processing result with details,\
\ if the `data` field was specified in the Create payment run operation.\n\
\ \n"
tags:
- Payment Runs
produces:
- application/json
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'
- in: path
name: paymentRunKey
description: 'The unique ID of a payment run or the payment run number. For
example, 402890245f097f39015f0f074a2e0566.
'
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: ''
examples:
application/json:
data:
- accountId: 402881ed738ddf2001738def8db50058
documentId: 402881ed738ddf2001738df388fd009e
documentType: Invoice
amount: 80
paymentMethodId: 402881ed738ddf2001738def8e60005b
paymentGatewayId: 402881ed738ddf2001738def8b630050
comment: Comment1
customField1__c: cf_value1
customField2__c: cf_value2
result: Processed
amountToCollect: 80
amountCollected: 80
transactions:
- id: 402881ed738ddf2001738dfafad6012c
type: Payment
appliedAmount: 40
amount: 40
status: Processed
- id: 402881ed738ddf2001738df7572400e6
type: CreditMemo
appliedAmount: 10
- id: 402881ed738ddf2001738df715d800dd
type: UnappliedPayment
appliedAmount: 30
- accountId: 402881ed738ddf2001738def8db50058
documentType: DebitMemo
documentId: 402881ed738ddf2001738df5b90a00c0
amount: 70
paymentMethodId: 402881ed738ddf2001738df97dbe00fe
paymentGatewayId: 402881ed738ddf2001738def8b630050
comment: Comment2
customField1__c: cf_value3
customField2__c: cf_value4
result: Processed
amountToCollect: 70
amountCollected: 70
transactions:
- id: 402881ed738ddf2001738dfafcbd013b
type: Payment
appliedAmount: 70
amount: 70
status: Processed
- accountId: c49b85cd8ba742edb5ab4b3da90fc4c0
documentId: 7dab18d036dc4c94bbec853afb12affb
documentType: Invoice
paymentMethodId: 1906df6f56f049c8b7457dc31f62d0ec
comment: Comment3
customField1__c: cf_value5
customField2__c: cf_value6
paymentGatewayId: 768929c2f51947e79e73703bfc9bca7d
result: Error
errorCode: Invalid_Request_Data
errorMessage: Payment method is closed
success: true
schema:
$ref: '#/definitions/GETPaymentRunDataArrayResponse'
/v1/payment-schedules:
post:
description: |
Creates a payment schedule. You can create either recurring payment schedules or custom payment schedules.
**Note:**
- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.
- You can choose to use payment schedules to process payments associated with billing documents or unapplied payments. If Standalone Payment is enabled, you can also use payment schedules to process standalone payments.
- This operation is version controlled. If you set `zuora-version` to `329.0`, when creating custom payment schedules associated with billing documents, you need to specify the billing document for each payment schedule item; If `zuora-version` is set to `330.0`, when creating custom payment schedules associated with billing documents, you only need to specify the billing documents at the payment schedule level. The default version number is `329.0`. However, we recommend that you specify the version to `330.0`. `329.0` will be deprecated soon.
summary: Create a payment schedule
operationId: POST_PaymentSchedule
tags:
- Payment Schedules
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- in: body
name: body
required: true
description: ''
schema:
$ref: '#/definitions/POSTPaymentScheduleRequest'
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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* `billingDocument`\n\
* `items` > `billingDocument`\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:
success: true
id: 402880e749b72b310149b7343ef80005
paymentScheduleNumber: PS-00000001
accountId: 402880e741112b310149b7343ef81234
accountNumber: A-00000001
startDate: '2021-11-01'
period: Monthly
runHour: 1
occurrences: 2
totalAmount: 20
status: Active
nextProcessDate: '2021-11-01'
recentProcessedDate: null
processedCount: 0
errorCount: 0
description: null
"\u201CisCustom\u201D": true
"\u201Cstandalone\u201D": true
cf1__c: v1
createdDate: '2021-11-01 19:40:00'
updatedDate: '2021-11-01 19:40:00'
createdById: 402892f942306295014230a4ab4909bf
updatedById: 402892f942306295014230a4ab4909bf
items:
- id: 412880e749b72b310149b7343ef81346
number: 1
paymentScheduleId: 402880e749b72b310149b7343ef80005
paymentScheduleNumber: PS-00000001
accountId: 402880e741112b310149b7343ef81234
scheduledDate: '2021-11-01'
amount: 10
currency: USD
runHour: 1
paymentMethodId: '123'
paymentGatewayId: abc
status: Pending
errorMessage: null
paymentId: null
standalone: true
description: null
cf1__c: v1
createdDate: '2021-11-01 19:40:00'
updatedDate: '2021-11-01 19:40:00'
createdById: 402892f942306295014230a4ab4909bf
updatedById: 402892f942306295014230a4ab4909bf
billingDocument:
number: INV00002345
id: 2c9890306fb2121e016fb21a6b550041
type: Invoice
- id: 412880e749b72b310149b7343ef81347
number: 1
paymentScheduleId: string
paymentScheduleNumber: string
accountId: 402880e741112b310149b7343ef81234
scheduledDate: '2021-12-01'
amount: 10
currency: USD
runHour: 1
paymentMethodId: '123'
paymentGatewayId: abc
standalone: true
status: Pending
errorMessage: null
paymentId: null
description: null
cf1__c: v1
createdDate: '2021-11-01 19:40:00'
updatedDate: '2021-11-01 19:40:00'
createdById: 402892f942306295014230a4ab4909bf
updatedById: 402892f942306295014230a4ab4909bf
billingDocument:
number: INV00007765
id: 2c9890306f6fb21a6b550041b2121e01
type: Invoice
schema:
$ref: '#/definitions/POSTPaymentScheduleResponse'
get:
description: |
Retrieves payment schedules of a customer account.
**Note:**
- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.
- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.
summary: List payment schedules by customer account
operationId: GET_PaymentSchedules
tags:
- Payment Schedules
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_HEADER_Zuora_Org_Ids'
- name: lastProcessedItems
in: query
description: 'Number of the most recent processed payment schedules dispalyed
in the response body.
'
required: false
type: integer
- name: nextPendingItems
in: query
description: 'Number of next pending payment schedule items displayed in the
response body.
'
required: false
type: integer
- name: accountId
in: query
description: "The ID of the customer account. If neither `accountId` nor `accountNumber`\
\ is specified, all payment schedules will be returned. \n"
required: false
type: string
- name: accountNumber
in: query
description: "The number of the customer account. If neither `accountId` nor\
\ `accountNumber` is specified, all payment schedules will be returned.\
\ \n"
required: false
type: integer
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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 fields:\n* `items` > `paymentId` \
\ \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:
- id: 8a90857b822459cd018224dcb9eb13be
paymentScheduleNumber: PS-00000007
standalone: false
accountId: 8a90a2fd8074995801807816dbac52a4
accountNumber: A00000002
startDate: '2022-07-31'
runHour: 0
period: null
occurrences: 2
totalAmount: 50
status: Active
nextPaymentDate: '2022-07-31'
recentPaymentDate: null
totalPaymentsProcessed: 0
totalPaymentsErrored: 0
description: ''
isCustom: true
billingDocument: null
createdDate: '2022-07-22 00:43:42'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-22 00:45:36'
updatedById: 8a90e082802185b901802199e15902d1
items:
- id: 8a90857b822459cd018224dcb9ec13bf
number: 1
paymentScheduleId: 8a90857b822459cd018224dcb9eb13be
paymentScheduleNumber: PS-00000007
standalone: false
scheduledDate: '2022-07-31'
runHour: 23
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 30.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
description: ''
createdDate: '2022-07-22 00:43:42'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-22 00:43:42'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a90a2fd822459ec018224de77a0359d
number: 2
paymentScheduleId: 8a90857b822459cd018224dcb9eb13be
paymentScheduleNumber: PS-00000007
standalone: false
scheduledDate: '2022-08-31'
runHour: 20
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 10.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
description: ''
createdDate: '2022-07-22 00:45:35'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-22 00:45:35'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a90e0828219a57101821f00287a3abd
paymentScheduleNumber: PS-00000006
standalone: false
accountId: 8a90a2fd8074995801807816dbac52a4
accountNumber: A00000002
startDate: '2022-07-21'
runHour: 11
period: BiWeekly
occurrences: 4
totalAmount: 40
status: Active
nextPaymentDate: '2022-08-04'
recentPaymentDate: '2022-07-21'
totalPaymentsProcessed: 1
totalPaymentsErrored: 0
description: test update ps Xiaokai
isCustom: false
billingDocument: null
createdDate: '2022-07-20 21:24:40'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-21 11:00:21'
updatedById: '3'
items:
- id: 8a90e0828219a57101821f00287a3abf
number: 1
paymentScheduleId: 8a90e0828219a57101821f00287a3abd
paymentScheduleNumber: PS-00000006
standalone: false
scheduledDate: '2022-07-21'
runHour: 11
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 10.0
currency: USD
status: Processed
errorMessage: null
paymentId: 8a90e86d821fd6d1018221eae795158b
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
description: test update ps
createdDate: '2022-07-20 21:24:40'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-21 11:00:19'
updatedById: '3'
- id: 8a90e0828219a57101821f00287b3ac0
number: 2
paymentScheduleId: 8a90e0828219a57101821f00287a3abd
paymentScheduleNumber: PS-00000006
standalone: false
scheduledDate: '2022-08-04'
runHour: 11
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 10.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
description: test update ps
createdDate: '2022-07-20 21:24:40'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-20 21:26:26'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a90e0828219a57101821f00287b3ac1
number: 3
paymentScheduleId: 8a90e0828219a57101821f00287a3abd
paymentScheduleNumber: PS-00000006
standalone: false
scheduledDate: '2022-08-18'
runHour: 11
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 10.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
description: test update ps
createdDate: '2022-07-20 21:24:40'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-20 21:26:26'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a90e0828219a57101821f01c5447f04
number: 4
paymentScheduleId: 8a90e0828219a57101821f00287a3abd
paymentScheduleNumber: PS-00000006
standalone: false
scheduledDate: '2022-09-01'
runHour: 11
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 10.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
description: test update ps
createdDate: '2022-07-20 21:26:26'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-20 21:26:26'
updatedById: 8a90e082802185b901802199e15902d1
schema:
$ref: '#/definitions/GETPaymentSchedulesResponse'
/v1/payment-schedules/batch:
post:
description: |
Creates multiple payment schedules at once. You can create both recurring payment schedules and custom payment schedules in one request. The maximum number of payment schedules that can be created by a single request is 50. The maximum number of payment schedule items that each payment schedule can contain is 1000, i.e., you must specify less than 1000 items for a custom payment schedule, and the `occurrences` field must be less than 1000 for a recurring payment schedule.
**Note:**
- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.
- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.
- If Standalone Payment is enabled, you can choose to use payment schedules to process payments associated with billing documents, standalone payments, or unapplied payments. If Standalone Payment is not enabled, you can only use payment schedules to process unapplied payments or payments associated with billing documents.
- This operation is version controlled. If you set `zuora-version` to `329.0`, when creating custom payment schedules associated with billing documents, you need to specify the billing document for each payment schedule item; If `zuora-version` is set to `330.0`, when creating custom payment schedules associated with billing documents, you only need to specify the billing documents at the payment schedule level. The default version number is `329.0`. However, we recommend that you specify the version to `330.0`. `329.0` will be deprecated soon.
summary: Create multiple payment schedules at once
operationId: POST_PaymentSchedules
tags:
- Payment Schedules
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- in: body
name: body
required: true
description: ''
schema:
$ref: '#/definitions/POSTPaymentSchedulesRequest'
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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* `paymentSchedules`\
\ > `billingDocument`\n* `paymentSchedules` > `items` > `billingDocument`\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:
paymentSchedules:
- id: 402880e741112b310149b7343ef81234
paymentScheduleNumber: PS-00311401
- id: 402880e741112b310149b7343ef81234
paymentScheduleNumber: PS-00311402
schema:
$ref: '#/definitions/POSTPaymentSchedulesResponse'
/v1/payment-schedules/{paymentScheduleKey}:
get:
description: |
Retrieves a payment schedule by payment schedule key.
**Note:**
- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.
- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.
summary: Retrieve a payment schedule
operationId: GET_PaymentSchedule
tags:
- Payment Schedules
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: 8a90857b822459cd018224dcb9eb13be
paymentScheduleNumber: PS-00000007
standalone: false
accountId: 8a90a2fd8074995801807816dbac52a4
accountNumber: A00000002
startDate: '2022-07-31'
runHour: 0
period: null
occurrences: 2
totalAmount: 40
status: Active
nextPaymentDate: '2022-07-31'
recentPaymentDate: null
totalPaymentsProcessed: 0
totalPaymentsErrored: 0
description: ''
isCustom: true
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
createdDate: '2022-07-22 00:43:42'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-22 00:45:36'
updatedById: 8a90e082802185b901802199e15902d1
items:
- id: 8a90857b822459cd018224dcb9ec13bf
number: 1
paymentScheduleId: 8a90857b822459cd018224dcb9eb13be
paymentScheduleNumber: PS-00000007
standalone: false
scheduledDate: '2022-07-31'
runHour: 23
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 30.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
description: ''
createdDate: '2022-07-22 00:43:42'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-22 00:43:42'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a90a2fd822459ec018224de77a0359d
number: 2
paymentScheduleId: 8a90857b822459cd018224dcb9eb13be
paymentScheduleNumber: PS-00000007
standalone: false
scheduledDate: '2022-08-31'
runHour: 20
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 10.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
description: ''
createdDate: '2022-07-22 00:45:35'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-22 00:45:35'
updatedById: 8a90e082802185b901802199e15902d1
success: true
schema:
$ref: '#/definitions/GETPaymentScheduleResponse'
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_HEADER_Zuora_Org_Ids'
- name: nextPendingItems
in: query
description: 'Number of next pending payment schedule items displayed in the
response body.
'
required: false
type: integer
- name: lastProcessedItems
in: query
description: 'Number of the most recent processed payment schedule items dispalyed
in the response body.
'
required: false
type: integer
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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 response fields:\n - `items` > `paymentId`\n"
- type: string
in: path
name: paymentScheduleKey
required: true
description: 'The unique ID or number of a payment schedule. For example,
`8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.
'
put:
description: |
Updates a payment schedule. For custom payment schedules, only the custom fields on the payment schedules can be udpated. Use the [Update a payment schedule item](https://developer.zuora.com/api-references/api/operation/PUT_PaymentScheduleItem/) operation to update payment schedule items of custom payment schedule.
Note the following rules for the `periodStartDate`, `period`, and `occurrences`:
- If `periodStartDate` is specified, all pending payment schedule items will be rescheduled using this new `periodStartDate`. If `period` is changed, we recommend passing in `periodStartDate`. Otherwise, the system would use the original start date if there is no processed or canceled items, or the last processed or canceled '`scheduleDate` + 1 `period`' as the new `periodStartDate`.
- If only `occurrences` is updated, the new item will start with the last processed or canceled '`scheduleDate` + 1 `period`'.
**Note:**
- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.
- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.
summary: Update a payment schedule
operationId: PUT_PaymentSchedule
tags:
- Payment Schedules
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_HEADER_Zuora_Org_Ids'
- in: body
name: body
required: true
description: ''
schema:
$ref: '#/definitions/PUTPaymentScheduleRequest'
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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 fields:\n- `items` > `paymentId`\n"
- type: string
in: path
name: paymentScheduleKey
required: true
description: 'The unique ID or number of a payment schedule. For example,
`8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.
'
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: 8a90e08281e10bb00181e749f4db01b8
paymentScheduleNumber: PS-00000002
standalone: true
accountId: 8a90a2fd8074995801807816dbac52a4
accountNumber: A00000002
startDate: '2022-07-10'
runHour: 23
period: Monthly
occurrences: 5
totalAmount: 230
status: Active
nextPaymentDate: '2022-11-01'
recentPaymentDate: null
totalPaymentsProcessed: 0
totalPaymentsErrored: 0
description: test xiaokai
isCustom: false
billingDocument: null
createdDate: '2022-07-10 01:46:33'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-28 06:12:39'
updatedById: 8a90e082802185b901802199e15902d1
items:
- id: 8a90e08281e10bb00181e749f4dd01b9
number: 1
paymentScheduleId: 8a90e08281e10bb00181e749f4db01b8
paymentScheduleNumber: PS-00000002
standalone: true
scheduledDate: '2022-07-10'
runHour: 12
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 100.0
currency: USD
status: Canceled
errorMessage: null
paymentId: null
billingDocument: null
description: test xiaokai
createdDate: '2022-07-10 01:46:33'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-28 06:12:39'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a90e08281e10bb00181e749f4e501ba
number: 2
paymentScheduleId: 8a90e08281e10bb00181e749f4db01b8
paymentScheduleNumber: PS-00000002
standalone: true
scheduledDate: '2022-08-10'
runHour: 12
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 100.0
currency: USD
status: Canceled
errorMessage: null
paymentId: null
billingDocument: null
description: test xiaokai
createdDate: '2022-07-10 01:46:33'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-28 06:12:39'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a90e08281e10bb00181e749f4e601bb
number: 3
paymentScheduleId: 8a90e08281e10bb00181e749f4db01b8
paymentScheduleNumber: PS-00000002
standalone: true
scheduledDate: '2022-11-01'
runHour: 23
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 10.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument: null
description: test xiaokai
createdDate: '2022-07-10 01:46:33'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-28 06:12:39'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a908de6822b2e1501823352ac745b53
number: 4
paymentScheduleId: 8a90e08281e10bb00181e749f4db01b8
paymentScheduleNumber: PS-00000002
standalone: true
scheduledDate: '2022-12-01'
runHour: 23
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 10.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument: null
description: test xiaokai
createdDate: '2022-07-24 20:07:12'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-28 06:12:39'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a90e082824456ae018244f00e0317eb
number: 5
paymentScheduleId: 8a90e08281e10bb00181e749f4db01b8
paymentScheduleNumber: PS-00000002
standalone: true
scheduledDate: '2023-01-01'
runHour: 23
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 10.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument: null
description: test xiaokai
createdDate: '2022-07-28 06:12:39'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-28 06:12:39'
updatedById: 8a90e082802185b901802199e159021d
success: true
schema:
$ref: '#/definitions/GETPaymentScheduleResponse'
/v1/payment-schedules/{paymentScheduleKey}/preview:
put:
description: |
Preview the result of a payment schedule update. This operation only provides a preview. No changes will be made to the database. For custom payment schedules, only the custom fields on the payment schedules can be udpated. Use the [Update a payment schedule item](https://developer.zuora.com/api-references/api/tag/PUT_PaymentScheduleItem) operation to update payment schedule items of custom payment schedule.
Note the following rules for the `periodStartDate`, `period`, and `occurrences`:
- If `periodStartDate` is specified, all pending payment schedule items will be rescheduled using this new `periodStartDate`. If `period` is changed, we recommend passing in `periodStartDate`. Otherwise, the system would use the original start date if there is no processed or canceled items, or the last processed or canceled '`scheduleDate` + 1 `period`' as the new `periodStartDate`.
- If only `occurrences` is updated, the new item will start with the last processed or canceled '`scheduleDate` + 1 `period`'.
**Note:**
- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.
summary: Preview the result of payment schedule updates
operationId: PUT_PaymentScheduleUpdatePreview
tags:
- Payment Schedules
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_HEADER_Zuora_Org_Ids'
- in: body
name: body
required: true
description: ''
schema:
$ref: '#/definitions/PUTPreviewPaymentScheduleRequest'
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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 fields:\n- `items` > `paymentId`\n"
- type: string
in: path
name: paymentScheduleKey
required: true
description: 'The unique ID or number of a payment schedule. For example,
`8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.
'
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: 8a90e08281e10bb00181e749f4db01b8
paymentScheduleNumber: PS-00000002
standalone: true
accountId: 8a90a2fd8074995801807816dbac52a4
accountNumber: A00000002
startDate: '2022-07-10'
runHour: 23
period: Monthly
occurrences: 5
status: Active
nextPaymentDate: '2022-11-01'
recentPaymentDate: null
totalPaymentsProcessed: 0
totalPaymentsErrored: 0
description: test xiaokai
isCustom: false
billingDocument: null
createdDate: '2022-07-10 01:46:33'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-28 06:12:39'
updatedById: 8a90e082802185b901802199e15902d1
items:
- id: 8a90e08281e10bb00181e749f4dd01b9
number: 1
paymentScheduleId: 8a90e08281e10bb00181e749f4db01b8
paymentScheduleNumber: PS-00000002
standalone: true
scheduledDate: '2022-07-10'
runHour: 12
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 100.0
currency: USD
status: Canceled
errorMessage: null
paymentId: null
billingDocument: null
description: test xiaokai
createdDate: '2022-07-10 01:46:33'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-28 06:12:39'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a90e08281e10bb00181e749f4e501ba
number: 2
paymentScheduleId: 8a90e08281e10bb00181e749f4db01b8
paymentScheduleNumber: PS-00000002
standalone: true
scheduledDate: '2022-08-10'
runHour: 12
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 100.0
currency: USD
status: Canceled
errorMessage: null
paymentId: null
billingDocument: null
description: test xiaokai
createdDate: '2022-07-10 01:46:33'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-28 06:12:39'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a90e08281e10bb00181e749f4e601bb
number: 3
paymentScheduleId: 8a90e08281e10bb00181e749f4db01b8
paymentScheduleNumber: PS-00000002
standalone: true
scheduledDate: '2022-11-01'
runHour: 23
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 10.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument: null
description: test xiaokai
createdDate: '2022-07-10 01:46:33'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-28 06:12:39'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a908de6822b2e1501823352ac745b53
number: 4
paymentScheduleId: 8a90e08281e10bb00181e749f4db01b8
paymentScheduleNumber: PS-00000002
standalone: true
scheduledDate: '2022-12-01'
runHour: 23
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 10.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument: null
description: test xiaokai
createdDate: '2022-07-24 20:07:12'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-28 06:12:39'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a90e082824456ae018244f00e0317eb
number: 5
paymentScheduleId: 8a90e08281e10bb00181e749f4db01b8
paymentScheduleNumber: PS-00000002
standalone: true
scheduledDate: '2023-01-01'
runHour: 23
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 10.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument: null
description: test xiaokai
createdDate: '2022-07-28 06:12:39'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-28 06:12:39'
updatedById: 8a90e082802185b901802199e15902d1
success: true
schema:
$ref: '#/definitions/GETPaymentScheduleResponse'
/v1/payment-schedules/{paymentScheduleKey}/cancel:
put:
description: "Cancels a payment schedule.\n\n**Note:**\n- All pending payment\
\ schedule items will be canceled, effective from `cancelDate`. \n- The Payment\
\ Schedules feature is in the **Early Adopter** phase. We are actively soliciting\
\ feedback from a small set of early adopters before releasing it as generally\
\ available. To manage and access this feature through the self-service interface,\
\ see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features)\
\ in the Knowledge Center.\n- This operation is only available if you have\
\ [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled.\n"
summary: Cancel a payment schedule
operationId: PUT_CancelPaymentSchedule
tags:
- Payment Schedules
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
id: 402880e749b72b310149b7343ef80005
paymentScheduleNumber: PS-00000001
accountId: 402880e741112b310149b7343ef81234
accountNumber: A-00000001
startDate: '2021-11-01'
period: Monthly
runHour: 1
occurrences: 2
totalAmount: 20
status: Canceled
nextProcessDate: '2021-11-01'
recentProcessedDate: null
processedCount: 0
errorCount: 0
description: null
cf1__c: v1
createdDate: '2021-11-01 19:40:00'
updatedDate: '2021-11-01 19:40:00'
createdById: 402892f942306295014230a4ab4909bf
updatedById: 402892f942306295014230a4ab4909bf
items:
- id: 412880e749b72b310149b7343ef81346
number: 1
paymentScheduleId: string
paymentScheduleNumber: string
accountId: 402880e741112b310149b7343ef81234
scheduledDate: '2021-11-01'
amount: 10
currency: USD
runHour: 1
paymentMethodId: '123'
paymentGatewayId: abc
status: Canceled
errorMessage: null
paymentId: null
description: null
cf1__c: v1
createdDate: '2021-11-01 19:40:00'
updatedDate: '2021-11-01 19:40:00'
createdById: 402892f942306295014230a4ab4909bf
updatedById: 402892f942306295014230a4ab4909bf
- id: 412880e749b72b310149b7343ef81347
number: 2
paymentScheduleId: string
paymentScheduleNumber: string
accountId: 402880e741112b310149b7343ef81234
scheduledDate: '2021-12-01'
amount: 10
currency: USD
runHour: 1
paymentMethodId: '123'
paymentGatewayId: abc
status: Canceled
errorMessage: null
paymentId: null
description: null
cf1__c: v1
createdDate: '2021-11-01 19:40:00'
updatedDate: '2021-11-01 19:40:00'
createdById: 402892f942306295014230a4ab4909bf
updatedById: 402892f942306295014230a4ab4909bf
schema:
$ref: '#/definitions/GETPaymentScheduleResponse'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: paymentScheduleKey
required: true
description: 'The unique ID or number of a payment schedule. For example,
`8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.
'
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version)\
\ for information about REST API version control. \n\nThis header affects\
\ the availability of the followiing response fields:\n - `items` > `paymentId`\n"
- in: body
name: body
required: true
description: ''
schema:
$ref: '#/definitions/PUTCancelPaymentScheduleRequest'
/v1/payment-schedules/{paymentScheduleKey}/items:
post:
description: |
Adds payment schedule items to a custom payment schedule. You cannot use this operation to add payment schedule items to recurring payment schedules.
**Note:**
- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.
- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.
summary: Add payment schedule items to a custom payment schedule
operationId: POST_AddItemsToCustomPaymentSchedule
tags:
- Payment Schedules
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- in: body
name: body
required: true
description: ''
schema:
$ref: '#/definitions/POSTAddItemsToPaymentScheduleRequest'
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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 fields:\n- `items` > `paymentId`\n"
- type: string
in: path
name: paymentScheduleKey
required: true
description: 'The unique ID or number of a payment schedule. For example,
`8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.
'
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: 8a90857b822459cd018224dcb9eb13be
paymentScheduleNumber: PS-00000007
standalone: false
accountId: 8a90a2fd8074995801807816dbac52a4
accountNumber: A00000002
startDate: '2022-07-31'
runHour: 0
period: null
occurrences: 3
totalAmount: 50
status: Active
nextPaymentDate: '2022-07-31'
recentPaymentDate: null
totalPaymentsProcessed: 0
totalPaymentsErrored: 0
description: ''
isCustom: true
billingDocument: null
createdDate: '2022-07-22 00:43:42'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-28 23:15:23'
updatedById: 8a90e082802185b901802199e15902d1
items:
- id: 8a90857b822459cd018224dcb9ec13bf
number: 1
paymentScheduleId: 8a90857b822459cd018224dcb9eb13be
paymentScheduleNumber: PS-00000007
standalone: false
scheduledDate: '2022-07-31'
runHour: 23
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 30.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
description: ''
createdDate: '2022-07-22 00:43:42'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-22 00:43:42'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a90a2fd822459ec018224de77a0359d
number: 2
paymentScheduleId: 8a90857b822459cd018224dcb9eb13be
paymentScheduleNumber: PS-00000007
standalone: false
scheduledDate: '2022-08-31'
runHour: 20
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 10.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
description: ''
createdDate: '2022-07-22 00:45:35'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-22 00:45:35'
updatedById: 8a90e082802185b901802199e15902d1
- id: 8a90e082824507750182489868257126
number: 3
paymentScheduleId: 8a90857b822459cd018224dcb9eb13be
paymentScheduleNumber: PS-00000007
standalone: false
scheduledDate: '2023-01-01'
runHour: 1
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 10.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
description: test test
createdDate: '2022-07-28 23:15:23'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-28 23:15:23'
updatedById: 8a90e082802185b901802199e15902d1
success: true
schema:
$ref: '#/definitions/GETPaymentScheduleResponse'
/v1/payment-schedules/statistics/{yyyy-mm-dd}:
get:
description: |
Retrieves the payment schedule statistic of a specific date.
**Note:**
- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.
summary: Retrieve payment schedule statistic of a date
operationId: GET_PaymentScheduleStatistic
tags:
- Payment Schedules
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:
date: '2022-07-29'
paymentScheduleItems:
pending: 0
processed: 0
error: 0
paymentRuns: []
success: true
schema:
$ref: '#/definitions/GETPaymentScheduleStatisticResponse'
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_HEADER_Zuora_Org_Ids'
- type: string
format: date
in: path
name: yyyy-mm-dd
required: true
description: "Specifies the date of the payment schedule statistic you want\
\ to view. \n"
/v1/payment-schedule-items/{item-id}:
get:
description: |
Retrieves a payment schedule item by ID.
**Note:**
- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.
- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.
summary: Retrieve a payment schedule item
operationId: GET_PaymentScheduleItem
tags:
- Payment Schedules
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: 8a90857b822459cd018224dcb9ec13bf
number: 1
paymentScheduleId: 8a90857b822459cd018224dcb9eb13be
paymentScheduleNumber: PS-00000007
standalone: false
scheduledDate: '2022-07-31'
runHour: 23
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 30.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
description: ''
createdDate: '2022-07-22 00:43:42'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-22 00:43:42'
updatedById: 8a90e082802185b901802199e15902d1
success: true
schema:
$ref: '#/definitions/GETPaymentScheduleItemResponse'
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_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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 response fields:\n- `paymentId`\n"
- type: string
in: path
name: item-id
required: true
description: 'The unique ID of a payment schedule item.
'
put:
description: "Updates a payment schedule item by ID.\n\n**Note:**\n- The Payment\
\ Schedules feature is in the **Early Adopter** phase. We are actively soliciting\
\ feedback from a small set of early adopters before releasing it as generally\
\ available. To manag](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features).\n\
- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled.\n- To link a single payment to the payment schedule item, specify\
\ the `paymentID` field in the request body and set `zuora-version` to equal\
\ to or smaller than `336.0`; To link or unlink multiple payments with the\
\ item, specify the `linkPayments` and `unlinkPayments` field in the request\
\ body. \n- The maximum number of payments that are allowed to be linked to\
\ a payment schedule item is `10`.\n- When unlinking and linking payments\
\ with the payment schedule item in one request, Zuora will first unlink the\
\ linked payments, and then link new payments to the item.\n"
summary: Update a payment schedule item
operationId: PUT_PaymentScheduleItem
tags:
- Payment Schedules
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: 8a90857b822459cd018224dcb9ec13bf
number: 1
paymentScheduleId: 8a90857b822459cd018224dcb9eb13be
paymentScheduleNumber: PS-00000007
standalone: false
scheduledDate: '2022-07-31'
runHour: 23
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 30.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
description: ''
cancellationReason: null
createdDate: '2022-07-22 00:43:42'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-22 00:43:42'
updatedById: 8a90e082802185b901802199e15902d1
success: true
schema:
$ref: '#/definitions/PUTPaymentScheduleItemResponse'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: item-id
required: true
description: 'The unique ID of a payment schedule item.
'
- in: body
name: body
required: true
description: ''
schema:
$ref: '#/definitions/PUTPaymentScheduleItemRequest'
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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* `paymentId`\n* `linkPayments`\n\
* `unlinkPayments`\n\nThis header affects the availability of the following\
\ response fields:\n* `paymentId` \n"
/v1/payment-schedule-items/{item-id}/cancel:
put:
description: |
Cancels a payment schedule item by ID.
**Note:**
- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.
- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.
summary: Cancel a payment schedule item
operationId: PUT_CancelPaymentScheduleItem
tags:
- Payment Schedules
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: 8a90857b822459cd018224dcb9ec13bf
number: 1
paymentScheduleId: 8a90857b822459cd018224dcb9eb13be
paymentScheduleNumber: PS-00000007
standalone: false
scheduledDate: '2022-11-01'
runHour: 23
paymentMethodId: 8a90a2fd8074995801807817ebed52aa
paymentGatewayId: 8a90a2fd807499580180781775c452a8
amount: 30.0
currency: USD
status: Canceled
errorMessage: null
paymentId: null
billingDocument:
id: 8a90a2fd819503b50181959525e5205d
number: INV00000001
type: Invoice
description: ''
cancellationReason: Skip Payment
createdDate: '2022-07-22 00:43:42'
createdById: 8a90e082802185b901802199e15902d1
updatedDate: '2022-07-29 02:54:54'
updatedById: 8a90e082802185b901802199e15902d1
success: true
schema:
$ref: '#/definitions/PUTPaymentScheduleItemResponse'
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_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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 response fields:\n- `paymentId`\n"
- type: string
in: path
name: item-id
required: true
description: "The unique ID of a payment schedule item. \n"
/v1/payment-schedule-items/{item-id}/skip:
put:
description: |
Skips a payment schedule item by ID. The skipped payment schedule item will turn to the `canceled` status, and a new item will be scheduled on the next recurring date after the last existing scheduled date.
**Note:**
- Only payment schedule items in recurring payment schedules can be skipped, and the item must be in the `pending` status.
- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.
- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.
summary: Skip a payment schedule item
operationId: PUT_SkipPaymentScheduleItem
tags:
- Payment Schedules
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: 402881a683642cff018364354abf12b6
number: 7
paymentScheduleId: 402881a68361af72018361d4be120047
paymentScheduleNumber: PS-00000004
standalone: true
scheduledDate: '2022-11-04'
runHour: 3
paymentMethodId: 402892f9423062950142306f326c0056
paymentGatewayId: null
amount: 30.0
currency: USD
status: Pending
errorMessage: null
paymentId: null
billingDocument: null
description: ''
cf1__c: null
cf2__c: null
cancellationReason: Skip Payment
createdDate: '2022-09-22 00:59:17'
createdById: 402892f9423062950142306f2f530002
updatedDate: '2022-09-22 00:59:17'
updatedById: 402892f9423062950142306f2f530002
success: true
schema:
$ref: '#/definitions/PUTSkipPaymentScheduleItemResponse'
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_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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 response fields:\n- `paymentId`\n"
- type: string
in: path
name: item-id
required: true
description: "The unique ID of a payment schedule item. \n"
/v1/payment-schedule-items/retry-payment:
post:
description: |
Retries failed payment schedule items. The payment method and payment gateway of the failed payment can be updated to new values before the retry.
Note that you can retry a payment schedule item only when the payment schedule item is either in the `Error` or `Pending` status.
**Note:**
- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.
- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.
summary: Retry failed payment schedule items
operationId: POST_RetryPaymentScheduleItem
tags:
- Payment Schedules
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:
items:
- id: 402882e97f24bc36017f2986654f0253
paymentScheduleId: string
paymentScheduleNumber: string
scheduledDate: null
runHour: null
paymentMethodId: null
paymentGatewayId: null
amount: null
currency: null
status: null
errorMessage: Can not retry because payment Processed status is not
allowed.
paymentId: null
description: null
createdDate: null
createdById: null
updatedDate: null
updatedById: null
- id: 402882e97f24bc36017f298665570254
paymentScheduleId: string
paymentScheduleNumber: string
scheduledDate: '2022-02-22'
runHour: 0
paymentMethodId: 402882e97f24bc36017f258c2ff20076
paymentGatewayId: 402883827d097a28017d09b41f690261
amount: 2.0
currency: USD
status: Processed
errorMessage: null
paymentId: 402882e97f24bc36017f298efb360277
description: null
PSIPaymentDate__c: '2022-02-22'
PSIPicklist__c: '1'
PSIPaymentPicklist__c: '1'
PSIPaymentText__c: Payment Text From PSI via API Payment Error
PSIText__c: PSI Text Value
createdDate: '2022-02-23 18:19:07'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2022-02-23 18:28:30'
updatedById: 402881e522cf4f9b0122cf5d82860002
success: true
schema:
$ref: '#/definitions/POSTRetryPaymentScheduleItemResponse'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: "The minor version of the Zuora REST API. See [Minor Version](https://developer.zuora.com/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 response fields:\n- `items` > `paymentId`\n"
- in: body
name: body
required: true
description: ''
schema:
$ref: '#/definitions/POSTRetryPaymentScheduleItemRequest'
/v1/payments:
post:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nCreates a payment in the following scenarios:\n\
\n- A full or partial payment on an invoice or a debit memo\n- A full or partial\
\ payment on several invoices and debit memos\n- An unapplied payment in the\
\ following situations:\n - You do not know which customer account the payment\
\ belongs to.\n - You know which customer account the payment belongs to,\
\ but you do not know which invoice the payment is applied to.\n - You receive\
\ a payment from your customer that exceeds the balance on the invoice.\n\
\ - You receive a payment from your customer before the invoice has been\
\ created.\n - You intend to create a payment without any invoices or debit\
\ memos.\n- A standalone payment. If you only need to create and process an\
\ electronic payment in Zuora through a Zuora gateway integration but settle\
\ the payment outside of Zuora, you can create a standalone payment. For a\
\ standalone payment, you can specify a currency different from the payment\
\ currency in the customer account settings. \n\n The support for standalone\
\ payments is in the Early Adopter phase. To manage and access this feature\
\ through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features)\
\ in the Knowledge Center.\n\n\nIf you do not know to which customer account\
\ the payment belongs, you can create a payment without specifying a customer\
\ account.\n\nWhen you create a payment, the total number of invoice items\
\ and debit memo items that the payment will apply to should be less than\
\ or equal to 15,000.\n\nFor more information, see [Create Payments](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/A_Unapplied_Payments/Management_of_Unapplied_Payments/AA_Create_Payments)\
\ and [Create Payments Without Specifying Customer Accounts](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/A_Unapplied_Payments/Management_of_Unapplied_Payments/AA_Create_Payments_Without_Specifying_Customer_Accounts).\n\
\ \n"
summary: Create a payment
operationId: POST_CreatePayment
tags:
- Payments
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: 4028905f5a87c0ff015a87eb6b75007f
number: P-00000001
status: Processed
type: External
accountId: 4028905f5a87c0ff015a87d25ae90025
accountNumber: A00000001
amount: 44.1
appliedAmount: 44.1
unappliedAmount: 0
refundAmount: 0
creditBalanceAmount: 0
currency: USD
effectiveDate: '2017-03-01'
comment: normal payment
paymentGatewayNumber: PG-00000001
paymentMethodId: 402881e522cf4f9b0122cf5dc4020045
paymentMethodSnapshotId: null
authTransactionId: null
bankIdentificationNumber: null
gatewayId: null
gatewayOrderId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondPaymentReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: null
createdDate: '2017-03-01 11:30:37'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 11:30:37'
updatedById: 402881e522cf4f9b0122cf5d82860002
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
transferredToAccounting: 'No'
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
schema:
$ref: '#/definitions/GETARPaymentTypeWithPaymentOption'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: body
in: body
required: true
description: ''
schema:
$ref: '#/definitions/CreatePaymentType'
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about all payments from\
\ all your customer accounts.\n\n### Filtering\n\nYou can use query parameters\
\ to restrict the data returned in the response. Each query parameter corresponds\
\ to one field in the response body.\n\nIf the value of a filterable field\
\ is string, you can set the corresponding query parameter to `null` when\
\ filtering. Then, you can get the response data with this field value being\
\ `null`.\n\nExamples:\n\n- /v1/payments?status=Processed\n\n- /v1/payments?currency=USD&status=Processed\n\
\n- /v1/payments?status=Processed&type=External&sort=+number\n"
summary: List payments
operationId: GET_RetrieveAllPayments
tags:
- Payments
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:
payments:
- id: 4028905f5a87c0ff015a87eb6b75007f
number: P-00000001
status: Processed
type: External
accountId: 4028905f5a87c0ff015a87d25ae90025
accountNumber: A00000001
amount: 44.1
appliedAmount: 44.1
unappliedAmount: 0
refundAmount: 0
creditBalanceAmount: 0
currency: USD
effectiveDate: '2017-03-01'
comment: normal payment
paymentGatewayNumber: PG-00000001
paymentMethodId: 402881e522cf4f9b0122cf5dc4020045
paymentMethodSnapshotId: null
authTransactionId: null
bankIdentificationNumber: null
gatewayId: null
gatewayOrderId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondPaymentReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: null
createdDate: '2017-03-01 11:30:37'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 11:30:37'
updatedById: 402881e522cf4f9b0122cf5d82860002
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
transferredToAccounting: 'No'
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
schema:
$ref: '#/definitions/PaymentCollectionResponseType'
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: accountId
in: query
type: string
required: false
description: 'This parameter filters the response based on the `accountId`
field.
'
- name: amount
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `amount` field.
'
- name: appliedAmount
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `appliedAmount`
field.
'
- name: createdById
in: query
type: string
required: false
description: 'This parameter filters the response based on the `createdById`
field.
'
- name: createdDate
in: query
type: string
format: date-time
required: false
description: 'This parameter filters the response based on the `createdDate`
field.
'
- name: creditBalanceAmount
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `creditBalanceAmount`
field.
'
- name: currency
in: query
type: string
required: false
description: 'This parameter filters the response based on the `currency`
field.
'
- name: effectiveDate
in: query
type: string
format: date-time
required: false
description: 'This parameter filters the response based on the `effectiveDate`
field.
'
- name: number
in: query
type: string
required: false
description: 'This parameter filters the response based on the `number` field.
'
- name: refundAmount
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `refundAmount`
field.
'
- name: status
in: query
type: string
enum:
- Draft
- Processing
- Processed
- Error
- Canceled
- Posted
required: false
description: 'This parameter filters the response based on the `status` field.
'
- name: type
in: query
type: string
enum:
- External
- Electronic
required: false
description: 'This parameter filters the response based on the `type` field.
'
- name: unappliedAmount
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `unappliedAmount`
field.
'
- name: updatedById
in: query
type: string
required: false
description: 'This parameter filters the response based on the `updatedById`
field.
'
- name: updatedDate
in: query
type: string
format: date-time
required: false
description: 'This parameter filters the response based on the `updatedDate`
field.
'
- 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\nA sortable field uses the following form: \n\n*operator* *field_name*\n\
\nYou can use at most two sortable fields in one URL path. Use a comma to\
\ separate sortable fields. For example: *operator* *field_name*, *operator*\
\ *field_name* \n\n*operator* is used to mark the order of sequencing.\
\ The operator is optional. If you only specify the sortable field without\
\ any operator, the response data is sorted in descending order by this\
\ field.\n\n - The `-` operator indicates an ascending order.\n - The\
\ `+` operator indicates a descending order.\n\nBy default, the response\
\ data is displayed in descending order by payment number.\n\n*field_name*\
\ indicates the name of a sortable field. The supported sortable fields\
\ of this operation are as below:\n\n - number\n - accountId\n - amount\n\
\ - appliedAmount\n - unappliedAmount\n - refundAmount\n - creditBalanceAmount\n\
\ - effectiveDate\n - createdDate\n - createdById\n - updatedDate\n\
\ - updatedById\n \nExamples:\n\n- /v1/payments?sort=+number\n\n- /v1/payments?status=Processed&sort=-number,+amount\n"
/v1/payments/{paymentId}:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nUpdates a payment.\n"
summary: Update a payment
operationId: PUT_UpdatePayment
tags:
- Payments
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: 4028905f5a87c0ff015a87eb6b75007f
number: P-00000001
status: Processed
type: External
accountId: 4028905f5a87c0ff015a88889fe500a8
accountNumber: A00000001
amount: 44.1
appliedAmount: 0
unappliedAmount: 44.1
refundAmount: 0
creditBalanceAmount: 0
currency: USD
effectiveDate: '2017-03-01'
comment: new comment
paymentGatewayNumber: PG-00000001
paymentMethodId: 402881e522cf4f9b0122cf5dc4020045
paymentMethodSnapshotId: null
authTransactionId: null
bankIdentificationNumber: null
gatewayId: null
gatewayOrderId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondPaymentReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: null
createdDate: '2017-03-01 11:30:37'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 14:25:34'
updatedById: 402881e522cf4f9b0122cf5d82860002
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
transferredToAccounting: 'No'
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
schema:
$ref: '#/definitions/GETARPaymentType'
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_HEADER_Zuora_Org_Ids'
- name: body
in: body
required: true
description: ''
schema:
$ref: '#/definitions/UpdatePaymentType'
- type: string
in: path
name: paymentId
required: true
description: 'The unique ID of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`.
'
/v1/payments/{paymentKey}:
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about one specific payment.\n"
summary: Retrieve a payment
operationId: GET_Payment
tags:
- Payments
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: 4028905f5a87c0ff015a87eb6b75007f
number: P-00000001
status: Processed
type: External
accountId: 4028905f5a87c0ff015a87d25ae90025
accountNumber: A00000001
amount: 44.1
appliedAmount: 44.1
unappliedAmount: 0
refundAmount: 0
creditBalanceAmount: 0
currency: USD
effectiveDate: '2017-03-01'
comment: normal payment
paymentGatewayNumber: PG-00000001
paymentMethodId: 402881e522cf4f9b0122cf5dc4020045
paymentMethodSnapshotId: null
authTransactionId: null
bankIdentificationNumber: null
gatewayId: null
gatewayOrderId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondPaymentReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: null
createdDate: '2017-03-01 11:30:37'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 11:30:37'
updatedById: 402881e522cf4f9b0122cf5d82860002
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
transferredToAccounting: 'No'
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
schema:
$ref: '#/definitions/GETARPaymentType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: paymentKey
required: true
description: 'The unique ID or number of an unapplied payment. For example,
`8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.
'
delete:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nDeletes a payment. Only payments with the Cancelled\
\ status can be deleted. \n\nIf you have the Invoice Settlement feature enabled,\
\ overpayments applied to credit balance cannot be deleted.\n"
summary: Delete a payment
operationId: DELETE_Payment
tags:
- Payments
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_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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: paymentKey
required: true
description: 'The unique ID or number of an unapplied payment. For example,
`8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.
'
/v1/payments/{paymentKey}/transfer:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nTransfers an unapplied payment.\n\nFor more information,\
\ see [Transfer Unapplied Payments](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/A_Unapplied_Payments/Management_of_Unapplied_Payments/Transfer_Unapplied_Payments).\n"
summary: Transfer a payment
operationId: PUT_TransferPayment
tags:
- Payments
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: 4028905f5a87c0ff015a87eb6b75007f
number: P-00000001
status: Processed
type: External
accountId: 4028905f5a87c0ff015a88889fe500a8
accountNumber: A00000001
amount: 44.1
appliedAmount: 0
unappliedAmount: 44.1
refundAmount: 0
creditBalanceAmount: 0
currency: USD
effectiveDate: '2017-03-01'
comment: normal payment
paymentGatewayNumber: PG-00000001
paymentMethodId: 402881e522cf4f9b0122cf5dc4020045
paymentMethodSnapshotId: null
authTransactionId: null
bankIdentificationNumber: null
gatewayId: null
gatewayOrderId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondPaymentReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: null
createdDate: '2017-03-01 11:30:37'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 14:22:58'
updatedById: 402881e522cf4f9b0122cf5d82860002
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
transferredToAccounting: 'No'
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
schema:
$ref: '#/definitions/GETARPaymentType'
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_HEADER_Zuora_Org_Ids'
- name: body
in: body
required: true
description: ''
schema:
$ref: '#/definitions/TransferPaymentType'
- type: string
in: path
name: paymentKey
required: true
description: "The unique ID or number of an unapplied payment. For example,\
\ `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`. \n"
/v1/payments/{paymentKey}/apply:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nApplies an unapplied payment to invoices and debit\
\ memos.\n\nWhen you apply a payment, the total number of invoice items and\
\ debit memo items that the payment will apply to must be less than or equal\
\ to 15,000.\n \nIf the limit is hit, you can follow the instructions:\n\
- If you want to apply one payment to multiple invoices or debit memos, decrease\
\ the number of invoices or debit memos in the request.\n- If you want to\
\ apply one payment to a single invoice or debit memo with a large volume\
\ of items, you have to specify invoice items in the request. The maximum\
\ number of invoice items that you can specify in the request is 1,000.\n\n\
For more information, see [Apply Unapplied Payments to Invoices and Debit\
\ Memos](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/A_Unapplied_Payments/Management_of_Unapplied_Payments/Apply_Unapplied_Payments_to_Invoices_and_Debit_Memos).\n"
summary: Apply a payment
operationId: PUT_ApplyPayment
tags:
- Payments
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: 4028905f5a87c0ff015a87eb6b75007f
number: P-00000001
status: Processed
type: External
accountId: 4028905f5a87c0ff015a87d25ae90025
accountNumber: A00000001
amount: 44.1
appliedAmount: 44.1
unappliedAmount: 0
refundAmount: 0
creditBalanceAmount: 0
currency: USD
effectiveDate: '2017-03-01'
comment: normal payment
paymentGatewayNumber: PG-00000001
paymentMethodId: 402881e522cf4f9b0122cf5dc4020045
paymentMethodSnapshotId: null
authTransactionId: null
bankIdentificationNumber: null
gatewayId: null
gatewayOrderId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondPaymentReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: null
createdDate: '2017-03-01 11:30:37'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 13:56:15'
updatedById: 402881e522cf4f9b0122cf5d82860002
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
transferredToAccounting: 'No'
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
schema:
$ref: '#/definitions/GETARPaymentType'
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_HEADER_Zuora_Org_Ids'
- name: body
in: body
required: true
description: ''
schema:
$ref: '#/definitions/ApplyPaymentType'
- type: string
in: path
name: paymentKey
required: true
description: 'The unique ID or number of an unapplied payment. For example,
`8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.
'
/v1/payments/{paymentKey}/cancel:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nCancels a payment. \n\nIf you have the Invoice\
\ Settlement feature enabled, overpayments applied to credit balance cannot\
\ be cancelled.\n"
summary: Cancel a payment
operationId: PUT_CancelPayment
tags:
- Payments
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: 4028905f5a87c0ff015a87eb6b75007f
number: P-00000001
status: Canceled
type: External
accountId: 4028905f5a87c0ff015a88889fe500a8
accountNumber: A00000001
amount: 44.1
appliedAmount: 0
unappliedAmount: 44.1
refundAmount: 0
creditBalanceAmount: 0
currency: USD
effectiveDate: '2017-03-01'
comment: new comment
paymentGatewayNumber: PG-00000001
paymentMethodId: 402881e522cf4f9b0122cf5dc4020045
paymentMethodSnapshotId: null
authTransactionId: null
bankIdentificationNumber: null
gatewayId: null
gatewayOrderId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondPaymentReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: null
createdDate: '2017-03-01 11:30:37'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 14:26:57'
updatedById: 402881e522cf4f9b0122cf5d82860002
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
transferredToAccounting: 'No'
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
schema:
$ref: '#/definitions/GETARPaymentType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: paymentKey
required: true
description: 'The unique ID or number of an unapplied payment. For example,
`8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.
'
/v1/payments/{paymentKey}/parts:
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about all parts of a\
\ payment. A payment can consist of an unapplied part, and several parts applied\
\ to invoices and debit memos. You can use this operation to get all the applied\
\ and unapplied portions of a payment. Note that a fully refunded payment\
\ does not contain any payment part.\n"
summary: List all parts of a payment
operationId: GET_PaymentParts
tags:
- Payments
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:
parts:
- id: 4028905f5a87c0ff015a87eb6beb008d
debitMemoId: 4028905f5a87c0ff015a87e49e6b0062
invoiceId: null
amount: 4.1
createdDate: '2017-03-01 11:30:37'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 11:30:37'
updatedById: 402881e522cf4f9b0122cf5d82860002
- id: 4028905f5a87c0ff015a87eb6beb008c
debitMemoId: null
invoiceId: 4028905f5a87c0ff015a87d3f8f10043
amount: 40
createdDate: '2017-03-01 11:30:37'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 11:30:37'
updatedById: 402881e522cf4f9b0122cf5d82860002
success: true
schema:
$ref: '#/definitions/GETPaymentPartsCollectionType'
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- type: string
in: path
name: paymentKey
required: true
description: 'The unique ID or number of an unapplied payment. For example,
`8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.
'
/v1/payments/{paymentKey}/parts/{partid}:
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about a specific payment\
\ part. A payment can consist of an unapplied part, and several parts applied\
\ to invoices and debit memos.\n\nA fully refunded payment does not contain\
\ any payment part.\n"
summary: Retrieve a payment part
operationId: GET_PaymentPart
tags:
- Payments
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: 4028905f5a87c0ff015a87eb6beb008d
debitMemoId: 4028905f5a87c0ff015a87e49e6b0062
invoiceId: null
amount: 4.1
createdDate: '2017-03-01 11:30:37'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 11:30:37'
updatedById: 402881e522cf4f9b0122cf5d82860002
success: true
schema:
$ref: '#/definitions/GETPaymentPartType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: partid
required: true
description: 'The unique ID of a specific payment part. You can get the payment
part ID from the response of [List all parts of a payment](https://developer.zuora.com/api-references/api/operation/GET_PaymentParts).
'
- type: string
in: path
name: paymentKey
required: true
description: 'The unique ID or number of an unapplied payment. For example,
`8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.
'
/v1/payments/{paymentKey}/parts/{partid}/itemparts:
get:
description: "**Note:** This operation is only available if you have the [Invoice\
\ Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement)\
\ feature enabled. Invoice Item Settlement must be used together with other\
\ Invoice Settlement features (Unapplied Payments, and Credit and Debit memos).\
\ If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement\
\ and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about all items of a\
\ payment part. A payment part item is a single line item in a payment part.\
\ A payment part can consist of several different types of items.\n"
summary: List all payment part items
operationId: GET_PaymentItemParts
tags:
- Payments
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:
itemParts:
- id: 4028905f5a87c0ff015a87eb6bd8008a
invoiceItemId: null
debitMemoItemId: 4028905f5a87c0ff015a87e49e7a0063
taxItemId: null
amount: 4
createdDate: '2017-03-01 11:30:37'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 11:30:37'
updatedById: 402881e522cf4f9b0122cf5d82860002
- id: 4028905f5a87c0ff015a87eb6bd8008b
invoiceItemId: null
debitMemoItemId: null
taxItemId: 4028905f5a87c0ff015a87e49f5e0065
amount: 0.1
createdDate: '2017-03-01 11:30:37'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 11:30:37'
updatedById: 402881e522cf4f9b0122cf5d82860002
success: true
schema:
$ref: '#/definitions/GETPaymentItemPartCollectionType'
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- type: string
in: path
name: partid
required: true
description: 'The unique ID of a specific payment part. You can get the payment
part ID from the response of [List all parts of a payment](https://developer.zuora.com/api-references/api/operation/GET_PaymentParts).
'
- type: string
in: path
name: paymentKey
required: true
description: 'The unique ID or number of an unapplied payment. For example,
`8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.
'
/v1/payments/{paymentKey}/parts/{partid}/itemparts/{itempartid}:
get:
description: |
**Note:** This operation is only available if you have the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) feature enabled. Invoice Item Settlement must be used together with other Invoice Settlement features (Unapplied Payments, and Credit and Debit memos). If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Retrieves the information about a specific payment part item. A payment part item is a single line item in a payment part. A payment part can consist of several different types of items.
summary: Retrieve a payment part item
operationId: GET_PaymentItemPart
tags:
- Payments
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: 4028905f5a87c0ff015a87eb6bd8008a
invoiceItemId: null
debitMemoItemId: 4028905f5a87c0ff015a87e49e7a0063
taxItemId: null
amount: 4
createdDate: '2017-03-01 11:30:37'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 11:30:37'
updatedById: 402881e522cf4f9b0122cf5d82860002
success: true
schema:
$ref: '#/definitions/GETPaymentItemPartType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: partid
required: true
description: 'The unique ID of a specific payment part. You can get the payment
part ID from the response of [List all parts of a payment](https://developer.zuora.com/api-references/api/operation/GET_PaymentParts).
'
- type: string
in: path
name: itempartid
required: true
description: 'The unique ID of a specific payment part item. You can get the
payment part item ID from the response of [List all payment part items](https://developer.zuora.com/api-references/api/operation/GET_PaymentItemParts).
'
- type: string
in: path
name: paymentKey
required: true
description: 'The unique ID or number of an unapplied payment. For example,
`8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.
'
/v1/payments/{paymentKey}/refunds:
post:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRefunds a full or partial unapplied payment to\
\ your customers. To refund applied payments, you must unapply the applied\
\ payments from the invoices or debit memos, and then refund the unapplied\
\ payments to customers.\n\nFor more information, see [Refund Payments](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/A_Unapplied_Payments/Management_of_Unapplied_Payments/Y_Refund_Payments).\n"
summary: Refund a payment
operationId: POST_RefundPayment
tags:
- Payments
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: 4028905f5a87c0ff015a889e590e00c9
number: R-00000001
status: Processed
type: External
methodType: CreditCard
accountId: 4028905f5a87c0ff015a87d25ae90025
amount: 4
refundDate: '2017-03-01'
comment: Create a refund for unapplied payment.
paymentGatewayNumber: PG-00000001
paymentMethodId: null
paymentMethodSnapshotId: null
paymentId: 4028905f5a87c0ff015a889ddfb800c0
creditMemoId: null
reasonCode: Standard Refund
gatewayId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondRefundReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: null
createdDate: '2017-03-01 14:46:03'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 14:46:03'
updatedById: 402881e522cf4f9b0122cf5d82860002
refundTransactionTime: null
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
transferredToAccounting: 'No'
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
schema:
$ref: '#/definitions/GETRefundPaymentType'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: body
in: body
required: true
description: ''
schema:
$ref: '#/definitions/PostRefundType'
- type: string
in: path
name: paymentKey
required: true
description: 'The unique ID or number of an unapplied payment. For example,
`8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.
'
/v1/payments/{paymentKey}/unapply:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nUnapplies an applied payment from invoices and\
\ debit memos.\n\nWhen you unapply a payment, the total number of invoice\
\ items and debit memo items that the payment will unapply from must be less\
\ than or equal to 15,000.\n\nIf the limit is hit, you can follow the instructions:\n\
- If you want to unapply one payment without specifying invoices or debit\
\ memos, you have to specify the invoices or debit memos in the request.\n\
- If you want to unapply one payment from multiple specified invoices or debit\
\ memos, decrease the number of invoices or debit memos in the request.\n\
- If you want to unapply one payment from a single invoice or debit memo with\
\ a large volume of items, you have to specify invoice items in the request.\
\ The maximum number of invoice items that you can specify in the request\
\ is 1,000.\n\nFor more information, see [Unapply Payments from Invoices and\
\ Debit Memos](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/A_Unapplied_Payments/Management_of_Unapplied_Payments/Unapply_Payments_from_Invoices_and_Debit_Memos).\n"
summary: Unapply a payment
operationId: PUT_UnapplyPayment
tags:
- Payments
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: 4028905f5a87c0ff015a87eb6b75007f
number: P-00000001
status: Processed
type: External
accountId: 4028905f5a87c0ff015a87d25ae90025
accountNumber: A00000001
amount: 44.1
appliedAmount: 32.98
unappliedAmount: 11.12
refundAmount: 0
creditBalanceAmount: 0
currency: USD
effectiveDate: '2017-03-01'
comment: normal payment
paymentGatewayNumber: PG-00000001
paymentMethodId: 402881e522cf4f9b0122cf5dc4020045
paymentMethodSnapshotId: null
authTransactionId: null
bankIdentificationNumber: null
gatewayId: null
gatewayOrderId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondPaymentReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: null
createdDate: '2017-03-01 11:30:37'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 13:53:12'
updatedById: 402881e522cf4f9b0122cf5d82860002
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
transferredToAccounting: 'No'
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
schema:
$ref: '#/definitions/GETARPaymentType'
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_HEADER_Zuora_Org_Ids'
- name: body
in: body
required: true
schema:
$ref: '#/definitions/UnapplyPaymentType'
description: ''
- type: string
in: path
name: paymentKey
required: true
description: 'The unique ID or number of an unapplied payment. For example,
`8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.
'
/v1/payments/{paymentKey}/refunds/unapply:
post:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRefunds a full or partial unapplied payment to\
\ your customers, without the need to unapply the payment first, followed\
\ by processing the refund. To refund applied payments, you can now leverage\
\ this API to unapply and refund the payment simultaneously.\n\nFor more information,\
\ see [Refund Payments](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/A_Unapplied_Payments/Management_of_Unapplied_Payments/Y_Refund_Payments).\n"
summary: Refund a payment with auto-unapplying
operationId: POST_RefundPaymentwithAutoUnapply
tags:
- Payments
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: 4028905f5a87c0ff015a889e590e00c9
number: R-00000001
status: Processed
type: External
methodType: CreditCard
accountId: 4028905f5a87c0ff015a87d25ae90025
amount: 100
refundDate: '2017-03-01'
comment: Create a refund for unapplied payment.
paymentGatewayNumber: PG-00000001
paymentMethodId: null
paymentMethodSnapshotId: null
paymentId: 4028905f5a87c0ff015a889ddfb800c0
creditMemoId: null
reasonCode: Standard Refund
gatewayId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondRefundReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: null
createdDate: '2017-03-01 14:46:03'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 14:46:03'
updatedById: 402881e522cf4f9b0122cf5d82860002
refundTransactionTime: null
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
transferredToAccounting: 'No'
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
schema:
$ref: '#/definitions/GETRefundPaymentTypeAutoUnapply'
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: body
in: body
required: true
description: ''
schema:
$ref: '#/definitions/PostRefundwithAutoUnapplyType'
- type: string
in: path
name: paymentKey
required: true
description: 'The unique ID or number of an unapplied payment. For example,
`8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.
'
/v1/ppdd/rollover:
post:
summary: Trigger fund rollover
operationId: POST_Rollover
description: "Prepaid with Drawdown Rollover enables you to transfer the accumulative\
\ carryover of your customers\u2019 prepaid balance funds to the following\
\ validity period when using Prepaid with Drawdown. This REST API reference\
\ describes how to manually trigger fund rollover from source validity period\
\ to destination validity period. There are no path or query parameters.\n\
\n**Note**: This API will not work if rollover is enabled in the associated\
\ prepayment charge. If you want to trigger rollover automatically, see Create prepayment charge with rollover for more information.\n"
tags:
- Prepaid with Drawdown
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: TriggerRollover
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTTriggerRolloverRequestType'
responses:
'200':
examples:
application/json:
success: true
message: Rollover is done
rolloverFundCount: 1
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/POSTTriggerRolloverResponseType'
/v1/ppdd/reverse-rollover:
post:
summary: Reverse fund rollover
operationId: POST_ReverseRollover
description: |
This REST API reference describes how to manually reverse fund rollover from source validity period to destination validity period. There are no path or query parameters.
**Note**: This API will not work if the associated prepayment charge has rollover enabled.
tags:
- Prepaid with Drawdown
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: ReverseRollover
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTReverseRolloverRequestType'
responses:
'200':
examples:
application/json:
success: true
message: Reverse rollover is done
reverseRolloverFundCount: 1
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. \n\nNote that only the following MIME types support gzipped\
\ responses:\n - `application/json`\n - `application/xml`\n - `text/html`\n\
\ - `text/csv`\n - `text/plain`\n"
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/POSTReverseRolloverResponseType'
/v1/price-book-items:
post:
summary: Create a price book item
operationId: POST_CreatePriceBookItem
description: "Creates a price book item.\n\n**Note**: This operation is in the\
\ **Beta** phase. \n"
tags:
- Price Book Items
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTPriceBookItemRequest'
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:
id: 402880ec8702226b018702f76f770075
number: PBI-00000001
productChargeId: 402880ec8702226b018702f76e0a0071
offerId: null
offerNumber: null
effectiveStartDate: '2023-01-01'
effectiveEndDate: '2024-03-01'
currency: USD
defaultQuantity: 1
listPriceBase: Per_Billing_Period
includedUnits: null
price: 10
overagePrice: null
intervalPrices:
- sequence: 1
type: month
duration: 2
tiers:
- tier: 1
startingUnit: 0
endingUnit: 10
price: 5
priceFormat: FlatFee/PerUnit
- tier: 2
startingUnit: 11
endingUnit: 20
price: 4
priceFormat: FlatFee/PerUnit
success: true
description: ''
schema:
$ref: '#/definitions/GETPriceBookItemResponse'
get:
summary: List price book items
operationId: GET_ListPriceBookItems
description: |
Retrieves basic information about all price book items.
**Note**: This operation is in the **Beta** phase.
tags:
- Price Book Items
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- name: offer
in: query
required: false
type: string
description: 'Used if you want to filter the PBIs associated with one offer.
Can be offer id or number
'
- name: charge
in: query
required: false
type: string
description: 'Used if you want to filter the PBIs of a charge. Charge id for
now.
'
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:
priceBookItems:
- id: 402880ec8702226b01870c971e0c02cc
number: PBI-00000004
productChargeId: 402880ec8702226b01870c971d1e02c7
offerId: null
offerNumber: null
effectiveStartDate: '2023-01-01'
effectiveEndDate: '2024-03-01'
currency: USD
defaultQuantity: 0
listPriceBase: Per_Billing_Period
includedUnits: 10
price: null
overagePrice: 5
tiers: null
intervalPrices: null
success: true
description: ''
schema:
$ref: '#/definitions/ListAllPriceBookItemsResponse'
/v1/price-book-items/{price-book-item-key}:
get:
summary: Retrieve a price book item
operationId: GET_RetrievePriceBookItem
description: |
Retrieves basic information about a price book item.
**Note**: This operation is in the **Beta** phase.
tags:
- Price Book Items
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_HEADER_Zuora_Org_Ids'
- name: price-book-item-key
in: path
description: 'The unique number or ID of the price book item 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:
id: 402880ec8702226b018702f76f770075
number: PBI-00000001
productChargeId: 402880ec8702226b018702f76e0a0071
offerId: null
offerNumber: null
effectiveStartDate: '2023-01-01'
effectiveEndDate: '2024-03-01'
currency: USD
defaultQuantity: 1
listPriceBase: Per_Billing_Period
includedUnits: null
price: 10
overagePrice: null
intervalPrices:
- sequence: 1
type: month
duration: 2
tiers:
- tier: 1
startingUnit: 0
endingUnit: 10
price: 5
priceFormat: FlatFee/PerUnit
- tier: 2
startingUnit: 11
endingUnit: 20
price: 4
priceFormat: FlatFee/PerUnit
success: true
description: ''
schema:
$ref: '#/definitions/GETPriceBookItemResponse'
put:
summary: Update a price book item
operationId: PUT_UpdatePriceBookItem
description: |
Update a price book item.
**Note**: This operation is in the **Beta** phase.
tags:
- Price Book Items
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_HEADER_Zuora_Org_Ids'
- name: price-book-item-key
in: path
description: 'The unique number or ID of the price book item to be updated.
'
required: true
type: string
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTPriceBookItemRequest'
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:
id: 402880ec8702226b018702f76f770075
number: PBI-00000001
productChargeId: 402880ec8702226b018702f76e0a0071
offerId: null
offerNumber: null
effectiveStartDate: '2023-01-01'
effectiveEndDate: '2024-03-01'
currency: USD
defaultQuantity: 1
listPriceBase: Per_Billing_Period
includedUnits: null
price: 10
overagePrice: null
intervalPrices:
- sequence: 1
type: month
duration: 2
tiers:
- tier: 1
startingUnit: 0
endingUnit: 10
price: 5
priceFormat: FlatFee/PerUnit
- tier: 2
startingUnit: 11
endingUnit: 20
price: 4
priceFormat: FlatFee/PerUnit
success: true
description: ''
schema:
$ref: '#/definitions/GETPriceBookItemResponse'
delete:
summary: Delete a price book item
operationId: DELETE_PriceBookItem
description: |
Deletes a price book item.
**Note**: This operation is in the **Beta** phase.
tags:
- Price Book Items
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_HEADER_Zuora_Org_Ids'
- name: price-book-item-key
in: path
description: 'The unique number or ID of the price book item 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/product-charge-definitions:
post:
summary: Create a product charge definition
operationId: POST_CreateProductChargeDefinition
description: "Creates a product charge definition for a charge. You can create\
\ as many product charge definitions as needed for one charge.\n\nIn the request,\
\ you must specify the unique ID or number of the charge for which this charge\
\ definition is to be created. \nThe ID or number of a product rate plan is\
\ optional.\n\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing)\
\ feature to be enabled, which is in the **Early Adopter** phase. \n \n"
tags:
- Product Charge Definitions
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/POSTChargeDefinitionRequest'
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:
chargeDefinitionId: 8a90988c8b177a24018b17857411002a
chargeDefinitionNumber: CD-00002089
success: true
description: ''
schema:
$ref: '#/definitions/POSTChargeDefinitionResponse'
get:
summary: List product charge definitions
operationId: GET_RetrieveProductChargeDefinitions
description: "Retrieves basic information about the product charge definitions.\
\ \n\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing)\
\ feature to be enabled, which is in the **Early Adopter** phase. \n"
tags:
- Product Charge Definitions
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: charge
in: query
description: 'The unique number or ID of the charge for which the product
charge definitions are to be retrieved.
'
required: false
type: string
- name: rateplan
in: query
description: 'The unique number or ID of the product rate plan for which the
product charge definitions are to be retrieved.
'
required: false
type: string
- name: hide-inherited-values
in: query
description: 'The flag that controls whether the response will merge the default
charge definition fields for those fields that are not overridden.
'
required: false
type: boolean
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:
chargeDefinitions:
- productChargeDefinitionId: 2c9890f78b0d09d2018b0d13c7fd0004
productChargeDefinitionNumber: CD-00000201
isDefault: true
productRatePlanChargeId: 2c9890f78b0d09d2018b0d13c7fd0004
productRatePlanChargeNumber: null
productRatePlanId: null
productRatePlanNumber: null
productRatePlanName: null
effectiveStartDate: '2022-10-07 09:00:00'
effectiveEndDate: '2023-10-13 09:00:00'
listPriceBase: Per_Billing_Period
specificListPriceBase: null
billingPeriod: Month
billingPeriodAlignment: AlignToCharge
specificBillingPeriod: null
billingTiming: IN_ADVANCE
ratingGroup: null
taxable: false
taxMode: null
taxCode: ''
termPeriodType: null
termType: null
term: null
uom: null
chargeModel: FlatFee
defaultQuantity: 1.0
prices:
- currency: EUR
price: 10.0
- currency: JPY
price: 20.0
- currency: USD
price: 25.0
applyDiscountTo: null
discountLevel: null
discountClass: null
smoothingModel: null
numberOfPeriods: null
overageCalculationOption: null
overageUnusedUnitsCreditOption: null
unusedIncludedUnitPrice: null
usageRecordRatingOption: null
priceChangeOption: null
priceIncreasePercentage: null
useTenantDefaultForPriceChange: true
productDiscountApplyDetails: []
endDateCondition: Subscription_End
upToPeriods: null
upToPeriodsType: null
billingDay: DefaultFromCustomer
triggerEvent: ContractEffective
description: ''
revRecCode: null
revRecTriggerCondition: null
revenueRecognitionRuleName: Recognize upon invoicing
useDiscountSpecificAccountingCode: null
financeInformation:
deferredRevenueAccountingCode: ''
deferredRevenueAccountingCodeType: null
recognizedRevenueAccountingCode: ''
recognizedRevenueAccountingCodeType: null
accountsReceivableAccountingCode: null
accountsReceivableAccountingCodeType: null
deliverySchedule: null
isStackedDiscount: false
success: true
description: ''
schema:
$ref: '#/definitions/GETProductChargeDefinitionsResponse'
/v1/product-charge-definitions/bulk:
post:
summary: Create product charge definitions
operationId: POST_CreateProductChargeDefinitionBulk
description: "Bulk creates product charge definitions for a charge. You can\
\ create up to 1000 product charge definitions at a given time for a specific\
\ charge.\n\nIn the request, you must specify the unique ID or number of the\
\ charge for which this charge definition is to be created. \nThe ID or number\
\ of a product rate plan is optional.\n\n**Note**: This operation requires\
\ the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing)\
\ feature to be enabled, which is in the **Early Adopter** phase. \n"
tags:
- Product Charge Definitions
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/POSTChargeDefinitionRequestBulk'
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:
productChargeDefinitions:
- chargeDefinitionId: 8a90988c8b177a24018b17857411002a
chargeDefinitionNumber: CD-00002089
success: true
description: ''
schema:
$ref: '#/definitions/POSTChargeDefinitionBulkResponse'
put:
summary: Update product charge definitions
operationId: PUT_UpdateProductChargeDefinitionBulk
description: "Bulk updates multiple product charge definitions.\n\n**Note**:\
\ This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing)\
\ feature to be enabled, which is in the **Early Adopter** phase. \n"
tags:
- Product Charge Definitions
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: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTProductChargeDefinitionBulkRequest'
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:
chargeDefinitions:
- productChargeDefinitionId: 2c9890f78b0d09d2018b0d13c7fd0004
productChargeDefinitionNumber: CD-00000201
isDefault: true
productRatePlanChargeId: 2c9890f78b0d09d2018b0d13c7fd0004
productRatePlanChargeNumber: null
productRatePlanId: null
productRatePlanNumber: null
productRatePlanName: null
listPriceBase: Per_Billing_Period
specificListPriceBase: null
billingPeriod: Month
billingPeriodAlignment: AlignToCharge
specificBillingPeriod: null
billingTiming: IN_ADVANCE
ratingGroup: null
taxable: false
taxMode: null
taxCode: ''
termPeriodType: null
termType: null
term: null
uom: null
chargeModel: FlatFee
defaultQuantity: 1.0
prices:
- currency: EUR
price: 10.0
- currency: JPY
price: 20.0
- currency: USD
price: 25.0
applyDiscountTo: null
discountLevel: null
discountClass: null
smoothingModel: null
numberOfPeriods: null
overageCalculationOption: null
overageUnusedUnitsCreditOption: null
unusedIncludedUnitPrice: null
usageRecordRatingOption: null
priceChangeOption: null
priceIncreasePercentage: null
useTenantDefaultForPriceChange: true
productDiscountApplyDetails: []
endDateCondition: Subscription_End
upToPeriods: null
upToPeriodsType: null
billingDay: DefaultFromCustomer
triggerEvent: ContractEffective
description: ''
revRecCode: null
revRecTriggerCondition: null
revenueRecognitionRuleName: Recognize upon invoicing
useDiscountSpecificAccountingCode: null
financeInformation:
deferredRevenueAccountingCode: ''
deferredRevenueAccountingCodeType: null
recognizedRevenueAccountingCode: ''
recognizedRevenueAccountingCodeType: null
accountsReceivableAccountingCode: null
accountsReceivableAccountingCodeType: null
deliverySchedule: null
isStackedDiscount: false
success: true
description: ''
schema:
$ref: '#/definitions/GETProductChargeDefinitionsResponse'
/v1/product-charge-definitions/{product-charge-definition-key}:
get:
summary: Retrieve a product charge definition
operationId: GET_RetrieveProductChargeDefinition
description: "Retrieves basic information about a product charge definition.\n\
\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing)\
\ feature to be enabled, which is in the **Early Adopter** phase. \n"
tags:
- Product Charge Definitions
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: product-charge-definition-key
in: path
description: 'The unique number or ID of the product charge definition to
be retrieved.
'
required: true
type: string
- name: hide-inherited-values
in: query
description: 'The flag that controls whether the response will merge the default
charge definition fields for those fields that are not overridden.
'
required: false
type: boolean
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:
productChargeDefinitionId: 2c9890f78b0d09d2018b0d13c7fd0004
productChargeDefinitionNumber: CD-00000201
isDefault: true
productRatePlanChargeId: 2c9890f78b0d09d2018b0d13c7fd0004
productRatePlanChargeNumber: null
productRatePlanId: null
productRatePlanNumber: null
productRatePlanName: null
effectiveStartDate: '2022-10-07 09:00:00'
effectiveEndDate: '2023-10-13 09:00:00'
listPriceBase: Per_Billing_Period
specificListPriceBase: null
billingPeriod: Month
billingPeriodAlignment: AlignToCharge
specificBillingPeriod: null
billingTiming: IN_ADVANCE
ratingGroup: null
taxable: false
taxMode: null
taxCode: ''
termPeriodType: null
termType: null
term: null
uom: null
chargeModel: FlatFee
defaultQuantity: 1.0
prices:
- currency: EUR
price: 10.0
- currency: JPY
price: 20.0
- currency: USD
price: 25.0
applyDiscountTo: null
discountLevel: null
discountClass: null
smoothingModel: null
numberOfPeriods: null
overageCalculationOption: null
overageUnusedUnitsCreditOption: null
unusedIncludedUnitPrice: null
usageRecordRatingOption: null
priceChangeOption: null
priceIncreasePercentage: null
useTenantDefaultForPriceChange: true
productDiscountApplyDetails: []
endDateCondition: Subscription_End
upToPeriods: null
upToPeriodsType: null
billingDay: DefaultFromCustomer
triggerEvent: ContractEffective
description: ''
revRecCode: null
revRecTriggerCondition: null
revenueRecognitionRuleName: Recognize upon invoicing
useDiscountSpecificAccountingCode: null
financeInformation:
deferredRevenueAccountingCode: ''
deferredRevenueAccountingCodeType: null
recognizedRevenueAccountingCode: ''
recognizedRevenueAccountingCodeType: null
accountsReceivableAccountingCode: null
accountsReceivableAccountingCodeType: null
deliverySchedule: null
isStackedDiscount: false
success: true
description: ''
schema:
$ref: '#/definitions/GETProductChargeDefinitionResponse'
put:
summary: Update a product charge definition
operationId: PUT_UpdateProductChargeDefinition
description: "Update a product charge definition.\n\n**Note**: This operation\
\ requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing)\
\ feature to be enabled, which is in the **Early Adopter** phase. \n"
tags:
- Product Charge Definitions
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: product-charge-definition-key
in: path
description: 'The unique number or ID of the product charge definition to
be updated.
'
required: true
type: string
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTProductChargeDefinitionRequest'
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:
productChargeDefinitionId: 2c9890f78b0d09d2018b0d13c7fd0004
productChargeDefinitionNumber: CD-00000201
isDefault: true
productRatePlanChargeId: 2c9890f78b0d09d2018b0d13c7fd0004
productRatePlanChargeNumber: null
productRatePlanId: null
productRatePlanNumber: null
productRatePlanName: null
effectiveStartDate: '2022-10-07 09:00:00'
effectiveEndDate: '2023-10-13 09:00:00'
listPriceBase: Per_Billing_Period
specificListPriceBase: null
billingPeriod: Month
billingPeriodAlignment: AlignToCharge
specificBillingPeriod: null
billingTiming: IN_ADVANCE
ratingGroup: null
taxable: false
taxMode: null
taxCode: ''
termPeriodType: null
termType: null
term: null
uom: null
chargeModel: FlatFee
defaultQuantity: 1.0
prices:
- currency: USD
price: 10.0
applyDiscountTo: null
discountLevel: null
discountClass: null
smoothingModel: null
numberOfPeriods: null
success: true
description: ''
schema:
$ref: '#/definitions/GETProductChargeDefinitionResponse'
delete:
summary: Delete a product charge definition
operationId: DELETE_ProductChargeDefnition
description: "Deletes a product charge definition.\n\n**Note**: This operation\
\ requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing)\
\ feature to be enabled, which is in the **Early Adopter** phase. \n"
tags:
- Product Charge Definitions
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: product-charge-definition-key
in: path
description: 'The unique number or ID of the product charge definition 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/product-rate-plan-charges/{product-rate-plan-charge-key}:
get:
summary: Retrieve a product rate plan charge
operationId: GET_RetrieveProductRatePlanCharge
description: 'Retrieves basic information about a product rate plan charge.
'
tags:
- Product Rate Plan Charges
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: product-rate-plan-charge-key
in: path
description: 'The unique number or ID of the product rate plan charge to be
retrieved.
'
required: true
type: string
- name: show-charge-definitions
in: query
description: "Specifies whether to include the product charge definitions\
\ of this charge in the response.\n\n**Note**: This parameter is applicable\
\ only if the Attribute-based Pricing feature is enabled. The Attribute-based\
\ Pricing feature in the **Early Adopter** phase. \nWe are actively soliciting\
\ feedback from a small set of early adopters. If you are interested, please\
\ reach out to your CSM.\n"
required: false
type: boolean
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: 402882f28a1ab0bc018a1afb77b561a6
name: New Component
type: Recurring
model: Delivery
uom: null
pricingSummary:
- ''
pricing:
- currency: USD
price: 25.0
tiers: null
includedUnits: null
overagePrice: null
discountPercentage: null
discountAmount: null
defaultQuantity: null
applyDiscountTo: null
discountLevel: null
discountClass: null
productDiscountApplyDetails: []
endDateCondition: Subscription_End
upToPeriods: null
upToPeriodsType: null
billingDay: DefaultFromCustomer
listPriceBase: Per_Billing_Period
specificListPriceBase: null
billingTiming: IN_ADVANCE
ratingGroup: null
billingPeriod: Month
billingPeriodAlignment: AlignToCharge
specificBillingPeriod: null
smoothingModel: null
numberOfPeriods: null
overageCalculationOption: null
overageUnusedUnitsCreditOption: null
unusedIncludedUnitPrice: null
usageRecordRatingOption: null
priceChangeOption: null
priceIncreasePercentage: null
useTenantDefaultForPriceChange: true
taxable: false
taxCode: ''
taxMode: null
mig__c: null
Boolean__c: null
triggerEvent: ContractEffective
description: ''
revRecCode: null
revRecTriggerCondition: null
revenueRecognitionRuleName: Recognize upon invoicing
useDiscountSpecificAccountingCode: null
financeInformation:
deferredRevenueAccountingCode: ''
deferredRevenueAccountingCodeType: null
recognizedRevenueAccountingCode: ''
recognizedRevenueAccountingCodeType: null
accountsReceivableAccountingCode: Accounts Receivable
accountsReceivableAccountingCodeType: AccountsReceivable
deliverySchedule:
frequency: Weekly
monday: true
tuesday: true
wednesday: true
thursday: false
friday: false
saturday: false
sunday: true
isStackedDiscount: false
productRatePlanChargeNumber: PRPC-NEW-00000165
productChargeDefinitions: https://rest.zuora.com/v1/product-charge-definitions?charge=402882f28a1ab0bc018a1afb77b561a6
success: true
description: ''
schema:
$ref: '#/definitions/GETProductRatePlanChargeResponse'
/v1/product-rateplan-definitions:
post:
summary: Create a product rate plan definition
operationId: POST_CreateProductRatePlanDefinition
description: "Creates a product rate plan definition to use a charge in a product\
\ rate plan.\n\nIn the request, you must specify either the unique ID or number\
\ of both the charge and the product rate plan to add the specified charge\
\ to a specific rate plan.\n\n**Note**: This operation requires the [Attribute-based\
\ Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing)\
\ feature to be enabled, which is in the **Early Adopter** phase. \n"
tags:
- Product Rate Plan Definitions
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/POSTRatePlanDefinitionRequest'
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: 2c9890f78aba5c16018ababa00120019
success: true
description: ''
schema:
$ref: '#/definitions/POSTRatePlanDefinitionResponse'
get:
summary: List product rate plan definitions
operationId: GET_RetrieveProductRatePlanDefinitions
description: "Retrieves basic information about the product rate plan definitions\
\ for a product rate plan. \n\n**Note**: This operation requires the [Attribute-based\
\ Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing)\
\ feature to be enabled, which is in the **Early Adopter** phase. \n"
tags:
- Product Rate Plan Definitions
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: charge
in: query
description: 'The unique number or ID of the charge for which the product
rate plan definitions are to be retrieved.
'
required: false
type: string
- name: rateplan
in: query
description: 'The unique number or ID of the product rate plan for which the
product rate plan definitions are to be retrieved.
'
required: false
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:
productRatePlanDefinitions:
- id: 2c9890f78b212d76018b218993c9005c
productRatePlanChargeId: 2c9890f78aba5c16018ababa00120019
productRatePlanChargeNumber: PRPC-NEW-00000175
productRatePlanChargeName: New Component
productRatePlanId: 2c9890678b1ca909018b1caea5c30000
productRatePlanNumber: PRP-NEW-00000353
productRatePlanName: New Rate Plan2
- id: 2c9890f78b212d76018b21742683005a
productRatePlanChargeId: 2c9890f78b212d76018b2174263c004a
productRatePlanChargeNumber: PRPC-NEW-00000246
productRatePlanChargeName: API_Usage_Tiered-multi
productRatePlanId: 2c9890678b1ca909018b1caea5c30000
productRatePlanNumber: PRP-NEW-00000353
productRatePlanName: New Rate Plan2
success: true
description: ''
schema:
$ref: '#/definitions/GETProductRatePlanDefinitionsResponse'
/v1/product-rateplan-definitions/{product-rateplan-definition-key}:
get:
summary: Retrieve a product rate plan definition
operationId: GET_RetrieveProductRatePlanDefinition
description: "Retrieves basic information about a product rate plan definition.\n\
\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing)\
\ feature to be enabled, which is in the **Early Adopter** phase. \n"
tags:
- Product Rate Plan Definitions
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: product-rateplan-definition-key
in: path
description: 'The unique ID of the product rate plan definition 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: 2c9890f78b212d76018b21937228005d
productRatePlanChargeId: 2c9890e489f227bd0189f22f3482001f
productRatePlanChargeNumber: null
productRatePlanChargeName: Per Unit
productRatePlanId: 2c9890678b1ca909018b1caea5c30000
productRatePlanNumber: PRP-NEW-00000353
productRatePlanName: New Rate Plan2
success: true
description: ''
schema:
$ref: '#/definitions/GETProductRatePlanDefinitionResponse'
delete:
summary: Delete a product rate plan definition
operationId: DELETE_ProductRatePlanDefnition
description: "Deletes a product rate plan definition.\n\n**Note**: This operation\
\ requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing)\
\ feature to be enabled, which is in the **Early Adopter** phase. \n"
tags:
- Product Rate Plan Definitions
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: product-rateplan-definition-key
in: path
description: 'The unique ID of the product rate plan definition 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/products/{product-key}/product-rate-plans:
get:
summary: List all product rate plans of a product
operationId: GET_ProductRatePlans
description: 'Retrieves information about all product rate plans of a specific
product.
'
tags:
- Product Rate Plans
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: product-key
in: path
type: string
description: 'The unique ID or SKU of a product. For example, 2c92c0f96487e16a016487f663c71a61
or SKU-00000987.
'
required: true
- name: show-charge-definitions
in: query
description: |
Specifies whether to include the product charge definitions of this rate plan in the response.
**Note**: This parameter is applicable only if the Attribute Based Pricing feature is enabled. To access this feature, submit a request at Zuora Global Support .
required: false
type: boolean
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:
productRatePlans:
- id: 40289f466464127601646473d6f7000f
status: Active
name: New Rate Plan
description: ''
effectiveStartDate: '2016-07-01'
effectiveEndDate: '2020-07-31'
grade: 3
productRatePlanNumber: PRP-00000001
productRatePlanCharges:
- id: 40289f4664641276016464740dd0001c
name: New Component
type: Recurring
model: FlatFee
uom: null
pricingSummary:
- USD100
pricing:
- currency: USD
price: 100
tiers: null
includedUnits: null
overagePrice: null
discountPercentage: null
discountAmount: null
defaultQuantity: null
applyDiscountTo: null
discountLevel: null
discountClass: null
productDiscountApplyDetails: []
endDateCondition: Subscription_End
upToPeriods: null
upToPeriodsType: null
billingDay: DefaultFromCustomer
listPriceBase: Per_Billing_Period
specificListPriceBase: null
billingTiming: IN_ADVANCE
billingPeriod: Month
billingPeriodAlignment: AlignToCharge
specificBillingPeriod: null
smoothingModel: null
numberOfPeriods: null
overageCalculationOption: null
overageUnusedUnitsCreditOption: null
unusedIncludedUnitPrice: null
usageRecordRatingOption: null
priceChangeOption: null
priceIncreasePercentage: null
useTenantDefaultForPriceChange: null
taxable: false
taxCode: ''
taxMode: null
triggerEvent: ContractEffective
description: ''
revenueRecognitionRuleName: Recognize upon invoicing
revRecTriggerCondition: ContractEffectiveDate
revRecCode: ''
useDiscountSpecificAccountingCode: null
productRatePlanChargeNumber: PRPC-00000001
financeInformation:
recognizedRevenueAccountingCode: ''
recognizedRevenueAccountingCodeType: null
deferredRevenueAccountingCode: ''
deferredRevenueAccountingCodeType: null
productChargeDefinitions: https://rest.zuora.com/v1/product-charge-definitions?charge=8a80808e8aaf3b0a018aaf3f2beb022b&rateplan=8a80808e8aaf3b0a018aaf3ed4cf021e
success: true
description: ''
schema:
$ref: '#/definitions/GETProductRatePlansResponse'
/v1/product-rate-plans/{id}:
get:
summary: Retrieve a product rate plan by ID
operationId: GET_ProductRatePlan
description: 'Retrieves a product rate plan by its ID.
'
tags:
- Product Rate Plans
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: 402888e67f8b3a68017f8bbb2a06062d
status: Active
name: New Rate Plan Change
description: ''
effectiveStartDate: '2012-02-01'
effectiveEndDate: '2032-02-01'
grade: 3
externallyManagedPlanIds:
- Apple0001
- Apple0002
- Google0003
externalIdSourceSystem: apple
productRatePlanNumber: PRP-00000008
success: true
schema:
$ref: '#/definitions/GETProductRatePlanWithExternalIdResponse'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: id
required: true
description: 'The ID, external ID, or the natural key of the product rate
plan to be retrieved. For example, `402888e67f8b3a68017f8bbb2a06062d`, `Apple0001`,
or `PRP-00000008`.
'
/v1/product-rate-plans/external-id/{id}:
get:
summary: List product rate plans by external ID
operationId: GET_ProductRatePlansByExternalID
description: 'Retrieves information about one or multiple product rate plans
by external ID.
'
tags:
- Product Rate Plans
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: 2c989020823f450c01823fef40421eb6
status: Active
name: My rate plan 072706
description: ''
effectiveStartDate: '2022-01-01'
effectiveEndDate: '2023-01-01'
externalIdSourceSystem: apple
externallyManagedPlanIds:
- a
- id: 2c989020823f450c01823fede57d1eb5
status: Active
name: My rate plan 072705
description: ''
effectiveStartDate: '2022-01-01'
effectiveEndDate: '2023-01-01'
externalIdSourceSystem: apple
externallyManagedPlanIds:
- a
schema:
$ref: '#/definitions/GETProductRatePlanWithExternalIdMultiResponse'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: id
required: true
description: 'The external ID of the product rate plan to be retrieved. For
example, `Apple0001`.
'
/v1/ramps/{rampNumber}:
get:
description: |
**Note**: This operation is only available if you have the Ramps feature enabled. The [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders) feature must be enabled before you can access the [Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics) feature. The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information coming October 2020.
Retrieves the latest definition of a specified ramp.
summary: Retrieve a ramp
operationId: GET_RampByRampNumber
tags:
- Ramps
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: ''
examples:
application/json:
success: true
ramp:
id: 40289f7b7321f5ce0173229d798300cf
number: R-00000268
name: Two Years Ramp
description: ''
intervals:
- name: Year 1
description: ''
startDate: '2020-01-01'
endDate: '2020-12-31'
- name: Year 2
description: ''
startDate: '2021-01-01'
endDate: '2021-12-31'
subscriptionNumber: A-S00000287
charges:
- chargeNumber: C-00000202
schema:
$ref: '#/definitions/GETRampByRampNumberResponseType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
description: 'The automatically generated number of a ramp. For example, R-00000268.
'
name: rampNumber
required: true
/v1/ramps/{rampNumber}/ramp-metrics:
get:
description: |
**Note**: This operation is only available if you have the Ramps feature enabled. The [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders) feature must be enabled before you can access the [Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics) feature. The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information coming October 2020.
Retrieves key metrics about a specified ramp, including the following metrics:
* TCB, TCV in the Ramp level
* TCB, TCV in the Interval level
* TCB, TCV, Quantity, and MRR in Interval Metrics
* Delta TCB, Delta TCV, Delta Quantity, and Delta MRR in Interval Delta Metrics
See [Key metrics for Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/F_Key_metrics_for_Ramps) for more information.
summary: List all ramp metrics of a ramp
operationId: GET_RampMetricsByRampNumber
tags:
- Ramps
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: ''
examples:
application/json:
success: true
rampMetrics:
name: Two Years Ramp
number: R-00000268
description: ''
grossTcb: 240.0
netTcb: 240.0
discountTcb: 0.0
grossTcv: 240.0
netTcv: 240.0
discountTcv: 0.0
intervals:
- name: Year 1
startDate: '2020-01-01'
endDate: '2020-12-31'
description: ''
grossTcb: 120.0
netTcb: 120.0
discountTcb: 0.0
grossTcv: 120.0
netTcv: 120.0
discountTcv: 0.0
intervalMetrics:
- subscriptionNumber: A-S00000287
chargeNumber: C-00000202
ratePlanChargeId: 40289f7b7321f5ce0173229d792c00c8
productRatePlanChargeId: 40289f7b7115832f0171158e6dd906cd
startDate: '2020-01-01'
endDate: '2020-12-31'
grossTcb: 120.0
netTcb: 120.0
discountTcb: 0.0
grossTcv: 120.0
netTcv: 120.0
discountTcv: 0.0
quantity: 1
mrr:
- gross: 10.0
net: 10.0
discount: 0.0
startDate: '2020-01-01'
endDate: '2020-12-31'
- name: Year 2
startDate: '2021-01-01'
endDate: '2021-12-31'
description: ''
grossTcb: 120.0
netTcb: 120.0
discountTcb: 0.0
grossTcv: 120.0
netTcv: 120.0
discountTcv: 0.0
intervalMetrics:
- subscriptionNumber: A-S00000287
chargeNumber: C-00000202
ratePlanChargeId: 40289f7b7321f5ce0173229d792c00c8
productRatePlanChargeId: 40289f7b7115832f0171158e6dd906cd
startDate: '2021-01-01'
endDate: '2021-12-31'
grossTcb: 120.0
netTcb: 120.0
discountTcb: 0.0
grossTcv: 120.0
netTcv: 120.0
discountTcv: 0.0
quantity: 1
mrr:
- gross: 10.0
net: 10.0
discount: 0.0
startDate: '2021-01-01'
endDate: '2021-12-31'
schema:
$ref: '#/definitions/GETRampMetricsByRampNumberResponseType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
description: 'The automatically generated number of a ramp. For example, R-00000268.
'
name: rampNumber
required: true
/v1/subscriptions/{subscriptionKey}/ramps:
get:
description: |
**Note**: This operation is only available if you have the Ramps feature enabled. The [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders) feature must be enabled before you can access the [Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics) feature. The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information coming October 2020.
Retrieves the definition of the ramp associated with a specified subscription.
summary: Retrieve a ramp by subscription key
operationId: GET_RampsBySubscriptionKey
tags:
- Ramps
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: ''
examples:
application/json:
success: true
ramps:
- id: 40289f7b7321f5ce0173229d798300cf
number: R-00000268
name: Two Years Ramp
description: ''
intervals:
- name: Year 1
description: ''
startDate: '2020-01-01'
endDate: '2020-12-31'
- name: Year 2
description: ''
startDate: '2021-01-01'
endDate: '2021-12-31'
subscriptionNumber: A-S00000287
charges:
- chargeNumber: C-00000202
schema:
$ref: '#/definitions/GETRampsBySubscriptionKeyResponseType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
description: 'The ID or number of an existing subscription.
'
name: subscriptionKey
required: true
/v1/subscriptions/{subscriptionKey}/ramp-metrics:
get:
description: |
**Note**: This operation is only available if you have the Ramps feature enabled. The [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders) feature must be enabled before you can access the [Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics) feature. The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information coming October 2020.
Retrieves key ramp metrics about a specified subscription, including the following metrics:
* TCB, TCV in the Ramp level
* TCB, TCV in the Interval level
* TCB, TCV, Quantity, and MRR in Interval Metrics
* Delta TCB, Delta TCV, Delta Quantity, and Delta MRR in Interval Delta Metrics
See [Key metrics for Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/F_Key_metrics_for_Ramps) for more information.
summary: List ramp metrics by subscription key
operationId: GET_RampMetricsBySubscriptionKey
tags:
- Ramps
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: ''
examples:
application/json:
success: true
rampMetrics:
name: Two Years Ramp
number: R-00000268
description: ''
grossTcb: 240.0
netTcb: 240.0
discountTcb: 0.0
grossTcv: 240.0
netTcv: 240.0
discountTcv: 0.0
intervals:
- name: Year 1
startDate: '2020-01-01'
endDate: '2020-12-31'
description: ''
grossTcb: 120.0
netTcb: 120.0
discountTcb: 0.0
grossTcv: 120.0
netTcv: 120.0
discountTcv: 0.0
intervalMetrics:
- subscriptionNumber: A-S00000287
chargeNumber: C-00000202
ratePlanChargeId: 40289f7b7321f5ce0173229d792c00c8
productRatePlanChargeId: 40289f7b7115832f0171158e6dd906cd
startDate: '2020-01-01'
endDate: '2020-12-31'
grossTcb: 120.0
netTcb: 120.0
discountTcb: 0.0
grossTcv: 120.0
netTcv: 120.0
discountTcv: 0.0
quantity: 1
mrr:
- gross: 10.0
net: 10.0
discount: 0.0
startDate: '2020-01-01'
endDate: '2020-12-31'
- name: Year 2
startDate: '2021-01-01'
endDate: '2021-12-31'
description: ''
grossTcb: 120.0
netTcb: 120.0
discountTcb: 0.0
grossTcv: 120.0
netTcv: 120.0
discountTcv: 0.0
intervalMetrics:
- subscriptionNumber: A-S00000287
chargeNumber: C-00000202
ratePlanChargeId: 40289f7b7321f5ce0173229d792c00c8
productRatePlanChargeId: 40289f7b7115832f0171158e6dd906cd
startDate: '2021-01-01'
endDate: '2021-12-31'
grossTcb: 120.0
netTcb: 120.0
discountTcb: 0.0
grossTcv: 120.0
netTcv: 120.0
discountTcv: 0.0
quantity: 1
mrr:
- gross: 10.0
net: 10.0
discount: 0.0
startDate: '2021-01-01'
endDate: '2021-12-31'
schema:
$ref: '#/definitions/GETRampMetricsBySubscriptionKeyResponseType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
description: 'The ID or number of an existing subscription.
'
name: subscriptionKey
required: true
/v1/orders/{orderNumber}/ramp-metrics:
get:
description: |
**Note**: This operation is only available if you have the Ramps feature enabled. The [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders) feature must be enabled before you can access the [Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics) feature. The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information coming October 2020.
Retrieves key ramp metrics about a specified order, including the following metrics:
* TCB, TCV in the Ramp level
* TCB, TCV in the Interval level
* TCB, TCV, Quantity, and MRR in Interval Metrics
* Delta TCB, Delta TCV, Delta Quantity, and Delta MRR in Interval Delta Metrics
See [Key metrics for Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/F_Key_metrics_for_Ramps) for more information.
summary: List ramp metrics by order number
operationId: GET_RampMetricsByOrderNumber
tags:
- Ramps
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: ''
examples:
application/json:
rampMetrics:
- name: Two Years Ramp
number: R-00000270
description: ''
grossTcb: 240.0
netTcb: 240.0
discountTcb: 0.0
grossTcv: 240.0
netTcv: 240.0
discountTcv: 0.0
intervals:
- name: Year 1
startDate: '2020-01-01'
endDate: '2020-12-31'
description: ''
grossTcb: 120.0
netTcb: 120.0
discountTcb: 0.0
grossTcv: 120.0
netTcv: 120.0
discountTcv: 0.0
intervalMetrics:
- subscriptionNumber: A-S00000289
chargeNumber: C-00000204
ratePlanChargeId: 40289f7b7322a15901732392a904000a
productRatePlanChargeId: 40289f7b7115832f0171158e6dd906cd
startDate: '2020-01-01'
endDate: '2020-12-31'
grossTcb: 120.0
netTcb: 120.0
discountTcb: 0.0
grossTcv: 120.0
netTcv: 120.0
discountTcv: 0.0
quantity: 1
mrr:
- gross: 10.0
net: 10.0
discount: 0.0
startDate: '2020-01-01'
endDate: '2020-12-31'
intervalDeltaMetrics:
- subscriptionNumber: A-S00000289
chargeNumber: C-00000204
productRatePlanChargeId: 40289f7b7115832f0171158e6dd906cd
deltaGrossTcb: 120.0
deltaNetTcb: 120.0
deltaDiscountTcb: 0.0
deltaGrossTcv: 120.0
deltaNetTcv: 120.0
deltaDiscountTcv: 0.0
deltaMrr:
- gross: 10.0
net: 10.0
discount: 0.0
startDate: '2020-01-01'
endDate: '2020-12-31'
deltaQuantity:
- amount: 1
startDate: '2020-01-01'
endDate: '2020-12-31'
- name: Year 2
startDate: '2021-01-01'
endDate: '2021-12-31'
description: ''
grossTcb: 120.0
netTcb: 120.0
discountTcb: 0.0
grossTcv: 120.0
netTcv: 120.0
discountTcv: 0.0
intervalMetrics:
- subscriptionNumber: A-S00000289
chargeNumber: C-00000204
ratePlanChargeId: 40289f7b7322a15901732392a904000a
productRatePlanChargeId: 40289f7b7115832f0171158e6dd906cd
startDate: '2021-01-01'
endDate: '2021-12-31'
grossTcb: 120.0
netTcb: 120.0
discountTcb: 0.0
grossTcv: 120.0
netTcv: 120.0
discountTcv: 0.0
quantity: 1
mrr:
- gross: 10.0
net: 10.0
discount: 0.0
startDate: '2021-01-01'
endDate: '2021-12-31'
intervalDeltaMetrics:
- subscriptionNumber: A-S00000289
chargeNumber: C-00000204
productRatePlanChargeId: 40289f7b7115832f0171158e6dd906cd
deltaGrossTcb: 120.0
deltaNetTcb: 120.0
deltaDiscountTcb: 0.0
deltaGrossTcv: 120.0
deltaNetTcv: 120.0
deltaDiscountTcv: 0.0
deltaMrr:
- gross: 10.0
net: 10.0
discount: 0.0
startDate: '2021-01-01'
endDate: '2021-12-31'
deltaQuantity:
- amount: 1
startDate: '2021-01-01'
endDate: '2021-12-31'
success: true
schema:
$ref: '#/definitions/GETRampMetricsByOrderNumberResponseType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
description: 'The number of the existing order.
'
name: orderNumber
required: true
/v1/rateplans/{ratePlanId}:
get:
summary: Retrieve a rate plan
operationId: GET_RatePlan
description: |2
Retrieves the detailed information about a specific subscription rate plan.
* If you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature enabled, this operation retrieves information about a subscription rate plan and the related order that has amended the rate plan.
* If you have the [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) feature enabled, this operation retrieves information about a subscription rate plan and the related order and amendment that have amended the rate plan.
* If you are an existing Zuora Subscribe and Amend customer, this operation retrieves information about a subscription rate plan and the related amendment that has amended the rate plan.
**Note:** Orders is now generally available as of Zuora Billing Release 284 (August 2020). If you are an existing Zuora Subscribe and Amend customer and want to adopt Orders, see [What is Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization#What_is_Orders_Harmonization.3F) and join the [Orders Harmonization community group](https://community.zuora.com/t5/Orders-Harmonization/gp-p/Orders-Harmonization) for more information. If you want to enable Orders, submit a request at [Zuora Global Support](https://support.zuora.com/).
**Note:** You can only retrieve information about the following order actions:
* `addProduct`
* `updateProduct`
* `removeProduct`
* `changePlan`
tags:
- Rate Plans
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_HEADER_Zuora_Org_Ids'
- name: ratePlanId
in: path
description: The ID of the subscription rate plan to be retrieved.
required: true
type: string
format: 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/GetOrderActionRatePlanResponse'
examples:
application/json:
success: true
id: 402880e47ccbaca1017ccbdd63aa18c8
lastChangeType: Update
productId: 2c9890207c9649c0017c96a0588201a2
productName: MMORPG game
productSku: SKU-00000001
productRatePlanId: 2c9890207c9649c0017c96a0f11001a4
ratePlanName: Rate Plan 1
subscriptionId: 402880e47ccbaca1017ccbdd644d18d0
subscriptionVersion: 5
amendment:
id: 402880e47ccbaca1017ccbdd63c818cb
type: UpdateProduct
code: A-AM00000047
effectiveDate: '2021-12-29'
description: null
name: update
createdBy: 2c9890207c9649c0017c969bc6330002
createdDate: '2021-10-29 19:44:16'
updatedBy: 2c9890207c9649c0017c969bc6330002
updatedDate: '2021-10-29 19:44:16'
serviceActivationDate: '2021-12-29'
customerAcceptanceDate: '2021-12-29'
contractEffectiveDate: '2021-12-29'
order:
id: 402880e47ccbaca1017ccbdd7b0e18fd
orderNumber: O-00000037
orderActions:
- id: 402880e47ccbaca1017ccbdd7b1418ff
serviceActivationDate: '2021-12-29'
customerAcceptanceDate: '2021-12-29'
contractEffectiveDate: '2021-12-29'
type: UpdateProduct
updateProduct:
ratePlanId: 402880e47ccbaca1017ccbdd620818ba
uniqueToken: null
specificUpdateDate: null
newRatePlanId: 402880e47ccbaca1017ccbdd63aa18c8
productRatePlanId: 2c9890207c9649c0017c96a0f11001a4
chargeUpdates: []
customFields: {}
/v1/refunds:
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about all refunds. Two\
\ types of refunds are available, electronic refunds and external refunds.\n\
\n### Filtering\n\nYou can use query parameters to restrict the data returned\
\ in the response. Each query parameter corresponds to one field in the response\
\ body.\n\nIf the value of a filterable field is string, you can set the corresponding\
\ query parameter to `null` when filtering. Then, you can get the response\
\ data with this field value being `null`.\n\nExamples:\n\n- /v1/refunds?status=Processed\n\
\n- /v1/refunds?amount=4&status=Processed\n\n- /v1/refunds?status=Processed&type=External&sort=+number\n"
summary: List refunds
operationId: GET_Refunds
tags:
- Refunds
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:
refunds:
- id: 4028905f5a87c0ff015a889e590e00c9
number: R-00000001
status: Processed
type: External
methodType: CreditCard
accountId: 4028905f5a87c0ff015a87d25ae90025
amount: 4
refundDate: '2017-03-01'
comment: update comment
paymentMethodId: null
paymentMethodSnapshotId: null
paymentId: 4028905f5a87c0ff015a889ddfb800c0
creditMemoId: null
reasonCode: Standard Refund
gatewayId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondRefundReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: null
createdDate: '2017-03-01 14:46:03'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 16:56:41'
updatedById: 402881e522cf4f9b0122cf5d82860002
refundTransactionTime: null
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
transferredToAccounting: 'No'
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
schema:
$ref: '#/definitions/GETRefundCollectionType'
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: accountId
in: query
type: string
required: false
description: 'This parameter filters the response based on the `accountId`
field.
'
- name: amount
in: query
type: number
format: double
required: false
description: 'This parameter filters the response based on the `amount` field.
'
- name: createdById
in: query
type: string
required: false
description: 'This parameter filters the response based on the `createdById`
field.
'
- name: createdDate
in: query
type: string
format: date-time
required: false
description: 'This parameter filters the response based on the `createdDate`
field.
'
- name: methodType
in: query
type: string
enum:
- ACH
- Cash
- Check
- CreditCard
- PayPal
- WireTransfer
- DebitCard
- CreditCardReferenceTransaction
- BankTransfer
- Other
required: false
description: 'This parameter filters the response based on the `methodType`
field.
'
- name: number
in: query
type: string
required: false
description: 'This parameter filters the response based on the `number` field.
'
- name: paymentId
in: query
type: string
required: false
description: 'This parameter filters the response based on the `paymentId`
field.
'
- name: refundDate
in: query
type: string
format: date
required: false
description: 'This parameter filters the response based on the `refundDate`
field.
'
- name: status
in: query
type: string
enum:
- Processed
- Canceled
- Error
- Processing
required: false
description: 'This parameter filters the response based on the `status` field.
'
- name: type
in: query
type: string
enum:
- External
- Electronic
required: false
description: 'This parameter filters the response based on the `type` field.
'
- name: updatedById
in: query
type: string
required: false
description: 'This parameter filters the response based on the `updatedById`
field.
'
- name: updatedDate
in: query
type: string
format: date-time
required: false
description: 'This parameter filters the response based on the `updatedDate`
field.
'
- 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\nA sortable field uses the following form: \n\n*operator* *field_name*\n\
\nYou can use at most two sortable fields in one URL path. Use a comma to\
\ separate sortable fields. For example: *operator* *field_name*, *operator*\
\ *field_name* \n\n*operator* is used to mark the order of sequencing.\
\ The operator is optional. If you only specify the sortable field without\
\ any operator, the response data is sorted in descending order by this\
\ field.\n\n - The `-` operator indicates an ascending order.\n - The\
\ `+` operator indicates a descending order.\n\nBy default, the response\
\ data is displayed in descending order by refund number.\n\n*field_name*\
\ indicates the name of a sortable field. The supported sortable fields\
\ of this operation are as below:\n\n - number\n - accountId\n - amount\n\
\ - refundDate\n - paymentId\n - createdDate\n - createdById\n - updatedDate\n\
\ - updatedById\n \nExamples:\n\n- /v1/refunds?sort=+number\n\n- /v1/refunds?status=Processed&sort=-number,+amount\n"
/v1/refunds/{refundId}:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nUpdates the basic and finance information about\
\ a refund.\n"
summary: Update a refund
operationId: PUT_UpdateRefund
tags:
- Refunds
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: 4028905f5a87c0ff015a889e590e00c9
number: R-00000001
status: Processed
type: External
methodType: CreditCard
accountId: 4028905f5a87c0ff015a87d25ae90025
amount: 4.0
refundDate: '2017-03-01'
comment: update comment
paymentMethodId: null
paymentMethodSnapshotId: null
paymentId: 4028905f5a87c0ff015a889ddfb800c0
creditMemoId: null
reasonCode: Standard Refund
gatewayId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondRefundReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: null
createdDate: '2017-03-01 14:46:03'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 16:56:41'
updatedById: 402881e522cf4f9b0122cf5d82860002
refundTransactionTime: null
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
transferredToAccounting: 'No'
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
schema:
$ref: '#/definitions/GETRefundType'
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_HEADER_Zuora_Org_Ids'
- name: body
in: body
required: true
description: ''
schema:
$ref: '#/definitions/PUTRefundType'
- type: string
in: path
name: refundId
required: true
description: 'The unique ID of a refund. For example, 4028905f5a87c0ff015a889e590e00c9.
'
/v1/refunds/{refundKey}:
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about a specific refund.\n"
summary: Retrieve a refund
operationId: GET_Refund
tags:
- Refunds
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: 4028905f5a87c0ff015a889e590e00c9
number: R-00000001
status: Processed
type: External
methodType: CreditCard
accountId: 4028905f5a87c0ff015a87d25ae90025
amount: 4
refundDate: '2017-03-01'
comment: Create a refund for unapplied payment.
paymentMethodId: null
paymentMethodSnapshotId: null
paymentId: 4028905f5a87c0ff015a889ddfb800c0
creditMemoId: null
reasonCode: Standard Refund
gatewayId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondRefundReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: null
createdDate: '2017-03-01 14:46:03'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 14:46:03'
updatedById: 402881e522cf4f9b0122cf5d82860002
refundTransactionTime: null
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
transferredToAccounting: 'No'
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
schema:
$ref: '#/definitions/GETRefundType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: refundKey
required: true
description: 'The unique ID of a refund or the refund number. For example,
4028905f5a87c0ff015a889e590e00c9.
'
delete:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nDeletes a refund. You can delete a refund with\
\ the Canceled status. Note that refunds applied to credit balance cannot\
\ be deleted.\n"
summary: Delete a refund
operationId: DELETE_Refund
tags:
- Refunds
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_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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: refundKey
required: true
description: 'The unique ID of a refund or the refund number. For example,
4028905f5a87c0ff015a889e590e00c9.
'
/v1/refunds/{refundKey}/cancel:
put:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nCancels a refund.\n\nIf you have the Invoice Settlement\
\ feature enabled, refunds applied to credit balance cannot be cancelled.\n"
summary: Cancel a refund
operationId: PUT_CancelRefund
tags:
- Refunds
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: 4028905f5a87c0ff015a889e590e00c9
number: R-00000001
status: Canceled
type: External
methodType: CreditCard
accountId: 4028905f5a87c0ff015a87d25ae90025
amount: 4
refundDate: '2017-03-01'
comment: update comment
paymentMethodId: null
paymentMethodSnapshotId: null
paymentId: 4028905f5a87c0ff015a889ddfb800c0
creditMemoId: null
reasonCode: Standard Refund
gatewayId: null
gatewayResponse: null
gatewayResponseCode: null
gatewayState: NotSubmitted
markedForSubmissionOn: null
referenceId: null
secondRefundReferenceId: null
softDescriptor: null
softDescriptorPhone: null
submittedOn: null
settledOn: null
cancelledOn: '2017-03-01 17:03:07'
createdDate: '2017-03-01 14:46:03'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 17:03:07'
updatedById: 402881e522cf4f9b0122cf5d82860002
refundTransactionTime: null
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
transferredToAccounting: 'No'
gatewayReconciliationStatus: null
gatewayReconciliationReason: null
payoutId: null
success: true
schema:
$ref: '#/definitions/GETRefundType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: refundKey
required: true
description: "The unique ID of a refund or the refund number. For example,\
\ 4028905f5a87c0ff015a889e590e00c9. \n"
/v1/refunds/{refundKey}/parts:
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about all parts of a\
\ refund.\n"
summary: List all parts of a refund
operationId: GET_RefundParts
tags:
- Refunds
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:
parts:
- id: 4028905f5a87c0ff015a889e592b00cf
paymentId: 4028905f5a87c0ff015a889ddfb800c0
creditMemoId: null
amount: 4
createdDate: '2017-03-01 14:46:03'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 14:46:03'
updatedById: 402881e522cf4f9b0122cf5d82860002
success: true
schema:
$ref: '#/definitions/GETRefundPartCollectionType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: refundKey
required: true
description: 'The number or unique ID of a refund. For example, 4028905f5a87c0ff015a889e590e00c9.
'
/v1/refunds/{refundKey}/parts/{refundpartid}:
get:
description: "**Note:** This operation is only available if you have [Invoice\
\ Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about a specific refund\
\ part.\n"
summary: Retrieve a refund part
operationId: GET_RefundPart
tags:
- Refunds
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: 4028905f5a87c0ff015a889e592b00cf
paymentId: 4028905f5a87c0ff015a889ddfb800c0
creditMemoId: null
amount: 4
createdDate: '2017-03-01 14:46:03'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 14:46:03'
updatedById: 402881e522cf4f9b0122cf5d82860002
success: true
schema:
$ref: '#/definitions/RefundPartResponseType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: refundpartid
required: true
description: 'The unique ID of a specific refund part. You can get the refund
part ID from the response of [List all parts of a refund](https://developer.zuora.com/api-references/api/operation/GET_RefundParts).
'
- type: string
in: path
name: refundKey
required: true
description: 'The number or unique ID of a refund. For example, 4028905f5a87c0ff015a889e590e00c9.
'
/v1/refunds/{refundKey}/parts/{refundpartid}/itemparts:
get:
description: |
**Note:** This operation is only available if you have the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) feature enabled. Invoice Item Settlement must be used together with other Invoice Settlement features (Unapplied Payments, and Credit and Debit memos). If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Retrieves the information about all items of a refund part. A refund part item is a single line item in a refund part. A refund part can consist of several different types of items.
summary: List all refund part items
operationId: GET_RefundItemParts
tags:
- Refunds
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:
itemParts:
- id: 4028905f5a87c0ff015a889e592a00ce
amount: 4
creditMemoItemId: null
creditTaxItemId: null
createdDate: '2017-03-01 14:46:03'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 14:46:03'
updatedById: 402881e522cf4f9b0122cf5d82860002
success: true
schema:
$ref: '#/definitions/GETRefundItemPartCollectionType'
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- type: string
in: path
name: refundpartid
required: true
description: 'The unique ID of a specific refund part. You can get the refund
part ID from the response of [List all parts of a refund](https://developer.zuora.com/api-references/api/operation/GET_RefundParts).
'
- type: string
in: path
name: refundKey
required: true
description: 'The number or unique ID of a refund. For example, 4028905f5a87c0ff015a889e590e00c9.
'
/v1/refunds/{refundKey}/parts/{refundpartid}/itemparts/{itempartid}:
get:
description: "**Note:** This operation is only available if you have the [Invoice\
\ Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement)\
\ feature enabled. Invoice Item Settlement must be used together with other\
\ Invoice Settlement features (Unapplied Payments, and Credit and Debit memos).\
\ If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement\
\ and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n\nRetrieves the information about a specific refund\
\ part item. A refund part item is a single line item in a refund part. A\
\ refund part can consist of several different types of items.\n"
summary: Retrieve a refund part item
operationId: GET_RefundItemPart
tags:
- Refunds
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: 4028905f5a87c0ff015a889e592a00ce
amount: 4
creditMemoItemId: null
creditTaxItemId: null
createdDate: '2017-03-01 14:46:03'
createdById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-03-01 14:46:03'
updatedById: 402881e522cf4f9b0122cf5d82860002
success: true
schema:
$ref: '#/definitions/GETRefundItemPartType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: itempartid
required: true
description: 'The unique ID of a specific refund part item. You can get the
refund part item ID from the response of [Get refund part items](https://developer.zuora.com/api-references/api/operation/GET_RefundItemParts).
'
- type: string
in: path
name: refundpartid
required: true
description: 'The unique ID of a specific refund part. You can get the refund
part ID from the response of [List all parts of a refund](https://developer.zuora.com/api-references/api/operation/GET_RefundParts).
'
- type: string
in: path
name: refundKey
required: true
description: 'The number or unique ID of a refund. For example, 4028905f5a87c0ff015a889e590e00c9.
'
/v1/uno-regenerate/booking-transaction:
post:
summary: Regenerate booking transactions
description: |
Use this operation to generate booking transactions. This call is useful in the following two use cases:
* During customer onboarding, there is a common scenario when customers perform data backfill or data fixes. To synchronize these changes from Billing to Revenue, use this API operation to regenerate booking transaction objects.
* Customers choose to experiment with their use cases in the Sandbox environment before implementing them in the Production environment. During this experimentation phase, customers not only interact with data but also use this API operation to regenerate booking transaction objects.
operationId: POST_RegenerateBookingTransaction
tags:
- Regenerate
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_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: reMigrate
in: query
type: boolean
required: false
description: "Indicates if existing data in the database will be overridden.\
\ \n"
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/RegenerateBookingRequest'
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
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
minLength: 36
maxLength: 36
Zuora-Track-Id:
type: string
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.
'
maxLength: 64
schema:
$ref: '#/definitions/RegenerateTransactionObjectResponse'
examples:
application/json:
success: true
idList:
- 2c9890508ad035db018ad0d8d1685fef
- 2c9890508ad035db018ad0d8d4ec6013
/v1/uno-regenerate/billing-transaction:
post:
summary: Regenerate billing transactions
description: "Use this operation to generate billing transactions. This call\
\ is useful in the following two use cases: \n* During customer onboarding,\
\ there is a common scenario when customers perform data backfill or data\
\ fixes. To synchronize these changes from Billing to Revenue, use this API\
\ operation to regenerate billing transaction objects.\n* Customers choose\
\ to experiment with their use cases in the Sandbox environment before implementing\
\ them in the Production environment. During this experimentation phase, customers\
\ not only interact with data but also use this API operation to regenerate\
\ transaction objects.\n"
operationId: POST_RegenerateBillingTransaction
tags:
- Regenerate
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_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: reMigrate
in: query
type: boolean
required: false
description: "Indicates if existing data in the database will be overridden.\
\ \n"
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/RegenerateBillingRequest'
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
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
minLength: 36
maxLength: 36
Zuora-Track-Id:
type: string
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.
'
maxLength: 64
schema:
$ref: '#/definitions/RegenerateTransactionObjectResponse'
examples:
application/json:
success: true
idList:
- 2c9890508ad035db018ad0d8d1685fef
- 2c9890508ad035db018ad0d8d4ec6013
/v1/rev-rec-events:
post:
summary: Regenerate revenue recognition events transactions for Delivery Schedule
description: 'Use this operation to generate Delivery Schedule based revenue
recognition events transactions.
'
operationId: POST_CreateRevRecEvents
tags:
- Regenerate
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_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: subscriptionNumber
in: query
type: string
description: 'The subcription number.
'
- name: mode
in: query
type: string
enum:
- Incremental
- Full
default: Incremental
description: The generation mode.
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
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
minLength: 36
maxLength: 36
Zuora-Track-Id:
type: string
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.
'
maxLength: 64
schema:
$ref: '#/definitions/RegenerateRevRecEventsResponse'
examples:
application/json:
success: true
/v1/rev-rec-events/daily-consumption:
post:
summary: Regenerate revenue recognition events transactions for Daily Consumption
description: 'Use this operation to generate Daily Consumption based revenue
recognition events transactions when the Prepaid with Drawdown feature is enabled.
'
operationId: POST_GenerateRevRecEventsForDailyConsumption
tags:
- Regenerate
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_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/DailyConsumptionRevRecRequest'
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
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
minLength: 36
maxLength: 36
Zuora-Track-Id:
type: string
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.
'
maxLength: 64
schema:
$ref: '#/definitions/RegenerateRevRecEventsResponse'
examples:
application/json:
success: true
/v1/revpro-accounting-codes:
put:
summary: Update a Zuora Revenue accounting code
operationId: PUT_RevProAccountingCodes
description: Update the Zuora Revenue accounting code that corresponds to a
specific Product Rate Plan Charge Id in Zuora Billing.
tags:
- Zuora Revenue Integration
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/RevproAccountingCodes'
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/PUTRevproAccCodeResponse'
/v1/rsa-signatures:
post:
summary: Generate an RSA signature
operationId: POST_RSASignatures
description: "The REST API used in Payment Pages 2.0 are CORS (Cross-Origin\
\ Resource Sharing) enabled and therefore requires a digital signature. The\
\ POST rsa_signatures call generates and returns the required digital signature\
\ and token for a Payment Pages 2.0 form. You need to pass the generated signature\
\ to your client for it to access Payment Pages 2.0. \n \nThis REST service\
\ should be used only when you implement Payment Pages 2.0. \n\n**Note:**\
\ To avoid potential credit card fraud attacks, you should secure your Payment\
\ Pages from being accessed by fraudulent users before you issue client-side\
\ digital signatures and tokens. See [Manage Token Issuance](https://knowledgecenter.zuora.com/CB_Billing/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Manage_Token_Issuance)\
\ for more information.\n\n**Troubleshooting tip:** After you use this operation\
\ to generate an RSA signature, if `signature` returns `null` but `token`\
\ is successfully returned, please limit the number of the fields in your\
\ request to make sure that the maximum length supported by the RSA signature\
\ algorithm is not exceeded. The calculation of the request length is determined\
\ by the number of the parameters, and the length of each of the parameter\
\ name and its value.\n"
tags:
- RSA Signatures
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTRSASignatureType'
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:
signature: VpCAFL2hHC2irxbhWYGLJmdBigjARsCStwHZiQ78z5LyVuBCFr2lkie0db/7E8n38MXaq12Ng5As5Qj+9Nhz6RBsSEWLod7c7hvwNI28OcgBZtcV/wscbWU69EP/+/XrQnF3ZUbHbqmcmhE8C/zNnc2zvHckfArroDW2HxxmATfMJS0xKUm5TrHi4tiILZVMYY1KIUqQTyuXV6uRWYzkqMkFkZDNCxSxf0XwzuBI/VOgTCmFZb0c3+bk/q6+7d/azFCrrg8C3dquCNJRfUeaBou+SLUa4TW3hV4rGd2zpvSrD/425x4qFNGV6JQ7wvIleIdrXU4qbh9nCmYoApMODA==
token: E2BJEle7YrAlw93SjkaKthTmzMvXF341
tenantId: '12270'
key: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmWRFTwxQOqaG4JDZSQF/NJWvCDoSXm3TYilNzoN8nBbuvhKa7SZBBS+VP6rFqcbIU38Fu+Rf09vqyYOxuasPJe7yhqeOiStWB/aCPLhwXBeKt37L/qkwpNOKb1FETtUgrc+UjbtT0pnl55wCfi+Ik//X5SQi0B+c0ei1DQv99qmPJJErrhnBtdxeaWAT0EYAo42AOQ5cp0UWDY6OdOYL6+RyFOUFIs1yEgtfg4VMMSpSOKBOhYclQYuSC7nBF5Cc18ydtzsBpf7l49gCLTFzG45NCDAocada8KihFNpGXbauV9V4EPRD4lofaXdsXJ5Tw8/+KCsrUlvIQI3vcEv9LQIDAQAB
success: true
description: ''
schema:
$ref: '#/definitions/POSTRSASignatureResponseType'
/v1/rsa-signatures/decrypt:
post:
summary: Decrypt an RSA signature
operationId: POST_DecryptRSASignatures
description: "The REST API used in Payment Pages 2.0 are CORS (Cross-Origin\
\ Resource Sharing) enabled and therefore requires a digital signature. You\
\ use rsa_signatures to generate the required digital signature and token\
\ for a Payment Pages 2.0 form, and then you use the decrypt REST service\
\ to decrypt the signature to validate the signature and key.\n\nThis REST\
\ service should be used only when you implement Payment Pages 2.0. \n"
tags:
- RSA Signatures
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTDecryptionType'
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:
publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmWRFTwxQOqaG4JDZSQF/NJWvCDoSXm3TYilNzoN8nBbuvhKa7SZBBS+VP6rFqcbIU38Fu+Rf09vqyYOxuasPJe7yhqeOiStWB/aCPLhwXBeKt37L/qkwpNOKb1FETtUgrc+UjbtT0pnl55wCfi+Ik//X5SQi0B+c0ei1DQv99qmPJJErrhnBtdxeaWAT0EYAo42AOQ5cp0UWDY6OdOYL6+RyFOUFIs1yEgtfg4VMMSpSOKBOhYclQYuSC7nBF5Cc18ydtzsBpf7l49gCLTFzG45NCDAocada8KihFNpGXbauV9V4EPRD4lofaXdsXJ5Tw8/+KCsrUlvIQI3vcEv9LQIDAQAB
signature: BeNYuHFkp/sbfm3clYyCkKEqd7XVTRDOJ1/5rL0tpkqxiSq+maqYkDz5kA+lN64ipoefQuJ7Rdm5TpICErufeJfa2sfTmGARDJ0hr+StXfLsIxHmDoNH5dqcXv3W6MR4kaljEqPVuhzGQ0We98DG52JcHWqqN53oHwTyuZuXocQqnmiE23IPm8UrU3g4hX/OLat0R81wDQ1SslZ+4pnqlncpTpopCK4FxeG3B0gYMhZcYd17Cmf0N3tEHVXHDlJIm4rOx0OVT+YBnjbKYLM0jxYu7PRKRis+yzN1BoappOEB0gmPjznIeiYF0u/fJdZWoEwK7d9mrfJeOBbpFyRoHA==
decryptedSignature: /apps/publichostedpagelite.do#12270#tpyeSbjfUdpZpY4EMSCy7CrupvuhIdvM#1473658419005#2c92c0f855e2b4630155ec9e6a1b6eec
success: true
description: ''
schema:
$ref: '#/definitions/POSTDecryptResponseType'
/v1/sequence-sets:
post:
summary: Create sequence sets
operationId: POST_SequenceSets
description: "Creates sequence sets, allowing distinct numbering sequences for\
\ billing documents, payments, and refunds. Billing documents include invoices,\
\ credit memos, and debit memos.\n\nYou can create a maximum of 100 sequence\
\ sets in one single request. A sequence set comprises a set of custom prefixes\
\ and starting numbers that are used for billing documents to generate, and\
\ payments and refunds to create.\n\nSee [Prefix and Numbering Configuration\
\ for Billing Documents](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Prefix_and_Numbering_Configuration_for_Billing_Documents)\
\ for more information about limitations.\n\n**Note**: The Credit and Debit\
\ Memos feature is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n"
tags:
- Sequence Sets
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTSequenceSetsRequest'
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
sequenceSets:
- name: FR
id: 402892c74c9193cd014c96bbe7c101f9
invoice:
prefix: FINV
startNumber: 10
creditMemo:
prefix: FCM
startNumber: 10
debitMemo:
prefix: FDM
startNumber: 10
payment:
prefix: FP-
startNumber: 10
refund:
prefix: FR-
startNumber: 10
- name: ITA
id: 402892c74c9193cd014c96bbe7c201f9
invoice:
prefix: IINV
startNumber: 10
creditMemo:
prefix: ICM
startNumber: 10
debitMemo:
prefix: IDM
startNumber: 10
payment:
prefix: IP-
startNumber: 10
refund:
prefix: IR-
startNumber: 10
description: ''
schema:
$ref: '#/definitions/POSTSequenceSetsResponse'
get:
summary: List sequence sets
operationId: GET_SequenceSets
description: "Retrieves information about all sequence sets configured for billing\
\ documents, payments, and refunds. Billing documents include invoices, credit\
\ memos, and debit memos.\n\nYou can use query parameters to restrict the\
\ data returned in the response.\n\n**Note**: The Credit and Debit Memos feature\
\ is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n"
tags:
- Sequence Sets
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- name: name
in: query
description: 'The name of a specific sequence set.
'
required: false
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:
sequenceSets:
- name: DEFAULT
id: 2c98906c69be199c0169be74ed210afd
invoice:
prefix: INV
startNumber: 10
creditMemo:
prefix: CM
startNumber: 11
debitMemo:
prefix: DM
startNumber: 12
payment:
prefix: P-
startNumber: 13
refund:
prefix: R-
startNumber: 14
- name: FR
id: 2c98906c69be199c0169be74ed211afd
invoice:
prefix: FINV
startNumber: 10
creditMemo:
prefix: FCM
startNumber: 11
debitMemo:
prefix: FDM
startNumber: 12
payment:
prefix: FP-
startNumber: 13
refund:
prefix: FR-
startNumber: 14
- name: ITA
id: 2c98906c69be199c0169be74ed212afd
invoice:
prefix: ITAINV
startNumber: 10
creditMemo:
prefix: ITACM
startNumber: 11
debitMemo:
prefix: ITADM
startNumber: 12
payment:
prefix: ITAP-
startNumber: 13
refund:
prefix: ITAR-
startNumber: 14
success: true
description: ''
schema:
$ref: '#/definitions/GETSequenceSetsResponse'
/v1/sequence-sets/{id}:
put:
summary: Update a sequence set
operationId: PUT_SequenceSet
description: "Updates a specific sequence set configured for billing documents,\
\ payments, and refunds. Billing documents include invoices, credit memos,\
\ and debit memos.\n\n**Note**: The Credit and Debit Memos feature is only\
\ available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n"
tags:
- Sequence Sets
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
description: 'The ID of the sequence set to update.
'
required: true
type: string
- name: Request
in: body
description: ''
required: false
schema:
$ref: '#/definitions/PUTSequenceSetRequest'
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/PUTSequenceSetResponse'
get:
summary: Retrieve a sequence set
operationId: GET_SequenceSet
description: "Retrieves information about a specific sequence set configured\
\ for billing documents, payments, and refunds. Billing documents include\
\ invoices, credit memos, and debit memos\n\n**Note**: The Credit and Debit\
\ Memos feature is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n"
tags:
- Sequence Sets
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
description: 'The ID of the sequence set to retrieve information about.
'
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:
name: FR
invoice:
prefix: FINV
startNumber: 10
creditMemo:
prefix: FCM
startNumber: 11
debitMemo:
prefix: FDM
startNumber: 12
payment:
prefix: FP-
startNumber: 13
refund:
prefix: FR-
startNumber: 14
success: true
description: ''
schema:
$ref: '#/definitions/GETSequenceSetResponse'
delete:
summary: Delete a sequence set
operationId: DELETE_SequenceSet
description: "Deletes a specific sequence set configured for billing documents,\
\ payments, and refunds. Billing documents include invoices, credit memos,\
\ and debit memos.\n\n**Note**: The Credit and Debit Memos feature is only\
\ available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n"
tags:
- Sequence Sets
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
description: 'The ID of the sequence set to delete.
'
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: ''
examples:
application/json:
success: true
schema:
$ref: '#/definitions/CommonResponseType'
/settings/listing:
get:
tags:
- Settings
summary: List all settings
description: "Get a list of all available settings in your tenant. \n\nThe response\
\ message is by default in JSON format. If you want to receive all the available\
\ settings in csv format, include `Accept` in the header parameters and set\
\ it to `application/csv`.\n \nSee a [200 response sample in JSON\
\ format](https://developer.zuora.com/settings-api/ListAllSettingsResponseSample.json)\
\ that lists all available settings. \n\nSee a [200 response sample in CSV\
\ format](https://developer.zuora.com/settings-api/ListAllSettingsResponseSample.csv)\
\ that lists all available settings.\n\nYou can find a specific operation\
\ of an available setting item in your tenant from the 200 response body of\
\ this call. See the following common use cases of Settings API for how to\
\ operate on a specifc setting item.\n\n * Billing Rules:\n * [Get a specific\
\ setting - Billing Rules](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/AA_Get_a_specific_setting_-_Billing_Rules)\n\
\ * [Update a specific setting - Billing Rules](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/AB_Update_a_specific_setting_-_Billing_Rules)\n\
\ * Age Buckets:\n * [Get Age Buckets](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Get_Age_Buckets)\n\
\ * [Update Age Buckets](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Update_Age_Buckets)\n\
\ * Invoice Templates:\n * [Get a specific Invoice Template](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Get_a_specific_Invoice_Template)\n\
\ * [Get all Invoice Templates](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Get_all_Invoice_Templates)\n\
\ * [Create a new Invoice Template](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Create_a_new_Invoice_Template)\n\
\ * [Update a specific Invoice Template](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Update_a_specific_Invoice_Template)\n\
\ * [Delete a specific Invoice Template](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Delete_a_specific_Invoice_Template)\n\
\ * Communications Profiles:\n * [Create a new Communication Profile](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Create_a_new_Communication_Profile)\n\
\ * [Get a Communication Profile](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Get_a_Communication_Profile)\n\
\ * [Get all Communication Profiles](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Get_all_Communication_Profiles)\n\
\ * [Modify a Communication Profile](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Modify_a_Communication_Profile)\n\
\ * Notification Definitions:\n * [Get all notification definitions under\
\ a particular Communication Profile](https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Get_all_Notifications_under_a_particular_Communication_Profile)\n\
\ * [Get a notification definition](https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Get_a_notification_definition)\n\
\ * [Update a notification definition](https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Update_a_notification_definition)\n\
\ * [Delete a notification definition](https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Delete_a_notification_definition)\n\
\ * Chart of Accounts:\n * [Get Chart of Accounts](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Get_Chart_of_Accounts)\n\
\ * [Add a new Chart of Account](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Add_a_new_Chart_of_Account)\n\
\ * Quote Templates:\n * [Get all Quote Templates](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Get_all_Quote_Templates)\n\
\ * [Get a specific Quote Template](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Get_a_specific_Quote_Template)\n\
\ * [Create a new Quote Template](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Create_a_new_Quote_Template)\n\
\ * Connect Tax Engines:\n * [Create a Connect Tax Engine](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Connect_Tax_Engines_Settings#Create_a_Connect_Tax_Engine)\n\
\ * [Get a Connect Tax Engine](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Connect_Tax_Engines_Settings#Get_a_Connect_Tax_Engine)\n\
\ * [Update a Connect Tax Engine](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Connect_Tax_Engines_Settings#Update_a_Connect_Tax_Engine)\n\
\ * [Delete a Connect Tax Engine](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Connect_Tax_Engines_Settings#Delete_a_Connect_Tax_Engine)\n\
\ * Custom Fields:\n * [View all custom fields](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/View_all_custom_fields)\n\
\ * [View custom fields of a specific object](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/View_custom_fields_of_a_specific_object)\n\
\ * [Update custom fields of a specific object](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Update_custom_fields_of_a_specific_object)\n\
\ * Units of Measure:\n * [Create a Unit of Measure](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Create_a_Unit_of_Measure)\n\
\ * [Get a Unit of Measure](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Get_a_Unit_of_Measure)\n\
\ * [Get all Units of Measure](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Get_all_Units_of_Measure)\n\
\ * [Update a Unit of Measure](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Update_a_Unit_of_Measure)\n\
\ * [Delete a Unit of Measure](https://knowledgecenter.zuora.com/Central_Platform/API/BB_C_Settings_API/Settings_API_tutorials/Delete_a_Unit_of_Measure)\n"
operationId: GET_ListAllSettings
produces:
- application/json
- application/csv
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: Accept
in: header
required: false
type: string
maxLength: 64
description: 'Specifies response media type. If you omit the `Accept` header
parameter, the response body is by default in JSON format. If you include
`Accept` header parameter and set it to `application/csv`, the response
body is in csv format.
'
responses:
200:
description: OK
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:
settings:
- key: AccountingRules
description: Accounting Rules settings
context: Entity
pathPattern: /accounting-rules
httpOperations:
- method: GET
url: /settings/accounting-rules
parameters: []
responseType: {}
- method: PUT
url: /settings/accounting-rules
parameters: []
requestType: {}
responseType: {}
schema:
$ref: '#/definitions/ListAllSettingsResponse'
/settings/batch-requests:
post:
tags:
- Settings
summary: Submit settings requests
description: "Submit a batch of settings requests by this single API operation.\n\
\nBy default, one batch settings request can contain a maximum of 100 single\
\ operation requests, including: \n* All the single requests in the process\
\ batch settings request.\n* All the children requests of the single requests.\n\
\nThis maximum value is configurable.\n"
operationId: POST_ProcessSettingsBatchRequest
consumes:
- application/json
produces:
- application/json
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- in: body
name: batchRequest
required: true
schema:
$ref: '#/definitions/SettingsBatchRequest'
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:
responses:
- id: '1'
method: GET
url: /billing-rules
children: []
response:
status: 200 OK
body:
oneTimeCreditBack: false
proratePeriodOfRecurringCharge: true
prorateRecurringWeeklyCharges: true
prorateRecurringMonthlyCharges: true
prorateUsageMonthlyCharges: true
prorateUsageWeeklyCharges: true
daysInMonth: UseActualDays
prorationUnit: ProrateByDay
allowAutoPostBillRun: true
autoPostBillRunDefaultValue: true
includeNegativeInvoice: true
includeChildUsage: true
rateUsageIndividually: true
transactionOnSubscription: true
taxAddressOwner: SubscriptionOwner
takeContactSnapshot: true
taxInclusiveRoundingRule: RoundingNetAmount
legalDocumentGeneratingRule: GroupByOriginalSRPC
recurringChargeStyle: Advanced
preGenerateInvoicePdf: false
timeOfDailyInvoice: 0
notSendZeroItemsForTax: false
taxRateChangeOption: OneTaxItem
availableToCreditValidationLevel: HeaderLevel
invoicePastEndOfTerm: false
billToTermEndWhenAutoRenew: true
zuoraTaxRoundingDiffDispersion: false
- id: '2'
method: GET
url: /accounting-rules
children: []
response:
status: 200 OK
body:
allowBlankAccountingCodes: true
allowCreationInClosedPeriod: true
allowUsageInClosedPeriod: true
allowRevenueScheduleNegativeAmounts: true
differentCurrencies: false
description: OK
schema:
$ref: '#/definitions/SettingsBatchResponse'
/v1/sign-up:
post:
summary: Sign up
description: "This call performs many actions. You can use this operation to\
\ implement the standard requirements for signing up a customer, such as validating\
\ the uniqueness of an account and limiting the number of subscriptions per\
\ account. Also, you can use this operation to create a subscription, generate\
\ an invoice, and collect payment for a new or existing customer. \n\n**Note:**\
\ You need to have the [Orders](https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Orders)\
\ or [Orders Harmonization](https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Orders/Orders_Harmonization)\
\ feature enabled to use this API.\n\nFor a new customer, you can perform\
\ the following tasks in one call. Note that you can skip creating a payment\
\ meethod and still get the subscription and invoice successfully created.\n\
* Create an account\n* Create a payment method\n* Subscribe to a product in\
\ the product catalog and create a subscription\n* Generate an invoice\n*\
\ Collect payment\n\nFor an existing customer, you can use an account identification\
\ field of an external system to specify the account.\n\nYou can make [make\
\ asynchronous requests](https://developer.zuora.com/rest-api/general-concepts/async-requests/)\
\ when using the \"Sign up\" operation.\n"
operationId: POST_SignUp
tags:
- Sign Up
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_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Charge_Metrics_Accept'
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/SignUpRequest'
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
description: 'The Zuora internal identifier of the API call. You cannot
control the value of this header.
'
minLength: 36
maxLength: 36
Zuora-Track-Id:
type: string
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.
'
maxLength: 64
schema:
$ref: '#/definitions/SignUpResponse'
examples:
application/json:
orderNumber: O-00000001
status: Completed
accountNumber: A00000001
accountId: 4028818284f5f8130184f5fe1e9011e8
subscriptionNumber: A-S00000001
subscriptionId: 4028818284f5f8130184f5fe214611f3
invoiceNumber: INV00000001
invoiceId: 4028818284f5f8130184f5fe23b8120c
paymentNumber: P-00000001
paymentId: 4028818284f5f8130184f5fe24b71218
paidAmount: 300.0
success: true
/v1/subscriptions/preview:
post:
summary: Preview a subscription
operationId: POST_PreviewSubscription
description: "The REST API reference describes how to create a new subscription\
\ in preview mode. This call does not require a valid customer account. It\
\ can be used to show potential new customers a preview of a subscription\
\ with complete details and charges before creating an account, or to let\
\ existing customers preview a subscription with all charges before committing.\n\
\n### Notes\n- The response of the Preview Subscription call is based on the\
\ REST API minor version you set in the request header. The response structure\
\ might be different if you use different minor version numbers. \n\n- If\
\ you have the Invoice Settlement feature enabled, we recommend that you set\
\ the `zuora-version` parameter to `207.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ Otherwise, an error is returned.\n\n\n- Default values for **customerAcceptanceDate**\
\ and **serviceActivationDate** are set as follows.\n\n| | serviceActivationDate\
\ (SA) specified | serviceActivationDate (SA) NOT specified |\n\
| ------------- |:-------------:| -----:|\n| customerAcceptanceDate (CA) specified\
\ | SA uses value in the request call; CA uses value in the request call|\
\ CA uses value in the request call;SA uses CE as default |\n| customerAcceptanceDate\
\ (CA) NOT specified | SA uses value in the request call; CA uses SA\
\ as default | SA and CA use CE as default |\n"
tags:
- Subscriptions
parameters:
- $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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. \n\nYou need to set\
\ this parameter if you use the following fields:\n* targetDate\n* includeExistingDraftDocItems\n\
* previewType\n* taxationItems\n\n\nIf you have the Invoice Settlement feature\
\ enabled, you need to specify this parameter. Otherwise, an error is returned.\n\
\n\n. \n"
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTSubscriptionPreviewType'
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
contractedMrr: 100
amount: 100
amountWithoutTax: 90
taxAmount: 10
invoiceTargetDate: '2021-12-31'
invoice:
amount: 100.0
amountWithoutTax: 90.0
taxAmount: 10.0
invoiceItems:
- serviceStartDate: '2021-08-04'
serviceEndDate: '2021-08-31'
chargeAmount: 90
chargeDescription: Recurring Flat Fee Pricing
chargeName: Recurring_Flat Fee Pricing1628472350306
productName: P_1628472348863
productRatePlanChargeId: 402881547b216168017b2884182f12e7
quantity: 1
taxAmount: 10
taxationItems:
- exemptAmount: 0.0
jurisdiction: Country
locationCode: 000-1
name: taxName1
taxAmount: 10
taxCode: TAXCODE-1628472348524123456789012345678901234567890
taxCodeDescription: null
taxDate: '2021-10-08'
taxRateDescription: taxRateDescription1
taxRateType: FlatFee
description: ''
schema:
$ref: '#/definitions/POSTSubscriptionPreviewResponseType'
/v1/subscriptions:
post:
summary: Create a subscription
operationId: POST_Subscription
description: |
This REST API reference describes how to create a new subscription for an existing customer account.
### Notes
If you have the Invoice Settlement feature enabled, it is best practice to set the `zuora-version` parameter to `211.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version). Otherwise, an error occurs.
If `invoiceCollect` is `true`, the call will not return `success` = `true` unless the subscription, invoice, and payment are all successful.
Default values for **customerAcceptanceDate** and **serviceActivationDate** are set as follows. This API operation does not support creating a pending subscription.
| | serviceActivationDate(SA) specified | serviceActivationDate (SA) NOT specified |
| ------------- |:-------------:| -----:|
| 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 |
| customerAcceptanceDate (CA) NOT specified | SA uses value in the request call; CA uses SA as default | SA and CA use CE as default |
tags:
- Subscriptions
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- 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/POSTSubscriptionType'
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
subscriptionId: 402890fc4fa094d5014fa0a4aa78001d
subscriptionNumber: A-S00000041
contractedMrr: 1950
totalContractedValue: 6227.41935465
description: ''
schema:
$ref: '#/definitions/POSTSubscriptionResponseType'
/v1/subscriptions/accounts/{account-key}:
get:
summary: List subscriptions by account key
operationId: GET_SubscriptionsByAccount
description: |
Retrieves all subscriptions associated with the specified account. Zuora only returns the latest version of the subscriptions.
Subscription data is returned in reverse chronological order based on `updatedDate`. Note that the rate plans inside the subscriptions are not sorted specifically and are returned in a random order.
tags:
- Subscriptions
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- name: account-key
in: path
description: |2
Possible values are:
* an account number
* an account ID
required: true
type: string
- name: charge-detail
in: query
description: "The segmented rate plan charges.\n\nWhen an amendment results\
\ in a change to a charge, Zuora creates a segmented rate plan charge. Use\
\ this field to track segment charges.\n\nPossible values are:\n\n* __last-segment__:\
\ (Default) The last rate plan charge on the subscription. The last rate\
\ plan charge is the last one in the order of time on the subscription rather\
\ than the most recent changed charge on the subscription.\n * __current-segment__:\
\ The segmented charge that is active on today\u2019s date (effectiveStartDate\
\ <= today\u2019s date < effectiveEndDate).\n \n * __all-segments__: All\
\ the segmented charges. The `chargeSegments` field is returned in the response.\
\ The `chargeSegments` field contains an array of the charge information\
\ for all the charge segments.\n\n * __specific-segment&as-of-date=date__:\
\ The segmented charge that is active on a date you specified (effectiveStartDate\
\ <= specific date < effectiveEndDate). The format of the date is yyyy-mm-dd.\n"
required: false
type: string
- name: exclude-rate-plans-with-no-charges
in: query
required: false
type: boolean
description: 'If the `exclude-rate-plans-with-no-charges` is `true`, only
the active charges and rate plans will be 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:
subscriptions:
- id: 8a8082c45aa81b51015ad68743ec0fdb
accountId: 8a8082c45aa81b51015ad64396090f5c
accountNumber: A00002641
accountName: ABCD
version: 1
revision: '1.0'
invoiceOwnerAccountId: 8a8082c45aa81b51015ad64396090f5c
invoiceOwnerAccountNumber: A00002641
invoiceOwnerAccountName: ABCD
subscriptionNumber: A-S00007412
termType: TERMED
invoiceSeparately: false
contractEffectiveDate: '2017-01-01'
serviceActivationDate: '2017-01-01'
customerAcceptanceDate: '2017-01-01'
subscriptionStartDate: '2017-01-01'
termStartDate: '2017-01-01'
termEndDate: '2018-01-01'
initialTerm: 12
initialTermPeriodType: Month
currentTerm: 12
currentTermPeriodType: Month
autoRenew: true
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerm: 12
renewalTermPeriodType: Month
currency: USD
contractedMrr: 8.33
totalContractedValue: 100
notes: ''
paymentTerm: Net 30
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: ''
invoiceTemplateId: 2c9081a03c638994013c63978baf002b
invoiceTemplateName: InvoiceTemplateName
sequenceSetId: 6abcc30846de11e990900242ac1f0003
sequenceSetName: DEFAULT
soldToContact:
address1: ''
address2: ''
city: ''
country: null
county: null
fax: ''
firstName: Test
homePhone: ''
id: 2c9081a03c6d7b51013c6d7e46c80a17
lastName: Test
mobilePhone: ''
nickname: ''
otherPhone: ''
otherPhoneType: null
personalEmail: ''
state: ''
taxRegion: null
workEmail: contact@example.com
workPhone: ''
zipCode: ''
status: Active
invoiceScheduleId: ec6f0d5dc8af451ab95343fb3c588c1a
ratePlans:
- id: 8a8082c45aa81b51015ad68744030fe3
productId: 8a8082c45aa81b51015ad5a2d07d0e89
productName: ABC
productSku: SKU-00000987
productRatePlanId: 8a8082c45aa81b51015ad5a473fb0e8d
ratePlanName: RatePlan 1
ratePlanCharges:
- id: 8a8082c45aa81b51015ad68744160fe4
originalChargeId: 8a8082c45aa81b51015ad68744160fe4
productRatePlanChargeId: 8a8082c45aa81b51015ad5a655c00e8f
number: C-00032238
name: Annual Charge
type: Recurring
model: FlatFee
uom: null
version: 1
pricingSummary: USD100
priceChangeOption: NoChange
priceIncreasePercentage: null
currency: USD
price: 100
tiers: null
includedUnits: null
overagePrice: null
discountPercentage: null
discountAmount: null
applyDiscountTo: null
discountLevel: null
discountClass: null
discountApplyDetails: null
billingDay: DefaultFromCustomer
listPriceBase: Per_Billing_Period
billingPeriod: Annual
specificBillingPeriod: null
billingTiming: IN_ADVANCE
billingPeriodAlignment: AlignToCharge
quantity: 1
smoothingModel: null
numberOfPeriods: null
overageCalculationOption: null
overageUnusedUnitsCreditOption: null
unusedUnitsCreditRates: null
usageRecordRatingOption: null
segment: 1
effectiveStartDate: '2017-01-01'
effectiveEndDate: '2018-01-01'
processedThroughDate: null
chargedThroughDate: null
done: false
triggerDate: null
triggerEvent: ContractEffective
endDateCondition: Subscription_End
upToPeriodsType: null
upToPeriods: null
specificEndDate: null
mrr: 8.333333
dmrc: 8.333333
tcv: 100
dtcv: 100
description: ''
invoiceScheduleId: 8a8082c45aa81b51015ad68744240ff5
- id: 8a8082c45aa81b51015ad68744240fe5
originalChargeId: 8a8082c45aa81b51015ad68744240fe5
productRatePlanChargeId: 8a8082c45aa81b51015ad683bc590fd8
number: C-00032239
name: Discount-Fixed 10
type: Recurring
model: DiscountFixedAmount
uom: null
version: 1
pricingSummary: USD10 fixed amount discount
priceChangeOption: null
priceIncreasePercentage: null
currency: USD
price: null
tiers: null
includedUnits: null
overagePrice: null
discountPercentage: null
discountAmount: 10
applyDiscountTo: ONETIMERECURRINGUSAGE
discountLevel: subscription
discountClass: VIP Discount
discountApplyDetails:
- appliedProductRatePlanId: 8a8082c45aa81b51015ad5a473fb0e8d
appliedProductRatePlanChargeId: 8a8082c45aa81b51015ad5a655c00e8f
appliedProductName: ABC
appliedProductRatePlanName: RatePlan 1
appliedProductRatePlanChargeName: Annual Charge
- appliedProductRatePlanId: 8a8082c45aa81b51015ad5a473fb0e8d
appliedProductRatePlanChargeId: 8a8082c45aa81b51015ad5a655c00e8f
appliedProductName: ABC
appliedProductRatePlanName: RatePlan 1
appliedProductRatePlanChargeName: Annual Charge
billingDay: DefaultFromCustomer
listPriceBase: null
billingPeriod: Month
specificBillingPeriod: null
billingTiming: null
billingPeriodAlignment: AlignToCharge
quantity: null
smoothingModel: null
numberOfPeriods: null
overageCalculationOption: null
overageUnusedUnitsCreditOption: null
unusedUnitsCreditRates: null
usageRecordRatingOption: null
segment: 1
effectiveStartDate: '2017-01-01'
effectiveEndDate: '2018-01-01'
processedThroughDate: null
chargedThroughDate: null
done: false
triggerDate: null
triggerEvent: ContractEffective
endDateCondition: Subscription_End
upToPeriodsType: null
upToPeriods: null
specificEndDate: null
mrr: 0
dmrc: 0
tcv: 0
dtcv: 0
description: ''
invoiceScheduleId: 8a8082c45aa81b51015ad68744240ff5
- id: 4028818386ba85070186bab54f99573d
originalChargeId: 4028818386ba85070186bab54f065731
productRatePlanChargeId: 4028818386b61be50186b6293eb30017
number: C-00032240
name: Delivery Charge
type: Recurring
model: Delivery
uom: null
version: 1
subscriptionChargeDeliverySchedule:
frequency: Weekly
monday: false
tuesday: false
wednesday: false
thursday: false
friday: false
saturday: false
sunday: true
dayOfMonth: null
monthOfYear: null
subscriptionChargeIntervalPricing:
- sequence: 1
type: Day
duration: 365
price: 5.0
subscriptionChargeIntervalPriceTiers: []
- sequence: 2
type: Day
duration: 365
price: 7.0
subscriptionChargeIntervalPriceTiers: []
- sequence: 3
type: Infinity
duration: null
price: 9.0
subscriptionChargeIntervalPriceTiers: []
numberOfDeliveries: 52.0
pricingSummary: ''
priceChangeOption: null
priceIncreasePercentage: null
currency: USD
price: 9.0
tiers: null
chargeModelConfiguration: null
inputArgumentId: null
includedUnits: null
overagePrice: null
discountPercentage: null
discountAmount: null
applyDiscountTo: null
discountLevel: null
discountClass: null
discountApplyDetails: null
billingDay: DefaultFromCustomer
listPriceBase: Per_Billing_Period
billingPeriod: Month
specificBillingPeriod: null
billingTiming: IN_ADVANCE
ratingGroup: null
billingPeriodAlignment: AlignToCharge
quantity: 1.0
smoothingModel: null
numberOfPeriods: null
overageCalculationOption: null
overageUnusedUnitsCreditOption: null
unusedUnitsCreditRates: null
usageRecordRatingOption: null
segment: 3
effectiveStartDate: '2024-12-31'
effectiveEndDate: '2026-01-01'
processedThroughDate: null
chargedThroughDate: null
done: false
triggerDate: null
triggerEvent: ContractEffective
endDateCondition: Subscription_End
upToPeriodsType: null
upToPeriods: null
specificEndDate: null
mrr: 38.571428571
dmrc: 38.571428571
tcv: 468.0
dtcv: 468.0
originalOrderDate: '2023-01-01'
amendedByOrderOn: null
description: ''
invoiceScheduleId: 8a8082c45aa81b51015ad68744240ff5
success: true
description: ''
schema:
$ref: '#/definitions/GETSubscriptionWrapper'
/v1/subscriptions/{subscription-key}:
put:
summary: Update a subscription
operationId: PUT_Subscription
description: "Use this call to make the following kinds of changes to a subscription:\n\
\ * Add a note\n * Change the renewal term or auto-renewal flag\n * Change\
\ the term length or change between evergreen and termed\n * Add a new product\
\ rate plan\n * Remove an existing subscription rate plan\n * Change the\
\ quantity or price of an existing subscription rate plan\n * Change rate\
\ plans - to replace the existing rate plans in a subscription with other\
\ rate plans. Changing rate plans is currently not supported for Billing -\
\ Revenue Integration. When Billing - Revenue Integration is enabled, changing\
\ rate plans will no longer be applicable in Zuora Billing.\n\n### Notes\n\
* The \"Update a subscription\" call creates a new subscription object that\
\ has a new version number and to which the subscription changes are applied.\
\ The new subscription object has the same subscription name but a new, different,\
\ subscription ID. The `Status` field of the new subscription object will\
\ be set to `Active` unless the change applied was a cancelation or suspension\
\ in which case the status reflects that. The `Status` field of the originating\
\ subscription object changes from `Active` to `Expired`. A status of `Expired`\
\ does not imply that the subscription itself has expired or ended, merely\
\ that this subscription object is no longer the most recent.\n* In one request,\
\ this call can make:\n * Up to 9 combined add, update, and remove changes\n\
\ * No more than 1 change to terms & conditions\n* Updates are performed\
\ in the following sequence:\n 1. First change the notes on the existing\
\ subscription, if requested.\n 2. Then change the terms and conditions,\
\ if requested.\n 3. Then perform the remaining amendments based upon the\
\ effective dates specified. If multiple amendments have the same contract-effective\
\ dates, then execute adds before updates, and updates before removes.\n*\
\ The update operation is atomic. If any of the updates fails, the entire\
\ operation is rolled back.\n* The response of the Update Subscription call\
\ is based on the REST API minor version you set in the request header. The\
\ response structure might be different if you use different minor version\
\ numbers. \n* If you have the Invoice Settlement feature enabled, it is best\
\ practice to set the `zuora-version` parameter to `211.0` or later [available\
\ versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ Otherwise, an error occurs.\n\n### Override a Tiered Price\nThere are two\
\ ways you override a tiered price:\n\n* Override a specific tier number\n\
For example: `tiers[{tier:1,price:8},{tier:2,price:6}]`\n\n* Override the\
\ entire tier structure\nFor example: `tiers[{tier:1,price:8,startingUnit:1,endingUnit:100,priceFormat:\"\
FlatFee\"},\n{tier:2,price:6,startingUnit:101,priceFormat:\"FlatFee\"}]`\n\
\nIf you just override a specific tier, do not include the `startingUnit`\
\ field in the request.\n"
tags:
- Subscriptions
parameters:
- $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_HEADER_Zuora_Org_Ids'
- name: zuora-version
in: header
required: false
type: string
description: "\nThe minor version of the Zuora REST API. \n\nYou need to set\
\ this parameter if you use the following fields:\n* collect\n* invoice\n\
* includeExistingDraftDocItems\n* previewType\n* runBilling\n* targetDate\n\
* taxationItems\n\n\nIf you have the Invoice Settlement feature enabled,\
\ you need to specify this parameter. Otherwise, an error is returned.\n\
\n\nSee [Zuora REST API Versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions)\
\ for more information.\n"
- name: subscription-key
in: path
required: true
type: string
description: "\nSubscription number or ID. \nID can be the latest version\
\ or any history version of ID. \n* To make sure you update the last version\
\ of the subscription, use one of the following operations to retrieve the\
\ last version of ID:\n * [List subscriptions by account key](https://developer.zuora.com/api-references/api/operation/GET_SubscriptionsByAccount)\n\
\ * [Retrieve a subscription by key](https://developer.zuora.com/api-references/api/operation/GET_SubscriptionsByKey)\
\ by using the subscription number as the subscription-key\n* If you want\
\ to use any history version of ID, the `STABLE_ID_PUBLIC_API` permission\
\ must be enabled. Submit a request at [Zuora Global Support](http://support.zuora.com/)\
\ to enable the permission. To retrieve a history version of ID, use the\
\ [Retrieve a subscription by key and version](https://developer.zuora.com/api-references/api/operation/GET_SubscriptionsByKeyAndVersion)\
\ operation.\n"
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTSubscriptionType'
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
subscriptionId: 4028bb83510f8ed7015114a503cf0373
totalDeltaMrr: 100.0
totalDeltaTcv: 4867.7419355
description: ''
schema:
$ref: '#/definitions/PUTSubscriptionResponseType'
get:
summary: Retrieve a subscription by key
operationId: GET_SubscriptionsByKey
description: 'This REST API reference describes how to retrieve detailed information
about a specified subscription in the latest version.
'
tags:
- Subscriptions
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_HEADER_Zuora_Org_Ids'
- name: subscription-key
in: path
description: |
Possible values are:
* a subscription number
* a subscription ID
required: true
type: string
- name: charge-detail
in: query
description: "\nThe segmented rate plan charges. When an amendment results\
\ in a change to a charge, Zuora creates a segmented rate plan charge. Use\
\ this field to track segment charges.\n\nPossible values are:\n\n * __last-segment__:\
\ (Default) The last rate plan charge on the subscription. The last rate\
\ plan charge is the last one in the order of time on the subscription rather\
\ than the most recent changed charge on the subscription.\n * __current-segment__:\
\ The segmented charge that is active on today\u2019s date (effectiveStartDate\
\ <= today\u2019s date < effectiveEndDate).\n \n * __all-segments__: All\
\ the segmented charges. The `chargeSegments` field is returned in the response.\
\ The `chargeSegments` field contains an array of the charge information\
\ for all the charge segments.\n\n * __specific-segment&as-of-date=date__:\
\ The segmented charge that is active on a date you specified ((specific\
\ date = effectiveStartDate) OR (effectiveStartDate < specific date < effectiveEndDate)).\
\ The format of the date is yyyy-mm-dd.\n"
required: false
type: string
- name: exclude-rate-plans-with-no-charges
in: query
required: false
type: boolean
description: 'If the `exclude-rate-plans-with-no-charges` is `true`, only
the active charges and rate plans will be 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:
success: true
id: 8a8082c45aa81b51015ad68743ec0fdb
accountId: 8a8082c45aa81b51015ad64396090f5c
accountNumber: A00002641
accountName: ABCD
version: 1
revision: '1.0'
invoiceOwnerAccountId: 8a8082c45aa81b51015ad64396090f5c
invoiceOwnerAccountNumber: A00002641
invoiceOwnerAccountName: ABCD
subscriptionNumber: A-S00007412
termType: TERMED
invoiceSeparately: false
contractEffectiveDate: '2017-01-01'
serviceActivationDate: '2017-01-01'
customerAcceptanceDate: '2017-01-01'
subscriptionStartDate: '2017-01-01'
termStartDate: '2017-01-01'
termEndDate: '2018-01-01'
initialTerm: 12
initialTermPeriodType: Month
currentTerm: 12
currentTermPeriodType: Month
autoRenew: true
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerm: 12
renewalTermPeriodType: Month
currency: USD
contractedMrr: 8.33
totalContractedValue: 100
notes: ''
status: Active
paymentTerm: Net 30
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: ''
invoiceTemplateId: 2c9081a03c638994013c63978baf002b
invoiceTemplateName: InvoiceTemplateName
sequenceSetId: 6abcc30846de11e990900242ac1f0003
invoiceScheduleId: ec6f0d5dc8af451ab95343fb3c588c1a
sequenceSetName: DEFAULT
soldToContact:
address1: ''
address2: ''
city: ''
country: null
county: null
fax: ''
firstName: Test
homePhone: ''
id: 2c9081a03c6d7b51013c6d7e46c80a17
lastName: Test
mobilePhone: ''
nickname: ''
otherPhone: ''
otherPhoneType: null
personalEmail: ''
state: ''
taxRegion: null
workEmail: contact@example.com
workPhone: ''
zipCode: ''
ratePlans:
- id: 8a8082c45aa81b51015ad68744030fe3
productId: 8a8082c45aa81b51015ad5a2d07d0e89
productName: ABC
productSku: SKU-00000987
productRatePlanId: 8a8082c45aa81b51015ad5a473fb0e8d
ratePlanName: RatePlan 1
ratePlanCharges:
- id: 8a8082c45aa81b51015ad68744160fe4
originalChargeId: 8a8082c45aa81b51015ad68744160fe4
productRatePlanChargeId: 8a8082c45aa81b51015ad5a655c00e8f
number: C-00032238
name: Annual Charge
type: Recurring
model: FlatFee
uom: null
version: 1
pricingSummary: USD100
priceChangeOption: NoChange
priceIncreasePercentage: null
currency: USD
price: 100
tiers: null
includedUnits: null
overagePrice: null
discountPercentage: null
discountAmount: null
applyDiscountTo: null
discountLevel: null
discountClass: null
discountApplyDetails: null
billingDay: DefaultFromCustomer
listPriceBase: Per_Billing_Period
billingPeriod: Annual
specificBillingPeriod: null
billingTiming: IN_ADVANCE
billingPeriodAlignment: AlignToCharge
quantity: 1
smoothingModel: null
numberOfPeriods: null
overageCalculationOption: null
overageUnusedUnitsCreditOption: null
unusedUnitsCreditRates: null
usageRecordRatingOption: null
segment: 1
effectiveStartDate: '2017-01-01'
effectiveEndDate: '2018-01-01'
processedThroughDate: null
chargedThroughDate: null
done: false
triggerDate: null
triggerEvent: ContractEffective
endDateCondition: Subscription_End
upToPeriodsType: null
upToPeriods: null
specificEndDate: null
mrr: 8.333333
dmrc: 8.333333
tcv: 100
dtcv: 100
description: ''
invoiceScheduleId: 8a8082c45aa81b51015ad68744240ff5
- id: 8a8082c45aa81b51015ad68744240fe5
originalChargeId: 8a8082c45aa81b51015ad68744240fe5
productRatePlanChargeId: 8a8082c45aa81b51015ad683bc590fd8
number: C-00032239
name: Discount-Fixed 10
type: Recurring
model: DiscountFixedAmount
uom: null
version: 1
pricingSummary: USD10 fixed amount discount
priceChangeOption: null
priceIncreasePercentage: null
currency: USD
price: null
tiers: null
includedUnits: null
overagePrice: null
discountPercentage: null
discountAmount: 10
applyDiscountTo: ONETIMERECURRINGUSAGE
discountLevel: subscription
discountClass: VIP Discount
discountApplyDetails:
- appliedProductRatePlanId: 8a8082c45aa81b51015ad5a473fb0e8d
appliedProductRatePlanChargeId: 8a8082c45aa81b51015ad5a655c00e8f
appliedProductName: ABC
appliedProductRatePlanName: RatePlan 1
appliedProductRatePlanChargeName: Annual Charge
billingDay: DefaultFromCustomer
listPriceBase: null
billingPeriod: Month
specificBillingPeriod: null
billingTiming: null
billingPeriodAlignment: AlignToCharge
quantity: null
smoothingModel: null
numberOfPeriods: null
overageCalculationOption: null
overageUnusedUnitsCreditOption: null
unusedUnitsCreditRates: null
usageRecordRatingOption: null
segment: 1
effectiveStartDate: '2017-01-01'
effectiveEndDate: '2018-01-01'
processedThroughDate: null
chargedThroughDate: null
done: false
triggerDate: null
triggerEvent: ContractEffective
endDateCondition: Subscription_End
upToPeriodsType: null
upToPeriods: null
specificEndDate: null
mrr: 0
dmrc: 0
tcv: 0
dtcv: 0
description: ''
invoiceScheduleId: 8a8082c45aa81b51015ad68744240ff5
- id: 4028818386ba85070186bab54f99573d
originalChargeId: 4028818386ba85070186bab54f065731
productRatePlanChargeId: 4028818386b61be50186b6293eb30017
number: C-00032240
name: Delivery Charge
type: Recurring
model: Delivery
uom: null
version: 1
subscriptionChargeDeliverySchedule:
frequency: Weekly
monday: false
tuesday: false
wednesday: false
thursday: false
friday: false
saturday: false
sunday: true
dayOfMonth: null
monthOfYear: null
subscriptionChargeIntervalPricing:
- sequence: 1
type: Day
duration: 365
price: 5.0
subscriptionChargeIntervalPriceTiers: []
- sequence: 2
type: Day
duration: 365
price: 7.0
subscriptionChargeIntervalPriceTiers: []
- sequence: 3
type: Infinity
duration: null
price: 9.0
subscriptionChargeIntervalPriceTiers: []
numberOfDeliveries: 52.0
pricingSummary: ''
priceChangeOption: null
priceIncreasePercentage: null
currency: USD
price: 9.0
tiers: null
chargeModelConfiguration: null
inputArgumentId: null
includedUnits: null
overagePrice: null
discountPercentage: null
discountAmount: null
applyDiscountTo: null
discountLevel: null
discountClass: null
discountApplyDetails: null
billingDay: DefaultFromCustomer
listPriceBase: Per_Billing_Period
billingPeriod: Month
specificBillingPeriod: null
billingTiming: IN_ADVANCE
ratingGroup: null
billingPeriodAlignment: AlignToCharge
quantity: 1.0
smoothingModel: null
numberOfPeriods: null
overageCalculationOption: null
overageUnusedUnitsCreditOption: null
unusedUnitsCreditRates: null
usageRecordRatingOption: null
segment: 3
effectiveStartDate: '2024-12-31'
effectiveEndDate: '2026-01-01'
processedThroughDate: null
chargedThroughDate: null
done: false
triggerDate: null
triggerEvent: ContractEffective
endDateCondition: Subscription_End
upToPeriodsType: null
upToPeriods: null
specificEndDate: null
mrr: 38.571428571
dmrc: 38.571428571
tcv: 468.0
dtcv: 468.0
originalOrderDate: '2023-01-01'
amendedByOrderOn: null
description: ''
invoiceScheduleId: 8a8082c45aa81b51015ad68744240ff5
description: ''
schema:
$ref: '#/definitions/GETSubscriptionTypeWithSuccess'
/v1/subscriptions/{subscription-key}/versions/{version}:
get:
summary: Retrieve a subscription by key and version
operationId: GET_SubscriptionsByKeyAndVersion
description: 'This REST API reference describes how to retrieve detailed information
about a specified subscription in a specified version. When you create a subscription
amendment, you create a new version of the subscription. You can use this
method to retrieve information about a subscription in any version.
'
tags:
- Subscriptions
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_HEADER_Zuora_Org_Ids'
- name: subscription-key
in: path
description: 'Subscription number. For example, A-S00000135.
'
required: true
type: string
- name: version
in: path
description: 'Subscription version. For example, 1.
'
required: true
type: string
- name: charge-detail
in: query
description: "\nThe segmented rate plan charges. When an amendment results\
\ in a change to a charge, Zuora creates a segmented rate plan charge. Use\
\ this field to track segment charges.\n\nPossible values are:\n\n * __last-segment__:\
\ (Default) The last rate plan charge on the subscription. The last rate\
\ plan charge is the last one in the order of time on the subscription rather\
\ than the most recent changed charge on the subscription.\n * __current-segment__:\
\ The segmented charge that is active on today\u2019s date (effectiveStartDate\
\ <= today\u2019s date < effectiveEndDate).\n \n * __all-segments__: All\
\ the segmented charges. The `chargeSegments` field is returned in the response.\
\ The `chargeSegments` field contains an array of the charge information\
\ for all the charge segments.\n\n * __specific-segment&as-of-date=date__:\
\ The segmented charge that is active on a date you specified (effectiveStartDate\
\ <= specific date < effectiveEndDate). The format of the date is yyyy-mm-dd.\n"
required: false
type: string
- name: exclude-rate-plans-with-no-charges
in: query
required: false
type: boolean
description: 'If the `exclude-rate-plans-with-no-charges` is `true`, only
the active charges and rate plans will be 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:
success: true
id: 2c9081a03c63c94c013c687b864e0195
accountId: 2c9081a03c63c94c013c66688a2c00bf
accountNumber: RestAPI
accountName: RestAPI
subscriptionNumber: A-S00000004
version: 1
revision: '1.0'
termType: TERMED
contractEffectiveDate: '2012-02-01'
serviceActivationDate: '2012-02-01'
customerAcceptanceDate: '2012-02-01'
subscriptionStartDate: '2012-02-01'
termStartDate: '2012-02-01'
termEndDate: '2013-02-01'
initialTermPeriodType: Week
currentTerm: 12
currentTermPeriodType: Week
autoRenew: false
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerm: 0
renewalTermPeriodType: Week
currency: USD
contractedMrr: 26.67
totalContractedValue: 404.0
notes: ''
status: Active
invoiceScheduleId: ec6f0d5dc8af451ab95343fb3c588c1a
ratePlans:
- id: 2c9081a03c63c94c013c687b868901a4
productId: 2c9081a03c63c94c013c66499ef0001b
productName: OneTime
productSku: SKU-00000022
productRatePlanId: 2c9081a03c63c94c013c665102e5003a
ratePlanName: OT_Tiered
ratePlanCharges:
- id: 2c9081a03c63c94c013c687b868901a5
originalChargeId: 2c9081a03c63c94c013c687a92d70175
productRatePlanChargeId: 2c9081a03c63c94c013c6651d677003c
number: C-00000010
name: OT_Tiered
type: OneTime
model: Tiered
uom: Each
version: 1
pricingSummary: '0 to 10 Each: USD20 flat fee; 11 Each or more:
USD4/Each'
priceChangeOption: null
priceIncreasePercentage: null
currency: USD
price: null
tiers:
- tier: 1
startingUnit: 0E-9
endingUnit: 10.0
price: 20.0
priceFormat: FlatFee
- tier: 2
startingUnit: 11.0
endingUnit: null
price: 4.0
priceFormat: PerUnit
includedUnits: null
overagePrice: null
discountPercentage: null
discountAmount: null
applyDiscountTo: null
discountLevel: null
billingDay: null
listPriceBase: null
billingPeriod: null
specificBillingPeriod: null
billingTiming: null
billingPeriodAlignment: null
quantity: 11.0
smoothingModel: null
numberOfPeriods: null
overageCalculationOption: null
overageUnusedUnitsCreditOption: null
unusedUnitsCreditRates: null
usageRecordRatingOption: null
segment: 1
effectiveStartDate: '2012-02-01'
effectiveEndDate: '2012-02-02'
processedThroughDate: '2012-02-02'
chargedThroughDate: '2012-02-02'
done: true
triggerDate: null
triggerEvent: ContractEffective
endDateCondition: One_Time
upToPeriodsType: null
upToPeriods: null
specificEndDate: null
mrr: null
dmrc: null
tcv: 24.0
dtcv: 24.0
description: ''
invoiceScheduleId: 8a8082c45aa81b51015ad68744240ff5
description: ''
schema:
$ref: '#/definitions/GETSubscriptionTypeWithSuccess'
/v1/subscriptions/{subscription-key}/renew:
put:
summary: Renew a subscription
operationId: PUT_RenewSubscription
description: "Renews a termed subscription using existing renewal terms. \n\
When you renew a subscription, the current subscription term is extended by\
\ creating a new term. \nIf any charge in your subscription has the billing\
\ period set as `SubscriptionTerm`\uFF0C a new charge segment is generated\
\ for the new term.\n\n\n**Note**: If you have the Invoice Settlement feature\
\ enabled, it is best practice to set the `zuora-version` parameter to `211.0`\
\ or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ Otherwise, an error occurs.\n"
tags:
- Subscriptions
parameters:
- $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_HEADER_Zuora_Org_Ids'
- 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: subscription-key
in: path
required: true
type: string
description: Subscription number or ID
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTRenewSubscriptionType'
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:
termStartDate: '2014-02-01'
success: true
termEndDate: '2014-05-01'
subscriptionId: 2c92c8f83dcbd8b1013dcce0f09100a5
description: ''
schema:
$ref: '#/definitions/PUTRenewSubscriptionResponseType'
/v1/subscriptions/{subscription-key}/cancel:
put:
summary: Cancel a subscription
operationId: PUT_CancelSubscription
description: |
This REST API reference describes how to cancel an active subscription.
**Note**: If you have the Invoice Settlement feature enabled, it is best practice to set the `zuora-version` parameter to `211.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version). Otherwise, an error occurs.
tags:
- Subscriptions
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_HEADER_Zuora_Org_Ids'
- 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: subscription-key
in: path
required: true
type: string
description: Subscription number or ID. Subscription status must be `Active`.
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTSubscriptionCancellationType'
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
subscriptionId: 8a8082c453cd2a620154efc7bba0350e
cancelledDate: '2019-05-31'
totalDeltaMrr: 0
totalDeltaTcv: -703.2258065
invoiceId: 8a8082c453cd2a620153e426c7eb78b3
description: ''
schema:
$ref: '#/definitions/POSTSubscriptionCancellationResponseType'
/v1/subscriptions/{subscription-key}/resume:
put:
summary: Resume a subscription
operationId: PUT_ResumeSubscription
description: "This REST API reference describes how to resume a suspended subscription.\
\ \n\n**Note**: If you have the Invoice Settlement feature enabled, it is\
\ best practice to set the `zuora-version` parameter to `211.0` or later [available\
\ versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ Otherwise, an error occurs.\n"
tags:
- Subscriptions
parameters:
- $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_HEADER_Zuora_Org_Ids'
- 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: subscription-key
in: path
required: true
type: string
description: Subscription number or ID. Subscription status must be Suspended.
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTSubscriptionResumeType'
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
subscriptionId: 8a8082c4539c5bcc0153a752f9c87094
resumeDate: '2019-10-01'
termEndDate: '2020-01-31'
totalDeltaTcv: 396.7741935
description: ''
schema:
$ref: '#/definitions/PUTSubscriptionResumeResponseType'
/v1/subscriptions/{subscription-key}/suspend:
put:
summary: Suspend a subscription
operationId: PUT_SuspendSubscription
description: "This REST API reference describes how to suspend an active subscription.\
\ \n\n**Note**: If you have the Invoice Settlement feature enabled, it is\
\ best practice to set the `zuora-version` parameter to `211.0` or later [available\
\ versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ Otherwise, an error occurs.\n"
tags:
- Subscriptions
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_HEADER_Zuora_Org_Ids'
- 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: subscription-key
in: path
required: true
type: string
description: Subscription number or ID. Subscription status must be Active.
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTSubscriptionSuspendType'
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
subscriptionId: 8a8082c4539c5bcc0153a658a9636fcc
suspendDate: '2019-05-01'
resumeDate: '2016-06-01'
termEndDate: '2020-02-01'
totalDeltaTcv: -896.6666667
invoiceId: 8a8082c453bb061f0153c529bc921b4b
description: ''
schema:
$ref: '#/definitions/PUTSubscriptionSuspendResponseType'
/v1/subscriptions/{subscription-key}/delete:
put:
summary: Delete a subscription by number
operationId: PUT_DeleteSubscription
description: 'This REST API reference describes how to delete a subscription
of the specified subscription number.
'
tags:
- Subscriptions
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_HEADER_Zuora_Org_Ids'
- name: subscription-key
in: path
required: true
type: string
description: 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.
'
examples:
application/json:
success: true
description: ''
schema:
$ref: '#/definitions/PUTDeleteSubscriptionResponseType'
/v1/subscriptions/{subscriptionNumber}/versions/{version}/customFields:
put:
tags:
- Subscriptions
summary: Update subscription custom fields of a subscription version
description: 'Updates the custom fields of a specified subscription version.
'
operationId: PUT_UpdateSubscriptionCustomFieldsOfASpecifiedVersion
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_HEADER_Zuora_Org_Ids'
- name: subscriptionNumber
in: path
description: The subscription number to be updated.
required: true
type: string
format: string
- name: version
in: path
description: The subscription version to be updated.
required: true
type: string
format: string
- name: body
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUTSubscriptionPatchSpecificVersionRequestType'
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/CommonResponseType'
examples:
application/json:
success: true
/v1/journal-entries:
post:
summary: Create a summary journal entry
operationId: POST_SummaryJournalEntry
description: |
This REST API reference describes how to manually create a summary journal entry. Request and response field descriptions and sample code are provided.
### Requirements
1.The sum of debits must equal the sum of credits in the summary journal entry.
2.The following applies only if you use foreign currency conversion:
* If you have configured Aggregate transactions with different currencies during a Journal Run to "Yes", the value of the **currency** field must be the same as your tenant's home currency. That is, you must create journal entries using your home currency.
* All journal entries in an accounting period must either all be aggregated or all be unaggregated. You cannot have a mix of aggregated and unaggregated journal entries in the same accounting period.
tags:
- Summary Journal Entries
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/POSTJournalEntryType'
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
journalEntryNumber: JE-00000001
description: ''
schema:
$ref: '#/definitions/POSTJournalEntryResponseType'
/v1/journal-entries/journal-runs/{jr-number}:
get:
summary: List all summary journal entries in a journal run
operationId: GET_AllSummaryJournalEntries
description: |2
This REST API reference describes how to retrieve information about all summary journal entries in a journal run.
tags:
- Summary Journal Entries
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize_finance_revenue'
- name: jr-number
in: path
description: Journal run 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:
success: true
journalEntries:
- number: JE-00000006
status: Created
journalEntryDate: '2016-12-31'
currency: USD
homeCurrency: USD
aggregateCurrency: true
transactionType: Invoice Item
accountingPeriodName: Dec'16
timePeriodStart: '2016-12-01'
timePeriodEnd: '2016-12-31'
transferredToAccounting: 'No'
notes: note
segments:
- segmentName: Seg1
segmentValue: seg value
journalEntryItems:
- accountingCodeType: AccountsReceivable
accountingCodeName: Accounts Receivable
glAccountName: Accounts Receivable
glAccountNumber: 10-001-000-1234
type: Debit
amount: 100.0
homeCurrencyAmount: 100.0
- accountingCodeType: SalesRevenue
accountingCodeName: Sales Revenue
glAccountName: Sales Revenue
glAccountNumber: 10-001-000-1000
type: Credit
amount: 100.0
homeCurrencyAmount: 100.0
description: ''
schema:
$ref: '#/definitions/GETJournalEntriesInJournalRunType'
/v1/journal-entries/{je-number}:
get:
summary: Retrieve a summary journal entry
operationId: GET_SummaryJournalEntry
description: 'This REST API reference describes how to get information about
a summary journal entry by its journal entry number.
'
tags:
- Summary Journal Entries
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_HEADER_Zuora_Org_Ids'
- name: je-number
in: path
description: ''
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:
number: JE-00000001
status: Created
journalEntryDate: '2016-01-31'
currency: USD
homeCurrency: USD
aggregateCurrency: true
transactionType: Revenue Event Item
accountingPeriodName: Jan'16
timePeriodStart: '2016-01-01'
timePeriodEnd: '2016-01-31'
transferredToAccounting: null
transferredBy: null
transferDateTime: null
notes: null
segments:
- segmentName: Customer Code
segmentValue: A00000001
- segmentName: Charge Type
segmentValue: OneTime
journalEntryItems:
- accountingCodeType: DeferredRevenue
accountingCodeName: Deferred Revenue
glAccountName: null
glAccountNumber: null
type: Debit
homeCurrencyAmount: 424.08
amount: 424.08
- accountingCodeType: SalesRevenue
accountingCodeName: Professional Services Revenue
glAccountName: null
glAccountNumber: null
type: Credit
homeCurrencyAmount: 424.08
amount: 424.08
success: true
description: ''
schema:
$ref: '#/definitions/GETJournalEntryDetailType'
delete:
summary: Delete a summary journal entry
operationId: DELETE_SummaryJournalEntry
description: |
This reference describes how to delete a summary journal entry using the REST API.
You must have the "Delete Cancelled Journal Entry" user permission enabled to delete summary journal entries.
A summary journal entry must be canceled before it can be deleted.
tags:
- Summary Journal Entries
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_HEADER_Zuora_Org_Ids'
- name: je-number
in: path
required: true
type: string
description: Journal entry number in the format JE-00000001.
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/journal-entries/{je-number}/cancel:
put:
summary: Cancel a summary journal entry
operationId: PUT_SummaryJournalEntry
description: "\nThis reference describes how to cancel a summary journal entry\
\ using the REST API.\n \nYou must have the \"Cancel Journal Entry\" user\
\ permission enabled to cancel summary journal entries.\n \nA summary journal\
\ entry cannot be canceled if its Transferred to Accounting status is \"Yes\"\
\ or \"Processing\".\n"
tags:
- Summary Journal Entries
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_HEADER_Zuora_Org_Ids'
- name: je-number
in: path
description: Journal entry number in the format JE-00000001.
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/journal-entries/{je-number}/basic-information:
put:
summary: Update a summary journal entry
operationId: PUT_BasicSummaryJournalEntry
description: |2
This REST API reference describes how to update the basic information of a summary journal entry. Request and response field descriptions and sample code are provided.
tags:
- Summary Journal Entries
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_HEADER_Zuora_Org_Ids'
- name: je-number
in: path
description: Journal entry number in the format JE-00000001.
required: true
type: string
- name: Request
in: body
description: ''
required: true
schema:
$ref: '#/definitions/PUT_BasicSummaryJournalEntryType'
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/taxationitems/{id}:
put:
description: 'Updates a specific taxation item by ID.
'
summary: Update a taxation item
operationId: PUT_TaxationItem
tags:
- Taxation Items
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:
createdById: 402881e522cf4f9b0122cf5d82860002
createdDate: '2017-02-27 18:16:24'
exemptAmount: 0
id: 402890555a7e9791015a7f12364e0004
memoItemId: 402890555a7e9791015a7f1235f50003
sourceTaxItemId: 402890555a7d4022015a7db254e200c1
jurisdiction: CALIFORNIA
locationCode: '06'
name: STATE TAX
taxAmount: 1
taxCode: ServiceTaxCode
taxCodeDescription: This is tax code description!
taxDate: '2016-06-05'
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
updatedById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-02-28 17:53:11'
financeInformation:
onAccountAccountingCode: Check
onAccountAccountingCodeType: Cash
salesTaxPayableAccountingCode: null
salesTaxPayableAccountingCodeType: null
success: true
schema:
$ref: '#/definitions/GETTaxationItemType'
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_HEADER_Zuora_Org_Ids'
- name: body
in: body
required: true
schema:
$ref: '#/definitions/PUTTaxationItemType'
description: ''
- type: string
in: path
name: id
required: true
description: 'The unique ID of a taxation item.
'
get:
description: 'Retrieves the information about a specific taxation item by ID.
'
summary: 'Retrieve a taxation item
'
operationId: GET_TaxationItem
tags:
- Taxation Items
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:
createdById: 402881e522cf4f9b0122cf5d82860002
createdDate: '2017-02-27 11:52:03'
exemptAmount: 0
id: 402890555a7d4022015a7db254e200c8
memoItemId: 402890555a7d4022015a7db254d800c7
sourceTaxItemId: 402890555a7d4022015a7db254e200c1
jurisdiction: null
locationCode: null
name: my tax
taxAmount: 1
taxCode: ZtaxCode
taxCodeDescription: ''
taxDate: '2017-02-27'
taxRate: 5
taxRateDescription: null
taxRateType: FlatFee
updatedById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2017-02-27 11:52:03'
financeInformation:
onAccountAccountingCode: null
onAccountAccountingCodeType: null
salesTaxPayableAccountingCode: null
salesTaxPayableAccountingCodeType: null
success: true
schema:
$ref: '#/definitions/GETTaxationItemType'
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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: id
required: true
description: 'The unique ID of a taxation item.
'
delete:
description: 'Deletes a specific taxation item by ID.
'
summary: Delete a taxation item
operationId: DELETE_TaxationItem
tags:
- Taxation Items
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_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_HEADER_Zuora_Org_Ids'
- type: string
in: path
name: id
required: true
description: 'The unique ID of a taxation item.
'
/v1/usage:
post:
summary: Upload a usage file
operationId: POST_Usage
description: "This REST API reference describes how to post or import usage\
\ data for one or more accounts in the CSV format. There are no path or query\
\ parameters. The data is uploaded using the HTTP multipart/form-data POST\
\ method and applied to the user's tenant. \n\n### How this REST API Call\
\ Works\nThe content of the uploaded usage file must follow the format used\
\ by the UI import tool. It must be a comma-separated (CSV) file with a corresponding\
\ .csv extension. The length of the file name must not exceed 50 characters.\
\ The file size must not exceed 4MB. See [Downloading the Usage Template](https://knowledgecenter.zuora.com/CB_Billing/J_Billing_Operations/Usage/C_Import_Usage_Data#Downloading_the_Usage_Template)\
\ to learn about how to download the usage file template.\n\nAt the completion\
\ of the upload, before the file contents are actually being processed, the\
\ API returns a response containing the byte count of the received file and\
\ a URL for checking the status of the import process. Of the five possible\
\ results displayed at that URL (Pending, Processing, Completed, Canceled,\
\ and Failed) only a Completed status indicates that the import was successful.\
\ The operation is atomic; if any record fails, the file is rejected. In\
\ that case, the entire import is rolled back and all stored data is returned\
\ to its original state.\n\nTo view the actual import status, enter the resulting\
\ status URL from the checkImportStatus response using a tool such as POSTMAN.\
\ This additional step provides more information about why the import has\
\ failed.\n\nTo manage the information after a successful upload, use the\
\ web-based UI.\n\n### Usage File Format\nThe usage file uses the following\
\ headings: \n\n| Heading | Description | Required |\n|-----------------|--------|----------|\n\
| ACCOUNT_ID | Enter the account number, e.g., the default account number,\
\ such as A00000001, or your custom account number. Although this field is\
\ labeled as Account_Id, it is not the actual Account ID nor Account Name.\
\ | Yes |\n| UOM | Enter the unit of measure. This must\
\ match the UOM for the usage. | Yes |\n| QTY | Enter the\
\ quantity. | Yes |\n| STARTDATE | Enter the start date of the\
\ usage. This date determines the invoice item service period the associated\
\ usage is billed to. Date format is based on locale of the current user.\
\ Default date format: `MM/DD/YYYY`. | Yes |\n| ENDDATE | Enter the\
\ end date of the usage. This is not used in calculations for usage billing\
\ and is optional. Date format is based on locale of the current user. Default\
\ date format: `MM/DD/YYYY`. **Note:** The value of this column is optional,\
\ but the column header is required.
| No |\n| SUBSCRIPTION_ID | Enter\
\ the subscription number or subscription name. If you created the subscription\
\ in the Zuora application, Zuora created a number automatically in a format\
\ similar to A-S00000001. If you do not provide a value for this field, the\
\ associated usage will be added to all subscriptions for the specified Account\
\ that use this Unit Of Measure. If your Accounts can have multiple subscriptions\
\ and you do not want double or triple counting of usage, you must specify\
\ the Subscription or Charge ID in each usage record. **Note:** The value\
\ of this column is optional, but the column header is required.
| No\
\ |\n| CHARGE_ID | Enter the charge number (not the charge name).\
\ You can see the charge ID, e.g., C-00000001, when you add your rate plan\
\ to your subscription and view your individual charges. If your Accounts\
\ can have multiple subscriptions and you do not want double or triple counting\
\ of usage, you must specify the specific Subscription or Charge ID in each\
\ usage record. This field is related to the Charge Number on the subscription\
\ rate plan. **Note:** The value of this column is optional, but the column\
\ header is required.
| No |\n| DESCRIPTION | Enter a description\
\ for the charge. | No |\n| UNIQUE_KEY | Enter a specific identifier\
\ for this usage record. **Note**: This Heading is supported by the following\
\ Advanced Consumption Billing features: Prepaid with Drawdown , and Unbilled Usage . See Upload usage record with unique key for more information. | No \
\ |\n"
consumes:
- multipart/form-data
tags:
- Usage
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'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- name: file
in: formData
required: true
type: file
description: 'The usage data to import. The supported formats are excel, csv,
and zip.
'
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
size: 316
checkImportStatus: /v1/usage/2c92c8f83dcbd8b1013dcce1159900cc/status
description: ''
schema:
$ref: '#/definitions/POSTUsageResponseType'
x-code-samples:
- lang: curl
label: Curl
source: 'curl -X POST -H "Authorization: Bearer f21f017e4724445d8647b1f0de7ed6f1"
-F "file=@UsageData.csv" "https://rest.zuora.com/v1/usage"
'
/v1/usage/accounts/{account-key}:
get:
summary: Retrieve a usage record
operationId: GET_Usage
description: 'This REST API reference describes how to retrieve usage details
for an account. Usage data is returned in reverse chronological order.
'
tags:
- Usage
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_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_REQUEST_page'
- $ref: '#/parameters/GLOBAL_REQUEST_pageSize'
- 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:
usage:
- id: 8ad098f08659582c01865cd2a40057a5
accountId: 8ad096ca865969c801865ccbfcb77adf
accountNumber: A00000113
accountName: Song
subscriptionNumber: A-S00000224
chargeNumber: null
unitOfMeasure: Ads
quantity: 100
submissionDateTime: '2023-02-16 16:42:32'
startDateTime: '2023-01-15 00:00:00'
status: Pending
sourceName: Import
state__c: null
City__c: null
ClockTiime__c: null
CheckType__c: null
Timeofday__c: null
totalAmount__c: null
timeOfUse__c: Off-Peak
Size__c: null
network__c: null
Colour__c: null
Meter__c: null
rate__c: null
fileName: UsageFileFormat-178.csv
uniqueKey: '123'
success: true
description: ''
schema:
$ref: '#/definitions/GETUsageWrapper'
/v1/invoices/invoice-item/{invoice-item-id}/usage-rate-detail:
get:
summary: Retrieve usage rate detail for an invoice item
operationId: GET_Usage_Rate_Detail_By_Invoice_Item
description: "Use this REST API operation to retrieve the usage rate detail\
\ for an invoice item to understand how the total amount is calculated. The\
\ information is the same as the Rate Detail presented on [PDF invoices](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/IA_Invoices/Create_a_custom_invoice_template/DD_Display_Usage_Charge_Breakdown#How_UsageSummary.RateDetail_is_displayed_on_invoices).\
\ \n\n**Notes and limitations:**\n- Do not support the Overage Charge Model,\
\ Tiered with Overage Charge Model, and Multi-attribute Pricing Charge Model.\n\
- Do not support invoices in `Cancelled` or `Reversed` status.\n- Do not support\
\ Active rating.\n- In terms of rating group options, only the [Usage rating\
\ by billing period](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Rating/Usage_Rating_by_Group#Usage_rating_by_billing_period)\
\ is supported.\n- Do not support [On-demand usage rating](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Rating/On-demand_Usage_Rating).\
\ \n- Tax calculation is not involved.\n"
tags:
- Usage
parameters:
- $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_HEADER_Zuora_Org_Ids'
- name: invoice-item-id
in: path
description: Invoice item ID. For example, `402880e57f725d85017f7267c4ad002b`.
Available through Data Source export.
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
data:
invoiceId: 402880e57f725d85017f7267c44c0028
invoiceItemId: 402880e57f725d85017f7267c4ad002b
invoiceNumber: INV00000007
chargeNumber: C-00000001
servicePeriod: 03/01/2022-03/31/2022
uom: Each
quantity: 45.0
amountWithoutTax: 58.0
listPrice: |
Tier / From / To / List Price / Price Format
1 / 0 / 9 / 0.00 / Per Unit
2 / 10 / 20 / 1.00 / Per Unit
3 / 21 / 30 / 2.00 / Flat Fee
4 / 31 / / 3.00 / Per Unit
rateDetail: |-
Tier 1: 0-9, 9 Each(s) x $0.00/Each = $0.00
Tier 2: 10-20, 11 Each(s) x $1.00/Each = $11.00
Tier 3: 21-30, $2.00 Flat Fee
Tier 4: >=31, 15 Each(s) x $3.00/Each = $45.00
Total = $58.00
description: ''
schema:
$ref: '#/definitions/GETUsageRateDetailWrapper'
/workflows:
get:
summary: List workflows
operationId: GET_Workflows
description: "Retrieves a list of workflow definitions available in your Zuora\
\ tenant.\n\n### User Access Permission\nYou must be assigned the **Workflow\
\ View Access** permission to run this operation. \n"
tags:
- Workflows
parameters:
- $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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: callout_trigger
in: query
required: false
description: 'If set to true, the operation retrieves workflows that have
the callout trigger enabled. If set to false, the operation retrieves workflows
that have the callout trigger disabled. If not specified, the operation
will not use this filter.
'
type: boolean
- name: interval
in: query
required: false
description: 'A CRON expession that specifies a schedule (for example, `0
0 * * *`). If specified, the operation retrieves the workflow that is run
based on the specified schedule.
'
type: string
- name: name
in: query
required: false
description: 'If specified, the operation retrieves the workflow that is in
the specified name.
'
type: string
- name: ondemand_trigger
in: query
required: false
description: 'If set to true, the operation retrieves workflows that have
the ondemand trigger enabled. If set to false, the operation retrieves workflows
that have the ondemand trigger disabled. If not specified, the operation
will not use this filter.
'
type: boolean
- name: scheduled_trigger
in: query
required: false
type: boolean
description: 'If set to true, the operation retrieves workflows that have
the scheduled trigger enabled. If set to false, the operation retrieves
workflows that have the scheduled trigger disabled. If not specfied, the
operation will not use this filter.
'
- name: page
in: query
required: false
type: integer
default: 1
description: 'If you want to retrieve only the workflows on a specific page,
you can specify the `page` number in the query.
'
- name: page_length
in: query
required: false
type: integer
default: 20
description: 'The number of workflows shown in a single call. If the `page`
parameter is not specified, the operation will return only the first page
of results. If there are multiple pages of results, use it with the `page`
parameter to get the results on subsequent pages. The maximum value is 50.
'
responses:
'200':
description: OK
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/GetWorkflowsResponse'
examples:
application/json:
data:
- id: 48
interval: null
calloutTrigger: true
createdAt: '2019-05-31T14:52:38.171Z'
description: ''
name: New test workflow
ondemandTrigger: true
scheduledTrigger: false
timezone: null
status: Active
updatedAt: '2019-06-03T21:02:26.694Z'
active_version:
id: 49
description: ''
version: 0.0.1
type: Workflow::Setup
status: Active
latest_inactive_verisons:
- id: 50
name: test
description: ''
version: 0.0.2
type: Workflow::Setup
ondemandTrigger: true
calloutTrigger: true
scheduledTrigger: false
interval: ''
timezone: Sydney
createdAt: '2021-09-22T19:30:52.350Z'
updatedAt: '2021-09-22T19:30:52.350Z'
priority: Medium
status: Inactive
- id: 51
name: test
description: ''
version: 0.0.3
type: Workflow::Setup
ondemandTrigger: true
calloutTrigger: true
scheduledTrigger: false
interval: ''
timezone: Sydney
createdAt: '2021-09-22T19:30:52.350Z'
updatedAt: '2021-09-22T19:30:52.350Z'
priority: Medium
status: Inactive
pagination:
page: 1
page_length: 1
next_page: https://rest.zuora.com/workflows?page=2&page_length=1
/workflows/{workflow_id}:
get:
summary: Retrieve a workflow
operationId: GET_Workflow
description: |
Retrieves information about a specific workflow by its ID.
### User Access Permission
You must be assigned the **Workflow View Access** permission to run this operation.
tags:
- Workflows
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: workflow_id
in: path
required: true
description: 'The unique ID of a workflow definition. For example, 19080.
'
type: string
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/WorkflowDefinition'
examples:
application/json:
id: 2
name: test
description: ''
ondemandTrigger: true
calloutTrigger: true
scheduledTrigger: false
interval: ''
timezone: Sydney
createdAt: '2021-09-22T19:30:52.350Z'
updatedAt: '2021-09-22T19:30:52.350Z'
priority: Medium
status: Active
active_version:
id: 49
description: ''
version: 0.0.1
type: Workflow::Setup
status: Active
delete:
summary: Delete a workflow
operationId: DELETE_Workflow
description: |
Deletes a specific workflow by its ID.
### User Access Permission
You must be assigned the **Workflow Manage Access** permission to run this operation.
tags:
- Workflows
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: workflow_id
in: path
required: true
description: 'The unique ID of a workflow definition. For example, 19080.
'
type: string
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/DeleteWorkflowSuccess'
examples:
application/json:
success: true
id: 19080
'404':
description: The workflow for the given id does not exist
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/DeleteWorkflowError'
examples:
application/json:
errors:
- 'Invalid ID / Multiple objects returned - SchemaId: 2 InstanceId:
2 ObjectId: 19080'
patch:
summary: Update a workflow
operationId: PATCH_UpdateWorkflow
description: |
Updates a specific workflow by its ID, which allows you to [configure the settings of a workflow](https://knowledgecenter.zuora.com/CE_Workflow/Using_Workflow/B_Configure_a_Workflow) via API.
### User Access Permission
You must be assigned the **Workflow Manage Access** permission to run this operation.
tags:
- Workflows
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Idempotency_Key'
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- name: workflow_id
in: path
required: true
description: 'The unique ID of a workflow definition. For example, 19080.
'
type: string
- name: request
in: body
schema:
type: object
properties:
name:
type: string
description: 'The name of the workflow definition
'
description:
type: string
description: 'The description of the workflow defintion
'
active_workflow_version_id:
type: integer
description: 'The id of a version. This version will then be set to
the active version of the workflow definition.
'
status:
type: string
description: 'Can be `Active` or `Inactive`. Active workfow definitions
run like normal. Inactive workflow definitions cannot be run.
'
responses:
'200':
description: OK
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/WorkflowDefinition'
examples:
application/json:
id: 2
name: Bill Customers
description: This is my special workflow! It bills everybody
ondemandTrigger: true
calloutTrigger: true
scheduledTrigger: true
interval: 0 0 /1 /1 * *
timezone: Eastern Time (US & Canada)
createdAt: '2021-03-24T19:52:37.254Z'
updatedAt: '2021-04-05T18:35:52.781Z'
priority: Low
status: Inactive
active_version:
id: 49
description: ''
version: 0.0.1
type: Workflow::Setup
status: Active
'404':
description: The workflow for the given id does not exist
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/DeleteWorkflowError'
examples:
application/json:
errors:
- 'Invalid ID / Multiple objects returned - SchemaId: 2 InstanceId:
2 ObjectId: 19080'
'422':
description: |
Bad Request for one of the following reasons:
* The name or description fields are not strings.
* The ondemand_trigger, callout_trigger, or scheduled_trigger fields are not booleans.
* The timezone does not match one of the valid values in [this spread sheet](https://docs.google.com/spreadsheets/d/1skhepi-q5l9LyaMUPZjU_V9gzTphNMqNyV6ST5mygEo/edit?usp=sharing).
* The priority is not one of High, Medium, or Low.
* The status is not one of Active or Inactive.
* The scheduled_trigger is set to true but a valid timezone and interval were not passed.
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/ValidationErrors'
examples:
application/json:
success: false
reasons:
- fieldName: status
title: on is not a valid status. Choose from Active or Inactive
- fieldName: interval
title: The entered cron interval is not valid, rebuild schedule and
submit again.
/workflows/workflow_runs/{workflow_run_id}:
get:
summary: Retrieve a workflow run
operationId: GET_Workflow_Run
description: |
Retrieves information about a specific workflow run by its ID.
### User Access Permission
You must be assigned the **Workflow View Access** permission to run this operation.
tags:
- Workflows
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: workflow_run_id
in: path
required: true
description: 'The unique ID of a workflow run. For example, 19080.
'
type: string
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/GetWorkflowResponse'
examples:
application/json:
id: 19063
name: WF-19027-00000032
originalWorkflowId: 19027
type: Workflow::Instance
status: Finished
tasks:
total: 4
queued: 0
processing: 0
pending: 0
stopped: 0
success: 4
error: 0
runTime: 64.513026
cpuTime: '19:01:04'
finishedAt: 2019-09-10 19:33:34 UTC
createdAt: 2019-09-10 19:32:21 UTC
updatedAt: 2019-09-10 19:33:34 UTC
/workflows/{workflow_id}/run:
post:
summary: Run a workflow
operationId: POST_Run_Workflow
description: |
Run a specified workflow. In the request body, you can include parameters that you want to pass to the workflow. For the parameters to be recognized and picked up by tasks in the workflow, you need to define the parameters first.
**Note**: To run a workflow, do not use the following reserved words in the request body of the parameters.
- `controller`
- `action`
- `id`
- `user_email`
- `user_token`
- `format`
### User Access Permission
You must be assigned the **Workflow Run Access** permission to run this operation.
To learn about how to define parameters, see [Configure the settings of a workflow](https://knowledgecenter.zuora.com/CE_Workflow/Using_Workflow/B_Configure_a_Workflow).
tags:
- Workflows
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: workflow_id
in: path
type: integer
required: true
description: The ID of the workflow definition you want to run.
- in: body
name: inputparameters
description: Include parameters you want to pass to the workflow.
schema:
type: object
example:
paymentId: 4028905f5a87c0ff015a889ddfb800c0
accountId: 4028905f5a87c0ff015a87d25ae90025
responses:
'200':
description: OK
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/WorkflowInstance'
examples:
application/json:
id: 400
name: WF-396-00000003
originalWorkflowId: 396
type: Workflow::Instance
status: Queued
createdAt: 2019-09-19 18:25:33 UTC
updatedAt: 2019-09-19 18:25:33 UTC
'400':
description: Callout not enabled for the workflow
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: object
properties:
errors:
type: array
description: The list of errors returned from the workflow
items:
$ref: '#/definitions/WorkflowError'
examples:
application/json:
errors:
- status: 400
code: invalid
title: Callout mode is not turned on in this workflow.
'409':
description: The provided workflow_id references a workflow instance
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: object
properties:
errors:
type: array
description: The list of errors returned from the workflow
items:
$ref: '#/definitions/WorkflowError'
examples:
application/json:
errors:
- status: 406
code: invalid
title: Workflow WF-396-00000002 with Id 399 is an instance/run.
'406':
description: The provided body is missing one or more required parameters
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: object
properties:
errors:
type: array
description: The list of errors returned from the workflow
items:
$ref: '#/definitions/WorkflowError'
parameters:
description: The request body that was originally provided to the
run API.
examples:
application/json:
errors:
- status: 406
code: invalid
title: Required field for Workflow-Message1 does not have a set value.
Ensure parameter 'Message' is present.
parameters:
workflow: {}
/workflows/{workflow_id}/export:
get:
summary: Export a workflow version
operationId: GET_WorkflowExport
description: |2
Exports a workflow version into a JSON file. This file can be used to create a copy of this workflow version.
### User Access Permission
You must be assigned the **Workflow View Access** permission to run this operation.
tags:
- Workflows
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: workflow_id
type: integer
in: path
required: true
description: The ID of the workflow definition to export.
- name: version
in: query
required: false
description: "Default result is the active version of the workflow definition.\
\ Version number and 'latest' can be used to export a specific version of\
\ the workflow definition. \n"
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: OK
schema:
$ref: '#/definitions/ExportWorkflowVersionResponse'
examples:
application/json:
workflow:
id: 286
name: Call Echo
description: ''
parameters: {}
data: {}
original_workflow_id: null
type: Workflow::Setup
ondemand_trigger: true
callout_trigger: true
scheduled_trigger: false
interval: null
timezone: null
status: null
finished_at: null
css:
top: 40px
left: 30px
notifications: {}
started_at: null
call_type: null
priority: Medium
sync_trigger: false
delete_ttl: 60
task_summary: {}
version: 0.0.1
tasks:
- id: 849
name: Call Echo
parameters:
url: http://scooterlabs.com/echo
datas:
- key: ''
value: ''
method: GET
headers:
- key: ''
value: ''
raw_body: ''
body_type: raw
validation:
zuora_call: 'false'
status_codes:
- ''
- '200'
retry_rules:
retry_count: '0'
retry_window: '30'
current_retry_count: '0'
authorization:
type: none
strict_variables: 'true'
validate_response: 'false'
validation_scheme: ''
include_response_code: 'true'
action_type: Callout
object: null
object_id: null
call_type: SOAP
task_id: null
original_task_id: null
original_workflow_id: null
status: null
error: null
error_details: null
process_id: null
css:
top: 160px
left: 470px
concurrent_limit: 9999999
iterate_row_reference: null
error_class: null
object_batched_reference: null
tags:
- ''
priority: Medium
assignment: []
linkages:
- source_workflow_id: 286
source_task_id: null
target_task_id: 849
linkage_type: Start
'400':
description: The input of version is invalid.
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: object
properties:
errors:
type: array
description: The list of errors returned from the workflow
items:
$ref: '#/definitions/WorkflowError'
examples:
application/json:
errors:
- status: 400
code: invalid
title: The input of version '1' is invalid.
'404':
description: Workflow version is not found.
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: object
properties:
errors:
type: array
description: The list of errors returned from the workflow
items:
$ref: '#/definitions/WorkflowError'
examples:
application/json:
errors:
- status: 400
code: invalid
title: Workflow version '1' is not found.
/workflows/import:
post:
summary: Import a workflow
operationId: POST_WorkflowImport
description: |
Create a new workflow definition and its first version using the exported JSON document of an existing workflow version.
### User Access Permission
You must be assigned the **Workflow Manage Access** permission to run this operation.
tags:
- Workflows
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_Track_Id'
- name: workflow_definition_id
type: integer
in: query
required: false
description: The unique id of the workflow definition to import a workflow
version under.
- name: version
type: string
in: query
required: false
description: The version number of the new workflow version to import. Must
be greater than any existing version numbers.
- name: activate
type: boolean
in: query
required: false
description: Indicates whether the imported version is an active version.
Default to be false.
- name: request
in: body
schema:
$ref: '#/definitions/POSTWorkflowDefinitionImportRequest'
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: OK
schema:
$ref: '#/definitions/Workflow'
examples:
application/json:
id: 403
name: Call Echo
description: ''
type: Workflow::Setup
version: 0.0.1
ondemandTrigger: true
calloutTrigger: true
scheduledTrigger: false
interval: null
timezone: null
createdAt: '2019-10-03T14:14:39.139Z'
updatedAt: '2019-10-03T14:14:39.139Z'
/workflows/{workflow_id}/versions/import:
post:
summary: Import a workflow version
operationId: POST_WorkflowVersionsImport
description: |
Create a new workflow version under a workflow definition using the exported JSON document of an existing workflow version.
### User Access Permission
You must be assigned the **Workflow Manage Access** permission to run this operation.
tags:
- Workflows
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_Track_Id'
- name: workflow_id
type: integer
in: path
required: true
description: The unique id of the workflow definition to import a workflow
version under.
- name: version
type: string
in: query
required: true
description: The version number of the new workflow version to import. Must
be greater than any existing version numbers.
- name: activate
type: boolean
in: query
required: false
description: Indicates whether the imported version is an active version.
Default to be false.
- name: request
in: body
schema:
type: object
properties:
workflow:
$ref: '#/definitions/DetailedWorkflow'
tasks:
type: array
items:
$ref: '#/definitions/Task'
linkages:
type: array
items:
$ref: '#/definitions/Linkage'
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: OK
schema:
$ref: '#/definitions/WorkflowDefinition'
examples:
application/json:
id: 2
name: test
description: ''
ondemandTrigger: true
calloutTrigger: true
scheduledTrigger: false
interval: ''
timezone: Sydney
createdAt: '2021-09-22T19:30:52.350Z'
updatedAt: '2021-09-22T19:30:52.350Z'
priority: Medium
status: Active
active_version:
id: 49
description: ''
version: 0.0.1
type: Workflow::Setup
status: Active
/versions/{version_id}:
delete:
summary: Delete a workflow version
operationId: DELETE_WorkflowVersion
description: "Delete a workflow version based on the version id. \n\n### User\
\ Access Permission\nYou must be assigned the **Workflow Manage Access** permission\
\ to run this operation.\n"
tags:
- Workflows
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: version_id
type: integer
in: path
required: true
description: The unique id of the workflow version.
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: OK
schema:
$ref: '#/definitions/DeleteWorkflowSuccess'
examples:
application/json:
success: true
id: 113
'403':
description: Cannot delete the active version of a workflow.
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/DeleteWorkflowError'
examples:
application/json:
errors:
- code: invalid
status: 403
title: Cannot delete the active version of a workflow.
/workflows/{workflow_id}/versions:
get:
summary: List all versions of a workflow definition
operationId: GET_WorkflowVersions
description: |
Return a list of all workflow versions under a workflow definition
### User Access Permission
You must be assigned the **Workflow View Access** permission to run this operation.
tags:
- Workflows
parameters:
- $ref: '#/parameters/GLOBAL_HEADER_Accept_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Content_Encoding'
- $ref: '#/parameters/GLOBAL_HEADER_Authorization_OAuth'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: workflow_id
type: integer
in: path
required: true
description: The unique id of the workflow definition to import a workflow
version under.
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: OK
schema:
$ref: '#/definitions/GetVersionsResponse'
examples:
application/json:
data:
- calloutTrigger: true
createdAt: '2019-05-31T14:52:38.171Z'
description: ''
id: 48
interval: null
version: 0.0.1
name: New test workflow
ondemandTrigger: true
scheduledTrigger: false
timezone: null
type: Workflow::Setup
updatedAt: '2019-06-03T21:02:26.694Z'
- calloutTrigger: true
createdAt: '2019-05-31T14:52:38.171Z'
description: ''
id: 49
interval: null
version: 0.0.2
name: New test workflow
ondemandTrigger: true
scheduledTrigger: false
timezone: null
type: Workflow::Setup
updatedAt: '2019-06-03T21:02:26.694Z'
/workflows/tasks:
get:
summary: List workflow tasks
operationId: GET_WorkflowsTasks
description: |
Retrieves a list of workflow tasks available in your Zuora tenant.
### User Access Permission
You must be assigned the **Workflow View Access** permission to run this operation.
tags:
- Workflows
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: query
required: false
description: 'If specified, the operation retrieves the task that is with
specified id.
'
type: string
- name: name
in: query
required: false
description: 'If specified, the operation retrieves tasks that is in the specified
name.
'
type: string
- name: instance
in: query
required: false
description: 'If set to true, the operation retrieves workflows that have
the scheduled trigger enabled. If set to false, the operation retrieves
workflows that have the scheduled trigger disabled. If not specfied, the
operation will not use this filter.
'
type: boolean
- name: action_type
in: query
required: false
description: 'If specified, the operation retrieves tasks that is the specified
type.
'
type: string
- name: object
in: query
required: false
description: 'If specified, the operation retrieves tasks with the specified
object.
'
type: string
- name: object_id
in: query
required: false
description: 'If specified, the operation retrieves tasks with the specified
object id.
'
type: string
- name: call_type
in: query
required: false
description: 'If specified, the operation retrieves tasks with the specified
api call type used.
'
type: string
- name: workflow_id
in: query
required: false
description: 'If specified, the operation retrieves tasks that for the specified
workflow id.
'
type: string
- name: tags
in: query
required: false
items:
type: string
description: |
If specified, the operation retrieves tasks that with the specified filter tags. Use the following syntax to specify multiple tags: `tags[]=tag_value_1&tags[]=tag_value_2`.
**Note:** All the workflow tasks that have any of the specified tags will be listed in the response body.
type: array
- name: page
in: query
required: false
type: integer
default: 1
description: 'If you want to retrieve only the workflows on a specific page,
you can specify the `page` number in the query.
'
- name: page_length
in: query
required: false
type: integer
default: 20
description: 'The number of workflow tasks shown in a single call. If the
`page` parameter is not specified, the operation will return only the first
page of results. If there are multiple pages of results, use it with the
`page` parameter to get the results on subsequent pages. The maximum value
is 100.
'
responses:
'200':
description: OK
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/TasksResponse'
examples:
application/json:
data:
- id: 2771
name: If
instance: true
parameters:
if_clause: "{% if 0 > 1 %}\r\nTrue\r\n{% else %}\r\nFalse\r\n{%\
\ endif %}"
strict_variables: 'true'
data:
Files:
XML_52881.xml:
name: JSONData_xslt.xml
size: 0.011725425720214844
object_class: Workflow
Tasks:
Previous:
Id: 2770
Status: Error
ErrorClass: WorkflowError::Callout
ErrorReason: Callout response was 500 after 1 tries.
Callout:
URL: https://rest.apisandbox.zuora.com/v1/action/query
RequestBody:
queryString: Select Id From Contact Where LastName = 'Drew'
AND FirstName = 'Nancy' AND WorkEmail = 'nancy@xyz.com'
ResponseBody:
message: 'An unexpected error occurred
'
ResponseCode: 500
RequestHeaders:
Content-Type: application/json
ResponseHeaders:
x-n:
- S
date:
- Thu, 19 Sep 2019 12:35:43 GMT
pragma:
- no-cache
server:
- kong/0.9.9
expires:
- Thu, 19 Sep 2019 12:35:43 GMT
connection:
- close
content-type:
- text/plain; charset=UTF-8
cache-control:
- max-age=0, no-cache, no-store
Workflow:
LastRunDate: '2019-09-19'
ExecutionDate: '2019-09-19'
LastRunDateTime: '2019-09-19T12:34:41'
WorkflowRunUser: test-user
ExecutionDateTime: '2019-09-19T12:35:37'
action_type: If
object: null
object_id: null
call_type: SOAP
workflow_id: 476
status: Success
start_time: '2019-09-19T12:35:43.857Z'
end_time: '2019-09-19T12:35:43.942Z'
original_task_id: 2582
original_workflow_id: 416
error: null
error_class: null
error_details: null
tags: []
pagination:
page: 1
page_length: 1
next_page: https://rest.zuora.com/workflows/tasks?page=2&page_length=1
/workflows/tasks/{task_id}:
get:
summary: Retrieve a workflow task
operationId: GET_WorkflowsTask
description: |
Retrieves a specific workflow task by its ID.
### User Access Permission
You must be assigned the **Workflow View Access** permission to run this operation.
tags:
- Workflows
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: task_id
in: path
required: true
description: 'The unique ID of the task.
'
type: string
responses:
'200':
description: OK
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/Task'
examples:
application/json:
id: 2771
name: If
instance: true
parameters:
if_clause: "{% if 0 > 1 %}\r\nTrue\r\n{% else %}\r\nFalse\r\n{% endif\
\ %}"
strict_variables: 'true'
data:
Files:
XML_52881.xml:
name: JSONData_xslt.xml
size: 0.011725425720214844
object_class: Workflow
Tasks:
Previous:
Id: 2770
Status: Error
ErrorClass: WorkflowError::Callout
ErrorReason: Callout response was 500 after 1 tries.
Callout:
URL: https://rest.apisandbox.zuora.com/v1/action/query
RequestBody:
queryString: Select Id From Contact Where LastName = 'Drew' AND
FirstName = 'Nancy' AND WorkEmail = 'nancy@xyz.com'
ResponseBody:
message: 'An unexpected error occurred
'
ResponseCode: 500
RequestHeaders:
Content-Type: application/json
ResponseHeaders:
x-n:
- S
date:
- Thu, 19 Sep 2019 12:35:43 GMT
pragma:
- no-cache
server:
- kong/0.9.9
expires:
- Thu, 19 Sep 2019 12:35:43 GMT
connection:
- close
content-type:
- text/plain; charset=UTF-8
cache-control:
- max-age=0, no-cache, no-store
Workflow:
LastRunDate: '2019-09-19'
ExecutionDate: '2019-09-19'
LastRunDateTime: '2019-09-19T12:34:41'
WorkflowRunUser: test-user
ExecutionDateTime: '2019-09-19T12:35:37'
action_type: If
object: null
object_id: null
call_type: SOAP
workflow_id: 476
status: Success
start_time: '2019-09-19T12:35:43.857Z'
end_time: '2019-09-19T12:35:43.942Z'
original_task_id: 2582
original_workflow_id: 416
error: null
error_class: null
error_details: null
tags: []
/workflows/tasks/{task_id}/rerun:
post:
summary: Rerun a workflow task
operationId: POST_WorkflowsTaskRerun
description: |
Reruns a specific workflow task by its ID.
### User Access Permission
You must be assigned the **Workflow Run Access** permission to run this operation.
tags:
- Workflows
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: task_id
in: path
required: true
description: 'The unique ID of the task.
'
type: string
responses:
'200':
description: OK
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/Task'
examples:
application/json:
id: 2771
name: If
instance: true
parameters:
if_clause: "{% if 0 > 1 %}\r\nTrue\r\n{% else %}\r\nFalse\r\n{% endif\
\ %}"
strict_variables: 'true'
data:
Files:
XML_52881.xml:
name: JSONData_xslt.xml
size: 0.011725425720214844
object_class: Workflow
Tasks:
Previous:
Id: 2770
Status: Error
ErrorClass: WorkflowError::Callout
ErrorReason: Callout response was 500 after 1 tries.
Callout:
URL: https://rest.apisandbox.zuora.com/v1/action/query
RequestBody:
queryString: Select Id From Contact Where LastName = 'Drew' AND
FirstName = 'Nancy' AND WorkEmail = 'nancy@xyz.com'
ResponseBody:
message: 'An unexpected error occurred
'
ResponseCode: 500
RequestHeaders:
Content-Type: application/json
ResponseHeaders:
x-n:
- S
date:
- Thu, 19 Sep 2019 12:35:43 GMT
pragma:
- no-cache
server:
- kong/0.9.9
expires:
- Thu, 19 Sep 2019 12:35:43 GMT
connection:
- close
content-type:
- text/plain; charset=UTF-8
cache-control:
- max-age=0, no-cache, no-store
Workflow:
LastRunDate: '2019-09-19'
ExecutionDate: '2019-09-19'
LastRunDateTime: '2019-09-19T12:34:41'
WorkflowRunUser: test-user
ExecutionDateTime: '2019-09-19T12:35:37'
action_type: If
object: null
object_id: null
call_type: SOAP
workflow_id: 476
status: Success
start_time: '2019-09-19T12:35:43.857Z'
end_time: '2019-09-19T12:35:43.942Z'
original_task_id: 2582
original_workflow_id: 416
error: null
error_class: null
error_details: null
tags: []
/workflows/tasks/batch_update:
put:
summary: Update workflow tasks
operationId: PUT_WorkflowsTasksUpdate
description: |
Updates a group of workflow tasks.
### User Access Permission
You must be assigned the **Workflow Manage Access** permission to run this operation.
tags:
- Workflows
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: UpdateRequest
in: body
schema:
$ref: '#/definitions/PutTasksRequest'
responses:
'200':
description: OK
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/TasksResponse'
examples:
application/json:
data:
- id: 2771
name: If
instance: true
parameters:
if_clause: "{% if 0 > 1 %}\r\nTrue\r\n{% else %}\r\nFalse\r\n{%\
\ endif %}"
strict_variables: 'true'
data:
Files:
XML_52881.xml:
name: JSONData_xslt.xml
size: 0.011725425720214844
object_class: Workflow
Tasks:
Previous:
Id: 2770
Status: Error
ErrorClass: WorkflowError::Callout
ErrorReason: Callout response was 500 after 1 tries.
Callout:
URL: https://rest.apisandbox.zuora.com/v1/action/query
RequestBody:
queryString: Select Id From Contact Where LastName = 'Drew'
AND FirstName = 'Nancy' AND WorkEmail = 'nancy@xyz.com'
ResponseBody:
message: 'An unexpected error occurred
'
ResponseCode: 500
RequestHeaders:
Content-Type: application/json
ResponseHeaders:
x-n:
- S
date:
- Thu, 19 Sep 2019 12:35:43 GMT
pragma:
- no-cache
server:
- kong/0.9.9
expires:
- Thu, 19 Sep 2019 12:35:43 GMT
connection:
- close
content-type:
- text/plain; charset=UTF-8
cache-control:
- max-age=0, no-cache, no-store
Workflow:
LastRunDate: '2019-09-19'
ExecutionDate: '2019-09-19'
LastRunDateTime: '2019-09-19T12:34:41'
WorkflowRunUser: test-user
ExecutionDateTime: '2019-09-19T12:35:37'
action_type: If
object: null
object_id: null
call_type: SOAP
workflow_id: 476
status: Success
start_time: '2019-09-19T12:35:43.857Z'
end_time: '2019-09-19T12:35:43.942Z'
original_task_id: 2582
original_workflow_id: 416
error: null
error_class: null
error_details: null
tags: []
pagination:
page: null
page_length: null
'400':
description: |
Bad Request for one of the following reasons:
* Data is missing
* Data is empty or not an array
* Data has more than 50 tasks
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/BadRequestResponse'
examples:
application/json:
errors:
- status: 400
code: Task
title: Data not present or not in array.
'404':
description: One or more tasks are missing the required `id` field
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/BadRequestResponse'
examples:
application/json:
errors:
- status: 404
code: Task
title: Missing ids for tasks.
/workflows/metrics.json:
get:
summary: Retrieve workflow task usage
operationId: GET_WorkflowsUsages
description: "Gets workflow task usage sorted by day within a specified time\
\ frame.\n\n### User Access Permission\nYou must be assigned the **Workflow\
\ View Access** permission to run this operation. \n"
tags:
- Workflows
parameters:
- $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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: startDate
in: query
required: true
description: 'The start date of the usage data that you want to get. For example,
2019-01-01.
'
type: string
format: date
- name: endDate
in: query
required: true
description: 'The end date of the usage data that you want to get. For example,
2019-12-31.
'
type: string
format: date
- name: metrics
in: query
required: true
description: 'The type of metric that you want to get. Currently, only `taskCount`
is supported. `taskCount` is the amount of task runs.
'
type: string
responses:
'200':
description: OK
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/UsagesResponse'
examples:
application/json:
metrics:
- date: '2019-01-16'
values:
taskCount: 1417
- date: '2019-08-02'
values:
taskCount: 24
- date: '2019-05-23'
values:
taskCount: 2
/v1/object/import/{id}:
get:
summary: 'CRUD: Retrieve an import'
operationId: Object_GETImport
description: ''
tags:
- Imports
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: fields
in: query
required: false
type: string
description: Object fields to return
- name: id
in: path
description: Object id
required: true
type: string
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/ProxyGetImport'
'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'
'404':
examples:
application/json:
records: {}
size: 0
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/ProxyNoDataResponse'
/v1/object/import:
post:
summary: 'CRUD: Create an import'
operationId: Object_POSTImport
description: 'Creates a data import.
'
consumes:
- multipart/form-data
tags:
- Imports
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: ImportType
in: formData
required: true
type: string
description: 'The type of data to import.
'
enum:
- Usage
- Payment
- Quote
- TaxationDetail
- UpdateAccountingCode
- CreateRevenueSchedule
- UpdateRevenueSchedule
- DeleteRevenueSchedule
- ImportFXRate
- name: Name
in: formData
required: true
type: string
description: 'A descriptive name for the import.
'
- name: File
in: formData
required: true
type: file
description: 'The data to import.
'
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/ProxyPostImport'
examples:
application/json:
Success: true
Id: 2c92c0f8601fab5701601fee2bf67056
'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'
x-code-samples:
- lang: curl
label: Curl
source: 'curl -X POST -H "Authorization: Bearer f21f017e4724445d8647b1f0de7ed6f1"
-F "ImportType=Usage" -F "Name=UsageData.csv" -F "File=@UsageData.csv" "https://rest.zuora.com/v1/object/import"
'
/v1/object/payment-method-snapshot/{id}:
get:
summary: 'CRUD: Retrieve a payment method snapshot'
operationId: Object_GETPaymentMethodSnapshot
description: |
This REST API reference describes how to retrieve a Payment Method Snapshot.
A Payment Method Snapshot is a copy of the particular Payment Method used in a transaction. If the Payment Method is deleted, the Payment Method Snapshot continues to retain the data used in each of the past transactions.
### Notes
The following Payment Method fields are not available in Payment Method Snapshots:
* `Active`
* `AchAddress1`
* `AchAddress2`
* `CreatedById`
* `CreatedDate`
* `UpdatedById`
* `UpdatedDate`
The Payment Method Snapshot field `PaymentMethodId` is not available in Payment Methods.
tags:
- Payment Method Snapshots
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: fields
in: query
required: false
type: string
description: Object fields to return
- name: id
in: path
description: Object id
required: true
type: string
responses:
'200':
examples:
application/json:
CreditCardExpirationMonth: 12
CreditCardAddress1: 312 2nd Ave W
Id: 2c93808457d787030157e0314f2245d8
CreditCardExpirationYear: 2020
CreditCardCity: Seattle
CreditCardState: Washington
AccountId: 2c93808457d787030157e0314c0945d4
NumConsecutiveFailures: 0
CreditCardType: Visa
BankIdentificationNumber: '411111'
TotalNumberOfProcessedPayments: 0
CreditCardPostalCode: '98119'
CreditCardCountry: United States
PaymentMethodId: 2c93808457d787030157e0314e8145d7
CreditCardMaskNumber: '************1111'
CreditCardHolderName: Somebody
TotalNumberOfErrorPayments: 0
UseDefaultRetryRule: true
Type: CreditCard
PaymentMethodStatus: Active
IdentityNumber: ''
IsCompany: false
CompanyName: ''
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/ProxyGetPaymentMethodSnapshot'
'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'
'404':
examples:
application/json:
records: {}
size: 0
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/ProxyNoDataResponse'
/v1/object/payment-method-transaction-log/{id}:
get:
summary: 'CRUD: Retrieve a payment method transaction log'
operationId: Object_GETPaymentMethodTransactionLog
description: ''
tags:
- Payment Method Transaction Logs
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: fields
in: query
required: false
type: string
description: Object fields to return
- name: id
in: path
description: Object id
required: true
type: string
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/ProxyGetPaymentMethodTransactionLog'
'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'
'404':
examples:
application/json:
records: {}
size: 0
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/ProxyNoDataResponse'
/v1/object/payment-transaction-log/{id}:
get:
summary: 'CRUD: Retrieve a payment transaction log'
operationId: Object_GETPaymentTransactionLog
description: 'Retrieves information about a specific payment transaction log.
'
tags:
- Payment Transaction Logs
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
description: 'The ID of a payment transaction log.
'
required: true
type: string
responses:
'200':
examples:
application/json:
GatewayReasonCodeDescription: This transaction has been approved by
Test gateway.
Id: 2c93808457d787030157e030b2703dcd
PaymentId: 2c93808457d787030157e030b2673dcc
TransactionId: '874200.071357285'
GatewayState: Submitted
TransactionDate: '2016-10-20T05:44:30.000+02:00'
Gateway: TEST gateway name1476935063101
GatewayReasonCode: approve
GatewayTransactionType: Sale
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/ProxyGetPaymentTransactionLog'
'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'
'404':
examples:
application/json:
records: {}
size: 0
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/ProxyNoDataResponse'
/v1/object/product:
post:
summary: 'CRUD: Create a product'
operationId: Object_POSTProduct
description: ''
tags:
- Products
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_Org_Ids'
- $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/ProxyCreateProduct'
responses:
'200':
examples:
application/json:
Success: true
Id: 2c93808457d787030157e03246ae5129
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/ProxyCreateOrModifyResponse'
'400':
examples:
application/json:
Errors:
- Code: INVALID_VALUE
Message: The account number 123xProxy is invalid.
Success: false
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/ProxyBadRequestResponse'
'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/object/product/{id}:
get:
summary: 'CRUD: Retrieve a product'
operationId: Object_GETProduct
description: ''
tags:
- Products
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version'
- name: fields
in: query
required: false
type: string
description: Object fields to return
- name: id
in: path
description: Object id
required: true
type: string
responses:
'200':
examples:
application/json:
Id: 2c93808457d787030157e02e7be22210
CreatedById: 2c93808457d787030157e02e62af2097
CreatedDate: '2016-10-20T05:42:05.000+02:00'
UpdatedDate: '2016-10-20T05:42:05.000+02:00'
SKU: API-SKU1476934925293
EffectiveStartDate: '1966-10-20'
UpdatedById: 2c93808457d787030157e02e62af2097
Name: P_1476934925293_new
EffectiveEndDate: '2066-10-20'
Description: Create product via API_new
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/ProxyGetProduct'
'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'
'404':
examples:
application/json:
records: {}
size: 0
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/ProxyNoDataResponse'
put:
summary: 'CRUD: Update a product'
operationId: Object_PUTProduct
description: ''
tags:
- Products
parameters:
- $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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version'
- name: id
in: path
description: Object id
required: true
type: string
- name: ModifyRequest
in: body
description: ''
required: true
schema:
$ref: '#/definitions/ProxyModifyProduct'
responses:
'200':
examples:
application/json:
Success: true
Id: 2c93808457d787030157e02e7be22210
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/ProxyCreateOrModifyResponse'
'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'
delete:
summary: 'CRUD: Delete a product'
operationId: Object_DELETEProduct
description: ''
tags:
- Products
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
description: Object id
required: true
type: string
responses:
'200':
examples:
application/json:
success: true
id: 2c93808457d787030157e02e7a22220e
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/ProxyDeleteResponse'
'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/object/product-rate-plan:
post:
summary: 'CRUD: Create a product rate plan'
operationId: Object_POSTProductRatePlan
description: 'Retrieves a product rate plan.
'
tags:
- Product Rate Plans
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_Org_Ids'
- $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/ProxyCreateProductRatePlan'
responses:
'200':
examples:
application/json:
Success: true
Id: 2c93808457d787030157e0324735512b
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/ProxyCreateOrModifyResponse'
'400':
examples:
application/json:
Errors:
- Code: INVALID_VALUE
Message: The account number 123xProxy is invalid.
Success: false
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/ProxyBadRequestResponse'
'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/object/product-rate-plan/{id}:
get:
summary: 'CRUD: Retrieve a product rate plan'
operationId: Object_GETProductRatePlan
description: 'Retrieves a product rate plan.
'
tags:
- Product Rate Plans
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version'
- name: fields
in: query
required: false
type: string
description: Object fields to return
- name: id
in: path
description: Object id
required: true
type: string
responses:
'200':
examples:
application/json:
ProductId: 2c93808457d787030157e02da0231850
Id: 2c93808457d787030157e02da0d91852
CreatedById: 2c93808457d787030157e02d84c116d5
CreatedDate: '2016-10-20T05:41:09.000+02:00'
UpdatedDate: '2016-10-20T05:41:09.000+02:00'
EffectiveStartDate: '1966-10-20'
UpdatedById: 2c93808457d787030157e02d84c116d5
Name: ProductRatePlan1476934869186_new
EffectiveEndDate: '2066-10-20'
Description: Test create product rateplan via API
Grade: 3
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/ProxyGetProductRatePlan'
'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'
'404':
examples:
application/json:
records: {}
size: 0
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/ProxyNoDataResponse'
put:
summary: 'CRUD: Update a product rate plan'
operationId: Object_PUTProductRatePlan
description: 'Updates a product rate plan.
'
tags:
- Product Rate Plans
parameters:
- $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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version'
- name: id
in: path
description: Object id
required: true
type: string
- name: ModifyRequest
in: body
description: ''
required: true
schema:
$ref: '#/definitions/ProxyModifyProductRatePlan'
responses:
'200':
examples:
application/json:
Success: true
Id: 2c93808457d787030157e02da0d91852
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/ProxyCreateOrModifyResponse'
'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'
delete:
summary: 'CRUD: Delete a product rate plan'
operationId: Object_DELETEProductRatePlan
description: 'Deletes a product rate plan.
'
tags:
- Product Rate Plans
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
description: Object id
required: true
type: string
responses:
'200':
examples:
application/json:
success: true
id: 2c93808457d787030157e02d9dde184f
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/ProxyDeleteResponse'
'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/object/product-rate-plan-charge:
post:
summary: 'CRUD: Create a product rate plan charge'
operationId: Object_POSTProductRatePlanCharge
description: "Creates a product rate plan charge for a specified rate plan charge.\
\ \n\nProduct rate plan charges can be of three types, one-time fees, recurring\
\ fees, and usage fees. \n"
tags:
- Product Rate Plan Charges
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_Org_Ids'
- $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/ProxyCreateProductRatePlanCharge'
responses:
'200':
examples:
application/json:
Success: true
Id: 2c93808457d787030157e03197714910
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/ProxyCreateOrModifyResponse'
'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/object/product-rate-plan-charge/{id}:
get:
summary: 'CRUD: Retrieve a product rate plan charge'
operationId: Object_GETProductRatePlanCharge
description: ''
tags:
- Product Rate Plan Charges
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version'
- name: fields
in: query
required: false
type: string
description: Object fields to return
- name: id
in: path
description: 'The unique ID of a product rate plan charge to be retrieved.
For example, 2c93808457d787030157e031fcd34e19.
'
required: true
type: string
responses:
'200':
examples:
application/json:
PriceChangeOption: NoChange
IncludedUnits: 0
OverageCalculationOption: EndOfSmoothingPeriod
Id: 2c93808457d787030157e032002b4e21
AccountingCode: name_1476935155610
BillCycleDay: 1
BillingPeriod: Month
OverageUnusedUnitsCreditOption: NoCredit
CreatedById: 2c93808457d787030157e031dd264c85
RecognizedRevenueAccount: name_1476935155610
ChargeType: Recurring
BillCycleType: DefaultFromCustomer
DefaultQuantity: 1
UpToPeriodsType: Billing Periods
ProductRatePlanId: 2c93808457d787030157e031ff054e1e
Taxable: false
Description: Recurring Flat Fee Pricing
LegacyRevenueReporting: false
ChargeModel: Flat Fee Pricing
NumberOfPeriod: 1
BillingTiming: In Advance
PriceIncreasePercentage: 0
CreatedDate: '2016-10-20T05:45:55.000+02:00'
DeferredRevenueAccount: name_1476935155610
UpdatedById: 2c93808457d787030157e031dd264c85
Name: Recurring_Flat Fee Pricing1476935155610
ListPriceBase: Per Billing Period
EndDateCondition: SubscriptionEnd
TriggerEvent: ContractEffective
BillingPeriodAlignment: AlignToCharge
RevenueRecognitionRuleName: Recognize upon invoicing
UseTenantDefaultForPriceChange: true
UpdatedDate: '2016-10-20T05:45:55.000+02:00'
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/ProxyGetProductRatePlanCharge'
'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'
'404':
examples:
application/json:
records: {}
size: 0
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/ProxyNoDataResponse'
put:
summary: 'CRUD: Update a product rate plan charge'
operationId: Object_PUTProductRatePlanCharge
description: 'Updates the information about a product rate plan charge.
'
tags:
- Product Rate Plan Charges
parameters:
- $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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- $ref: '#/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version'
- name: ModifyRequest
in: body
description: ''
required: true
schema:
$ref: '#/definitions/ProxyModifyProductRatePlanCharge'
- name: id
in: path
description: 'The unique ID of the product rate plan charge to be updated.
For example, 2c93808457d787030157e031fcd34e19.
'
required: true
type: string
responses:
'200':
examples:
application/json:
Success: true
Id: 2c93808457d787030157e03197714910
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/ProxyCreateOrModifyResponse'
'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'
'404':
examples:
application/json:
records: {}
size: 0
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/ProxyNoDataResponse'
delete:
summary: 'CRUD: Delete a product rate plan charge'
operationId: Object_DELETEProductRatePlanCharge
description: 'Deletes a product rate plan charge.
'
tags:
- Product Rate Plan Charges
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
description: 'The unique ID of the product rate plan charge to be deleted.
For example, 2c93808457d787030157e031fcd34e19.
'
required: true
type: string
responses:
'200':
examples:
application/json:
success: true
id: 2c93808457d787030157e031fcd34e19
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/ProxyDeleteResponse'
'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/object/product-rate-plan-charge-tier/{id}:
get:
summary: 'CRUD: Retrieve a product rate plan charge tier'
operationId: Object_GETProductRatePlanChargeTier
description: ''
tags:
- Product Rate Plan Charge Tiers
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: fields
in: query
required: false
type: string
description: Object fields to return
- name: id
in: path
description: Object id
required: true
type: string
responses:
'200':
examples:
application/json:
UpdatedById: 2c93808457d787030157e02fd0f132a4
CreatedById: 2c93808457d787030157e02fd0f132a4
CreatedDate: '2016-10-20T05:43:38.000+02:00'
UpdatedDate: '2016-10-20T05:43:38.000+02:00'
StartingUnit: 0
Currency: USD
EndingUnit: 0
Id: 2c93808457d787030157e02fe725341f
PriceFormat: Flat Fee
Tier: 1
Price: 30
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/ProxyGetProductRatePlanChargeTier'
'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'
'404':
examples:
application/json:
records: {}
size: 0
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/ProxyNoDataResponse'
put:
summary: 'CRUD: Update a product rate plan charge tier'
operationId: Object_PUTProductRatePlanChargeTier
description: |
Updates the price of a product rate plan charge tier.
To make other updates to product rate plan charge tiers, use [CRUD: Update a product rate plan charge](https://developer.zuora.com/api-references/api/operation/Object_PUTProductRatePlanCharge) and specify `ProductRatePlanChargeTierData` in the request body.
tags:
- Product Rate Plan Charge Tiers
parameters:
- $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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: ModifyRequest
in: body
description: ''
required: true
schema:
$ref: '#/definitions/ProxyModifyProductRatePlanChargeTier'
- name: id
in: path
description: 'The unique ID of the product rate plan charge tier to be updated.
For example, 2c92c0f86c85891e016c88d55a6e543b.
'
required: true
type: string
responses:
'200':
examples:
application/json:
Success: true
Id: 2c92c0f86c85891e016c88d55a6e543b
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/ProxyCreateOrModifyResponse'
'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/object/taxation-item:
post:
summary: 'CRUD: Create a taxation item'
operationId: Object_POSTTaxationItem
description: ''
tags:
- Taxation Items
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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: CreateRequest
in: body
description: ''
required: true
schema:
$ref: '#/definitions/ProxyCreateTaxationItem'
responses:
'200':
examples:
application/json:
Success: true
Id: 2c93808457d787030157e0306f413a96
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/ProxyCreateOrModifyResponse'
'400':
examples:
application/json:
Errors:
- Code: INVALID_VALUE
Message: The account number 123xProxy is invalid.
Success: false
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/ProxyBadRequestResponse'
'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/object/usage:
post:
summary: 'CRUD: Create a usage record'
operationId: Object_POSTUsage
description: ''
tags:
- Usage
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_Org_Ids'
- $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/ProxyCreateUsage'
responses:
'200':
examples:
application/json:
Success: true
Id: 2c93808457d787030157e02e0a301d0a
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/ProxyCreateOrModifyResponse'
'400':
examples:
application/json:
Errors:
- Code: INVALID_VALUE
Message: The account number 123xProxy is invalid.
Success: false
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/ProxyBadRequestResponse'
'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/object/usage/{id}:
get:
summary: 'CRUD: Retrieve a usage record'
operationId: Object_GETUsage
description: ''
tags:
- Usage
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: fields
in: query
required: false
type: string
description: Object fields to return
- name: id
in: path
description: Object id
required: true
type: string
responses:
'200':
examples:
application/json:
AccountNumber: A00000030
Id: 2c92c0f86bf50ca0016c040309316ca4
ChargeNumber: C-00000229
StartDateTime: '2017-12-01T23:41:36.000+08:00'
SubscriptionId: 2c92c0f956bc8fcb0156d5039e0a5aa0
ChargeId: 2c92c0f956bc8fcb0156d5039e275aa9
AccountId: 2c92c0f956bc8fb40156d502fc3718b1
Quantity: 9
Description: test
SubscriptionNumber: A-S00000100
CreatedById: 2c92c0f958fffd7d015914aeefc71a5d
CreatedDate: '2019-07-18T15:36:43.000+08:00'
RbeStatus: Pending
SubmissionDateTime: '2019-07-18T15:36:43.000+08:00'
SourceType: API
UOM: Each
UpdatedDate: '2019-07-18T15:36:43.000+08:00'
UpdatedById: 2c92c0f958fffd7d015914aeefc71a5d
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/ProxyGetUsage'
'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'
'404':
examples:
application/json:
records: {}
size: 0
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/ProxyNoDataResponse'
put:
summary: 'CRUD: Update a usage record'
operationId: Object_PUTUsage
description: ''
tags:
- Usage
parameters:
- $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_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
description: Object id
required: true
type: string
- name: ModifyRequest
in: body
description: ''
required: true
schema:
$ref: '#/definitions/ProxyModifyUsage'
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/ProxyCreateOrModifyResponse'
'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'
delete:
summary: 'CRUD: Delete a usage record'
operationId: Object_DELETEUsage
description: ''
tags:
- Usage
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_Entity_Ids_Single'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Org_Ids'
- $ref: '#/parameters/GLOBAL_HEADER_Zuora_Track_Id'
- name: id
in: path
description: Object id
required: true
type: string
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/ProxyDeleteResponse'
'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'
definitions:
Account:
allOf:
- description: 'The information of the new account to be created with the order.
Note that this actually specifies the invoice owner account of the subscriptions
included in this order. To create the new account, either a **creditCard**
structure or the **hpmCreditCardPaymentMethodId** field (but not both) should
be provided. The one provided becomes the default payment method for this
account. If the credit card information is declined or can''t be verified,
then the account is not created.
'
properties:
accountNumber:
maxLength: 70
type: string
additionalEmailAddresses:
description: 'List of additional email addresses to receive emailed invoices.
Values should be a comma-separated list of email addresses.
'
maxLength: 1200
type: string
allowInvoiceEdit:
description: "Indicates if associated invoices can be edited.\nValues are:\
\ \n\n* `true`\n* `false` (default)\n"
type: boolean
autoPay:
description: Specifies whether future payments are to be automatically billed
when they are due. Possible values are `true`, `false`.
type: boolean
batch:
description: '**Note**: By default, you have 50 configurable account batches.
To increase the limit to 200 batches, you must have the Performance Booster Elite package.
'
type: string
billCycleDay:
description: Day of the month that the account prefers billing periods to
begin on. If set to 0, the bill cycle day will be set as "AutoSet".
maximum: 31
minimum: 0
type: integer
billToContact:
$ref: '#/definitions/BillToContactPostOrder'
communicationProfileId:
type: string
creditCard:
$ref: '#/definitions/creditCard'
creditMemoTemplateId:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
The unique ID of the credit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08a6246fdf101626b1b3fe0144b.
type: string
crmId:
maxLength: 100
type: string
currency:
description: |
3 uppercase character currency code.
For payment method authorization, if the `paymentMethod` > `currencyCode` field is specified, `currencyCode` is used. Otherwise, this `currency` field is used for payment method authorization. If no currency is specified for the account, the default currency of the account is then used.
type: string
customFields:
$ref: '#/definitions/AccountObjectCustomFields'
customerServiceRepName:
description: 'Name of the account''s customer service representative, if
applicable.
'
maxLength: 50
type: string
debitMemoTemplateId:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
The unique ID of the debit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08d62470a8501626b19d24f19e2.
type: string
hpmCreditCardPaymentMethodId:
description: |
The ID of the payment method associated with this account. The payment method specified for this field will be set as the default payment method of the account.
If the `autoPay` field is set to `true`, you must provide the credit card payment method ID for either this field or the `creditCard` field,
but not both.
For the Credit Card Reference Transaction payment method, you can specify the payment method ID in this field or use the `paymentMethod` field to create a CC Reference Transaction payment method for an account.
type: string
invoiceDeliveryPrefsEmail:
description: "Specifies whether to turn on the invoice delivery method 'Email'\
\ for the new account. \nValues are: \n\n* `true` (default). Turn on the\
\ invoice delivery method 'Email' for the new account.\n* `false`. Turn\
\ off the invoice delivery method 'Email' for the new account.\n"
type: boolean
invoiceDeliveryPrefsPrint:
description: "Specifies whether to turn on the invoice delivery method 'Print'\
\ for the new account.\nValues are: \n\n* `true`. Turn on the invoice\
\ delivery method 'Print' for the new account.\n* `false` (default). Turn\
\ off the invoice delivery method 'Print' for the new account.\n"
type: boolean
invoiceTemplateId:
type: string
name:
maxLength: 255
type: string
notes:
maxLength: 65535
type: string
organizationLabel:
description: "Name of the organization that the account belongs to. \n\n\
This field is only required when you have already turned on Multi-Org\
\ feature. \n"
type: string
parentId:
description: Identifier of the parent customer account for this Account
object. Use this field if you have Customer Hierarchy enabled.
type: string
partnerAccount:
default: false
description: "Whether the customer account is a partner, distributor, or\
\ reseller. \n\n\nYou can set this field to `true` if you have business\
\ with distributors or resellers, or operating in B2B model to manage\
\ numerous subscriptions through concurrent API requests. After this field\
\ is set to `true`, the calculation of account metrics is performed asynchronously\
\ during operations such as subscription creation, order changes, invoice\
\ generation, and payments.\n\n\n**Note**: This field is available only\
\ if you have the Reseller Account feature enabled.\n"
type: boolean
paymentGateway:
maxLength: 40
type: string
paymentMethod:
$ref: '#/definitions/PostOrderAccountPaymentMethod'
paymentTerm:
description: '**Note**: If you want to specify a payment term when creating
a new account, you must set a value in this field. If you do not set a
value in this field, Zuora will use `Due Upon Receipt` as the value instead
of the default value set in **Billing Settings** > **Payment Terms** from
Zuora UI.
'
type: string
purchaseOrderNumber:
description: 'The number of the purchase order associated with this account.
Purchase order information generally comes from customers.
'
maxLength: 100
type: string
salesRep:
description: 'The name of the sales representative associated with this
account, if applicable.
'
maxLength: 50
type: string
sequenceSetId:
description: "The ID of the sequence set to assign to the customer account.\
\ \n\nThe billing documents to generate for this account will adopt the\
\ prefix and starting document number configured in the sequence set.\n"
type: string
soldToContact:
$ref: '#/definitions/SoldToContactPostOrder'
soldToSameAsBillTo:
description: "Whether the sold-to contact and bill-to contact are the same\
\ entity. \n\nThe created account has the same bill-to contact and sold-to\
\ contact entity only when all the following conditions are met in the\
\ request body:\n\n- This field is set to `true`. \n- A bill-to contact\
\ is specified.\n- No sold-to contact is specified.\n"
type: boolean
taxInfo:
$ref: '#/definitions/TaxInfo'
required:
- name
- currency
- billCycleDay
- billToContact
type: object
- $ref: '#/definitions/DataAccessControlField'
AccountCreditCardHolder:
description: 'Information about the cardholder of a credit card payment method
associated with an account. If you do not provide information about the cardholder,
Zuora uses the account''s bill-to contact.
'
properties:
addressLine1:
description: 'First line of the cardholder''s address.
'
maxLength: 255
type: string
addressLine2:
description: 'Second line of the cardholder''s address.
'
maxLength: 255
type: string
cardHolderName:
description: 'Full name of the cardholder as it appears on the card. For example,
"John J Smith".
'
maxLength: 50
type: string
city:
description: |
City of the cardholder's address.
It is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.
maxLength: 40
type: string
country:
description: |
Country of the cardholder's address. The value of this field must be a valid country name or abbreviation.
It is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.
maxLength: 64
type: string
email:
description: 'Email address of the cardholder.
'
maxLength: 80
type: string
phone:
description: 'Phone number of the cardholder.
'
maxLength: 40
type: string
state:
description: 'State or province of the cardholder''s address.
'
maxLength: 50
type: string
zipCode:
description: 'ZIP code or other postal code of the cardholder''s address.
'
maxLength: 20
type: string
type: object
AccountData:
description: 'The information of the account that you are to create through the
"Sign up" operation.
'
properties:
accountNumber:
maxLength: 70
type: string
autoPay:
description: Specifies whether future payments are to be automatically billed
when they are due. Possible values are `true`, `false`.
type: boolean
batch:
description: '**Note**: By default, you have 50 configurable account batches.
To increase the limit to 200 batches, you must have the Performance Booster Elite package.
'
type: string
billCycleDay:
description: Day of the month that the account prefers billing periods to
begin on. If set to 0, the bill cycle day will be set as "AutoSet".
maximum: 31
minimum: 0
type: integer
billToContact:
$ref: '#/definitions/ContactInfo'
communicationProfileId:
type: string
creditMemoTemplateId:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
The unique ID of the credit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08a6246fdf101626b1b3fe0144b.
type: string
crmId:
maxLength: 100
type: string
currency:
description: |
3 uppercase character currency code.
For payment method authorization, if the `paymentMethod` > `currencyCode` field is specified, `currencyCode` is used. Otherwise, this `currency` field is used for payment method authorization. If no currency is specified for the account, the default currency of the account is then used.
type: string
customFields:
$ref: '#/definitions/CustomFields'
debitMemoTemplateId:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
The unique ID of the debit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08d62470a8501626b19d24f19e2.
type: string
invoiceTemplateId:
type: string
name:
maxLength: 255
type: string
notes:
maxLength: 65535
type: string
paymentMethod:
$ref: '#/definitions/SignUpPaymentMethod'
paymentTerm:
type: string
purchaseOrderNumber:
description: 'The number of the purchase order associated with this account.
Purchase order information generally comes from customers.
'
maxLength: 100
type: string
sequenceSetId:
description: "The ID of the billing document sequence set to assign to the\
\ customer account. \n\nThe billing documents to generate for this account\
\ will adopt the prefix and starting document number configured in the sequence\
\ set.\n"
type: string
soldToContact:
$ref: '#/definitions/ContactInfo'
taxInfo:
$ref: '#/definitions/SignUpTaxInfo'
required:
- billCycleDay
- billToContact
- currency
- name
type: object
AccountObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Account object. The name of each custom field
has the form *customField*__c
. Custom field names are case sensitive.
See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of an Account object.
'
title: accountFieldsCustom
type: object
AccountObjectNSFields:
description: 'Container for Account fields provided by the [Zuora Connector for
NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
properties:
Class__NS:
description: 'Value of the Class field for the corresponding customer account
in NetSuite. Only available if you have installed the [Zuora Connector for
NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
CustomerType__NS:
description: 'Value of the Customer Type field for the corresponding customer
account in NetSuite. The Customer Type field is used when the customer account
is created in NetSuite. Only available if you have installed the [Zuora
Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
enum:
- Company
- Individual
type: string
Department__NS:
description: 'Value of the Department field for the corresponding customer
account in NetSuite. Only available if you have installed the [Zuora Connector
for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IntegrationId__NS:
description: 'ID of the corresponding object in NetSuite. Only available if
you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IntegrationStatus__NS:
description: 'Status of the account''s synchronization with NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
Location__NS:
description: 'Value of the Location field for the corresponding customer account
in NetSuite. Only available if you have installed the [Zuora Connector for
NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
Subsidiary__NS:
description: 'Value of the Subsidiary field for the corresponding customer
account in NetSuite. The Subsidiary field is required if you use NetSuite
OneWorld. Only available if you have installed the [Zuora Connector for
NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
SyncDate__NS:
description: 'Date when the account was sychronized with NetSuite. Only available
if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
SynctoNetSuite__NS:
description: 'Specifies whether the account should be synchronized with NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
enum:
- 'Yes'
- 'No'
type: string
title: accountFieldsNetSuite
type: object
AccountingCodeObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Accounting Code object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of an Accounting Code object.
'
title: accountingCodeFieldsCustom
type: object
AccountingPeriodObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Accounting Period object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of an Accounting Period object.
'
title: accountingPeriodFieldsCustom
type: object
ActionsErrorResponse:
properties:
Code:
description: ''
type: string
Message:
description: ''
type: string
type: object
ApiVolumeSummaryRecord:
allOf:
- properties:
api:
description: 'The API path name.
'
type: string
error:
description: 'The count of failed API requests of above `api` and `httpMethod`.
'
type: integer
httpMethod:
description: 'The http method.
'
type: string
success:
description: 'The count of successful API requests of above `api` and `httpMethod`.
'
type: integer
total:
description: The count of total API requests of above `api` and `httpMethod`.
type: integer
type: object
description: 'A volume summary record.
'
title: volumeSummaryRecord
ApplyCreditMemoType:
example:
effectiveDate: '2017-03-02'
invoices:
- amount: 1
invoiceId: 4028905f5a87c0ff015a87d3f8f10043
items:
- amount: 0.9
creditMemoItemId: 4028905f5a890526015a8d73f74b0016
invoiceItemId: 4028905f5a87c0ff015a87d3f90c0045
- amount: 0.1
creditTaxItemId: 4028905f5a890526015a8d73f90c0018
taxItemId: 4028905f5a87c0ff015a87d3f884003f
properties:
debitMemos:
description: 'Container for debit memos that the credit memo is applied to.
The maximum number of debit memos is 1,000.
'
items:
$ref: '#/definitions/CreditMemoApplyDebitMemoRequestType'
type: array
effectiveDate:
description: 'The date when the credit memo is applied.
'
format: date
type: string
invoices:
description: 'Container for invoices that the credit memo is applied to. The
maximum number of invoices is 1,000.
'
items:
$ref: '#/definitions/CreditMemoApplyInvoiceRequestType'
type: array
type: object
ApplyPaymentType:
example:
debitMemos:
- amount: 1.02
debitMemoId: 4028905f5a87c0ff015a87e49e6b0062
items:
- amount: 1
debitMemoItemId: 4028905f5a87c0ff015a87e49e7a0063
- amount: 0.02
taxItemId: 4028905f5a87c0ff015a87e49f5e0065
effectiveDate: '2017-03-01'
invoices:
- amount: 10.1
invoiceId: 4028905f5a87c0ff015a87d3f8f10043
items:
- amount: 10
invoiceItemId: 4028905f5a87c0ff015a87d3f90c0045
- amount: 0.1
taxItemId: 4028905f5a87c0ff015a87d3f884003f
properties:
debitMemos:
description: 'Container for debit memos. The maximum number of debit memos
is 1,000.
'
items:
$ref: '#/definitions/PaymentDebitMemoApplicationApplyRequestType'
type: array
effectiveDate:
description: 'The date when the payment application takes effect, in `yyyy-mm-dd`
format. The effective date must be later than or equal to the maximum effective
date of the payment.
'
format: date
type: string
invoices:
description: 'Container for invoices. The maximum number of invoices is 1,000.
'
items:
$ref: '#/definitions/PaymentInvoiceApplicationApplyRequestType'
type: array
type: object
BadRequestResponse:
properties:
Errors:
items:
properties:
code:
description: The error code.
type: string
status:
description: The status of the response.
type: string
title:
description: The reason for the error.
type: string
type: object
type: array
type: object
BatchDebitMemoType:
properties:
dueDate:
description: 'The date by which the payment for the debit memo is due, in
`yyyy-mm-dd` format.
'
format: date
type: string
id:
description: 'The unique ID or number of the debit memo to be updated. For
example, 402890555a87d7f5015a892f2ba10057 or or DM00000001.
'
type: string
title: debitMemos
type: object
BatchInvoiceType:
allOf:
- properties:
autoPay:
description: |
Whether invoices are automatically picked up for processing in the corresponding payment run.
By default, invoices are automatically picked up for processing in the corresponding payment run.
type: boolean
comments:
description: 'Additional information related to the invoice that a Zuora
user added to the invoice.
'
maxLength: 255
type: string
dueDate:
description: 'The date by which the payment for this invoice is due.
'
format: date
type: string
id:
description: 'The ID of the invoice to be updated.
'
type: string
invoiceDate:
description: |
The new invoice date of the invoice. The new invoice date cannot fall in a closed accounting period.
You can only specify `invoiceDate` or `dueDate` in one request. Otherwise, an error occurs.
format: date
type: string
invoiceItems:
description: 'Container for invoice items. The maximum number of items is
1,000.
'
items:
$ref: '#/definitions/PutInvoiceItemType'
type: array
transferredToAccounting:
description: 'Whether the invoice was transferred to an external accounting
system.
'
enum:
- Processing
- 'Yes'
- Error
- Ignore
type: string
type: object
- $ref: '#/definitions/InvoiceObjectNSFields'
- $ref: '#/definitions/InvoiceObjectCustomFields'
title: invoices
BatchQueries:
properties:
batchId:
description: 'A 32-character ID of the query batch.
'
type: string
batchType:
description: "The kind of batch job being submitted. \n"
enum:
- zoql
- zoqlexport
type: string
fileId:
description: |
The ID of the query results file.
Use Get Results Files to download the query results file. The query results file is formatted as requested in the batch job. Supported formats are CSV, GZIP, and ZIP.
type: string
message:
description: 'The error message.
'
maximum: 2048
type: string
name:
description: 'Name of the query supplied in the request.
'
type: string
query:
description: 'The requested query string.
'
type: string
recordCount:
description: 'The number of records included in the query output file.
'
type: string
segments:
description: |
Array of IDs of query results files. Replaces fileId for full data loads in stateful mode if File Segmentation is enabled.
Use Get Results Files to download each query results file. Each query results file contains at most 500,000 records and is formatted as requested in the batch job. Supported formats are CSV, GZIP, and ZIP.
type: array
status:
description: |
The status of the query task:
- submitted: The query was submitted to the query executor for processing.
- pending: The query was waiting for being processed.
- executing: The query is being processed.
- completed: The query was successfully executed.
- aborted: The query execution failed.
- deleted_notallowed: The query execution failed because objects included in the query do not support the querying of deleted records.
enum:
- submitted
- pending
- executing
- completed
- aborted
- deleted_notallowed
type: string
title: batch
BatchQuery:
properties:
apiVersion:
description: |
The API version for the query. If an API version is not specified, the latest version is used by default. Using the latest WSDL version is most useful for reporting use cases. For integration purposes, specify the WSDL version to ensure consistent query behavior, that is, what is supported and included in the response returned by the API.
**Note**: As of API version 69 and later, Zuora changed the format of certain fields. See Date Field Changes in the SOAP API for more information and a list of affected fields.
type: string
convertToCurrencies:
description: |
The currencies that you want to convert transaction amounts into. You can specify any number of currencies. Specify the currencies using their ISO currency codes and separate each currency with a comma, for example, "EUR,GBP,JPY".
See Convert Transaction Amounts Into Any Currency for more information and examples.
To use this field, you must have Foreign Currency Conversion enabled and you must be using API version 78 or later.
type: string
deleted:
description: |
This field indicates that the AQuA incremental load will retrieve deleted records.
If you want to export deleted data, this field is required.
**Note**: AQuA API is subject to Zuora Data Retention Policy. The retention period of deleted data is 30 days. You can only retrieve deleted data for 30 days through AQuA.
items:
properties:
column:
description: "Name of the Column in the extracted file that points to\
\ the deleted records. \n"
type: string
format:
description: 'Can be set to either `Numeric` or `Boolean`. If set to
`Numeric`, deleted records are marked as `1`. If set to `Boolean`,
deleted records are marked as `true`.
'
type: string
title: deletedRecord
type: object
type: array
name:
description: 'The query name that can uniquely identify the query in this
API request.
'
type: string
query:
description: 'A valid ZOQL query or Export ZOQL query statement.
'
type: string
type:
description: 'The query type.
'
enum:
- zoql
- zoqlexport
type: string
title: query
BatchesQueries:
properties:
apiVersion:
description: |
The API version for the query. If an API version is not specified, the latest version is used by default. Using the latest WSDL version is most useful for reporting use cases. For integration purposes, specify the WSDL version to ensure consistent query behavior, that is, what is supported and included in the response returned by the API.
**Note**: As of API version 69 and later, Zuora changed the format of certain fields. See Date Field Changes in the SOAP API for more information and a list of affected fields.
type: string
batchId:
description: 'A 32-character ID of the query batch.
'
type: string
batchType:
description: 'The kind of batch job being submitted.
'
enum:
- zoql
- zoqlexport
type: string
deleted:
description: |
This field indicates that the AQuA incremental load will retrieve deleted records.
**Note**: AQuA API is subject to Zuora Data Retention Policy. The retention period of deleted data is 30 days. You can only retrieve deleted data for 30 days through AQuA.
items:
properties:
column:
description: "Name of the Column in the extracted file that points to\
\ the deleted records. \n"
type: string
format:
description: "Can be set to either `Numeric` or `Boolean`. If set to\
\ `Numeric`, deleted records are marked as `1`. If set to `Boolean`,\
\ deleted records are marked as `true`. \n"
type: string
title: deletedRecord
type: object
type: array
full:
description: "This field indicates a full or incremental load. `True` = Full\
\ and `False` = Incremental. \n"
type: boolean
name:
description: 'Name of the query supplied in the request.
'
type: string
query:
description: 'The requested query string.
'
type: string
recordCount:
description: 'The number of records included in the query output file.
'
type: string
status:
description: |
The status of the query task:
- submitted: The query was submitted to the query executor for processing.
- pending: The query was waiting for being processed.
- executing: The query is being processed.
- completed: The query was successfully executed.
- aborted: The query execution failed.
- deleted_notallowed: The query execution failed because objects included in the query do not support the querying of deleted records.
enum:
- submitted
- pending
- executing
- completed
- aborted
- deleted_notallowed
type: string
title: batch
BatchesQueriesById:
properties:
apiVersion:
description: |
The API version for the query. If an API version is not specified, the latest version is used by default. Using the latest WSDL version is most useful for reporting use cases. For integration purposes, specify the WSDL version to ensure consistent query behavior, that is, what is supported and included in the response returned by the API.
**Note**: As of API version 69 and later, Zuora changed the format of certain fields. See Date Field Changes in the SOAP API for more information and a list of affected fields.
type: string
batchId:
description: 'A 32-character ID of the query batch.
'
type: string
batchType:
description: 'The kind of batch job being submitted.
'
enum:
- zoql
- zoqlexport
type: string
fileId:
description: |
The ID of the query results file.
Use Get Results Files to download the query results file. The query results file is formatted as requested in the batch job. Supported formats are CSV, GZIP, and ZIP.
type: string
full:
description: 'This field indicates a full or incremental load. `True` = Full
and `False` = Incremental.
'
type: boolean
message:
description: 'The error message.
'
maximum: 2048
type: string
name:
description: 'Name of the query supplied in the request.
'
type: string
query:
description: 'The requested query string.
'
type: string
recordCount:
description: 'The number of records included in the query output file.
'
type: string
segments:
description: |
Array of IDs of query results files. Replaces fileId for full data loads in stateful mode if File Segmentation is enabled.
Use Get Results Files to download each query results file. Each query results file contains at most 500,000 records and is formatted as requested in the batch job. Supported formats are CSV, GZIP, and ZIP.
type: array
status:
description: |
The status of the query task:
- submitted: The query was submitted to the query executor for processing.
- pending: The query was waiting for being processed.
- executing: The query is being processed.
- completed: The query was successfully executed.
- aborted: The query execution failed.
- deleted_notallowed: The query execution failed because objects included in the query do not support the querying of deleted records.
enum:
- submitted
- pending
- executing
- completed
- aborted
- deleted_notallowed
type: string
title: batch
BillRunFilterRequestType:
allOf:
- properties:
accountId:
description: "The target account of the bill run. \n\nIf multiple subscriptions\
\ are specified, the account ID must be the same.\n"
type: string
filterType:
description: 'To create bill runs at account level or subscription level.
'
enum:
- Account
- Subscription
type: string
subscriptionId:
description: "The target subscripiton ID of the account. \n\nIf you set\
\ the `filterType` field to `Subscription`, you must specify the `subscriptionId`\
\ field.\n"
type: string
required:
- accountId
- filterType
type: object
title: billRunFilters
BillRunFilterResponseType:
allOf:
- properties:
accountId:
description: 'The target account of the bill run.
'
type: string
filterType:
description: 'To create bill run at account level or subscription level.
'
enum:
- Account
- Subscription
type: string
subscriptionId:
description: "The target subscripiton ID of the account. \n"
type: string
type: object
title: billRunFilters
BillRunFilters:
allOf:
- properties:
accountId:
description: 'The target account of the bill run.
'
type: string
filterType:
description: 'The type of the filter to determine whether to create a bill
run at the account level or subscription level.
'
enum:
- Account
- Subscription
- InvoiceSchedule
type: string
subscriptionId:
description: "The unique ID of the target subscription belonged to the target\
\ account. \n\nThis field is required if you set the `filterType` field\
\ to `Subscription`.\n"
type: string
type: object
- {}
title: billRunFilters
BillRunScheduleRequestType:
allOf:
- description: 'Container for information about the scheduled bill run.
'
properties:
repeatFrom:
description: 'The start date of the scheduled bill run.
'
format: date
type: string
repeatTo:
description: 'The end date of of the scheduled bill run.
'
format: date
type: string
repeatType:
description: 'The repeat type of the bill run.
'
enum:
- None
- Daily
- Weekly
- Monthly
type: string
runTime:
description: |
The scheduled run time (hour) of day.
**Values:** 0 - 23
type: integer
weeklyOnDay:
description: "The repeat day in a week. \n\nThis field is required if you\
\ set `repeatType` field to `Weekly`.\n"
items:
enum:
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
- Sun
type: string
type: array
required:
- repeatFrom
- repeatType
- runTime
type: object
title: schedule
BillRunScheduleResponseType:
allOf:
- description: 'Container for information about the scheduled bill run.
'
properties:
repeatFrom:
description: 'The start date of the scheduled bill run.
'
format: date
type: string
repeatTo:
description: 'The end date of of the scheduled bill run.
'
format: date
type: string
repeatType:
description: 'The repeat type of the bill run.
'
enum:
- None
- Daily
- Weekly
- Monthly
type: string
runTime:
description: |
The scheduled run time (hour) of day.
**Values:** 0 - 23
type: integer
weeklyOnDay:
description: 'The repeat day in a week.
'
items:
enum:
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
- Sun
type: string
type: array
type: object
title: schedule
BillToContact:
allOf:
- description: 'Contact details associated with an account.
'
properties:
address1:
description: 'First line of the contact''s address. This is often a street
address or a business name.
'
maxLength: 255
type: string
address2:
description: 'Second line of the contact''s address.
'
maxLength: 255
type: string
city:
description: 'City of the contact''s address.
'
maxLength: 40
type: string
country:
description: 'Country; must be a valid country name or abbreviation. If
using Zuora Tax, you must specify a country in the bill-to contact to
calculate tax.
'
maxLength: 64
type: string
county:
description: 'County of the contact''s address.
'
maxLength: 32
type: string
fax:
description: 'Fax number of the contact.
'
maxLength: 40
type: string
firstName:
description: 'First name of the contact.
'
maxLength: 100
type: string
homePhone:
description: 'Home phone number of the contact.
'
maxLength: 40
type: string
lastName:
description: 'Last name of the contact.
'
maxLength: 100
type: string
mobilePhone:
description: 'Mobile phone number of the contact.
'
maxLength: 40
type: string
nickname:
description: 'Nickname of the contact.
'
maxLength: 100
type: string
otherPhone:
description: 'Additional phone number of the contact. Use the `otherPhoneType`
field to specify the type of phone number.
'
maxLength: 40
type: string
otherPhoneType:
description: 'Specifies the type of phone number in the `otherPhone` field.
'
enum:
- Work
- Mobile
- Home
- Other
type: string
personalEmail:
description: 'Personal email address of the contact.
'
format: email
maxLength: 80
type: string
postalCode:
description: 'ZIP code or other postal code of the contact''s address.
'
maxLength: 20
type: string
state:
description: 'State or province of the contact''s address.
'
maxLength: 40
type: string
taxRegion:
description: 'Region defined in your taxation rules. Only applicable if
you use Zuora Tax.
'
maxLength: 32
type: string
workEmail:
description: 'Business email address of the contact.
'
format: email
maxLength: 80
type: string
workPhone:
description: 'Business phone number of the contact.
'
maxLength: 40
type: string
required:
- firstName
- lastName
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
BillToContactPostOrder:
allOf:
- description: 'Contact details associated with an account.
'
properties:
address1:
description: 'First line of the contact''s address. This is often a street
address or a business name.
'
maxLength: 255
type: string
address2:
description: 'Second line of the contact''s address.
'
maxLength: 255
type: string
city:
description: 'City of the contact''s address.
'
maxLength: 40
type: string
contactDescription:
description: 'A description for the contact.
'
maxLength: 100
type: string
country:
description: 'Country; must be a valid country name or abbreviation. If
using Zuora Tax, you must specify a country in the bill-to contact to
calculate tax.
'
maxLength: 64
type: string
county:
description: 'County of the contact''s address.
'
maxLength: 32
type: string
fax:
description: 'Fax number of the contact.
'
maxLength: 40
type: string
firstName:
description: 'First name of the contact.
'
maxLength: 100
type: string
homePhone:
description: 'Home phone number of the contact.
'
maxLength: 40
type: string
lastName:
description: 'Last name of the contact.
'
maxLength: 100
type: string
mobilePhone:
description: 'Mobile phone number of the contact.
'
maxLength: 40
type: string
nickname:
description: 'Nickname of the contact.
'
maxLength: 100
type: string
otherPhone:
description: 'Additional phone number of the contact. Use the `otherPhoneType`
field to specify the type of phone number.
'
maxLength: 40
type: string
otherPhoneType:
description: 'Specifies the type of phone number in the `otherPhone` field.
'
enum:
- Work
- Mobile
- Home
- Other
type: string
personalEmail:
description: 'Personal email address of the contact.
'
format: email
maxLength: 80
type: string
postalCode:
description: 'ZIP code or other postal code of the contact''s address.
'
maxLength: 20
type: string
state:
description: 'State or province of the contact''s address.
'
maxLength: 40
type: string
taxRegion:
description: 'Region defined in your taxation rules. Only applicable if
you use Zuora Tax.
'
maxLength: 32
type: string
workEmail:
description: 'Business email address of the contact.
'
format: email
maxLength: 80
type: string
workPhone:
description: 'Business phone number of the contact.
'
maxLength: 40
type: string
required:
- firstName
- lastName
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
BillingDocVolumeSummaryRecord:
allOf:
- properties:
totalFailedAccounts:
description: The count of total accounts who have failed records.
type: integer
totalGeneratedCreditMemos:
description: 'The count of total generated credit memos.
'
type: integer
totalGeneratedInvoices:
description: 'The count of total generated invoices.
'
type: integer
type: object
description: 'A volume summary record.
'
title: volumeSummaryRecord
BillingDocumentQueryResponseElementType:
properties:
documents:
description: 'Container for billing documents.
'
items:
$ref: '#/definitions/GETBillingDocumentsResponseType'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
BillingOptions:
properties:
documentDate:
description: The invoice date displayed on the billing document.
format: date
type: string
targetDate:
description: Date through which to calculate charges for order line items
if a billing document is generated. See [What is a Target Date?](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/G_Bill_Runs/Creating_Bill_Runs#What_is_a_Target_Date.3F).
format: date
type: string
type: object
BillingPreviewResult:
properties:
accountId:
description: 'ID of the customer account to which the billing preview applies.
'
type: string
creditMemoItems:
description: |
An array of credit memo items returned as the result of the billing preivew request.
**Note:** The credit memo items are only available if you have Invoice Settlement feature enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
items:
$ref: '#/definitions/POSTBillingPreviewCreditMemoItem'
type: array
invoiceItems:
description: 'An array of invoice items returned as the result of the billing
preview request.
'
items:
$ref: '#/definitions/POSTBillingPreviewInvoiceItem'
type: array
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
BillingUpdate:
properties:
billingPeriodAlignment:
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
type: string
type: object
BodyInSettingValueReponse:
additionalProperties: true
description: Response body if the request is executed successfully.
title: settingsResponseBody
type: object
BodyInSettingValueRequest:
additionalProperties: true
description: Request payload if any
title: settingsRequestBody
type: object
BulkCreditMemosResponseType:
allOf:
- properties:
memos:
description: 'The container for a list of credit memos.
'
items:
$ref: '#/definitions/GETCreditMemoType'
maxItems: 50
title: memos
type: array
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
BulkDebitMemosResponseType:
allOf:
- properties:
memos:
description: 'The container for a list of debit memos.
'
items:
$ref: '#/definitions/GETDebitMemoType'
maxItems: 50
type: array
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
CalloutAuth:
description: If `requiredAuth` is `true`, this object is required.
properties:
domain:
description: The domain of the callout auth.
type: string
password:
description: The field is required when requiredAuth is `true`.
type: string
preemptive:
description: Set this field to `true` if you want to enable the preemptive
authentication.
type: boolean
username:
description: The field is required when requiredAuth is `true`.
type: string
type: object
CalloutMergeFields:
additionalProperties:
description: 'The key is the parameter name. The value is a merge field with
angle brackets.
'
type: string
description: 'A key-value map of merge fields of this callout.
'
title: calloutParams
type: object
CancelBillRunResponseType:
allOf:
- $ref: '#/definitions/GetBillRunResponseType'
- properties:
nextRun:
$ref: '#/definitions/NextRunResponseType'
type: object
example:
autoEmail: false
autoPost: false
autoRenewal: true
batches: null
billCycleDay: null
billRunFilters: []
billRunNumber: BR-00000014
chargeTypeToExclude: null
createdById: ff808081298c6e5401298c7274a40005
createdDate: '2022-01-19 11:28:34'
id: 2c9890e97e57e546017e706109df04a1
invoiceDate: '2022-01-26'
invoiceDateOffset: 0
name: test
nextRun:
autoEmail: false
autoPost: false
autoRenewal: true
batches: null
billCycleDay: null
billRunFilters: []
billRunNumber: BR-00000021
chargeTypeToExclude: null
createdById: ff808081298c6e5401298c7274a40005
createdDate: '2022-01-26 14:47:05'
id: 2c9890077e901749017e95235b13093d
invoiceDate: null
invoiceDateOffset: 0
noEmailForZeroAmountInvoice: false
schedule:
repeatFrom: '2022-02-28'
repeatTo: '2023-01-31'
repeatType: Monthly
runTime: 0
weeklyOnDay: null
scheduledExecutionTime: '2022-02-28 00:00:00'
status: Pending
targetDate: null
targetDateOffset: 0
updatedById: ff808081298c6e5401298c7274a40005
updatedDate: '2022-01-26 14:47:05'
noEmailForZeroAmountInvoice: false
schedule: null
scheduledExecutionTime: '2022-01-28 00:00:00'
status: CancelInProgress
success: true
targetDate: null
targetDateOffset: 0
updatedById: ff808081298c6e5401298c7274a40005
updatedDate: '2022-01-26 14:47:09'
CancelSubscription:
description: 'Information about an order action of type `CancelSubscription`.
'
properties:
cancellationEffectiveDate:
format: date
type: string
cancellationPolicy:
enum:
- EndOfCurrentTerm
- EndOfLastInvoicePeriod
- SpecificDate
type: string
required:
- cancellationPolicy
title: cancelSubscription
type: object
CatalogGroupResponse:
properties:
catalogGroupNumber:
description: 'The automatically generated number of the catalog group with
the CG- perfix. For example, CG-00000001.
'
type: string
description:
description: 'The description of the catalog group.
'
type: string
id:
description: 'The ID of the catalog group.
'
type: string
name:
description: 'The name of the catalog group.
'
type: string
productRatePlans:
description: 'The list of product rate plans in the catalog group.
'
items:
$ref: '#/definitions/GETCatalogGroupProductRatePlanResponse'
type: array
type:
description: 'The type of the catalog group.
'
enum:
- Grading
- Display
type: string
title: catalogGroups
type: object
ChangePlan:
description: |
Information about an order action of type `ChangePlan`.
**Note**: The change plan type of order action is currently not supported for Billing - Revenue Integration. When Billing - Revenue Integration is enabled, the change plan type of order action will no longer be applicable in Zuora Billing.
properties:
effectivePolicy:
description: |
* If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.
* If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.
* Otherwise, the effective policy is `SpecificDate` by default.
enum:
- EffectiveImmediately
- EffectiveEndOfBillingPeriod
- SpecificDate
type: string
newProductRatePlan:
$ref: '#/definitions/ChangePlanRatePlanOverride'
productRatePlanId:
description: 'ID of the rate plan to remove. This can be the latest version
or any history version of ID.
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
ratePlanId:
description: 'ID of the rate plan to remove. This can be the latest version
or any history version of ID.
'
type: string
subType:
description: |
This field is used to choose the sub type for your change plan order action.
However, if you do not set this field, the field will be automatically generated by the system according to the following rules:
When the old and new rate plans are within the same Grading catalog group:
* If the grade of new plan is greater than that of the old plan, this is an "Upgrade".
* If the grade of new plan is less than that of the old plan, this is a "Downgrade".
* If the grade of new plan equals that of the old plan, this is a "Crossgrade".
When the old and new rate plans are not in the same Grading catalog group, or either has no group, this is "PlanChanged".
enum:
- Upgrade
- Downgrade
- Crossgrade
- PlanChanged
type: string
subscriptionRatePlanNumber:
description: 'Number of a rate plan for this subscription.
'
type: string
title: changePlan
type: object
ChangePlanChargeOverride:
description: 'Charge associated with a rate plan.
'
properties:
accountReceivableAccountingCode:
description: |
The accountReceivableAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders , Zuora Finance , and Invoice Settlement features are enabled.
type: string
adjustmentLiabilityAccountingCode:
description: |
The adjustmentLiabilityAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
adjustmentRevenueAccountingCode:
description: |
The adjustmentRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
billing:
description: 'Billing information about the charge.
'
properties:
billCycleDay:
description: 'Day of the month that each billing period begins on. Only
applicable if the value of the `billCycleType` field is `SpecificDayofMonth`.
'
maximum: 31
minimum: 0
type: integer
billCycleType:
description: |
Specifies how Zuora determines the day that each billing period begins on.
* `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.
* `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.
* `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.
* `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.
* `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.
enum:
- DefaultFromCustomer
- SpecificDayofMonth
- SubscriptionStartDay
- ChargeTriggerDay
- SpecificDayofWeek
type: string
billingPeriod:
description: |
Billing frequency of the charge. The value of this field controls the duration of each billing period.
If the value of this field is `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.
enum:
- Month
- Quarter
- Semi_Annual
- Annual
- Eighteen_Months
- Two_Years
- Three_Years
- Five_Years
- Specific_Months
- Subscription_Term
- Week
- Specific_Weeks
- Specific_Days
type: string
billingPeriodAlignment:
description: |
Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.
* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.
* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.
* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.
See the `billCycleType` field for information about how Zuora determines the billing day.
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
type: string
billingTiming:
description: 'Specifies whether to invoice for a billing period on the
first day of the billing period (billing in advance) or the first day
of the next billing period (billing in arrears).
'
enum:
- IN_ADVANCE
- IN_ARREARS
type: string
specificBillingPeriod:
description: 'Duration of each billing period in months or weeks, depending
on the value of the `billingPeriod` field. Only applicable if the value
of the `billingPeriod` field is `Specific_Months` or `Specific_Weeks`.
'
type: integer
weeklyBillCycleDay:
description: 'Day of the week that each billing period begins on. Only
applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.
'
enum:
- Sunday
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
type: string
type: object
chargeModel:
description: |
The chargeModel of a standalone charge.
Supported charge models:
* `FlatFee`
* `PerUnit`
* `Volume`
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
chargeNumber:
description: |
Charge number of the charge. For example, C-00000307.
If you do not set this field, Zuora will generate the charge number.
maxLength: 50
type: string
chargeType:
description: |
The chargeType of a standalone charge.
Supported charge types:
* `OneTime`
* `Recurring`
* `Usage`
* `DiscountFixedAmount`
* `DiscountPercentage`
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
contractAssetAccountingCode:
description: |
The contractAssetAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
contractLiabilityAccountingCode:
description: |
The contractLiabilityAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
contractRecognizedRevenueAccountingCode:
description: |
The contractRecognizedRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
customFields:
$ref: '#/definitions/RatePlanChargeObjectCustomFields'
deferredRevenueAccountingCode:
description: |
The deferredRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders and Zuora Finance features are enabled.
type: string
description:
description: 'Description of the charge.
'
maxLength: 500
type: string
drawdownRate:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).
type: number
endDate:
$ref: '#/definitions/EndConditions'
excludeItemBillingFromRevenueAccounting:
default: false
description: "The flag to exclude rate plan charge related invoice items,\
\ invoice item adjustments, credit memo items, and debit memo items from\
\ revenue accounting.\n\n**Note**: This field is only available if you have\
\ the Order to Revenue or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration)\
\ feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
default: false
description: "The flag to exclude rate plan charges from revenue accounting.\n\
\n**Note**: This field is only available if you have the Order to Revenue or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration)\
\ feature enabled. \n"
type: boolean
isAllocationEligible:
description: |
This field is used to identify if the charge segment is allocation eligible in revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
isRollover:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The value is either "True" or "False". It determines whether the rollover fields are needed.
type: boolean
isUnbilled:
description: |
This field is used to dictate how to perform the accounting during revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
name:
description: |
The name of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
pobPolicy:
description: |
The pobPolicy of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
prepaidQuantity:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).
type: number
pricing:
description: 'Pricing information about the charge.
'
properties:
chargeModelData:
$ref: '#/definitions/ChargeModelDataOverride'
discount:
$ref: '#/definitions/DiscountPricingOverride'
oneTimeFlatFee:
$ref: '#/definitions/OneTimeFlatFeePricingOverride'
oneTimePerUnit:
$ref: '#/definitions/OneTimePerUnitPricingOverride'
oneTimeTiered:
$ref: '#/definitions/OneTimeTieredPricingOverride'
oneTimeVolume:
$ref: '#/definitions/OneTimeVolumePricingOverride'
recurringDeliveryBased:
$ref: '#/definitions/RecurringDeliveryPricingOverride'
recurringFlatFee:
$ref: '#/definitions/RecurringFlatFeePricingOverride'
recurringPerUnit:
$ref: '#/definitions/RecurringPerUnitPricingOverride'
recurringTiered:
$ref: '#/definitions/RecurringTieredPricingOverride'
recurringVolume:
$ref: '#/definitions/RecurringVolumePricingOverride'
usageFlatFee:
$ref: '#/definitions/UsageFlatFeePricingOverride'
usageOverage:
$ref: '#/definitions/UsageOveragePricingOverride'
usagePerUnit:
$ref: '#/definitions/UsagePerUnitPricingOverride'
usageTiered:
$ref: '#/definitions/UsageTieredPricingOverride'
usageTieredWithOverage:
$ref: '#/definitions/UsageTieredWithOveragePricingOverride'
usageVolume:
$ref: '#/definitions/UsageVolumePricingOverride'
type: object
productCategory:
description: |
The productCategory of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productClass:
description: |
The productClass of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productFamily:
description: |
The productFamily of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productLine:
description: |
The productLine of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productRatePlanChargeId:
description: 'Internal identifier of the product rate plan charge that the
charge is based on.
'
type: string
productRatePlanChargeNumber:
description: 'Number of a product rate-plan charge for this subscription.
'
type: string
recognizedRevenueAccountingCode:
description: |
The recognizedRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders and Zuora Finance features are enabled.
type: string
revRecCode:
description: 'Revenue Recognition Code
'
maxLength: 70
type: string
revRecTriggerCondition:
description: "Specifies the revenue recognition trigger condition.\n\n *\
\ `Contract Effective Date` \n * `Service Activation Date`\n * `Customer\
\ Acceptance Date`\n"
enum:
- Contract Effective Date
- Service Activation Date
- Customer Acceptance Date
type: string
revenueRecognitionRuleName:
description: 'Specifies the revenue recognition rule, such as `Recognize upon
invoicing` or `Recognize daily over time`.
'
type: string
rolloverApply:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
This field defines the priority of rollover, which is either first or last.
enum:
- ApplyFirst
- ApplyLast
type: string
rolloverPeriodLength:
default: null
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The period length of the rollover fund.
type: integer
rolloverPeriods:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
This field defines the number of rollover periods, it is restricted to 3.
type: number
startDate:
$ref: '#/definitions/CreateOrderTriggerParams'
taxCode:
description: |
The taxCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
taxMode:
description: "The taxMode of a standalone charge. \n\nValues:\n* `TaxExclusive`\n\
* `TaxInclusive`\n\n**Note:** This field is available when the Standalone Orders feature is enabled.\n"
type: string
unBilledReceivablesAccountingCode:
description: |
The unBilledReceivablesAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
uniqueToken:
description: |
Unique identifier for the charge. This identifier enables you to refer to the charge before the charge has an internal identifier in Zuora.
For instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the charge. Then when you update the product, you can use the same unique identifier to specify which charge to modify.
maxLength: 50
type: string
validityPeriodType:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).
enum:
- SUBSCRIPTION_TERM
- ANNUAL
- SEMI_ANNUAL
- QUARTER
- MONTH
type: string
required:
- productRatePlanChargeId
title: charge
type: object
ChangePlanRatePlanOverride:
description: "Information about the new product rate plan to add. \n"
properties:
chargeOverrides:
description: 'List of charges associated with the rate plan.
'
items:
$ref: '#/definitions/ChangePlanChargeOverride'
type: array
clearingExistingFeatures:
description: 'Specifies whether all features in the rate plan will be cleared.
'
type: boolean
customFields:
$ref: '#/definitions/OrdersRatePlanObjectCustomFields'
externallyManagedPlanId:
description: 'Indicates the unique identifier for the rate plan purchased
on a third-party store. This field is used to represent a subscription rate
plan created through third-party stores.
'
type: string
productRatePlanId:
description: 'Internal identifier of the product rate plan that the rate plan
is based on.
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
subscriptionProductFeatures:
description: |
List of features associated with the rate plan.
The system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:
* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.
* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.
items:
$ref: '#/definitions/RatePlanFeatureOverride'
type: array
uniqueToken:
description: |
Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.
For instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.
maxLength: 50
type: string
title: ratePlan
type: object
ChargeModelConfigurationType:
description: |
Container for charge model configuration data.
**Note**: This field is only available if you have the High Water Mark, Pre-Rated Pricing, or Multi-Attribute Pricing charge models enabled. These charge models are available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
properties:
customFieldPerUnitRate:
description: "The custom field that carries the per-unit rate for each usage\
\ record. For example, `perUnitAmount__c`.\n \nThis field is only available\
\ for the usage-based charges that use the Pre-Rated Per Unit Pricing charge\
\ model. The charge model is available for customers with Enterprise and\
\ Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information.\n"
type: string
customFieldTotalAmount:
description: "The custom field that carries the total amount to charge for\
\ a usage record. For example, `totalAmount__c`. \n \nThis field is only\
\ available for the usage-based charges that use the Pre-Rated Pricing charge\
\ model. The charge model is available for customers with Enterprise and\
\ Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information.\n"
type: string
formula:
description: |
The pricing formula to calculate actual rating amount for each usage record.
This field is only available for the usage-based charges that use the Multi-Attribute Pricing charge model. The charge model is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
type: string
title: chargeModelConfiguration
type: object
ChargeModelDataOverride:
description: |
Container for charge model configuration data.
**Note**: This field is only available if you have the High Water Mark, Pre-Rated Pricing, or Multi-Attribute Pricing charge models enabled. The High Water Mark and Pre-Rated Pricing charge models are available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
properties:
chargeModelConfiguration:
properties:
customFieldPerUnitRate:
description: |
The custom field that carries the per-unit rate for each usage record. For example, `perUnitAmount__c`.
This field is only available for the usage-based charges that use the Pre-Rated Per Unit Pricing charge model. The charge model is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
type: string
customFieldTotalAmount:
description: "The custom field that carries the total amount to charge\
\ for a usage record. For example, `totalAmount__c`. \n\nThis field\
\ is only available for the usage-based charges that use the Pre-Rated\
\ Pricing charge model. The charge model is available for customers\
\ with Enterprise and Nine editions by default. If you are a Growth\
\ customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information.\n"
type: string
formula:
description: |
The pricing formula to calculate actual rating amount.
This field is only available for charges that use the Multi-Attribute Pricing charge model.
type: string
type: object
quantity:
description: |
Number of units purchased. This field is used if the Multi-Attribute Pricing formula uses the `quantity()` function.
This field is only available for one-time and recurring charges that use the Multi-Attribute Pricing charge model.
minimum: 0
type: number
tiers:
description: |
List of cumulative pricing tiers in the charge.
**Note**: When you override the tiers of a usage-based charge using High Water Mark Pricing charge model, you have to provide all of the tiers, including the ones you do not want to change. The new tiers will completely override the previous ones. The High Water Mark Pricing charge models are available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
items:
$ref: '#/definitions/ChargeTier'
type: array
title: chargeModelData
type: object
ChargeOverride:
description: 'Charge associated with a rate plan.
'
properties:
accountReceivableAccountingCode:
description: |
The accountReceivableAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders , Zuora Finance , and Invoice Settlement features are enabled.
type: string
adjustmentLiabilityAccountingCode:
description: |
The adjustmentLiabilityAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
adjustmentRevenueAccountingCode:
description: |
The adjustmentRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
billing:
description: 'Billing information about the charge.
'
properties:
billCycleDay:
description: 'Day of the month that each billing period begins on. Only
applicable if the value of the `billCycleType` field is `SpecificDayofMonth`.
'
maximum: 31
minimum: 0
type: integer
billCycleType:
description: |
Specifies how Zuora determines the day that each billing period begins on.
* `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.
* `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.
* `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.
* `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.
* `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.
enum:
- DefaultFromCustomer
- SpecificDayofMonth
- SubscriptionStartDay
- ChargeTriggerDay
- SpecificDayofWeek
type: string
billingPeriod:
description: |
Billing frequency of the charge. The value of this field controls the duration of each billing period.
If the value of this field is `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.
enum:
- Month
- Quarter
- Semi_Annual
- Annual
- Eighteen_Months
- Two_Years
- Three_Years
- Five_Years
- Specific_Months
- Subscription_Term
- Week
- Specific_Weeks
type: string
billingPeriodAlignment:
description: |
Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.
* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.
* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.
* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.
See the `billCycleType` field for information about how Zuora determines the billing day.
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
type: string
billingTiming:
description: 'Specifies whether to invoice for a billing period on the
first day of the billing period (billing in advance) or the first day
of the next billing period (billing in arrears).
'
enum:
- IN_ADVANCE
- IN_ARREARS
type: string
specificBillingPeriod:
description: 'Duration of each billing period in months or weeks, depending
on the value of the `billingPeriod` field. Only applicable if the value
of the `billingPeriod` field is `Specific_Months` or `Specific_Weeks`.
'
type: integer
weeklyBillCycleDay:
description: 'Day of the week that each billing period begins on. Only
applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.
'
enum:
- Sunday
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
type: string
type: object
chargeModel:
description: |
The chargeModel of a standalone charge.
Supported charge models:
* `FlatFee`
* `PerUnit`
* `Volume`
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
chargeNumber:
description: |
Charge number of the charge. For example, C-00000307.
If you do not set this field, Zuora will generate the charge number.
maxLength: 50
type: string
chargeType:
description: |
The chargeType of a standalone charge.
Supported charge types:
* `OneTime`
* `Recurring`
* `Usage`
* `DiscountFixedAmount`
* `DiscountPercentage`
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
contractAssetAccountingCode:
description: |
The contractAssetAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
contractLiabilityAccountingCode:
description: |
The contractLiabilityAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
contractRecognizedRevenueAccountingCode:
description: |
The contractRecognizedRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
customFields:
$ref: '#/definitions/RatePlanChargeObjectCustomFields'
deferredRevenueAccountingCode:
description: |
The deferredRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders and Zuora Finance features are enabled.
type: string
description:
description: 'Description of the charge.
'
maxLength: 500
type: string
drawdownRate:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).
type: number
endDate:
$ref: '#/definitions/EndConditions'
excludeItemBillingFromRevenueAccounting:
default: false
description: "The flag to exclude rate plan charge related invoice items,\
\ invoice item adjustments, credit memo items, and debit memo items from\
\ revenue accounting.\n\nIf both the following features in Advanced Consumption Billing are enabled in your\
\ tenant, you must ensure the `excludeItemBillingFromRevenueAccounting`\
\ field is set consistently for a prepayment charge and the corresponding\
\ drawdown charge. In addition, if the `excludeItemBookingFromRevenueAccounting`\
\ field in an Create Subscription or Add Product order action is set to\
\ `false`, you must also set the `excludeItemBillingFromRevenueAccounting`\
\ field in this order action to `false`.\n * Prepaid with Drawdown\n *\
\ Unbilled Usage\n\n**Note**: This field is only available if you have the\
\ Order to Revenue or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration)\
\ feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
default: false
description: "The flag to exclude rate plan charges from revenue accounting.\n\
\nIf both the following features in Advanced Consumption Billing are enabled in your\
\ tenant, you must ensure the `excludeItemBookingFromRevenueAccounting`\
\ field is set consistently for a prepayment charge and the corresponding\
\ drawdown charge.\n * Prepaid with Drawdown\n * Unbilled Usage\n\n**Note**:\
\ This field is only available if you have the Order to Revenue or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration)\
\ feature enabled. \n"
type: boolean
isAllocationEligible:
description: |
This field is used to identify if the charge segment is allocation eligible in revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
isRollover:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The value is either "True" or "False". It determines whether the rollover fields are needed.
type: boolean
isUnbilled:
description: |
This field is used to dictate how to perform the accounting during revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
name:
description: |
The name of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
pobPolicy:
description: |
The pobPolicy of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
prepaidQuantity:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).
type: number
pricing:
description: 'Pricing information about the charge.
'
properties:
chargeModelData:
$ref: '#/definitions/ChargeModelDataOverride'
discount:
$ref: '#/definitions/DiscountPricingOverride'
oneTimeFlatFee:
$ref: '#/definitions/OneTimeFlatFeePricingOverride'
oneTimePerUnit:
$ref: '#/definitions/OneTimePerUnitPricingOverride'
oneTimeTiered:
$ref: '#/definitions/OneTimeTieredPricingOverride'
oneTimeVolume:
$ref: '#/definitions/OneTimeVolumePricingOverride'
recurringDelivery:
$ref: '#/definitions/RecurringDeliveryPricingOverride'
recurringFlatFee:
$ref: '#/definitions/RecurringFlatFeePricingOverride'
recurringPerUnit:
$ref: '#/definitions/RecurringPerUnitPricingOverride'
recurringTiered:
$ref: '#/definitions/RecurringTieredPricingOverride'
recurringVolume:
$ref: '#/definitions/RecurringVolumePricingOverride'
usageFlatFee:
$ref: '#/definitions/UsageFlatFeePricingOverride'
usageOverage:
$ref: '#/definitions/UsageOveragePricingOverride'
usagePerUnit:
$ref: '#/definitions/UsagePerUnitPricingOverride'
usageTiered:
$ref: '#/definitions/UsageTieredPricingOverride'
usageTieredWithOverage:
$ref: '#/definitions/UsageTieredWithOveragePricingOverride'
usageVolume:
$ref: '#/definitions/UsageVolumePricingOverride'
type: object
productCategory:
description: |
The productCategory of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productClass:
description: |
The productClass of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productFamily:
description: |
The productFamily of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productLine:
description: |
The productLine of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productRatePlanChargeNumber:
description: 'Number of a product rate-plan charge for this subscription.
'
type: string
productRateplanChargeId:
description: 'Internal identifier of the product rate plan charge that the
charge is based on.
'
type: string
recognizedRevenueAccountingCode:
description: |
The recognizedRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders and Zuora Finance features are enabled.
type: string
revRecCode:
description: 'Revenue Recognition Code
'
maxLength: 70
type: string
revRecTriggerCondition:
description: "Specifies the revenue recognition trigger condition.\n\n *\
\ `Contract Effective Date` \n * `Service Activation Date`\n * `Customer\
\ Acceptance Date`\n"
enum:
- Contract Effective Date
- Service Activation Date
- Customer Acceptance Date
type: string
revenueRecognitionRuleName:
description: 'Specifies the revenue recognition rule, such as `Recognize upon
invoicing` or `Recognize daily over time`.
'
type: string
rolloverApply:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
This field defines the priority of rollover, which is either first or last.
enum:
- ApplyFirst
- ApplyLast
type: string
rolloverPeriodLength:
default: null
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The period length of the rollover fund.
type: integer
rolloverPeriods:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
This field defines the number of rollover periods, it is restricted to 3.
type: number
startDate:
$ref: '#/definitions/TriggerParams'
taxCode:
description: |
The taxCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
taxMode:
description: "The taxMode of a standalone charge. \n\nValues:\n* `TaxExclusive`\n\
* `TaxInclusive`\n\n**Note:** This field is available when the Standalone Orders feature is enabled.\n"
type: string
unBilledReceivablesAccountingCode:
description: |
The unBilledReceivablesAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
uniqueToken:
description: |
Unique identifier for the charge. This identifier enables you to refer to the charge before the charge has an internal identifier in Zuora.
For instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the charge. Then when you update the product, you can use the same unique identifier to specify which charge to modify.
maxLength: 50
type: string
validityPeriodType:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).
enum:
- SUBSCRIPTION_TERM
- ANNUAL
- SEMI_ANNUAL
- QUARTER
- MONTH
type: string
required:
- productRateplanChargeId
title: charge
type: object
ChargePreviewMetrics:
properties:
chargeNumber:
type: string
cmrr:
properties:
discount:
description: Total discountCmrr of all discount charges which are applied
to one specific recurring charge. This value is calculated from the
rating results for the latest subscription version in the order. Only
selects the applied discount charge when its endDateCondition is "Subscription_End".
type: number
discountDelta:
description: Delta discountCmrr value between the order base and the latest
subscription version.
type: number
regular:
type: number
regularDelta:
type: number
type: object
originRatePlanId:
type: string
productRatePlanChargeId:
type: string
productRatePlanId:
type: string
tax:
properties:
discount:
description: Total tax amount of all discount charges which are applied
to one specific recurring charge. This value is calculated from the
rating results for the latest subscription version in the order.
type: number
discountDelta:
description: Delta discount TAX value between the base and the latest
subscription version in the order for the specific recurring charge.
type: number
regular:
type: number
regularDelta:
description: Delta tax value between the base and the latest subscription
version in the order.
type: number
type: object
tcb:
properties:
discount:
description: Total contract billing amount of all discount charges which
are applied to one specific recurring charge. This value is calculated
from the rating results for the latest subscription version in the order.
type: number
discountDelta:
description: Delta discount TCB value between the base and the latest
subscription version for specific recurring charge in the order.
type: number
regular:
type: number
regularDelta:
description: Delta TCB value between the base and the latest subscription
version in the order.
type: number
type: object
tcv:
properties:
discount:
description: Always equals to discountTcb.
type: number
discountDelta:
description: Always equals to delta discountTcb.
type: number
regular:
type: number
regularDelta:
type: number
type: object
type: object
ChargeTier:
properties:
endingUnit:
description: 'Limit on the number of units for which the tier is effective.
'
type: number
price:
description: 'Price or per-unit price of the tier, depending on the value
of the `priceFormat` field.
'
type: number
priceFormat:
description: 'Specifies whether the tier has a fixed price or a per-unit price.
'
enum:
- FlatFee
- PerUnit
type: string
startingUnit:
description: 'Number of units at which the tier becomes effective.
'
type: number
tier:
description: 'Index of the tier in the charge.
'
minimum: 1
type: integer
required:
- tier
- startingUnit
- price
- priceFormat
title: chargeTier
type: object
ChargeUpdate:
description: The JSON object containing the information for a charge update in
the 'UpdateProduct' type order action.
properties:
billing:
$ref: '#/definitions/BillingUpdate'
chargeNumber:
description: "The number of the charge to be updated. The value of this field\
\ is inherited from the `subscriptions` > `orderActions` > `addProduct`\
\ > `chargeOverrides` > `chargeNumber` field. \n"
type: string
customFields:
$ref: '#/definitions/RatePlanChargeObjectCustomFields'
description:
type: string
effectiveDate:
$ref: '#/definitions/TriggerParams'
pricing:
allOf:
- $ref: '#/definitions/PricingUpdate'
description: 'Pricing information about the charge.
'
uniqueToken:
description: |
description: |
A unique string to represent the rate plan charge in the order. The unique token is used to perform multiple actions against a newly added rate plan charge. For example, if you want to add and update a product in the same order, assign a unique token to the newly added rate plan charge and use that token in future order actions.
type: string
type: object
ChildrenSettingValueRequest:
properties:
body:
$ref: '#/definitions/BodyInSettingValueRequest'
id:
description: 'The id of the request. You can set it to any string. It must
be unique within the whole batch.
'
type: string
method:
description: 'One of the HTTP methods supported by the setting endpoint, for
example, GET,PUT,POST or DELETE.
'
enum:
- GET
- HEAD
- POST
- PUT
- PATCH
- DELETE
- OPTIONS
- TRACE
type: string
url:
description: 'The relative URL of the setting. It is the same as in the `pathPattern`
field in the response body of [Listing all settings](https://developer.zuora.com/api-references/api/operation/GET_ListAllSettings).
For example, `/billing-rules`.
'
type: string
title: childSettingsRequest
type: object
CommonErrorResponse:
properties:
processId:
description: 'The Id of the process that handle the operation.
'
type: string
reasons:
items:
properties:
code:
description: 'The error code of response.
'
type: string
message:
description: 'The detail information of the error response
'
type: string
type: object
type: array
requestId:
description: 'The Id of the request.
'
format: uuid
maxLength: 36
minLength: 36
type: string
success:
description: 'Indicates whether the call succeeded.
'
type: boolean
type: object
CommonResponseType:
properties:
processId:
description: 'The Id of the process that handle the operation.
'
type: string
reasons:
items:
properties:
code:
description: 'The error code of response.
'
type: string
message:
description: 'The detail information of the error response
'
type: string
type: object
type: array
success:
description: 'Indicates whether the call succeeded.
'
type: boolean
type: object
CompareSchemaInfoResponse:
description: When Tenant's Compare API returns a result, this object is used to
send the response to UI.
properties:
customFields:
items:
$ref: '#/definitions/CompareSchemaKeyValue'
type: array
customObjects:
items:
$ref: '#/definitions/CompareSchemaKeyValue'
type: array
dataAccessControl:
items:
$ref: '#/definitions/CompareSchemaKeyValue'
type: array
metaData:
$ref: '#/definitions/JsonNode'
notifications:
items:
$ref: '#/definitions/CompareSchemaKeyValue'
type: array
productCatalog:
items:
$ref: '#/definitions/CompareSchemaKeyValue'
type: array
settings:
items:
$ref: '#/definitions/CompareSchemaKeyValue'
type: array
workflows:
items:
$ref: '#/definitions/CompareSchemaKeyValue'
type: array
title: CompareSchemaInfoResponse
type: object
CompareSchemaKeyValue:
description: When a comparison is made between a source and target tenant, it
sends a response to the user interface.
properties:
difference:
additionalProperties:
items:
type: string
type: array
description: Returns the different components list.
type: object
response:
description: Provides the total reponse of the components.
items:
$ref: '#/definitions/MigrationComponentContent'
type: array
segregationKeys:
description: Provides separation of components.
items:
type: string
type: array
title: CompareSchemaKeyValue
type: object
ConfigTemplateErrorResponse:
example:
reasons:
- code: ObjectNotFound
message: Configuration Templates does not exist.
properties:
reasons:
items:
properties:
code:
description: 'The error code of response.
'
type: string
message:
description: A detailed description of the error response.
type: string
type: object
type: array
type: object
ConfigurationTemplateContent:
description: It contains information about template schemas with segregation keys.
properties:
componentType:
description: Type of Component.
type: string
error:
description: Error Information.
type: string
id:
description: Id of Each component.
type: string
key:
description: Key value of fields inside component.
type: string
method:
description: Http method which is used to retrieve the particular component.
type: string
payload:
$ref: '#/definitions/JsonNode'
result:
description: Contains the response of details fetched regarding selected component.
type: string
segregationKey:
description: Gives the difference between components and sub components.
type: string
templateId:
description: Id of the Template.
type: string
url:
description: Metadata is retrieved from this URL.
type: string
title: ConfigurationTemplateContent
type: object
ContactCustomFields:
additionalProperties:
description: "Custom fields of the Contact object. The name of each custom field\
\ has the form *customField*__c
. Custom field names are case\
\ sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)\
\ for more information.\n\n \n \n"
type: object
ContactInfo:
allOf:
- description: 'Contact details associated with an account.
'
properties:
address1:
description: 'First line of the contact''s address. This is often a street
address or a business name.
'
maxLength: 255
type: string
address2:
description: 'Second line of the contact''s address.
'
maxLength: 255
type: string
city:
description: 'City of the contact''s address.
'
maxLength: 40
type: string
contactDescription:
description: 'A description for the contact.
'
maxLength: 100
type: string
country:
description: 'Country; must be a valid country name or abbreviation. If
using [Zuora Tax](https://knowledgecenter.zuora.com/Zuora_Billing/Taxes/A_Zuora_Tax),
you must specify a country in the bill-to contact to calculate tax.
'
maxLength: 64
type: string
county:
description: 'County of the contact''s address.
'
maxLength: 32
type: string
customFields:
$ref: '#/definitions/CustomFields'
fax:
description: 'Fax number of the contact.
'
maxLength: 40
type: string
firstName:
description: 'First name of the contact.
'
maxLength: 100
type: string
homePhone:
description: 'Home phone number of the contact.
'
maxLength: 40
type: string
lastName:
description: ''
maxLength: 100
type: string
mobilePhone:
description: 'Mobile phone number of the contact.
'
maxLength: 40
type: string
nickname:
description: 'Nickname of the contact.
'
maxLength: 100
type: string
otherPhone:
description: 'Additional phone number of the contact. Use the `otherPhoneType`
field to specify the type of phone number.
'
maxLength: 40
type: string
otherPhoneType:
description: 'Specifies the type of phone number in the `otherPhone` field.
'
enum:
- Work
- Mobile
- Home
- Other
type: string
personalEmail:
description: 'Personal email address of the contact.
'
format: email
maxLength: 80
type: string
postalCode:
description: 'ZIP code or other postal code of the contact''s address.
'
maxLength: 20
type: string
state:
description: 'State or province of the contact''s address.
'
maxLength: 40
type: string
taxRegion:
description: 'Region defined in your taxation rules. Only applicable if
you use Zuora Tax.
'
maxLength: 32
type: string
workEmail:
description: 'Business email address of the contact.
'
format: email
maxLength: 80
type: string
workPhone:
description: 'Business phone number of the contact.
'
maxLength: 40
type: string
required:
- firstName
- lastName
type: object
- {}
ContactObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Contact object. The name of each custom field
has the form *customField*__c
. Custom field names are case sensitive.
See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Contact object.
'
title: contactFieldsCustom
type: object
ContactResponse:
allOf:
- properties:
accountId:
description: 'The ID of the account associated with the contact.
'
type: string
accountNumber:
description: 'The number of the customer account associated with the contact.
'
type: string
address1:
description: 'The first line of the contact''s address, which is often a
street address or business name.
'
maxLength: 255
type: string
address2:
description: 'The second line of the contact''s address.
'
maxLength: 255
type: string
city:
description: 'The city of the contact''s address.
'
maxLength: 40
type: string
contactDescription:
description: 'A description for the contact.
'
maxLength: 100
type: string
country:
description: 'The country of the contact''s address.
'
maxLength: 64
type: string
county:
description: 'The county. May optionally be used by Zuora Tax to calculate
county tax.
'
maxLength: 32
type: string
fax:
description: "The contact's fax number. \n"
maxLength: 40
type: string
firstName:
description: 'The contact''s first name.
'
maxLength: 100
type: string
homePhone:
description: 'The contact''s home phone number.
'
maxLength: 40
type: string
lastName:
description: 'The contact''s last name.
'
maxLength: 100
type: string
mobilePhone:
description: 'The mobile phone number of the contact.
'
maxLength: 100
type: string
nickname:
description: 'A nickname for the contact.
'
maxLength: 100
type: string
otherPhone:
description: 'An additional phone number for the contact.
'
maxLength: 40
type: string
otherPhoneType:
description: 'The type of the additional phone number.
'
enum:
- Work
- Mobile
- Home
- Other
type: string
personalEmail:
description: 'The contact''s personal email address.
'
maxLength: 74
type: string
state:
description: 'The state or province of the contact''s address.
'
maxLength: 40
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
taxRegion:
description: 'If using Zuora Tax, a region string as optionally defined
in your tax rules. Not required.
'
maxLength: 32
type: string
workEmail:
description: 'The contact''s business email address.
'
maxLength: 74
type: string
workPhone:
description: 'The contact''s business phone number.
'
maxLength: 40
type: string
zipCode:
description: 'The zip code for the contact''s address.
'
maxLength: 20
type: string
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
ContactSnapshotObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Contact Snapshot object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. For more information, see Manage custom fields .
'
description: 'Container for custom fields of a Contact Snapshot object.
'
title: contactSnapshotFieldsCustom
type: object
CreateChangePlan:
description: "Information about an order action of type `changePlan`. \n\nUse\
\ the change plan type of order action to replace the existing rate plans in\
\ a subscription with other rate plans.\n\n**Note**: The change plan type of\
\ order action is currently not supported for Billing - Revenue Integration.\
\ When Billing - Revenue Integration is enabled, the change plan type of order\
\ action will no longer be applicable in Zuora Billing.\n\nIf you want to create\
\ a pending order through the \"change plan\" order action, and if the charge's\
\ trigger condition is `Specific Date`, you must set a charge number in the\
\ `chargeNumber` field for the \"change plan\" order action. In this case, if\
\ you do not set it, Zuora will not generate the charge number for you.\n\n\
See more information about pending orders in Pending orders and subscriptions .\n"
properties:
effectivePolicy:
description: "The default value for the `effectivePolicy` field is as follows:\n\
\ * If the rate plan change (from old to new) is an upgrade, the effective\
\ policy is `EffectiveImmediately` by default.\n * If the rate plan change\
\ (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod`\
\ by default.\n * Otherwise, the effective policy is `SpecificDate` by\
\ default.\n\n**Notes**: \n * When setting this field to `EffectiveEndOfBillingPeriod`,\
\ you cannot set the billing trigger dates for the subscription as the\
\ system will automatically set the trigger dates to the end of billing\
\ period, and you cannot set the following billing trigger date settings\
\ to `Yes`:\n * Require Customer Acceptance of Orders? \n * Require Service Activation of Orders? \n \n * When\
\ setting this field to `SpecificDate`, you must also set the contract effective\
\ date in the `triggerDates` field as follows:\n * Set the `name` field\
\ as `ContractEffective`\n * Specify a date for the `triggerDate` field\n"
enum:
- EffectiveImmediately
- EffectiveEndOfBillingPeriod
- SpecificDate
type: string
externalCatalogPlanId:
description: |
An external ID of the rate plan to be removed. You can use this field to specify an existing rate plan in your subscription. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan. However, if there are multiple rate plans with the same `productRatePlanId` value existing in the subscription, you must use the `ratePlanId` field to remove the rate plan. The `externalCatalogPlanId` field cannot be used to distinguish multiple rate plans in this case.
**Note:** Please provide only one of `externalCatalogPlanId`, `ratePlanId` or `productRatePlanId`. If more than 1 field is provided then the request would fail.
type: string
newProductRatePlan:
$ref: '#/definitions/CreateOrderChangePlanRatePlanOverride'
productRatePlanId:
description: 'ID of the product rate plan that the removed rate plan is based
on.
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
ratePlanId:
description: 'ID of the rate plan to remove. This can be the latest version
or any history version of ID. Note that the removal of a rate plan through
the Change Plan order action supports the function of removal before future-dated removals , as in a Remove
Product order action.
'
type: string
resetBcd:
default: false
description: 'If resetBcd is true then reset the Account BCD to the effective
date; if it is false keep the original BCD.
'
type: boolean
subType:
description: |
Use this field to choose the sub type for your change plan order action.
However, if you do not set this field, the field will be automatically generated by the system according to the following rules:
When the old and new rate plans are within the same Grading catalog group:
* If the grade of new plan is greater than that of the old plan, this is an "Upgrade".
* If the grade of new plan is less than that of the old plan, this is a "Downgrade".
* If the grade of new plan equals that of the old plan, this is a "Crossgrade".
When the old and new rate plans are not in the same Grading catalog group, or either has no group, this is "PlanChanged".
enum:
- Upgrade
- Downgrade
- Crossgrade
- PlanChanged
type: string
subscriptionRatePlanNumber:
description: 'Number of a rate plan for this subscription.
'
type: string
required:
- newProductRatePlan
title: createChangePlan
type: object
CreateEInvoiceFileTemplateRequest:
allOf:
- properties:
content:
description: 'The content of the e-invoice file template, which must be
encoded in Base64 format.
'
type: string
country:
description: 'The short name of of a country or region where you must comply
with e-invoicing requirements. For example, `IN` for India. For the full
list of country names and codes, see ISO Standard Country Codes .
'
type: string
documentType:
description: 'The type of billing documents, which the e-invoice file template
is intended for.
'
enum:
- Invoice
- CreditMemo
- DebitMemo
type: string
name:
description: 'The name of the e-invoice file template.
'
maxLength: 255
type: string
provider:
description: 'The name of an e-invoicing service provider that assists in
generating e-invoice files.
'
enum:
- Sovos
type: string
required:
- country
- documentType
- provider
- content
- name
type: object
example:
content: base64 encoded content
country: IN
documentType: Invoice
name: Sovos e-invoice service
provider: Sovos
CreateEInvoicingBusinessRegionRequest:
allOf:
- properties:
addressLine1:
description: "The first line of the Seller\u2019s address, which is often\
\ a street address or business name.\n"
type: string
addressLine2:
description: "The second line of the Seller\u2019s address, which is often\
\ the name of a building.\n"
type: string
businessName:
description: 'The full official name that the Seller is registered with
the relevant legal authority.
'
maxLength: 255
type: string
businessNumber:
description: |
The specify the unique identifier number of the legal entity or person that you do business with.
For example, you must use a GSTIN for India and Tax Identification Number (TIN) for Saudi Arabia.
type: string
businessNumberSchemaId:
description: 'The identification scheme identifier that an official registrar
issues to identify the Seller as a legal entity or person.
'
type: string
city:
description: 'The the name of the city where the business is located.
'
type: string
contactName:
description: 'The name of the Seller contact to receive e-invoicing data.
'
maxLength: 255
type: string
country:
description: 'The short name of a country or region where you must comply
with e-invoicing requirements. For example, `IN` for India. For the full
list of country names and codes, see ISO Standard Country Codes .
'
type: string
email:
description: 'The email address of the Seller contact to receive e-invoicing
data.
'
type: string
endpointId:
description: 'The Seller''s electronic address, to which the application-level
response to the e-invoice file might be delivered.
'
type: string
endpointSchemeId:
description: "The identification scheme identifier of the Seller\u2019s\
\ electronic address.\n"
type: string
phoneNumber:
description: 'The business phone number of the Seller contact to receive
e-invoicing data.
'
type: string
postalCode:
description: 'The short code that can identify the business address.
'
type: string
serviceProviderId:
description: 'The unique ID of the e-invoicing service provider that is
associated to the business region.
'
type: string
state:
description: 'The name of the state or province where the business is located.
'
type: string
taxRegisterNumber:
description: "The Seller's VAT identifier (also known as Seller VAT identification\
\ number) or the local identification (defined by the Seller\u2019s address)\
\ of the Seller for tax purposes, or a reference that enables the Seller\
\ to state the registered tax status.\n"
type: string
tradeName:
description: 'The name that the Seller is known as, other than the legal
business name.
'
maxLength: 100
type: string
required:
- country
- businessName
type: object
example:
addressLine1: null
addressLine2: null
businessName: legal business name
businessNumber: '20002039'
businessNumberSchemaId: 088
city: Tokyo
contactName: null
country: JP
email: null
endpointId: 08992
endpointSchemeId: 088
phoneNumber: null
postalCode: '368779'
serviceProviderId: 4028948972a2bf990172bc9b27724ddc
state: null
taxRegisterNumber: TAX393999
tradeName: Zuora
CreateEInvoicingServiceProviderRequest:
allOf:
- properties:
apiKey:
description: 'You must create authentication keys (API and Secret Keys)
from a third-party service provider. With hese keys, you can send requests
and interact with the third-party integration endpoints.
'
type: string
name:
description: 'The name of the e-invoicing service provider.
'
maxLength: 100
type: string
provider:
description: 'The name of the e-invoicing service provider that can help
you generate e-invoice files for billing documents.
'
enum:
- Sovos
type: string
secretKey:
description: 'You must create authentication keys (API and Secret Keys)
from a third-party service provider. With hese keys, you can send requests
and interact with the third-party integration endpoints.
'
type: string
test:
description: "Whether the e-invoicing service provider's configuration is\
\ intended for testing. \n\n- If you set this field to `true`, requests\
\ are directed to the testing integration endpoints.\nIf you set this\
\ field to `false`, requests are directed to the production integration\
\ endpoints.\n"
type: boolean
required:
- name
- provider
- apiKey
- secretKey
type: object
example:
apiKey: e765630e-1cf0-437e-8041-680a85eca651
name: Sovos e-invoice service
provider: Sovos
secretKey: xxxxxxxxx
test: false
CreateOfferRatePlanOverride:
description: "Information about an order action of type `addProduct`. \n"
properties:
chargeOverrides:
description: 'List of charges associated with the rate plan.
'
items:
$ref: '#/definitions/CreateOrderChargeOverride'
type: array
clearingExistingFeatures:
description: "Specifies whether all features in the rate plan will be cleared.\
\ \n"
type: boolean
customFields:
$ref: '#/definitions/OrdersRatePlanObjectCustomFields'
externalCatalogPlanId:
description: |
An external ID of the product rate plan to be added. You can use this field to specify a product rate plan that is imported from an external system. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan.
**Note:** If both `externalCatalogPlanId` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
externallyManagedPlanId:
description: 'Indicates the unique identifier for the rate plan purchased
on a third-party store. This field is used to represent a subscription rate
plan created through third-party stores.
'
type: string
productRatePlanId:
description: 'Internal identifier of the product rate plan that the rate plan
is based on.
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
sequence:
description: 'The sequence in offer rateplan override. If there are more than
one same rateplan in the offer, please provide the sequence.
'
type: integer
subscriptionProductFeatures:
description: |
List of features associated with the rate plan.
The system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:
* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.
* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.
items:
$ref: '#/definitions/CreateOrderRatePlanFeatureOverride'
type: array
uniqueToken:
description: |
Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.
For instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.
maxLength: 50
type: string
title: ratePlan
type: object
CreateOrUpdateEmailTemplatesResponse:
example:
reasons: []
properties:
reasons:
description: 'Returns an empty array if the request succeeds.
'
items:
type: string
type: array
type: object
CreateOrderChangePlanRatePlanOverride:
description: "Information about the new product rate plan to add. \n"
properties:
chargeOverrides:
description: 'List of charges associated with the rate plan.
'
items:
$ref: '#/definitions/ChangePlanChargeOverride'
type: array
clearingExistingFeatures:
description: 'Specifies whether all features in the rate plan will be cleared.
'
type: boolean
customFields:
$ref: '#/definitions/OrdersRatePlanObjectCustomFields'
externalCatalogPlanId:
description: |
An external ID of the product rate plan to be added. You can use this field to specify a product rate plan that is imported from an external system. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan.
**Note:** If both `externalCatalogPlanId` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
externallyManagedPlanId:
description: 'Indicates the unique identifier for the rate plan purchased
on a third-party store. This field is used to represent a subscription rate
plan created through third-party stores.
'
type: string
isFromExternalCatalog:
description: |
Indicates whether the rate plan is created from the Zuora product catalog or from an external product catalog.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: boolean
productRatePlanId:
description: 'Internal identifier of the product rate plan that the rate plan
is based on.
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
ratePlanName:
description: |
Name of the standalone rate plan.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
subscriptionProductFeatures:
description: |
List of features associated with the rate plan.
The system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:
* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.
* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.
items:
$ref: '#/definitions/CreateOrderRatePlanFeatureOverride'
type: array
uniqueToken:
description: |
Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.
For instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.
maxLength: 50
type: string
title: ratePlan
type: object
CreateOrderChargeOverride:
description: 'Charge associated with a rate plan.
'
properties:
accountReceivableAccountingCode:
description: |
The accountReceivableAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders , Zuora Finance , and Invoice Settlement features are enabled.
type: string
adjustmentLiabilityAccountingCode:
description: |
The adjustmentLiabilityAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
adjustmentRevenueAccountingCode:
description: |
The adjustmentRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
billing:
description: 'Billing information about the charge.
'
properties:
billCycleDay:
description: 'Day of the month that each billing period begins on. Only
applicable if the value of the `billCycleType` field is `SpecificDayofMonth`.
'
maximum: 31
minimum: 0
type: integer
billCycleType:
description: |
Specifies how Zuora determines the day that each billing period begins on.
* `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.
* `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.
* `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.
* `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.
* `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.
enum:
- DefaultFromCustomer
- SpecificDayofMonth
- SubscriptionStartDay
- ChargeTriggerDay
- SpecificDayofWeek
type: string
billingPeriod:
description: |
Billing frequency of the charge. The value of this field controls the duration of each billing period.
If the value of this field is `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.
enum:
- Month
- Quarter
- Semi_Annual
- Annual
- Eighteen_Months
- Two_Years
- Three_Years
- Five_Years
- Specific_Months
- Subscription_Term
- Week
- Specific_Weeks
- Specific_Days
type: string
billingPeriodAlignment:
description: |
Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.
* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.
* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.
* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.
See the `billCycleType` field for information about how Zuora determines the billing day.
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
type: string
billingTiming:
description: 'Specifies whether to invoice for a billing period on the
first day of the billing period (billing in advance) or the first day
of the next billing period (billing in arrears).
'
enum:
- IN_ADVANCE
- IN_ARREARS
type: string
specificBillingPeriod:
description: 'Duration of each billing period in months or weeks, depending
on the value of the `billingPeriod` field. Only applicable if the value
of the `billingPeriod` field is `Specific_Months` or `Specific_Weeks`.
'
type: integer
weeklyBillCycleDay:
description: 'Day of the week that each billing period begins on. Only
applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.
'
enum:
- Sunday
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
type: string
type: object
chargeModel:
description: |
The chargeModel of a standalone charge.
Supported charge models:
* `FlatFee`
* `PerUnit`
* `Volume`
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
chargeNumber:
description: |
Charge number of the charge. For example, C-00000307.
If you do not set this field, Zuora will generate the charge number.
maxLength: 50
type: string
chargeType:
description: |
The chargeType of a standalone charge.
Supported charge types:
* `OneTime`
* `Recurring`
* `Usage`
* `DiscountFixedAmount`
* `DiscountPercentage`
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
contractAssetAccountingCode:
description: |
The contractAssetAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
contractLiabilityAccountingCode:
description: |
The contractLiabilityAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
contractRecognizedRevenueAccountingCode:
description: |
The contractRecognizedRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
customFields:
$ref: '#/definitions/RatePlanChargeObjectCustomFields'
deferredRevenueAccountingCode:
description: |
The deferredRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders and Zuora Finance features are enabled.
type: string
description:
description: 'Description of the charge.
'
maxLength: 500
type: string
drawdownRate:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).
type: number
endDate:
$ref: '#/definitions/EndConditions'
excludeItemBillingFromRevenueAccounting:
default: false
description: "The flag to exclude rate plan charge related invoice items,\
\ invoice item adjustments, credit memo items, and debit memo items from\
\ revenue accounting.\n\nIf both the following features in Advanced Consumption Billing are enabled in your\
\ tenant, you must ensure the `excludeItemBillingFromRevenueAccounting`\
\ field is set consistently for a prepayment charge and the corresponding\
\ drawdown charge. In addition, if the `excludeItemBookingFromRevenueAccounting`\
\ field in a Create Subscription or Add Product order action is set to `false`,\
\ you must also set the `excludeItemBillingFromRevenueAccounting` field\
\ in this order action to `false`.\n * Prepaid with Drawdown\n * Unbilled\
\ Usage\n\n**Note**: This field is only available if you have the Order to Revenue or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration)\
\ feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
default: false
description: "The flag to exclude rate plan charges from revenue accounting.\n\
\nIf both the following features in Advanced Consumption Billing are enabled in your\
\ tenant, you must ensure the `excludeItemBookingFromRevenueAccounting`\
\ field is set consistently for a prepayment charge and the corresponding\
\ drawdown charge.\n * Prepaid with Drawdown\n * Unbilled Usage\n\n**Note**:\
\ This field is only available if you have the Order to Revenue or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration)\
\ feature enabled. \n"
type: boolean
isAllocationEligible:
description: |
This field is used to identify if the charge segment is allocation eligible in revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
isRollover:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The value is either "True" or "False". It determines whether the rollover fields are needed.
type: boolean
isUnbilled:
description: |
This field is used to dictate how to perform the accounting during revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
name:
description: |
The name of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
pobPolicy:
description: |
The pobPolicy of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
prepaidQuantity:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).
type: number
pricing:
description: 'Pricing information about the charge.
'
properties:
chargeModelData:
$ref: '#/definitions/ChargeModelDataOverride'
discount:
$ref: '#/definitions/DiscountPricingOverride'
oneTimeFlatFee:
$ref: '#/definitions/OneTimeFlatFeePricingOverride'
oneTimePerUnit:
$ref: '#/definitions/OneTimePerUnitPricingOverride'
oneTimeTiered:
$ref: '#/definitions/OneTimeTieredPricingOverride'
oneTimeVolume:
$ref: '#/definitions/OneTimeVolumePricingOverride'
recurringDeliveryBased:
$ref: '#/definitions/RecurringDeliveryPricingOverride'
recurringFlatFee:
$ref: '#/definitions/RecurringFlatFeePricingOverride'
recurringPerUnit:
$ref: '#/definitions/RecurringPerUnitPricingOverride'
recurringTiered:
$ref: '#/definitions/RecurringTieredPricingOverride'
recurringVolume:
$ref: '#/definitions/RecurringVolumePricingOverride'
usageFlatFee:
$ref: '#/definitions/UsageFlatFeePricingOverride'
usageOverage:
$ref: '#/definitions/UsageOveragePricingOverride'
usagePerUnit:
$ref: '#/definitions/UsagePerUnitPricingOverride'
usageTiered:
$ref: '#/definitions/UsageTieredPricingOverride'
usageTieredWithOverage:
$ref: '#/definitions/UsageTieredWithOveragePricingOverride'
usageVolume:
$ref: '#/definitions/UsageVolumePricingOverride'
type: object
productCategory:
description: |
The productCategory of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productClass:
description: |
The productClass of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productFamily:
description: |
The productFamily of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productLine:
description: |
The productLine of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productRatePlanChargeId:
description: 'Internal identifier of the product rate plan charge that the
charge is based on.
'
type: string
productRatePlanChargeNumber:
description: 'Number of a product rate-plan charge for this subscription.
'
type: string
recognizedRevenueAccountingCode:
description: |
The recognizedRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders and Zuora Finance features are enabled.
type: string
revRecCode:
description: 'Revenue Recognition Code
'
maxLength: 70
type: string
revRecTriggerCondition:
description: "Specifies the revenue recognition trigger condition.\n\n *\
\ `Contract Effective Date` \n * `Service Activation Date`\n * `Customer\
\ Acceptance Date`\n"
enum:
- Contract Effective Date
- Service Activation Date
- Customer Acceptance Date
type: string
revenueRecognitionRuleName:
description: 'Specifies the revenue recognition rule, such as `Recognize upon
invoicing` or `Recognize daily over time`.
'
type: string
rolloverApply:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
This field defines the priority of rollover, which is either first or last.
enum:
- ApplyFirst
- ApplyLast
type: string
rolloverPeriodLength:
default: null
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The period length of the rollover fund.
type: integer
rolloverPeriods:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
This field defines the number of rollover periods, it is restricted to 3.
type: number
startDate:
$ref: '#/definitions/CreateOrderTriggerParams'
taxCode:
description: |
The taxCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
taxMode:
description: "The taxMode of a standalone charge. \n\nValues:\n* `TaxExclusive`\n\
* `TaxInclusive`\n\n**Note:** This field is available when the Standalone Orders feature is enabled.\n"
type: string
unBilledReceivablesAccountingCode:
description: |
The unBilledReceivablesAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
uniqueToken:
description: |
Unique identifier for the charge. This identifier enables you to refer to the charge before the charge has an internal identifier in Zuora.
For instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the charge. Then when you update the product, you can use the same unique identifier to specify which charge to modify.
maxLength: 50
type: string
validityPeriodType:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).
enum:
- SUBSCRIPTION_TERM
- ANNUAL
- SEMI_ANNUAL
- QUARTER
- MONTH
type: string
required:
- productRatePlanChargeId
title: charge
type: object
CreateOrderChargeUpdate:
description: 'The JSON object containing the information for a charge update in
the ''UpdateProduct'' type order action.
'
properties:
billing:
$ref: '#/definitions/BillingUpdate'
chargeNumber:
description: 'The number of the charge to be updated. The value of this field
is inherited from the `subscriptions` > `orderActions` > `addProduct` >
`chargeOverrides` > `chargeNumber` field.
'
type: string
customFields:
$ref: '#/definitions/RatePlanChargeObjectCustomFields'
description:
type: string
effectiveDate:
$ref: '#/definitions/CreateOrderUpdateProductTriggerParams'
prepaidQuantity:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).
type: number
pricing:
allOf:
- $ref: '#/definitions/CreateOrderPricingUpdate'
description: 'Pricing information about the charge.
'
uniqueToken:
description: 'A unique string to represent the rate plan charge in the order.
The unique token is used to perform multiple actions against a newly added
rate plan charge. For example, if you want to add and update a product in
the same order, assign a unique token to the newly added rate plan charge
and use that token in future order actions.
'
type: string
type: object
CreateOrderCreateSubscription:
description: 'Information about an order action of type `CreateSubscription`.
'
properties:
billToContactId:
description: "The ID of the bill-to contact associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Contact from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
currency:
description: "The code of currency that is used for this subscription. If\
\ the currency is not selected, the default currency from the account will\
\ be used.\n\nAll subscriptions in the same order must use the same currency.\
\ The currency for a subscription cannot be changed.\n\n**Note**: \n This\
\ field is available only if you have the Multiple Currencies feature enabled.\n"
maxLength: 3
type: string
invoiceSeparately:
description: 'Specifies whether the subscription appears on a separate invoice
when Zuora generates invoices.
'
type: boolean
invoiceTemplateId:
description: "The ID of the invoice template associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Template from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
newSubscriptionOwnerAccount:
$ref: '#/definitions/CreateOrderCreateSubscriptionNewSubscriptionOwnerAccount'
notes:
description: 'Notes about the subscription. These notes are only visible to
Zuora users.
'
maxLength: 500
type: string
paymentTerm:
description: "The name of the payment term associated with the subscription.\
\ For example, `Net 30`. The payment term determines the due dates of invoices.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Term from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
sequenceSetId:
description: "The ID of the sequence set associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Set from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
soldToContactId:
description: "The ID of the sold-to contact associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Contact from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
subscribeToProducts:
description: "List of offers or rate plans associated with the subscription.\
\ \n- For a rate plans, the following fields are available:\n - `chargeOverrides`\n\
\ - `clearingExistingFeatures`\n - `customFields`\n - `externalCatalogPlanId`\n\
\ - `externallyManagedPlanId`\n - `productRatePlanId`\n - `subscriptionProductFeatures`\n\
\ - `uniqueToken`\n- For an offer, the following fields are available:\n\
\ - `customFields`\n - `productOfferId`\n - `productOfferNumber`\n -\
\ `ratePlanOverrides`\n - `subscriptionOfferUniqueToken`\n"
items:
$ref: '#/definitions/CreateSubscribeToProduct'
type: array
subscribeToRatePlans:
description: |
List of rate plans associated with the subscription.
**Note**: The `subscribeToRatePlans` field has been deprecated, this field is replaced by the `subscribeToProducts` field that supports both Rate Plans and Offers. In a new order request, you can use either `subscribeToRatePlans` or `subscribeToProducts`, not both.
items:
$ref: '#/definitions/CreateOrderRatePlanOverride'
type: array
subscriptionNumber:
description: |
Subscription number of the subscription. For example, A-S00000001.
If you do not set this field, Zuora will generate the subscription number.
maxLength: 100
type: string
subscriptionOwnerAccountNumber:
description: |
Account number of an existing account that will own the subscription. For example, A00000001.
If you do not set this field or the `newSubscriptionOwnerAccount` field, the account that owns the order will also own the subscription. Zuora will return an error if you set this field and the `newSubscriptionOwnerAccount` field.
maxLength: 70
type: string
terms:
description: 'Container for the terms and renewal settings of the subscription.
'
properties:
autoRenew:
description: 'Specifies whether the subscription automatically renews
at the end of the each term. Only applicable if the type of the first
term is `TERMED`.
'
type: boolean
initialTerm:
description: 'Information about the first term of the subscription.
'
properties:
period:
description: 'Duration of the first term in months, years, days, or
weeks, depending on the value of the `periodType` field. Only applicable
if the value of the `termType` field is `TERMED`.
'
type: integer
periodType:
description: 'Unit of time that the first term is measured in. Only
applicable if the value of the `termType` field is `TERMED`.
'
enum:
- Month
- Year
- Day
- Week
type: string
startDate:
description: 'Start date of the first term, in YYYY-MM-DD format.
'
format: date
type: string
termType:
description: 'Type of the first term. If the value of this field is
`TERMED`, the first term has a predefined duration based on the
value of the `period` field. If the value of this field is `EVERGREEN`,
the first term does not have a predefined duration.
'
enum:
- TERMED
- EVERGREEN
type: string
required:
- termType
type: object
renewalSetting:
description: |
Specifies the type of the terms that follow the first term if the subscription is renewed. Only applicable if the type of the first term is `TERMED`.
* `RENEW_WITH_SPECIFIC_TERM` - Each renewal term has a predefined duration. The first entry in `renewalTerms` specifies the duration of the second term of the subscription, the second entry in `renewalTerms` specifies the duration of the third term of the subscription, and so on. The last entry in `renewalTerms` specifies the ultimate duration of each renewal term.
* `RENEW_TO_EVERGREEN` - The second term of the subscription does not have a predefined duration.
enum:
- RENEW_WITH_SPECIFIC_TERM
- RENEW_TO_EVERGREEN
type: string
renewalTerms:
description: 'List of renewal terms of the subscription. Only applicable
if the type of the first term is `TERMED` and the value of the `renewalSetting`
field is `RENEW_WITH_SPECIFIC_TERM`.
'
items:
$ref: '#/definitions/RenewalTerm'
type: array
required:
- initialTerm
type: object
title: createSubscription
type: object
CreateOrderCreateSubscriptionNewSubscriptionOwnerAccount:
allOf:
- description: |
Information about a new account that will own the subscription. Only available if you have enabled the Owner Transfer feature.
**Note:** The Owner Transfer feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
If you do not set this field or the `subscriptionOwnerAccountNumber` field, the account that owns the order will also own the subscription. Zuora will return an error if you set this field and the `subscriptionOwnerAccountNumber` field.
properties:
accountNumber:
description: 'Account number. For example, A00000001.
'
maxLength: 70
type: string
additionalEmailAddresses:
description: 'List of additional email addresses to receive emailed invoices.
Values should be a comma-separated list of email addresses.
'
maxLength: 1200
type: string
allowInvoiceEdit:
description: "Indicates if associated invoices can be edited.\nValues are:\
\ \n\n* `true`\n* `false` (default)\n"
type: boolean
autoPay:
description: 'Specifies whether future payments are automatically billed
when they are due.
'
type: boolean
batch:
description: 'Name of the billing batch that the account belongs to. For
example, Batch1.
'
type: string
billCycleDay:
description: 'Day of the month that the account prefers billing periods
to begin on. If set to 0, the bill cycle day will be set as "AutoSet".
'
maximum: 31
minimum: 0
type: integer
billToContact:
$ref: '#/definitions/BillToContactPostOrder'
communicationProfileId:
description: 'Internal identifier of the communication profile that Zuora
uses when sending notifications to the account''s contacts.
'
type: string
creditCard:
$ref: '#/definitions/creditCard'
creditMemoTemplateId:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
The unique ID of the credit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08a6246fdf101626b1b3fe0144b.
type: string
crmId:
description: 'External identifier of the account in a CRM system.
'
maxLength: 100
type: string
currency:
description: 'ISO 3-letter currency code (uppercase). For example, USD.
'
type: string
customFields:
$ref: '#/definitions/AccountObjectCustomFields'
customerServiceRepName:
description: 'Name of the account''s customer service representative, if
applicable.
'
maxLength: 50
type: string
debitMemoTemplateId:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
The unique ID of the debit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08d62470a8501626b19d24f19e2.
type: string
hpmCreditCardPaymentMethodId:
description: |
The ID of the payment method associated with this account. The payment method specified for this field will be set as the default payment method of the account.
If the `autoPay` field is set to `true`, you must provide the credit card payment method ID for either this field or the `creditCard` field,
but not both.
For the Credit Card Reference Transaction payment method, you can specify the payment method ID in this field or use the `paymentMethod` field to create a CC Reference Transaction payment method for an account.
type: string
invoiceDeliveryPrefsEmail:
description: "Specifies whether to turn on the invoice delivery method 'Email'\
\ for the new account. \nValues are: \n\n* `true` (default). Turn on the\
\ invoice delivery method 'Email' for the new account.\n* `false`. Turn\
\ off the invoice delivery method 'Email' for the new account. \
\ \n"
type: boolean
invoiceDeliveryPrefsPrint:
description: "Specifies whether to turn on the invoice delivery method 'Print'\
\ for the new account.\nValues are: \n\n* `true`. Turn on the invoice\
\ delivery method 'Print' for the new account.\n* `false` (default). Turn\
\ off the invoice delivery method 'Print' for the new account.\n"
type: boolean
invoiceTemplateId:
description: 'Internal identifier of the invoice template that Zuora uses
when generating invoices for the account.
'
type: string
name:
description: 'Account name.
'
maxLength: 255
type: string
notes:
description: 'Notes about the account. These notes are only visible to Zuora
users.
'
maxLength: 65535
type: string
parentId:
description: Identifier of the parent customer account for this Account
object. Use this field if you have Customer Hierarchy enabled.
type: string
paymentGateway:
description: 'The payment gateway that Zuora uses when processing electronic
payments and refunds for the account. If you do not specify this field
or if the value of this field is null, Zuora uses your default payment
gateway.
'
maxLength: 40
type: string
paymentMethod:
$ref: '#/definitions/CreateOrderCreateSubscriptionNewSubscriptionOwnerAccountPaymentMethod'
paymentTerm:
description: 'Name of the payment term associated with the account. For
example, "Net 30". The payment term determines the due dates of invoices.
'
type: string
purchaseOrderNumber:
description: 'The number of the purchase order associated with this account.
Purchase order information generally comes from customers.
'
maxLength: 100
type: string
salesRep:
description: 'The name of the sales representative associated with this
account, if applicable.
'
maxLength: 50
type: string
soldToContact:
$ref: '#/definitions/SoldToContactPostOrder'
taxInfo:
$ref: '#/definitions/TaxInfo'
required:
- name
- currency
- billCycleDay
- billToContact
type: object
- $ref: '#/definitions/DataAccessControlField'
CreateOrderCreateSubscriptionNewSubscriptionOwnerAccountPaymentMethod:
allOf:
- properties:
type:
description: |
Type of payment method. The following types of the payment method are supported:
* `CreditCard` - Credit card payment method.
* `CreditCardReferenceTransaction` - Credit Card Reference Transaction. See [Supported payment methods](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Supported_Payment_Methods) for payment gateways that support this type of payment method.
* `ACH` - ACH payment method.
* `SEPA` - Single Euro Payments Area.
* `Betalingsservice` - Direct Debit DK.
* `Autogiro` - Direct Debit SE.
* `Bacs` - Direct Debit UK.
* `Becs` - Direct Entry AU.
* `Becsnz` - Direct Debit NZ.
* `PAD` - Pre-Authorized Debit.
* `PayPalCP` - PayPal Commerce Platform payment method. Use this type if you are using a [PayPal Commerce Platform Gateway](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Commerce_Platform_Gateway) instance.
* `PayPalEC` - PayPal Express Checkout payment method. Use this type if you are using a [PayPal Payflow Pro Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Payflow_Pro%2C_Website_Payments_Payflow_Edition%2C_Website_Pro_Payment_Gateway) instance.
* `PayPalNativeEC` - PayPal Native Express Checkout payment method. Use this type if you are using a [PayPal Express Checkout Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Express_Checkout_Gateway) instance.
* `PayPalAdaptive` - PayPal Adaptive payment method. Use this type if you are using a [PayPal Adaptive Payment Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Adaptive_Payments_Gateway) instance.
* `AdyenApplePay` - Apple Pay on Adyen Integration v2.0. See [Set up Adyen Apple Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Apple_Pay_on_Web/Set_up_Adyen_Apple_Pay) for details.
* `AdyenGooglePay` - Google Pay on Adyen Integration v2.0. See [Set up Adyen Google Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Adyen_Google_Pay) for details.
* `GooglePay` - Google Pay on Chase Paymentech Orbital gateway integration. See [Set up Google Pay on Chase](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Google_Pay_on_Chase) for details.
* You can also specify a custom payment method type. 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 details.
type: string
required:
- type
type: object
- $ref: '#/definitions/CreatePMPayPalECPayPalNativeECPayPalCP'
- $ref: '#/definitions/CreatePaymentMethodPayPalAdaptive'
- $ref: '#/definitions/CreateOrderCreateSubscriptionNewSubscriptionOwnerAccountPaymentMethodCreditCard'
- $ref: '#/definitions/CreatePaymentMethodACH'
- $ref: '#/definitions/CreatePaymentMethodCommon'
- $ref: '#/definitions/PaymentMethodObjectCustomFields'
- $ref: '#/definitions/CreatePaymentMethodBankTransfer'
- $ref: '#/definitions/CreatePaymentMethodCCReferenceTransaction'
- $ref: '#/definitions/CreatePaymentMethodApplePayAdyen'
- $ref: '#/definitions/CreatePaymentMethodGooglePayAdyenChase'
description: 'Payment method to create for this new account. Supports all the
payment methods that are supported in the "Create a payment method" operation.
See [Create a payment method](https://developer.zuora.com/api-references/api/operation/POST_PaymentMethods)
for more information.
'
CreateOrderCreateSubscriptionNewSubscriptionOwnerAccountPaymentMethodCreditCard:
properties:
cardHolderInfo:
$ref: '#/definitions/CreatePaymentMethodCardholderInfo'
cardNumber:
description: 'Credit card number.
'
type: string
cardType:
description: |
The type of the credit card.
Possible values include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Gateways](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways).
type: string
checkDuplicated:
description: "Indicates whether the duplication check is performed when you\
\ create a new credit card payment method. The default value is `false`.\n\
\nWith this field set to `true`, Zuora will check all active payment methods\
\ associated with the same billing account to ensure that no duplicate credit\
\ card payment methods are created. An error is returned if a duplicate\
\ payment method is found.\n \nThe following fields are used for\
\ the duplication check:\n * `cardHolderName`\n * `expirationMonth`\n\
\ * `expirationYear`\n * `creditCardMaskNumber`. It is the masked credit\
\ card number generated by Zuora. For example, `****1234`. \n"
type: boolean
expirationMonth:
description: 'One or two digit expiration month (1-12) of the credit card.
'
type: string
expirationYear:
description: 'Four-digit expiration year of the credit card.
'
type: string
mitConsentAgreementRef:
description: 'Specifies your reference for the stored credential consent agreement
that you have established with the customer. Only applicable if you set
the `mitProfileAction` field.
'
maxLength: 128
type: string
mitConsentAgreementSrc:
description: 'Required if you set the `mitProfileAction` field. Specify how
the consent agreement has been established with the customer. The allowed
value is `External`. If you do not specify the `mitProfileAction` field,
Zuora will automatically create a stored credential profile for the payment
method, with the default value `External` set to this field.
'
enum:
- External
type: string
mitNetworkTransactionId:
description: 'Specifies the ID of a network transaction. Only applicable if
you set the `mitProfileAction` field to `Persist`.
'
maxLength: 128
type: string
mitProfileAction:
description: "Specifies how Zuora creates and activates the stored credential\
\ profile.\n\n* `Activate` - Use this value if you are creating the stored\
\ credential profile after receiving the customer's consent.\n\n Zuora\
\ will create the stored credential profile then send a cardholder-initiated\
\ transaction (CIT) to the payment gateway to validate the stored credential\
\ profile. If the CIT succeeds, the status of the stored credential profile\
\ will be `Active`. If the CIT does not succeed, Zuora will not create a\
\ stored credential profile.\n \n If the payment gateway does not support\
\ the stored credential transaction framework, the status of the stored\
\ credential profile will be `Agreed`.\n\n\n* `Persist` - Use this value\
\ if the stored credential profile represents a stored credential profile\
\ in an external system. The status of the payment method's stored credential\
\ profile will be `Active`.\n\nIf you do not specify this field, Zuora will\
\ automatically create a stored credential profile for the payment method,\
\ with the default value `Activate` set to this field.\n"
enum:
- Activate
- Persist
type: string
mitProfileAgreedOn:
description: 'The date on which the profile is agreed. The date format is
`yyyy-mm-dd`.
'
format: date
type: string
mitProfileType:
description: 'Required if you set the `mitProfileAction` field. If you do
not specify the `mitProfileAction` field, Zuora will automatically create
a stored credential profile for the payment method, with the default value
`Recurring` set to this field.
'
enum:
- Recurring
type: string
securityCode:
description: |
CVV or CVV2 security code of the credit card.
To ensure PCI compliance, this value is not stored and cannot be queried.
type: string
type: object
CreateOrderOfferUpdate:
description: 'Information about an order action of type `UpdateProduct`.
'
properties:
ratePlanUpdates:
items:
$ref: '#/definitions/RatePlanUpdate'
type: array
subscriptionOfferId:
description: "Internal identifier of the subscription offer. \n\n**Note**:\
\ You must enable the Offers feature to access this field. The Offers 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"
type: string
subscriptionOfferNumber:
description: "Number of the subscription offer. \n\n**Note**: You must enable\
\ the Offers feature to access this field. The Offers 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"
maxLength: 100
type: string
subscriptionOfferUniqueToken:
description: "Unique identifier of the subscription offer. \n\n**Note**: You\
\ must enable the Offers feature to access this field. The Offers 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"
type: string
title: updateOffer
type: object
CreateOrderOrderAction:
properties:
addProduct:
allOf:
- $ref: '#/definitions/CreateOrderRatePlanOverride'
- $ref: '#/definitions/CreateOrderProductOverride'
description: "Either a rate plan or offer can be added to a subscription through\
\ one order action, but not both; otherwise, an error occurs.\n - For a\
\ rate plan, the following fields are available:\n - `chargeOverrides`\n\
\ - `clearingExistingFeatures`\n - `customFields`\n - `externalCatalogPlanId`\n\
\ - `externallyManagedPlanId` \n - `productRatePlanId`\n \
\ - `productRatePlanNumber`\n - `subscriptionProductFeatures`\n \
\ - `uniqueToken`\n - For an offer, the following fields are available:\n\
\ - `customFields`\n - `productOfferId`\n - `productOfferNumber`\n\
\ - `ratePlanOverrides`\n - `subscriptionOfferUniqueToken`\n"
cancelSubscription:
$ref: '#/definitions/CancelSubscription'
changePlan:
$ref: '#/definitions/CreateChangePlan'
changeReason:
description: 'The change reason set for an order action when an order is created.
'
type: string
createSubscription:
$ref: '#/definitions/CreateOrderCreateSubscription'
customFields:
$ref: '#/definitions/OrderActionObjectCustomFields'
ownerTransfer:
$ref: '#/definitions/OwnerTransfer'
removeProduct:
$ref: '#/definitions/RemoveProduct'
renewSubscription:
$ref: '#/definitions/RenewSubscription'
resume:
$ref: '#/definitions/CreateOrderResume'
suspend:
$ref: '#/definitions/CreateOrderSuspend'
termsAndConditions:
$ref: '#/definitions/CreateOrderTermsAndConditions'
triggerDates:
description: "Container for the contract effective, service activation, and\
\ customer acceptance dates of the order action. \n\nIf [Zuora is configured\
\ to require service activation](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Service_Activation_of_Orders.3F)\
\ and the `ServiceActivation` field is not set for a `CreateSubscription`\
\ order action, a `Pending` order and a `Pending Activation` subscription\
\ are created.\n\nIf [Zuora is configured to require customer acceptance](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Customer_Acceptance_of_Orders.3F)\
\ and the `CustomerAcceptance` field is not set for a `CreateSubscription`\
\ order action, a `Pending` order and a `Pending Acceptance` subscription\
\ are created. At the same time, if the service activation date field is\
\ also required and not set, a `Pending` order and a `Pending Activation`\
\ subscription are created instead.\n\nIf [Zuora is configured to require\
\ service activation](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Service_Activation_of_Orders.3F)\
\ and the `ServiceActivation` field is not set for either of the following\
\ order actions, a `Pending` order is created. The subscription status is\
\ not impacted. **Note:** This feature is in **Limited Availability**. If\
\ you want to have access to the feature, submit a request at [Zuora Global\
\ Support](http://support.zuora.com/).\n * AddProduct\n * UpdateProduct\n\
\ * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n\nIf [Zuora\
\ is configured to require customer acceptance](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Customer_Acceptance_of_Orders.3F)\
\ and the `CustomerAcceptance` field is not set for either of the following\
\ order actions, a `Pending` order is created. The subscription status is\
\ not impacted. **Note:** This feature is in **Limited Availability**. If\
\ you want to have access to the feature, submit a request at [Zuora Global\
\ Support](http://support.zuora.com/).\n * AddProduct\n * UpdateProduct\n\
\ * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n"
items:
$ref: '#/definitions/TriggerDate'
type: array
type:
description: "Type of order action.\n\nUnless the type of order action is\
\ `RenewSubscription`, you must use the corresponding field to provide information\
\ about the order action. For example, if the type of order action is `AddProduct`,\
\ you must set the `addProduct` field.\n\nZuora returns an error if you\
\ set a field that corresponds to a different type of order action. For\
\ example, if the type of order action is `AddProduct`, Zuora returns an\
\ error if you set the `updateProduct` field.\n\nA [pending order](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/Pending_Order_and_Subscription)\
\ supports the following order actions:\n * CreateSubscription\n * AddProduct\n\
\ * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n\
\ * ChangePlan\n\nHowever, pending orders created through all order actions\
\ except for \"Create new subscription\":\n * Do not impact the subscription\
\ status.\n * Are in **Limited Availability**. If you want to have access\
\ to the feature, submit a request at [Zuora Global Support](https://support.zuora.com).\
\ \n\nA pending order is created in either of the following conditions:\n\
\ * [Zuora is configured to require service activation](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Service_Activation_of_Orders.3F)\
\ and the service activation date is not set in your \"Create an order\"\
\ call.\n * [Zuora is configured to require customer acceptance](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Customer_Acceptance_of_Orders.3F)\
\ and the customer acceptance date is not set in your \"Create an order\"\
\ call.\n * When a charge in the subscription has its `triggerEvent` field\
\ set as `SpecificDate` and the `specificTriggerDate` field is not set in\
\ your \"Create an order\" API call.\n\n**Note**: The change plan type of\
\ order action is currently not supported for Billing - Revenue Integration.\
\ When Billing - Revenue Integration is enabled, the change plan type of\
\ order action will no longer be applicable in Zuora Billing.\n"
enum:
- CreateSubscription
- TermsAndConditions
- AddProduct
- UpdateProduct
- RemoveProduct
- RenewSubscription
- CancelSubscription
- OwnerTransfer
- Suspend
- Resume
- ChangePlan
type: string
updateProduct:
allOf:
- $ref: '#/definitions/CreateOrderRatePlanUpdate'
- $ref: '#/definitions/CreateOrderOfferUpdate'
description: "Either a rate plan or offer can be updated in a subscription\
\ through one order action, but not both; otherwise, an error occurs.\n\
\ - For a rate plan, the following fields are available:\n - `chargeUpdates`\n\
\ - `clearingExistingFeatures`\n - `customFields`\n - `externalCatalogPlanId`\
\ \n - `ratePlanId`\n - `productRatePlanNumber`\n - `subscriptionRatePlanNumber`\n\
\ - `uniqueToken`\n - `specificUpdateDate`\n - `subscriptionProductFeatures`\n\
\ - `uniqueToken`\n - For an offer, the following fields are available:\n\
\ - `customFields`\n - `ratePlanUpdates`\n - `subscriptionOfferId`\n\
\ - `subscriptionOfferNumber`\n - `subscriptionOfferUniqueToken`\n"
required:
- type
type: object
CreateOrderOrderLineItem:
allOf:
- $ref: '#/definitions/OrderLineItemCommonPostOrder'
CreateOrderPricingUpdate:
properties:
chargeModelData:
allOf:
- $ref: '#/definitions/ChargeModelDataOverride'
description: |
Container for charge model configuration data.
**Note**: This field is only available if you have the High Water Mark, Pre-Rated Pricing, or Multi-Attribute Pricing charge models enabled. The High Water Mark and Pre-Rated Pricing charge models are available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
discount:
allOf:
- $ref: '#/definitions/DiscountPricingUpdate'
description: 'Pricing information about a discount charge.
'
recurringDeliveryBased:
allOf:
- $ref: '#/definitions/RecurringDeliveryPricingUpdate'
description: |
This field is only available if you have the Delivery Pricing charge model enabled.
**Note**: The Delivery Pricing charge model is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Enable billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features) in the Knowledge Center. You can check **Delivery Pricing** in **Billing Settings** > **Enable Charge Types / Models**.
recurringFlatFee:
allOf:
- $ref: '#/definitions/RecurringFlatFeePricingUpdate'
description: 'Pricing information about a recurring charge that uses the "flat
fee" charge model. In this charge model, the charge has a fixed price.
'
recurringPerUnit:
allOf:
- $ref: '#/definitions/RecurringPerUnitPricingUpdate'
description: 'Pricing information about a recurring charge that uses the "per
unit" charge model. In this charge model, the charge has a fixed price per
unit purchased.
'
recurringTiered:
allOf:
- $ref: '#/definitions/RecurringTieredPricingUpdate'
description: 'Pricing information about a recurring charge that uses the "tiered
pricing" charge model. In this charge model, the charge has cumulative pricing
tiers that become effective as units are purchased.
'
recurringVolume:
allOf:
- $ref: '#/definitions/RecurringVolumePricingUpdate'
description: 'Pricing information about a recurring charge that uses the "volume
pricing" charge model. In this charge model, the charge has a variable price
per unit, depending on how many units are purchased.
'
usageFlatFee:
allOf:
- $ref: '#/definitions/UsageFlatFeePricingUpdate'
description: 'Pricing information about a usage charge that uses the "flat
fee" charge model. In this charge model, the charge has a fixed price.
'
usageOverage:
allOf:
- $ref: '#/definitions/UsageOveragePricingUpdate'
description: 'Pricing information about a usage charge that uses the "overage"
charge model. In this charge model, the charge has an allowance of free
units and a fixed price per additional unit consumed.
'
usagePerUnit:
allOf:
- $ref: '#/definitions/UsagePerUnitPricingUpdate'
description: 'Pricing information about a usage charge that uses the "per
unit" charge model. In this charge model, the charge has a fixed price per
unit consumed.
'
usageTiered:
allOf:
- $ref: '#/definitions/UsageTieredPricingUpdate'
description: 'Pricing information about a usage charge that uses the "tiered
pricing" charge model. In this charge model, the charge has cumulative pricing
tiers that become effective as units are consumed.
'
usageTieredWithOverage:
allOf:
- $ref: '#/definitions/UsageTieredWithOveragePricingUpdate'
description: 'Pricing information about a usage charge that uses the "tiered
with overage" charge model. In this charge model, the charge has cumulative
pricing tiers that become effective as units are consumed. The charge also
has a fixed price per unit consumed beyond the limit of the final tier.
'
usageVolume:
allOf:
- $ref: '#/definitions/UsageVolumePricingUpdate'
description: 'Pricing information about a usage charge that uses the "volume
pricing" charge model. In this charge model, the charge has a variable price
per unit, depending on how many units are consumed.
'
type: object
CreateOrderProductOverride:
description: Information about the subscribed offer
properties:
productOfferId:
description: |
Internal identifier of the product offer.
**Note**: You must enable the Offers feature to access this field. The Offers 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 .
type: string
productOfferNumber:
description: |
Number of the product offer.
**Note**: You must enable the Offers feature to access this field. The Offers 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 .
maxLength: 100
type: string
ratePlanOverrides:
description: |
List of rate plans associated with this offer.
**Note**: You must enable the Offers feature to access this field. The Offers 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 .
items:
$ref: '#/definitions/CreateOfferRatePlanOverride'
type: array
subscriptionOfferUniqueToken:
description: |
Unique of the subscription offer.
**Note**: You must enable the Offers feature to access this field. The Offers 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 .
maxLength: 50
type: string
title: Offer
type: object
CreateOrderRatePlanFeatureOverride:
description: 'Information about feature in rate plan.
'
properties:
customFields:
$ref: '#/definitions/RatePlanFeatureOverrideCustomFields'
description:
description: A description of the feature.
maxLength: 500
type: string
featureId:
description: 'Internal identifier of the feature in the product catalog.
'
type: string
required:
- featureId
title: ratePlanFeature
type: object
CreateOrderRatePlanOverride:
description: "Information about an order action of type `addProduct`. \n\nIf you\
\ want to create a pending order through the \"Add product\" order action, and\
\ if the charge's trigger condition is `Specific Date`, you must set a charge\
\ number in the `chargeNumber` field for the \"Add product\" order action. In\
\ this case, if you do not set it, Zuora will not generate the charge number\
\ for you.\n\nSee more information about pending orders in Pending orders and subscriptions . \n"
properties:
chargeOverrides:
description: 'List of charges associated with the rate plan.
'
items:
$ref: '#/definitions/CreateOrderChargeOverride'
type: array
clearingExistingFeatures:
description: 'Specifies whether all features in the rate plan will be cleared.
'
type: boolean
customFields:
$ref: '#/definitions/OrdersRatePlanObjectCustomFields'
externalCatalogPlanId:
description: |
An external ID of the product rate plan to be added. You can use this field to specify a product rate plan that is imported from an external system. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan.
**Note:** If both `externalCatalogPlanId` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
externallyManagedPlanId:
description: 'Indicates the unique identifier for the rate plan purchased
on a third-party store. This field is used to represent a subscription rate
plan created through third-party stores.
'
type: string
isFromExternalCatalog:
description: |
Indicates whether the rate plan is created from the Zuora product catalog or from an external product catalog.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: boolean
productRatePlanId:
description: 'Internal identifier of the product rate plan that the rate plan
is based on.
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
ratePlanName:
description: |
Name of the standalone rate plan.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
subscriptionProductFeatures:
description: |
List of features associated with the rate plan.
The system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:
* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.
* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.
items:
$ref: '#/definitions/CreateOrderRatePlanFeatureOverride'
type: array
uniqueToken:
description: |
Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.
For instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.
maxLength: 50
type: string
title: ratePlan
type: object
CreateOrderRatePlanUpdate:
description: 'Information about an order action of type `UpdateProduct`.
'
properties:
chargeUpdates:
description: 'Array of the JSON objects containing the information for a charge
update in the `updateProduct` type of order action.
'
items:
$ref: '#/definitions/CreateOrderChargeUpdate'
type: array
clearingExistingFeatures:
description: 'Specifies whether all features in the rate plan will be cleared.
'
type: boolean
customFields:
$ref: '#/definitions/OrdersRatePlanObjectCustomFields'
externalCatalogPlanId:
description: |
An external ID of the rate plan to be updated. You can use this field to specify an existing rate plan in your subscription. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan. However, if there are multiple rate plans with the same `productRatePlanId` value existing in the subscription, you must use the `ratePlanId` field to update the rate plan. The `externalCatalogPlanId` field cannot be used to distinguish multiple rate plans in this case.
**Note:** If both `externalCatalogPlanId` and `ratePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
ratePlanId:
description: 'The id of the rate plan to be updated. It can be the latest
version or any history version id.
'
type: string
specificUpdateDate:
description: |
The date when the Update Product order action takes effect. This field is only applicable if there is already a future-dated Update Product order action on the subscription. The format of the date is yyyy-mm-dd.
See [Update a Product on Subscription with Future-dated Updates](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Update_a_Product_in_a_Subscription/Update_a_Product_on_Subscription_with_Future-dated_Updates) for more information about this feature.
format: date
type: string
subscriptionProductFeatures:
description: |
List of features associated with the rate plan.
The system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:
* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.
* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.
items:
$ref: '#/definitions/CreateOrderRatePlanFeatureOverride'
type: array
subscriptionRatePlanNumber:
description: 'Number of a rate plan for this subscription.
'
type: string
uniqueToken:
description: 'A unique string to represent the rate plan in the order. The
unique token is used to perform multiple actions against a newly added rate
plan. For example, if you want to add and update a product in the same order,
assign a unique token to the newly added rate plan and use that token in
future order actions.
'
type: string
title: updateRateplan
type: object
CreateOrderResume:
description: 'Information about an order action of type `Resume`.
'
properties:
extendsTerm:
description: 'Specifies whether to extend the subscription term by the length
of time the suspension is in effect.
'
type: boolean
resumePeriods:
description: "This field is applicable only when the `resumePolicy` field\
\ is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`. It\
\ must be used together with the `resumePeriodsType` field. \n\nThe total\
\ number of the periods used to specify when a subscription resumption takes\
\ effect. The subscription resumption will take place after the specified\
\ time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from\
\ today's date. \n"
type: integer
resumePeriodsType:
description: "This field is applicable only when the `resumePolicy` field\
\ is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`. It\
\ must be used together with the `resumePeriods` field.\n\nThe period type\
\ used to specify when a subscription resumption takes effect. The subscription\
\ suspension will take place after the specified time frame (`suspendPeriods`\
\ multiplied by `suspendPeriodsType`) from today's date. \n"
enum:
- Day
- Week
- Month
- Year
type: string
resumePolicy:
description: "Resume methods. Specify a way to resume a subscription. See\
\ [Resume Date](https://knowledgecenter.zuora.com/BC_Subscription_Management/Subscriptions/Resume_a_Subscription#Resume_Date)\
\ for more information.\n\nIf `SuspendDate` is specfied, the resumption\
\ will take place on the same day as the suspension. \n"
enum:
- Today
- FixedPeriodsFromSuspendDate
- FixedPeriodsFromToday
- SpecificDate
- SuspendDate
type: string
resumeSpecificDate:
description: |
This field is applicable only when the `resumePolicy` field is set to `SpecificDate`.
A specific date when the subscription resumption takes effect, in YYYY-MM-DD format. The value should not be earlier than the subscription suspension date.
format: date
type: string
required:
- resumePolicy
title: Resume
type: object
CreateOrderSuspend:
description: 'Information about an order action of type `Suspend`.
'
properties:
suspendPeriods:
description: "This field is applicable only when the `suspendPolicy` field\
\ is set to `FixedPeriodsFromToday`. It must be used together with the `suspendPeriodsType`\
\ field. \n\nThe total number of the periods used to specify when a subscription\
\ suspension takes effect. The subscription suspension will take place after\
\ the specified time frame (`suspendPeriods` multiplied by `suspendPeriodsType`)\
\ from today's date. \n"
type: integer
suspendPeriodsType:
description: "This field is applicable only when the `suspendPolicy` field\
\ is set to `FixedPeriodsFromToday`. It must be used together with the `suspendPeriods`\
\ field.\n\nThe period type used to specify when a subscription suspension\
\ takes effect. The subscription suspension will take place after the specified\
\ time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from\
\ today's date. \n"
enum:
- Day
- Week
- Month
- Year
type: string
suspendPolicy:
description: 'Suspend methods. Specify a way to suspend a subscription. See
[Suspend Date](https://knowledgecenter.zuora.com/BC_Subscription_Management/Subscriptions/Suspend_a_Subscription#Suspend_Date)
for more information.
'
enum:
- Today
- EndOfLastInvoicePeriod
- FixedPeriodsFromToday
- SpecificDate
type: string
suspendSpecificDate:
description: |
This field is applicable only when the `suspendPolicy` field is set to `SpecificDate`.
A specific date when the subscription suspension takes effect, in YYYY-MM-DD format. The value should not be earlier than the subscription's contract effective date or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) than the subscription's term end date.
format: date
type: string
required:
- suspendPolicy
title: Suspend
type: object
CreateOrderTermsAndConditions:
description: 'Information about an order action of type `TermsAndConditions`.
'
properties:
autoRenew:
type: boolean
billToContactId:
description: "The ID of the bill-to contact associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Contact from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
clearingExistingBillToContact:
default: false
description: |
Whether to clear the existing bill-to contact ID at the subscription level. This field is mutually exclusive with the `billToContactId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingInvoiceTemplate:
default: false
description: |
Whether to clear the existing invoice template ID at the subscription level. This field is mutually exclusive with the `invoiceTemplateId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingPaymentTerm:
default: false
description: |
Whether to clear the existing payment term at the subscription level. This field is mutually exclusive with the `paymentTerm` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingSequenceSet:
default: false
description: |
Whether to clear the existing sequence set ID at the subscription level. This field is mutually exclusive with the `sequenceSetId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingSoldToContact:
default: false
description: |
Whether to clear the existing sold-to contact ID at the subscription level. This field is mutually exclusive with the `soldToContactId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
invoiceTemplateId:
description: "The ID of the invoice template associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Template from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
lastTerm:
$ref: '#/definitions/LastTerm'
paymentTerm:
description: "The name of the payment term associated with the subscription.\
\ For example, `Net 30`. The payment term determines the due dates of invoices.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Term from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
renewalSetting:
enum:
- RENEW_WITH_SPECIFIC_TERM
- RENEW_TO_EVERGREEN
type: string
renewalTerms:
items:
$ref: '#/definitions/RenewalTerm'
type: array
sequenceSetId:
description: "The ID of the sequence set associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Set from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
soldToContactId:
description: "The ID of the sold-to contact associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Contact from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
title: termsAndConditions
type: object
CreateOrderTriggerParams:
description: 'Specifies when a charge becomes active.
'
properties:
periodsAfterChargeStart:
description: |
Duration of the discount charge in days, weeks, months, or years, depending on the value of the `startPeriodsType` field. Only applicable if the value of the `startDatePolicy` field is `FixedPeriodAfterApplyToChargeStartDate`.
**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.
type: integer
specificTriggerDate:
description: "Date in YYYY-MM-DD format. Only applicable if the value of the\
\ `triggerEvent` field is `SpecificDate`. \n\nWhile this field is applicable,\
\ if this field is not set, your `CreateSubscription` order action creates\
\ a `Pending` order and a `Pending Acceptance` subscription. If at the same\
\ time the service activation date is required and not set, a `Pending Activation`\
\ subscription is created.\n\nWhile this field is applicable, if this field\
\ is not set, the following order actions create a `Pending` order but do\
\ not impact the subscription status. **Note**: This feature is in **Limited\
\ Availability**. If you want to have access to the feature, submit a request\
\ at [Zuora Global Support](http://support.zuora.com/).\n * AddProduct\n\
\ * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n"
format: date
type: string
startDatePolicy:
description: "Start date policy of the discount charge to become active when\
\ the **Apply to billing period partially** checkbox is selected from the\
\ product catalog UI or the `applyToBillingPeriodPartially` field is set\
\ as true from the \"CRUD: Create a product rate plan charge\" operation.\n\
\n- If the value of this field is `SpecificDate`, use the `specificTriggerDate`\
\ field to specify the date when the charge becomes active.\n- If the value\
\ of this field is `FixedPeriodAfterApplyToChargeStartDate`, the charge\
\ is active for a predefined duration based on the value of the `upToPeriodsType`\
\ and `upToPeriods` fields.\n\n**Notes**: \n - You must enable the [Enhanced\
\ Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount)\
\ feature to access this field. \n - You can use either `triggerEvent`\
\ or `startDatePolicy` to define when a discount charge starts, but not\
\ both at the same time.\n"
enum:
- AlignToApplyToCharge
- SpecificDate
- EndOfLastInvoicePeriodOfApplyToCharge
- FixedPeriodAfterApplyToChargeStartDate
type: string
startPeriodsType:
description: |
Unit of time that the discount charge duration is measured in. Only applicable if the value of the `startDatePolicy` field is `FixedPeriodAfterApplyToChargeStartDate`.
**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.
enum:
- Days
- Weeks
- Months
- Years
type: string
triggerEvent:
description: |
Condition for the charge to become active.
If the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.
enum:
- ContractEffective
- ServiceActivation
- CustomerAcceptance
- SpecificDate
type: string
title: startDate
type: object
CreateOrderUpdateProductTriggerParams:
description: 'Specifies when a charge becomes active.
'
properties:
specificTriggerDate:
description: "Date in YYYY-MM-DD format. Only applicable if the value of the\
\ `triggerEvent` field is `SpecificDate`. \n\nWhile this field is applicable,\
\ if this field is not set, your `CreateSubscription` order action creates\
\ a `Pending` order and a `Pending Acceptance` subscription. If at the same\
\ time the service activation date is required and not set, a `Pending Activation`\
\ subscription is created.\n\nWhile this field is applicable, if this field\
\ is not set, the following order actions create a `Pending` order but do\
\ not impact the subscription status. **Note**: This feature is in **Limited\
\ Availability**. If you want to have access to the feature, submit a request\
\ at [Zuora Global Support](http://support.zuora.com/).\n * AddProduct\n\
\ * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n\
\nWhile this field is applicable, for the `updateProduct` order action,\
\ if the Pending order feature as above is not enabled, this field must\
\ not be set to null.\n"
format: date
type: string
triggerEvent:
description: |
Condition for the charge to become active. If this field is not specified, the value of the field will be defaulted to the trigger event value defined in the product catalog.
If the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.
enum:
- ContractEffective
- ServiceActivation
- CustomerAcceptance
- SpecificDate
type: string
title: startDate
type: object
CreatePMPayPalECPayPalNativeECPayPalCP:
properties:
BAID:
description: 'ID of a PayPal billing agreement. For example, I-1TJ3GAGG82Y9.
'
type: string
email:
description: |
Email address associated with the payment method. This field is supported for the following payment methods:
- PayPal payment methods. This field is required for creating any of the following PayPal payment methods.
- PayPal Express Checkout
- PayPal Adaptive
- PayPal Commerce Platform
- Apple Pay and Google Pay payment methods on Adyen v2.0. This field will be passed to Adyen as `shopperEmail`.
type: string
type: object
CreatePaymentMethodACH:
properties:
addressLine1:
description: 'First address line, 255 characters or less.
'
type: string
addressLine2:
description: 'Second address line, 255 characters or less.
'
type: string
bankABACode:
description: 'The nine-digit routing number or ABA number used by banks. This
field is only required if the `type` field is set to `ACH`.
'
type: string
bankAccountName:
description: |
The name of the account holder, which can be either a person or a company. This field is only required if the `type` field is set to `ACH`.
For ACH payment methods on the BlueSnap integration, see [Overview of BlueSnap gateway integration](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways/BlueSnap_Gateway/Overview_of_BlueSnap_gateway_integration#Payer_Name_Extraction) for more information about how Zuora splits the string in this field into two parts and passes them to BlueSnap's `firstName` and `lastName` fields.
maxLength: 70
type: string
bankAccountNumber:
description: 'The bank account number associated with the ACH payment. This
field is only required if the `type` field is set to `ACH`.
'
maxLength: 30
type: string
bankAccountType:
description: |
The type of bank account associated with the ACH payment. This field is only required if the `type` field is set to `ACH`.
When creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify any of the allowed values as a dummy value, `Checking` preferably.
enum:
- BusinessChecking
- BusinessSaving
- Checking
- Saving
type: string
bankName:
description: |
The name of the bank where the ACH payment account is held. This field is only required if the `type` field is set to `ACH`.
When creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify a dummy value.
maxLength: 70
type: string
city:
description: "City, 40 characters or less.\n\nIt is recommended to provide\
\ the city and country information when creating a payment method. The information\
\ will be used to process payments. If the information is not provided during\
\ payment method creation, the city and country data will be missing during\
\ payment processing.\n \n"
type: string
country:
description: |
Country, must be a valid country name or abbreviation.
See [Country Names and Their ISO Standard 2- and 3-Digit Codes](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/D_Country%2C_State%2C_and_Province_Codes/A_Country_Names_and_Their_ISO_Codes) for the list of supported country names and abbreviations.
It is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.
type: string
phone:
description: 'Phone number, 40 characters or less.
'
type: string
state:
description: |
State, must be a valid state name or 2-character abbreviation.
See [United States Standard State Codes](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/D_Country%2C_State%2C_and_Province_Codes/B_State_Names_and_2-Digit_Codes) and [Canadian Standard Province Codes](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/D_Country%2C_State%2C_and_Province_Codes/C_Canadian_Province_Names_and_2-Digit_Codes) for the list of supported names and abbreviations.
type: string
zipCode:
description: 'Zip code, 20 characters or less.
'
type: string
type: object
CreatePaymentMethodApplePayAdyen:
properties:
applePaymentData:
description: 'This field is specific for setting up Apple Pay for Adyen to
include payload with Apple Pay token or Apple payment data. This information
should be stringified. For more information, see [Set up Adyen Apple Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Apple_Pay_on_Web/Set_up_Adyen_Apple_Pay).
'
type: string
type: object
CreatePaymentMethodBankTransfer:
properties:
IBAN:
description: "The International Bank Account Number. \n\nThis field is required\
\ if the `type` field is set to `SEPA`. However, for creating tokenized\
\ SEPA payment methods on Adyen Integration v2.0, this field is optional.\
\ \n - If the `tokenize` field is `true`, `IBAN` is required. \n - If\
\ the `tokens` field is specified, `IBAN` is not required but `accountMaskNumber`\
\ is required.\n"
type: string
accountHolderInfo:
description: |
This container field is required for the following bank transfer payment methods. The nested `accountHolderName` field is required.
- Direct Debit NZ (`Becsnz`)
- Single Euro Payments Area (`SEPA`)
- Direct Debit UK (`Bacs`)
- Denmark Direct Debit (`Betalingsservice`)
- Sweden Direct Debit (`Autogiro`)
- Canadian Pre-Authorized Debit (`PAD`)
properties:
accountHolderName:
description: |
Required.
The full name of the bank account holder.
maxLength: 60
type: string
addressLine1:
description: |
The first line of the address for the account holder.
This field is required for SEPA Direct Debit payment methods on Stripe v2 for [certain countries](https://stripe.com/docs/payments/sepa-debit/set-up-payment?platform=web#web-submit-payment-method).
type: string
addressLine2:
description: "The second line of the address for the account holder. \n"
type: string
city:
description: |
The city where the account holder stays.
It is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.
type: string
country:
description: |
The country where the account holder stays.
This field is required for SEPA payment methods on Stripe v2 for [certain countries](https://stripe.com/docs/payments/sepa-debit/set-up-payment?platform=web#web-submit-payment-method).
type: string
email:
description: 'The email address of the account holder.
'
type: string
firstName:
description: 'The first name of the account holder.
'
type: string
lastName:
description: 'The last name of the account holder.
'
type: string
phone:
description: 'The phone number of the account holder.
'
type: string
state:
description: 'The state where the account holder stays.
'
type: string
zipCode:
description: 'The zip code for the address of the account holder.
'
type: string
type: object
accountMaskNumber:
description: |
The masked account number such as ****1234.
When creating the following tokenized payment methods, if the `tokens` field is provided, this `accountMaskNumber` field is required.
- SEPA payment methods on Adyen
- BACS payment methods on Stripe
For more information about how to create the preceding tokenized payment methods, see the following articles in Zuora Knowledge Center:
- Tokenize SEPA payment methods on Adyen Integration v2.0
- Overview of Stripe payment gateway integration
type: string
accountNumber:
description: |
The number of the customer's bank account. This field is required for the following bank transfer payment methods:
- Direct Entry AU (`Becs`)
- Direct Debit NZ (`Becsnz`)
- Direct Debit UK (`Bacs`). For creating tokenized BACS payment methods on Stripe v2, this field is optional. If the `tokens` field is specified, `accountNumber` is not required but `accountMaskNumber` is required.
- Denmark Direct Debit (`Betalingsservice`)
- Sweden Direct Debit (`Autogiro`)
- Canadian Pre-Authorized Debit (`PAD`)
type: string
bankCode:
description: |
The sort code or number that identifies the bank. This is also known as the sort code. This field is required for the following bank transfer payment methods:
- Direct Debit UK (`Bacs`)
- Denmark Direct Debit (`Betalingsservice`)
- Direct Debit NZ (`Becsnz`)
- Canadian Pre-Authorized Debit (`PAD`)
type: string
branchCode:
description: |
The branch code of the bank used for direct debit. This field is required for the following bank transfer payment methods:
- Sweden Direct Debit (`Autogiro`)
- Direct Entry AU (`Becs`)
- Direct Debit NZ (`Becsnz`)
- Canadian Pre-Authorized Debit (`PAD`)
type: string
businessIdentificationCode:
description: 'The BIC code used for SEPA.
'
type: string
currencyCode:
description: |
The currency used for payment method authorization.
If this field is not specified, `currency` specified for the account is used for payment method authorization. If no currency is specified for the account, the default currency of the account is then used.
type: string
identityNumber:
description: |
The identity number used for Bank Transfer. This field is required for the following bank transfer payment methods:
- Denmark Direct Debit (`Betalingsservice`)
- Sweden Direct Debit (`Autogiro`)
type: string
tokenize:
default: false
description: "When creating a SEPA payment method on Adyen Integration v2.0,\
\ use this field to specify whether to tokenize the payment method with\
\ IBAN. If `tokenize` is `true`, `IBAN` is required.\n\nIf the `tokens`\
\ field is provided, this `tokenize` field is not required. \n\nFor more\
\ information about how to create tokenized SEPA payment methods on Adyen,\
\ see Tokenize SEPA payment methods on Adyen Integration v2.0 .\n"
type: boolean
tokens:
description: |
To create the following tokenized payment methods, pass in the existing token information:
- Tokenized SEPA payment methods on Adyen Integration v2.0
- Tokenized BACS payment methods on Stripe v2
For more information about how to create the preceding tokenized payment methods, see the following articles in Zuora Knowledge Center:
- Tokenize SEPA payment methods on Adyen Integration v2.0
- Overview of Stripe payment gateway integration
properties:
gatewayType:
description: "Required. \n\nThe type of the payment gateway to generate\
\ the tokens. This field is case-sensitive.\n"
enum:
- Adyen
- Stripe
type: string
secondTokenId:
description: |
Pass in the second token of the payment method. The value of this field varies depending on gateways. For more information, see the following articles in Zuora Knowledge Center:
- Tokenize SEPA payment methods on Adyen Integration v2.0
- Overview of Stripe payment gateway integration
type: string
thirdTokenId:
description: 'Pass in the third token of the payment method.
'
type: string
tokenId:
description: "Required. \n\nPass in the first token of the payment method.\
\ The value of this field varies depending on gateways. For more information,\
\ see the following articles in Zuora Knowledge Center:\n - Tokenize SEPA payment methods on Adyen Integration\
\ v2.0 \n - Overview of Stripe payment gateway integration \n"
type: string
type: object
type: object
CreatePaymentMethodCCReferenceTransaction:
properties:
creditCardMaskNumber:
description: |
The masked credit card number, such as:
```
*********1112
```
This field is specific for the CC Reference Transaction payment method. It is an optional field that you can use to distinguish different CC Reference Transaction payment methods.
Though there are no special restrictions on the input string, it is highly recommended to specify a card number that is masked.
maxLength: 19
type: string
secondTokenId:
description: "A gateway unique identifier that replaces sensitive payment\
\ method data. \n\n`secondTokenId` is conditionally required only when `tokenId`\
\ is being used to represent a gateway customer profile. `secondTokenId`\
\ is used in the CC Reference Transaction payment method.\n"
type: string
tokenId:
description: "A gateway unique identifier that replaces sensitive payment\
\ method data or represents a gateway's unique customer profile. `tokenId`\
\ is required for the CC Reference Transaction payment method.\n\nWhen `tokenId`\
\ is used to represent a customer profile, `secondTokenId` is conditionally\
\ required for representing the underlying tokenized payment method.\n\n\
The values for the `tokenId` and `secondTokenId` fields differ for gateways.\
\ For more information, see the Knowledge Center article specific to each\
\ gateway that supports the CC Reference Transaction payment method.\n\n\
**Note:** \n - When creating an ACH payment method, if you need to pass\
\ in tokenized information, use the `mandateId` instead of `tokenId` field.\n\
\ - When creating the following payment methods, if you need to pass in\
\ token information, use the `tokens` > `tokenId` and `tokens` > `secondTokenId`\
\ fields instead of this `tokenId` field:\n - SEPA on Adyen Integration\
\ v2.0\n - BACS on Stripe v2\n \n"
type: string
type: object
CreatePaymentMethodCardholderInfo:
description: "Container for cardholder information. This container field is required\
\ for credit card payment methods. The nested\_`cardHolderName`\_field is required.\n"
properties:
addressLine1:
description: 'First address line, 255 characters or less.
'
type: string
addressLine2:
description: 'Second address line, 255 characters or less.
'
type: string
cardHolderName:
description: 'The card holder''s full name as it appears on the card, e.g.,
"John J Smith", 50 characters or less.
'
type: string
city:
description: |
City, 40 characters or less.
It is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.
type: string
country:
description: |
Country, must be a valid country name or abbreviation.
It is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.
type: string
email:
description: 'Card holder''s email address, 80 characters or less.
'
type: string
phone:
description: 'Phone number, 40 characters or less.
'
type: string
state:
description: 'State; must be a valid state name or 2-character abbreviation.
'
type: string
zipCode:
description: 'Zip code, 20 characters or less.
'
type: string
required:
- cardHolderName
title: cardHolderInfo
type: object
CreatePaymentMethodCommon:
properties:
accountKey:
description: 'Internal ID of the customer account that will own the payment
method.
'
type: string
authGateway:
description: |
Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.
If you do not set this field, Zuora will use one of the following payment gateways instead:
* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.
* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.
type: string
ipAddress:
description: "The IPv4 or IPv6 information of the user when the payment method\
\ is created or updated. Some gateways use this field for fraud prevention.\
\ If this field is passed to Zuora, Zuora directly passes it to gateways.\
\ \n\nIf the IP address length is beyond 45 characters, a validation error\
\ occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field\
\ is required.\n"
type: string
makeDefault:
default: false
description: 'Specifies whether the payment method will be the default payment
method of the customer account that owns the payment method. Only applicable
if the `accountKey` field is set.
'
type: boolean
type: object
CreatePaymentMethodCreditCard:
properties:
cardHolderInfo:
$ref: '#/definitions/CreatePaymentMethodCardholderInfo'
cardNumber:
description: 'Credit card number. This field is required if `type` is set
to `CreditCard`.
'
type: string
cardType:
description: |
The type of the credit card. This field is required if `type` is set to `CreditCard`.
Possible values include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Gateways](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways).
type: string
checkDuplicated:
description: "Indicates whether the duplication check is performed when you\
\ create a new credit card payment method. The default value is `false`.\n\
\nWith this field set to `true`, Zuora will check all active payment methods\
\ associated with the same billing account to ensure that no duplicate credit\
\ card payment methods are created. An error is returned if a duplicate\
\ payment method is found.\n \nThe following fields are used for\
\ the duplication check:\n - `cardHolderName`\n - `expirationMonth`\n\
\ - `expirationYear`\n - `creditCardMaskNumber`. It is the masked credit\
\ card number generated by Zuora. For example:\n ```\n ************1234\n\
\ ```\n"
type: boolean
expirationMonth:
description: 'One or two digit expiration month (1-12) of the credit card.
This field is required if `type` is set to `CreditCard`.
'
type: integer
expirationYear:
description: 'Four-digit expiration year of the credit card. This field is
required if `type` is set to `CreditCard`.
'
type: integer
mitConsentAgreementRef:
description: 'Specifies your reference for the stored credential consent agreement
that you have established with the customer. Only applicable if you set
the `mitProfileAction` field.
'
maxLength: 128
type: string
mitConsentAgreementSrc:
description: 'Required if you set the `mitProfileAction` field. Specifies
how the consent agreement has been established with the customer. The allowed
value is `External`. If you do not specify the `mitProfileAction` field,
Zuora will automatically create a stored credential profile for the payment
method, with the default value `External` set to this field.
'
enum:
- External
type: string
mitNetworkTransactionId:
description: 'Specifies the ID of a network transaction. Only applicable if
you set the `mitProfileAction` field to `Persist`.
'
maxLength: 128
type: string
mitProfileAction:
description: "Specifies how Zuora creates and activates the stored credential\
\ profile.\n\n- `Activate` - Use this value if you are creating the stored\
\ credential profile after receiving the customer's consent.\n\n Zuora\
\ will create the stored credential profile then send a cardholder-initiated\
\ transaction (CIT) to the payment gateway to validate the stored credential\
\ profile. If the CIT succeeds, the status of the stored credential profile\
\ will be `Active`. If the CIT does not succeed, Zuora will not create a\
\ stored credential profile.\n \n If the payment gateway does not support\
\ the stored credential transaction framework, the status of the stored\
\ credential profile will be `Agreed`.\n\n\n- `Persist` - Use this value\
\ if the stored credential profile represents a stored credential profile\
\ in an external system. The status of the payment method's stored credential\
\ profile will be `Active`.\n\nIf you do not specify this field, Zuora will\
\ automatically create a stored credential profile for the payment method,\
\ with the default value `Activate` set to this field.\n"
enum:
- Activate
- Persist
type: string
mitProfileAgreedOn:
description: 'The date on which the profile is agreed. The date format is
`yyyy-mm-dd`.
'
format: date
type: string
mitProfileType:
description: 'Required if you set the `mitProfileAction` field. Indicates
the type of the stored credential profile to process recurring or unsecheduled
transactions. If you do not specify the `mitProfileAction` field, Zuora
will automatically create a stored credential profile for the payment method,
with the default value `Recurring` set to this field.
'
enum:
- Recurring
- Unscheduled
type: string
screeningAmount:
description: |
For Chase Paymentech Orbital Gateway integrations, if the Safetech Fraud service is enabled, use this field to pass in the amount used for fraud screening for Credit Card validation transactions.
Two-decimal amount is supported.
If the `screeningAmount` field is not specified, the authorization amount is used for fraud screening.
format: decimal
type: number
securityCode:
description: |
CVV or CVV2 security code of the credit card.
To ensure PCI compliance, this value is not stored and cannot be queried.
type: string
type: object
CreatePaymentMethodGooglePayAdyenChase:
properties:
googlePaymentToken:
description: 'This field is specific for setting up Google Pay for Adyen and
Chase gateway integrations to specify the stringified Google Pay token.
For more information, see [Set up Adyen Google Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Adyen_Google_Pay)
and [Set up Google Pay on Chase](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Google_Pay_on_Chase).
'
type: string
type: object
CreatePaymentMethodPayPalAdaptive:
properties:
preapprovalKey:
description: 'The PayPal preapproval key.
'
type: string
type: object
CreatePaymentType:
allOf:
- properties:
accountId:
description: 'The ID of the customer account that the payment is created
for.
'
type: string
accountNumber:
description: |
The number of the customer account that the payment is created for, such as `A00000001`.
You can specify either `accountNumber` or `accountId` for a customer account. If both of them are specified, they must refer to the same customer account.
type: string
amount:
description: 'The total amount of the payment.
'
format: double
type: number
authTransactionId:
description: |
The authorization transaction ID from the payment gateway. Use this field for electronic payments, such as credit cards.
When you create a payment for capturing the authorized funds, it is highly recommended to pass in the gatewayOrderId that you used when authorizing the funds by using the [Create authorization](https://developer.zuora.com/api-references/api/operation/POST_CreateAuthorization) operation, together with the `authTransactionId` field.
The following payment gateways support this field:
- Adyen Integration v2.0
- CyberSource 1.28
- CyberSource 1.97
- CyberSource 2.0
- Chase Paymentech Orbital
- Ingenico ePayments
- SlimPay
- Stripe v2
- Verifi Global Payment Gateway
- WePay Payment Gateway Integration
maxLength: 50
type: string
comment:
description: 'Additional information related to the payment.
'
maxLength: 255
minLength: 0
type: string
currency:
description: |
When Standalone Payment is not enabled, the `currency` of the payment must be the same as the payment currency defined in the customer account settings through Zuora UI.
When Standalone Payment is enabled and `standalone` is `true`, the `currency` of the standalone payment can be different from the payment currency defined in the customer account settings. The amount will not be summed up to the account balance or key metrics regardless of currency.
type: string
customRates:
description: |
It contains Home currency and Reporting currency custom rates currencies. The maximum number of items is 2 (you can pass the Home currency item or Reporting currency item or both).
**Note**: The API custom rate feature is permission controlled.
items:
$ref: '#/definitions/PaymentWithCustomRatesType'
maxItems: 2
type: array
debitMemos:
description: 'Container for debit memos. The maximum number of debit memos
is 1,000.
'
items:
$ref: '#/definitions/PaymentDebitMemoApplicationCreateRequestType'
type: array
effectiveDate:
description: |
The date when the payment takes effect, in `yyyy-mm-dd` format.
**Note:**
- This field is required for only electronic payments. It's an optional field for external payments.
- When specified, this field must be set to the date of today.
format: date
type: string
financeInformation:
description: 'Container for the finance information related to the payment.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
transferredToAccounting:
description: "Whether the payment was transferred to an external accounting\
\ system. Use this field for integration with accounting systems,\
\ such as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
maxLength: 100
minLength: 0
type: string
type: object
gatewayId:
description: "The ID of the gateway instance that processes the payment.\
\ The ID must be a valid gateway instance ID and this gateway must support\
\ the specific payment method. \n\n- When creating electronic payments,\
\ this field is required. \n- When creating external payments, this field\
\ is optional.\n\nUse the same gateway instance if both `paymentGatewayNumber`\
\ and `gatewayId` are sent in the request.\n"
type: string
gatewayOptions:
description: |
The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).
Zuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.
properties:
key:
description: 'The name of a gateway-specific parameter.
'
maxLength: 255
type: string
value:
description: 'The value of the gateway-specific parameter.
'
maxLength: 255
type: string
type: object
gatewayOrderId:
description: |
A merchant-specified natural key value that can be passed to the electronic payment gateway when a payment is created. If not specified, the payment number will be passed in instead.
Gateways check duplicates on the gateway order ID to ensure that the merchant do not accidentally enter the same transaction twice. This ID can also be used to do reconciliation and tie the payment to a natural key in external systems. The source of this ID varies by merchant. Some merchants use their shopping cart order IDs, and others use something different. Merchants use this ID to track transactions in their eCommerce systems.
When you create a payment for capturing the authorized funds, it is highly recommended to pass in the gatewayOrderId that you used when authorizing the funds by using the [Create authorization](https://developer.zuora.com/api-references/api/operation/POST_CreateAuthorization) operation, together with the `authTransactionId` field.
maxLength: 50
type: string
invoices:
description: 'Container for invoices. The maximum number of invoices is
1,000.
'
items:
$ref: '#/definitions/PaymentInvoiceApplicationCreateRequestType'
type: array
mitTransactionSource:
description: |
Payment transaction source used to differentiate the transaction source in Stored Credential Transaction framework.
- `C_Unscheduled`: Cardholder-initiated transaction (CIT) that does not occur on scheduled or regularly occurring dates.
- `M_Recurring`: Merchant-initiated transaction (MIT) that occurs at regular intervals.
- `M_Unscheduled`: Merchant-initiated transaction (MIT) that does not occur on scheduled or regularly occurring dates.
- `M_MOTO`: Mail Order Telephone Order (MOTO) payment transaction. This option is only available for credit card payments on Stripe v2. See [Overview of Stripe payment gateway integration](https://knowledgecenter.zuora.com/Zuora_Collect/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration) for more information.
enum:
- C_Unscheduled
- M_Recurring
- M_Unscheduled
- M_MOTO
type: string
paymentGatewayNumber:
description: "The natural key for the payment gateway. \n\nUse the same\
\ gateway instance if both `paymentGatewayNumber` and `gatewayId` are\
\ sent in the request.\n"
type: string
paymentMethodId:
description: "The unique ID of the payment method that the customer used\
\ to make the payment. \n\nIf no payment method ID is specified in the\
\ request body, the default payment method for the customer account is\
\ used automatically. If the default payment method is different from\
\ the type of payments that you want to create, an error occurs.\n"
type: string
paymentMethodType:
default: null
description: "The type of the payment method that the customer used to make\
\ the payment. \n\nSpecify this value when you are creating an external\
\ payment method. If both `paymentMethodType` and `paymentMethodId` are\
\ specified, only the `paymentMethodId` value is used to create the payment.\n"
type: string
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
Here is an example:
```
"paymentOption": [
{
"type": "GatewayOptions",
"detail": {
"SecCode":"WEB"
}
}
]
```
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
You can use this field or the `gatewayOptions` field to pass the Gateway Options fields supported by a payment gateway. However, the Gateway Options fields passed through the `paymentOption` field will be stored in the Payment Option object and can be easily retrieved.
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
paymentScheduleKey:
description: The unique ID or the number of the payment schedule to be linked
with the payment. See [Link payments to payment schedules](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Payment_Schedules/Link_payments_with_payment_schedules)
for more information.
type: string
prepayment:
description: 'Indicates whether the payment will be used as a reserved payment.
See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown)
for more information.
'
type: boolean
referenceId:
description: 'The transaction ID returned by the payment gateway. Use this
field to reconcile payments between your gateway and Zuora Payments.
'
maxLength: 100
minLength: 0
type: string
softDescriptor:
description: A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
maxLength: 35
type: string
softDescriptorPhone:
description: A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
maxLength: 20
type: string
standalone:
default: false
description: "This field is only available if support for standalone payments\
\ is enabled.\n\nSpecify `true` to create a standalone payment that will\
\ be processed in Zuora through Zuora gateway integration but will be\
\ settled outside of Zuora.\n\nWhen `standalone` is set to `true`:\n \
\ - `accountId`, `amount`, `currency`, and `type` are required. \n -\
\ `type` must be `Electronic`.\n - `currency` of the payment can be different\
\ from the payment currency in the customer account settings.\n - The\
\ amount will not be summed up into the account balance and key metrics\
\ regardless of the payment currency.\n - No settlement data will be\
\ created.\n - Either the applied amount or the unapplied amount of the\
\ payment is zero.\n - The standalone payment cannot be applied, unapplied,\
\ or transferred.\n\nSpecify `false` to create an ordinary payment that\
\ will be created, processed, and settled in Zuora. The `currency` of\
\ an ordinary payment must be the same as the currency in the customer\
\ account settings.\n"
type: boolean
type:
description: 'The type of the payment.
'
enum:
- External
- Electronic
type: string
required:
- amount
- currency
- type
type: object
- $ref: '#/definitions/PaymentObjectNSFields'
- $ref: '#/definitions/PaymentObjectCustomFields'
example:
accountId: 4028905f5a87c0ff015a87d25ae90025
amount: 44.1
comment: normal payment
currency: USD
customRates:
- currency: CAD
customFxRate: 2.22
rateDate: '2022-10-21'
- currency: EUR
customFxRate: 1.5
rateDate: '2022-10-21'
debitMemos:
- amount: 4.1
debitMemoId: 4028905f5a87c0ff015a87e49e6b0062
items:
- amount: 4
debitMemoItemId: 4028905f5a87c0ff015a87e49e7a0063
- amount: 0.1
taxItemId: 4028905f5a87c0ff015a87e49f5e0065
effectiveDate: '2017-03-01'
invoices:
- amount: 40
invoiceId: 4028905f5a87c0ff015a87d3f8f10043
items:
- amount: 39
invoiceItemId: 4028905f5a87c0ff015a87d3f90c0045
- amount: 1
taxItemId: 4028905f5a87c0ff015a87d3f884003f
paymentMethodId: 402881e522cf4f9b0122cf5dc4020045
type: External
CreateStoredCredentialProfileRequest:
example:
authGateway: 4028905f5702783601570291e14c0015
consentAgreementRef: ACCT1338AgreementV1.pdf
consentAgreementSrc: External
status: Active
type: Recurring
properties:
action:
description: "Specifies how Zuora activates the stored credential profile.\
\ Only applicable if you set the `status` field to `Active`.\n\n- `Activate`\
\ (default) - Use this value if you are creating the stored credential profile\
\ after receiving the customer's consent.\n\n Zuora will create the stored\
\ credential profile then send a cardholder-initiated transaction (CIT)\
\ to the payment gateway to validate the stored credential profile. If the\
\ CIT succeeds, the status of the stored credential profile will be `Active`.\
\ If the CIT does not succeed, Zuora will not create a stored credential\
\ profile.\n \n If the payment gateway does not support the stored credential\
\ transaction framework, the status of the stored credential profile will\
\ be `Agreed`.\n\n\n- `Persist` - Use this value if the stored credential\
\ profile represents a stored credential profile in an external system.\
\ The status of the payment method's stored credential profile will be `Active`.\n"
enum:
- Activate
- Persist
type: string
agreedOn:
description: 'The date on which the profile is agreed. The date format is
`yyyy-mm-dd`.
'
format: date
type: string
authGateway:
description: 'Specifies the ID of the payment gateway that Zuora will use
when activating the stored credential profile.
'
type: string
cardSecurityCode:
description: 'The security code of the credit card.
'
type: string
consentAgreementRef:
description: 'Specifies your reference for the consent agreement that you
have established with the customer.
'
maxLength: 128
type: string
consentAgreementSrc:
description: 'Specifies how the consent agreement has been established with
the customer. The allowed value is `External`.
'
enum:
- External
type: string
networkTransactionId:
description: 'The ID of a network transaction. Only applicable if you set
the `action` field to `Persist`.
'
maxLength: 128
type: string
status:
description: |
Specifies the status of the stored credential profile.
- `Active` - Use this value if you are creating the stored credential profile after receiving the customer's consent, or if the stored credential profile represents a stored credential profile in an external system.
You can use the `action` field to specify how Zuora activates the stored credential profile.
- `Agreed` - Use this value if you are migrating the payment method to the stored credential transaction framework.
In this case, Zuora will not send a cardholder-initiated transaction (CIT) to the payment gateway to validate the stored credential profile.
enum:
- Agreed
- Active
type: string
type:
description: 'Indicates the type of the stored credential profile to process
recurring or unsecheduled transactions.
'
enum:
- Recurring
- Unscheduled
type: string
required:
- status
- type
- consentAgreementSrc
type: object
CreateSubscribeToProduct:
allOf:
- $ref: '#/definitions/CreateOrderRatePlanOverride'
- $ref: '#/definitions/CreateOrderProductOverride'
title: createSubscribeToProduct
type: object
CreateSubscription:
description: 'Information about an order action of type `CreateSubscription`.
'
properties:
billToContactId:
description: "The ID of the bill-to contact associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Contact from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
currency:
description: "The code of currency that is used for this subscription. If\
\ the currency is not selected, the default currency from the account will\
\ be used.\n\nAll subscriptions in the same order must use the same currency.\
\ The currency for a subscription cannot be changed.\n\n**Note**: This field\
\ is available only if you have the Multiple Currencies feature enabled. \n"
maxLength: 3
type: string
invoiceSeparately:
description: 'Specifies whether the subscription appears on a separate invoice
when Zuora generates invoices.
'
type: boolean
invoiceTemplateId:
description: "The ID of the invoice template associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Template from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
newSubscriptionOwnerAccount:
description: |
Information about a new account that will own the subscription. Only available if you have enabled the Owner Transfer feature.
**Note:** The Owner Transfer feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
If you do not set this field or the `subscriptionOwnerAccountNumber` field, the account that owns the order will also own the subscription. Zuora will return an error if you set this field and the `subscriptionOwnerAccountNumber` field.
properties:
accountNumber:
description: 'Account number. For example, A00000001.
'
maxLength: 70
type: string
autoPay:
description: 'Specifies whether future payments are automatically billed
when they are due.
'
type: boolean
batch:
description: 'Name of the billing batch that the account belongs to. For
example, Batch1.
'
type: string
billCycleDay:
description: 'Day of the month that the account prefers billing periods
to begin on. If set to 0, the bill cycle day will be set as "AutoSet".
'
maximum: 31
minimum: 0
type: integer
billToContact:
$ref: '#/definitions/BillToContact'
communicationProfileId:
description: 'Internal identifier of the communication profile that Zuora
uses when sending notifications to the account''s contacts.
'
type: string
creditCard:
$ref: '#/definitions/creditCard'
crmId:
description: 'External identifier of the account in a CRM system.
'
maxLength: 100
type: string
currency:
description: 'ISO 3-letter currency code (uppercase). For example, USD.
'
type: string
customFields:
$ref: '#/definitions/AccountObjectCustomFields'
hpmCreditCardPaymentMethodId:
description: |
The ID of the payment method associated with this account. The payment method specified for this field will be set as the default payment method of the account.
If the `autoPay` field is set to `true`, you must provide the credit card payment method ID for either this field or the `creditCard` field,
but not both.
For the Credit Card Reference Transaction payment method, you can specify the payment method ID in this field or use the `paymentMethod` field to create a CC Reference Transaction payment method for an account.
type: string
invoiceDeliveryPrefsEmail:
description: "Specifies whether to turn on the invoice delivery method\
\ 'Email' for the new account. \nValues are: \n\n* `true` (default).\
\ Turn on the invoice delivery method 'Email' for the new account.\n\
* `false`. Turn off the invoice delivery method 'Email' for the new\
\ account. \n"
type: boolean
invoiceDeliveryPrefsPrint:
description: "Specifies whether to turn on the invoice delivery method\
\ 'Print' for the new account.\nValues are: \n\n* `true`. Turn on the\
\ invoice delivery method 'Print' for the new account.\n* `false` (default).\
\ Turn off the invoice delivery method 'Print' for the new account.\n"
type: boolean
invoiceTemplateId:
description: 'Internal identifier of the invoice template that Zuora uses
when generating invoices for the account.
'
type: string
name:
description: 'Account name.
'
maxLength: 70
type: string
notes:
description: 'Notes about the account. These notes are only visible to
Zuora users.
'
maxLength: 65535
type: string
parentId:
description: Identifier of the parent customer account for this Account
object. Use this field if you have Customer Hierarchy enabled.
type: string
paymentGateway:
description: 'The payment gateway that Zuora uses when processing electronic
payments and refunds for the account. If you do not specify this field
or if the value of this field is null, Zuora uses your default payment
gateway.
'
maxLength: 40
type: string
paymentMethod:
$ref: '#/definitions/PostOrderAccountPaymentMethod'
paymentTerm:
description: 'Name of the payment term associated with the account. For
example, "Net 30". The payment term determines the due dates of invoices.
'
type: string
soldToContact:
$ref: '#/definitions/SoldToContact'
taxInfo:
$ref: '#/definitions/TaxInfo'
required:
- name
- currency
- billCycleDay
- billToContact
type: object
notes:
description: 'Notes about the subscription. These notes are only visible to
Zuora users.
'
maxLength: 500
type: string
paymentTerm:
description: "The name of the payment term associated with the subscription.\
\ For example, `Net 30`. The payment term determines the due dates of invoices.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Term from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
sequenceSetId:
description: "The ID of the sequence set associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Set from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
soldToContactId:
description: "The ID of the sold-to contact associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Contact from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
subscribeToProducts:
description: "List of offers or rate plans associated with the subscription.\n\
- For a rate plan, the following fields are available:\n - `chargeOverrides`\n\
\ - `clearingExistingFeatures`\n - `customFields`\n - `externallyManagedPlanId`\n\
\ - `newRatePlanId`\n - `productRatePlanId`\n - `subscriptionProductFeatures`\n\
\ - `uniqueToken`\n- For an offer, the following fields are available:\n\
\ - `customFields`\n - `newSubscriptionOfferId`\n - `newSubscriptionOfferNumber`\n\
\ - `productOfferId`\n - `productOfferNumber`\n - `ratePlanOverrides`\n\
\ - `subscriptionOfferUniqueToken`\n \n"
items:
$ref: '#/definitions/subscribeToProduct'
type: array
subscribeToRatePlans:
description: |
List of rate plans associated with the subscription.
**Note**: The `subscribeToRatePlans` field has been deprecated, this field is replaced by the `subscribeToProducts` field that supports both Rate Plans and Offers. In a new order request, you can use either `subscribeToRatePlans` or `subscribeToProducts`, not both.
items:
$ref: '#/definitions/RatePlanOverride'
type: array
subscriptionNumber:
description: |
Subscription number of the subscription. For example, A-S00000001.
If you do not set this field, Zuora will generate the subscription number.
maxLength: 100
type: string
subscriptionOwnerAccountNumber:
description: |
Account number of an existing account that will own the subscription. For example, A00000001.
If you do not set this field or the `newSubscriptionOwnerAccount` field, the account that owns the order will also own the subscription. Zuora will return an error if you set this field and the `newSubscriptionOwnerAccount` field.
maxLength: 70
type: string
terms:
description: 'Container for the terms and renewal settings of the subscription.
'
properties:
autoRenew:
description: 'Specifies whether the subscription automatically renews
at the end of the each term. Only applicable if the type of the first
term is `TERMED`.
'
type: boolean
initialTerm:
description: 'Information about the first term of the subscription.
'
properties:
period:
description: 'Duration of the first term in months, years, days, or
weeks, depending on the value of the `periodType` field. Only applicable
if the value of the `termType` field is `TERMED`.
'
type: integer
periodType:
description: 'Unit of time that the first term is measured in. Only
applicable if the value of the `termType` field is `TERMED`.
'
enum:
- Month
- Year
- Day
- Week
type: string
startDate:
description: 'Start date of the first term, in YYYY-MM-DD format.
'
format: date
type: string
termType:
description: 'Type of the first term. If the value of this field is
`TERMED`, the first term has a predefined duration based on the
value of the `period` field. If the value of this field is `EVERGREEN`,
the first term does not have a predefined duration.
'
enum:
- TERMED
- EVERGREEN
type: string
required:
- termType
type: object
renewalSetting:
description: |
Specifies the type of the terms that follow the first term if the subscription is renewed. Only applicable if the type of the first term is `TERMED`.
* `RENEW_WITH_SPECIFIC_TERM` - Each renewal term has a predefined duration. The first entry in `renewalTerms` specifies the duration of the second term of the subscription, the second entry in `renewalTerms` specifies the duration of the third term of the subscription, and so on. The last entry in `renewalTerms` specifies the ultimate duration of each renewal term.
* `RENEW_TO_EVERGREEN` - The second term of the subscription does not have a predefined duration.
enum:
- RENEW_WITH_SPECIFIC_TERM
- RENEW_TO_EVERGREEN
type: string
renewalTerms:
description: 'List of renewal terms of the subscription. Only applicable
if the type of the first term is `TERMED` and the value of the `renewalSetting`
field is `RENEW_WITH_SPECIFIC_TERM`.
'
items:
$ref: '#/definitions/RenewalTerm'
type: array
required:
- initialTerm
- renewalTerms
type: object
title: createSubscription
type: object
CreateTemplateRequestContent:
description: 'CreateTemplateRequestContent object contains information for creating
template.
'
properties:
content:
$ref: '#/definitions/SettingSourceComponentResponse'
customFields:
description: Selected custom fields component or not.
type: boolean
customObjects:
description: Selected custom objects component or not.
type: boolean
description:
description: Creates template description.
type: string
name:
description: Name of the Template.
type: string
notifications:
description: Selected Notification component or not.
type: boolean
selectedComponents:
description: ConfigurationTemplateContent object contains the selected meta
data information.
items:
$ref: '#/definitions/ConfigurationTemplateContent'
type: array
settings:
description: Selected Settings component or not.
type: boolean
templateTenant:
description: ID of the template tenant.
example: 80b3f8cd-5801-4ed7-bee7-ad1569916c2f
type: string
workflows:
description: Selected Workflow component or not.
type: boolean
required:
- description
- name
- templateTenant
title: CreateTemplateRequestContent
type: object
CreditMemoApplyDebitMemoItemRequestType:
properties:
amount:
description: "The amount that is applied to the specific item. \n"
format: double
type: number
creditMemoItemId:
description: 'The ID of the credit memo item.
'
type: string
creditTaxItemId:
description: 'The ID of the credit memo taxation item.
'
type: string
debitMemoItemId:
description: 'The ID of the debit memo item that the credit memo item is applied
to.
'
type: string
taxItemId:
description: 'The ID of the debit memo taxation item that the credit memo
taxation item is applied to.
'
type: string
required:
- amount
title: items
type: object
CreditMemoApplyDebitMemoRequestType:
properties:
amount:
description: 'The credit memo amount to be applied to the debit memo.
'
format: double
type: number
debitMemoId:
description: 'The unique ID of the debit memo that the credit memo is applied
to.
'
type: string
items:
description: |
Container for items. The maximum number of items is 1,000.
If `creditMemoItemId` is the source, then it should be accompanied by a target `debitMemoItemId`.
If `creditTaxItemId` is the source, then it should be accompanied by a target `taxItemId`.
items:
$ref: '#/definitions/CreditMemoApplyDebitMemoItemRequestType'
type: array
required:
- amount
- debitMemoId
title: debitMemos
type: object
CreditMemoApplyInvoiceItemRequestType:
properties:
amount:
description: "The amount that is applied to the specific item. \n"
format: double
type: number
creditMemoItemId:
description: 'The ID of the credit memo item.
'
type: string
creditTaxItemId:
description: 'The ID of the credit memo taxation item.
'
type: string
invoiceItemId:
description: 'The ID of the invoice item that the credit memo item is applied
to.
'
type: string
taxItemId:
description: 'The ID of the invoice taxation item that the credit memo taxation
item is applied to.
'
type: string
required:
- amount
title: items
type: object
CreditMemoApplyInvoiceRequestType:
properties:
amount:
description: 'The credit memo amount to be applied to the invoice.
'
format: double
type: number
invoiceId:
description: 'The unique ID of the invoice that the credit memo is applied
to.
'
type: string
items:
description: |
Container for items. The maximum number of items is 1,000.
If `creditMemoItemId` is the source, then it should be accompanied by a target `invoiceItemId`.
If `creditTaxItemId` is the source, then it should be accompanied by a target `taxItemId`.
items:
$ref: '#/definitions/CreditMemoApplyInvoiceItemRequestType'
type: array
required:
- amount
- invoiceId
title: invoices
type: object
CreditMemoEntityPrefix:
description: |
Container for the prefix and starting document number of credit memos.
**Note:** This field is only available if you have the Invoice Settlement feature enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
properties:
prefix:
description: 'The prefix of credit memos.
'
example: CM
type: string
startNumber:
description: 'The starting document number of credit memos.
'
example: 10
type: integer
title: creditMemo
type: object
CreditMemoFromChargeCustomRatesType:
allOf:
- properties:
currency:
description: |
The currency code for either Reporting or Home currency.
**Note**: This field is only available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
customFxRate:
description: |
The Custom FX conversion rate between Home/Reporting and Transactional currency items.
**Note**: This field is only available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: decimal
type: number
rateDate:
description: |
The date on which a particular currency rate is fixed or obtained on.
**Note**: This field is only available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: date
type: string
required:
- currency
- customFxRate
type: object
- $ref: '#/definitions/CreditMemoItemObjectCustomFields'
title: customRates
CreditMemoFromChargeDetailType:
allOf:
- properties:
amount:
description: |
The amount of the credit memo item.
**Note**: This field is only available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: double
type: number
chargeId:
description: |
The ID of the product rate plan charge that the credit memo is created from.
**Note**: This field is not available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
comment:
description: |
Comments about the product rate plan charge.
**Note**: This field is not available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
maxLength: 255
minLength: 0
type: string
description:
description: |
The description of the product rate plan charge.
**Note**: This field is only available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
maxLength: 255
minLength: 0
type: string
financeInformation:
description: 'Container for the finance information related to the product
rate plan charge associated with the credit memo.
'
properties:
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as
Monthly Recurring Liability.
'
maxLength: 100
minLength: 0
type: string
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as
Monthly Recurring Charges or Overage Charges.
'
maxLength: 100
minLength: 0
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the
revenue schedule.
'
maxLength: 100
minLength: 0
type: string
type: object
memoItemAmount:
description: |
The amount of the credit memo item.
**Note**: This field is not available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: double
type: number
productRatePlanChargeId:
description: |
The ID of the product rate plan charge that the credit memo is created from.
**Note**: This field is only available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
quantity:
description: 'The number of units for the credit memo item.
'
format: double
type: number
serviceEndDate:
description: 'The service end date of the credit memo item. If not specified,
the effective end date of the corresponding product rate plan will be
used.
'
format: date
type: string
serviceStartDate:
description: 'The service start date of the credit memo item. If not specified,
the effective start date of the corresponding product rate plan will be
used.
'
format: date
type: string
required:
- chargeId
- productRatePlanChargeId
type: object
- $ref: '#/definitions/CreditMemoItemObjectCustomFields'
title: charges
CreditMemoFromChargeType:
allOf:
- properties:
accountId:
description: |
The ID of the account associated with the credit memo.
**Note**: When creating credit memos from product rate plan charges, you must specify `accountNumber`, `accountId`, or both in the request body. If both fields are specified, they must correspond to the same account.
type: string
accountNumber:
description: |
The number of the customer account associated with the credit memo.
**Note**: When creating credit memos from product rate plan charges, you must specify `accountNumber`, `accountId`, or both in the request body. If both fields are specified, they must correspond to the same account.
type: string
autoPost:
default: false
description: "Whether to automatically post the credit memo after it is\
\ created. \n\nSetting this field to `true`, you do not need to separately\
\ call the [Post a credit memo](https://developer.zuora.com/api-references/api/operation/PUT_PostCreditMemo)\
\ operation to post the credit memo.\n"
type: boolean
charges:
description: 'Container for product rate plan charges. The maximum number
of items is 1,000.
'
items:
$ref: '#/definitions/CreditMemoFromChargeDetailType'
maxItems: 1000
type: array
comment:
description: 'Comments about the credit memo.
'
type: string
currency:
description: |
The code of a currency as defined in Billing Settings through the Zuora UI.
If you do not specify a currency during credit memo creation, the default account currency is applied. The currency that you specify in the request must be configured and activated in Billing Settings.
**Note**: This field is available only if you have the Multiple Currencies feature in the **Early Adopter** phase enabled.
type: string
customRates:
description: |
It contains Home currency and Reporting currency custom rates currencies. The maximum number of items is 2 (you can pass the Home currency item or Reporting currency item or both).
**Note**: The API custom rate feature is permission controlled.
items:
$ref: '#/definitions/CreditMemoFromChargeCustomRatesType'
maxItems: 2
type: array
effectiveDate:
description: 'The date when the credit memo takes effect.
'
format: date
type: string
excludeFromAutoApplyRules:
default: false
description: 'Whether the credit memo is excluded from the rule of automatically
applying unapplied credit memos to invoices and debit memos during payment
runs. If you set this field to `true`, a payment run does not pick up
this credit memo or apply it to other invoices or debit memos.
'
type: boolean
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty. If you do not specify a value,
Zuora uses the default reason code.
'
type: string
type: object
- $ref: '#/definitions/CreditMemoObjectNSFields'
- $ref: '#/definitions/CreditMemoObjectCustomFields'
example:
accountId: 402890555a7e9791015a7f15fe44001c
autoPost: false
charges:
- amount: null
chargeId: 402890555a87d7f5015a88c613c5001e
comment: this is comment1
quantity: 1
serviceEndDate: '2018-10-17'
serviceStartDate: '2017-10-17'
- amount: 20
chargeId: 402890555a7d4022015a7d90906b0067
comment: this is comment2
serviceEndDate: '2018-10-17'
serviceStartDate: '2017-10-17'
comment: the comment
currency: USD
customRates:
- currency: CAD
customFxRate: 2.22
rateDate: '2022-10-21'
- currency: EUR
customFxRate: 2.22
rateDate: '2022-10-21'
effectiveDate: '2017-10-17'
excludeFromAutoApplyRules: true
reasonCode: Correcting invoice error
title: memos
CreditMemoFromInvoiceType:
allOf:
- properties:
autoApplyToInvoiceUponPosting:
description: 'Whether the credit memo automatically applies to the invoice
upon posting.
'
type: boolean
autoPost:
default: false
description: "Whether to automatically post the credit memo after it is\
\ created. \nSetting this field to `true`, you do not need to separately\
\ call the [Post credit memo](https://developer.zuora.com/api-references/api/operation/PUT_PostCreditMemo)\
\ operation to post the credit memo.\n"
type: boolean
comment:
description: 'Comments about the credit memo.
'
maxLength: 255
minLength: 0
type: string
effectiveDate:
description: 'The date when the credit memo takes effect.
'
format: date
type: string
excludeFromAutoApplyRules:
description: 'Whether the credit memo is excluded from the rule of automatically
applying credit memos to invoices.
'
type: boolean
invoiceId:
description: "The ID of the invoice that the credit memo is created from.\n\
* If this field is specified, its value must be the same as the value\
\ of the `invoiceId` path parameter. Otherwise, its value overrides the\
\ value of the `invoiceId` path parameter. \n* If this field is not specified,\
\ the value of the `invoiceId` path parameter is used.\n"
type: string
items:
description: 'Container for items. The maximum number of items is 1,000.
'
items:
$ref: '#/definitions/CreditMemoItemFromInvoiceItemType'
maxItems: 1000
type: array
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty. If you do not specify a value,
Zuora uses the default reason code.
'
type: string
taxAutoCalculation:
default: true
description: 'Whether to automatically calculate taxes in the credit memo.
'
type: boolean
type: object
- $ref: '#/definitions/CreditMemoObjectNSFields'
- $ref: '#/definitions/CreditMemoObjectCustomFields'
example:
autoApplyToInvoiceUponPosting: false
autoPost: false
comment: the comment
effectiveDate: '2016-11-30'
excludeFromAutoApplyRules: false
items:
- amount: 1
comment: This is comment!
invoiceItemId: 4028905558b483220158b48983dd0015
quantity: 1
serviceEndDate: '2016-11-30'
serviceStartDate: '2016-11-01'
skuName: SKU-30
taxItems:
- amount: 0.01
jurisdiction: CALIFORNIA
locationCode: '06'
sourceTaxItemId: 4028905558b483220158b48983150010
taxCode: null
taxCodeDescription: This is tax code description!
taxDate: '2016-11-30'
taxExemptAmount: 0.0
taxName: STATE TAX
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
taxMode: TaxExclusive
unitOfMeasure: Test_UOM
reasonCode: Write-off
CreditMemoItemFromInvoiceItemType:
allOf:
- properties:
amount:
description: 'The amount of the credit memo item.
'
format: double
type: number
comment:
description: |
Comments about the credit memo item.
**Note**: This field is not available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
description:
description: |
The description of the credit memo item.
**Note**: This field is only available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
financeInformation:
description: 'Container for the finance information related to the credit
memo item.
'
properties:
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as
Monthly Recurring Liability.
'
maxLength: 100
minLength: 0
type: string
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as
Monthly Recurring Charges or Overage Charges.
'
maxLength: 100
minLength: 0
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the
revenue schedule.
'
maxLength: 100
minLength: 0
type: string
type: object
invoiceItemId:
description: 'The ID of the invoice item.
'
type: string
quantity:
description: 'The number of units for the credit memo item.
'
format: double
type: number
serviceEndDate:
description: 'The service end date of the credit memo item.
'
format: date
type: string
serviceStartDate:
description: 'The service start date of the credit memo item.
'
format: date
type: string
skuName:
description: 'The name of the charge associated with the invoice.
'
type: string
taxItems:
description: 'Container for taxation items.
'
items:
$ref: '#/definitions/CreditMemoTaxItemFromInvoiceTaxItemType'
type: array
taxMode:
default: TaxExclusive
description: |
The tax mode of the credit memo item, indicating whether the amount of the credit memo item includes tax.
**Note**: You can set this field to `TaxInclusive` only if the `taxAutoCalculation` field is set to `true`.
If you set `taxMode` to `TaxInclusive`, you cannot input tax amounts for credit memo items. The corresponding invoice item must use the same tax engine as the credit memo item to calculate tax amounts.
enum:
- TaxExclusive
- TaxInclusive
type: string
unitOfMeasure:
description: 'The definable unit that you measure when determining charges.
'
type: string
required:
- skuName
- amount
- invoiceItemId
type: object
- $ref: '#/definitions/CreditMemoItemObjectCustomFields'
title: items
CreditMemoItemFromWriteOffInvoice:
allOf:
- properties:
comment:
description: 'Comments about the credit memo item.
'
type: string
financeInformation:
description: 'Container for the finance information related to the credit
memo item.
'
properties:
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as
Monthly Recurring Liability.
'
maxLength: 100
minLength: 0
type: string
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as
Monthly Recurring Charges or Overage Charges.
'
maxLength: 100
minLength: 0
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the
revenue schedule.
'
maxLength: 100
minLength: 0
type: string
type: object
invoiceItemId:
description: 'The ID of the invoice item.
'
type: string
serviceEndDate:
description: "The service end date of the credit memo item. \n"
format: date
type: string
serviceStartDate:
description: "The service start date of the credit memo item. \n"
format: date
type: string
skuName:
description: 'The name of the charge associated with the invoice.
'
type: string
unitOfMeasure:
description: 'The definable unit that you measure when determining charges.
'
type: string
type: object
- $ref: '#/definitions/CreditMemoItemObjectCustomFields'
title: items
CreditMemoItemObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Credit Memo Item object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Credit Memo Item object.
'
title: creditMemoItemFieldsCustom
type: object
CreditMemoObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Credit Memo object. The name of each custom
field has the form *customField*__c
. Custom field names are case
sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Credit Memo object.
'
title: creditMemoFieldsCustom
type: object
CreditMemoObjectNSFields:
description: 'Container for Credit Memo fields provided by the [Zuora Connector
for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
properties:
IntegrationId__NS:
description: 'ID of the corresponding object in NetSuite. Only available if
you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IntegrationStatus__NS:
description: 'Status of the credit memo''s synchronization with NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
Origin__NS:
description: 'Origin of the corresponding object in NetSuite. Only available
if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
SyncDate__NS:
description: 'Date when the credit memo was synchronized with NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
Transaction__NS:
description: 'Related transaction in NetSuite. Only available if you have
installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
title: creditMemoFieldsNS
type: object
CreditMemoResponseType:
properties:
id:
description: 'The ID of the generated credit memo.
'
type: string
title: creditMemos
type: object
CreditMemoTaxItemFromInvoiceTaxItemType:
properties:
amount:
description: 'The amount of the credit memo taxation item.
'
format: double
type: number
financeInformation:
description: 'Container for the finance information related to the source
taxation item.
'
properties:
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your accounting
system.
'
maxLength: 100
minLength: 0
type: string
salesTaxPayableAccountingCode:
description: 'The accounting code for the sales taxes payable.
'
maxLength: 100
minLength: 0
type: string
type: object
jurisdiction:
description: "The jurisdiction that applies the tax or VAT. This value is\
\ typically a state, province, county, or city. \n"
type: string
locationCode:
description: 'The identifier for the location based on the value of the `taxCode`
field.
'
type: string
sourceTaxItemId:
description: 'The ID of the source taxation item.
'
type: string
taxCode:
description: "The tax code identifies which tax rules and tax rates to apply\
\ to a specific credit memo. \n"
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date that the tax is applied to the credit memo, in `yyyy-mm-dd`
format.
'
format: date
type: string
taxExemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
taxName:
description: 'The name of taxation.
'
type: string
taxRate:
description: 'The tax rate applied to the credit memo.
'
format: double
type: number
taxRateDescription:
description: "The description of the tax rate. \n"
type: string
taxRateType:
description: "The type of the tax rate applied to the credit memo. \n"
enum:
- Percentage
- FlatFee
type: string
title: taxItems
type: object
CreditMemoUnapplyDebitMemoItemRequestType:
properties:
amount:
description: "The amount that is unapplied from the specific item. \n"
format: double
type: number
creditMemoItemId:
description: 'The ID of the credit memo item.
'
type: string
creditTaxItemId:
description: 'The ID of the credit memo taxation item.
'
type: string
debitMemoItemId:
description: 'The ID of the debit memo item that the credit memo item is unapplied
from.
'
type: string
taxItemId:
description: 'The ID of the debit memo taxation item that the credit memo
taxation item is unapplied from.
'
type: string
required:
- amount
title: items
type: object
CreditMemoUnapplyDebitMemoRequestType:
properties:
amount:
description: 'The credit memo amount to be unapplied from the debit memo.
'
format: double
type: number
debitMemoId:
description: 'The unique ID of the debit memo that the credit memo is unapplied
from.
'
type: string
items:
description: 'Container for items. The maximum number of items is 1,000.
'
items:
$ref: '#/definitions/CreditMemoUnapplyDebitMemoItemRequestType'
type: array
required:
- amount
- debitMemoId
title: debitMemos
type: object
CreditMemoUnapplyInvoiceItemRequestType:
properties:
amount:
description: "The amount that is unapplied from the specific item. \n"
format: double
type: number
creditMemoItemId:
description: 'The ID of the credit memo item.
'
type: string
creditTaxItemId:
description: 'The ID of the credit memo taxation item.
'
type: string
invoiceItemId:
description: 'The ID of the invoice item that the credit memo item is unapplied
from.
'
type: string
taxItemId:
description: 'The ID of the invoice taxation item that the credit memo taxation
item is unapplied from.
'
type: string
required:
- amount
title: items
type: object
CreditMemoUnapplyInvoiceRequestType:
properties:
amount:
description: 'The credit memo amount to be unapplied from the invoice.
'
format: double
type: number
invoiceId:
description: 'The unique ID of the invoice that the credit memo is unapplied
from.
'
type: string
items:
description: 'Container for items. The maximum number of items is 1,000.
'
items:
$ref: '#/definitions/CreditMemoUnapplyInvoiceItemRequestType'
type: array
required:
- amount
- invoiceId
title: invoices
type: object
CreditMemosFromCharges:
allOf:
- $ref: '#/definitions/POSTBulkCreditMemosRequestType'
- properties:
memos:
description: 'The container for a list of credit memos. The maximum number
of credit memos is 50.
'
items:
$ref: '#/definitions/CreditMemoFromChargeType'
maxItems: 50
type: array
type: object
example:
//: Please replace the value of the `sourceType` field with `Standalone`. This
is not a request field, but only a comment on the `sourceType` field.
memos:
- accountId: 402890555a7e9791015a7f15fe44001c
autoPost: false
charges:
- amount: null
chargeId: 402890555a87d7f5015a88c613c5001e
comment: this is comment1
quantity: 1
serviceEndDate: '2018-10-17'
serviceStartDate: '2017-10-17'
- amount: 20
chargeId: 402890555a7d4022015a7d90906b0067
comment: this is comment2
serviceEndDate: '2018-10-17'
serviceStartDate: '2017-10-17'
comment: the comment
currency: USD
effectiveDate: '2017-10-17'
excludeFromAutoApplyRules: true
reasonCode: Correcting invoice error
sourceType: Standalone
CreditMemosFromInvoices:
allOf:
- $ref: '#/definitions/POSTBulkCreditMemosRequestType'
- properties:
memos:
description: 'The container for a list of credit memos. The maximum number
of credit memos is 50.
'
items:
$ref: '#/definitions/POSTBulkCreditMemoFromInvoiceType'
maxItems: 50
type: array
type: object
example:
//: Please replace the value of the `sourceType` field with `Invoice`. This
is not a request field, but only a comment on the `sourceType` field.
memos:
- autoApplyToInvoiceUponPosting: false
autoPost: false
comment: the comment
effectiveDate: '2016-11-30'
excludeFromAutoApplyRules: false
invoiceId: 4028905558b483220158b48983dd0015
items:
- amount: 1
comment: This is comment!
invoiceItemId: 4028905558b483220158b48983dd0015
quantity: 1
serviceEndDate: '2016-11-30'
serviceStartDate: '2016-11-01'
skuName: SKU-30
taxItems:
- amount: 0.01
jurisdiction: CALIFORNIA
locationCode: '06'
sourceTaxItemId: 4028905558b483220158b48983150010
taxCode: null
taxCodeDescription: This is tax code description!
taxDate: '2016-11-30'
taxExemptAmount: 0
taxName: STATE TAX
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
taxMode: TaxExclusive
unitOfMeasure: Test_UOM
reasonCode: Write-off
sourceType: Invoice
CreditTaxationItemObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Credit Taxation Item object. The name of
each custom field has the form *customField*__c
. Custom field
names are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Credit Taxation Item object.
'
title: creditTaxationItemFieldsCustom
type: object
CustomFields:
additionalProperties:
description: "The name of each custom field has the form *customField*__c
.\
\ Custom field names are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)\
\ for more information. \n\nThe Sign up API is based on Orders. The root element\
\ uses the custom field defintion on an \"Order\" object, `accountData` uses\
\ the custom field defintion on an \"Account\" object, and `subscriptionData`\
\ uses the custom field defintion on an \"Order Action\" object (not on an\
\ \"Subscription\" object).\n"
description: 'Container for custom fields.
'
title: CustomFields
type: object
CustomObjectAllFieldsDefinition:
allOf:
- properties:
CreatedById:
description: The `CreatedById` field definition
properties:
format:
description: The field data format
enum:
- uuid
type: string
label:
description: The UI name of the field
type: string
origin:
description: Specifies whether the field is a system field or a custom
field
enum:
- system
type: string
type:
description: The field data type
enum:
- string
type: string
type: object
CreatedDate:
description: The `CreatedDate` field definition
properties:
format:
description: The field data format
enum:
- date-time
type: string
origin:
description: Specifies the field is a system field
enum:
- system
type: string
type:
description: The field data type
enum:
- string
type: string
type: object
Id:
description: The `Id` field definition
properties:
format:
description: The field data format
enum:
- uuid
type: string
label:
description: The UI name of the field
type: string
origin:
description: Specifies whether the field is a system field or a custom
field
enum:
- system
type: string
type:
description: The field data type
enum:
- string
type: string
type: object
UpdatedById:
description: The `UpdatedById` field definition
properties:
format:
description: The field data format
enum:
- uuid
type: string
label:
description: The UI name of the field
type: string
origin:
description: Specifies whether the field is a system field or a custom
field
enum:
- system
type: string
type:
description: The field data type
enum:
- string
type: string
type: object
UpdatedDate:
description: The `UpdatedDate` field definition
properties:
format:
description: The field data format
enum:
- date-time
type: string
origin:
description: Specifies the field is a system field
enum:
- system
type: string
type:
description: The field data type
enum:
- string
type: string
type: object
type: object
- $ref: '#/definitions/CustomObjectCustomFieldsDefinition'
description: The definitions of all the fields in the custom object definition
title: customObjectFieldDefinition
CustomObjectBulkDeleteFilter:
description: Filters to determine which records to be deleted in the bulk delete
operation.
properties:
conditions:
description: Group of field filter conditions that are evaluated in conjunction
with each other using the AND operator. The minimum number of conditions
is 1 and the maximum is 2.
items:
$ref: '#/definitions/CustomObjectBulkDeleteFilterCondition'
type: array
required:
- conditions
type: object
CustomObjectBulkDeleteFilterCondition:
description: Condition evaluated on a single object field
properties:
field:
description: The object field that is evaluated. Only filterable fields can
be evaluated in the filter.
example: CreatedDate
type: string
operator:
enum:
- EQ
- GT
- LT
- GE
- LE
example: LT
type: string
value:
description: The value that the filterable `field` is evaluated against in
the filter. The data type of `value` is consistent with that of the `field`.
example: '2020-01-01T00:00:00.000Z'
required:
- field
- operator
- value
type: object
CustomObjectBulkJobErrorResponse:
properties:
code:
description: The error code.
example: 71012520
format: Int32
type: integer
message:
description: The error message.
example: input string "123" is not a valid UUID
type: string
record:
$ref: '#/definitions/CustomObjectRecordWithAllFields'
type: object
row:
description: The CSV record row number. The custom object record data starts
at the second row because the first row is the CSV header.
example: 12
format: Int32
type: integer
type: object
CustomObjectBulkJobErrorResponseCollection:
properties:
errors:
description: All errors for a custom object bulk job.
items:
$ref: '#/definitions/CustomObjectBulkJobErrorResponse'
type: array
required:
- errors
type: object
CustomObjectBulkJobRequest:
properties:
filter:
$ref: '#/definitions/CustomObjectBulkDeleteFilter'
description: The filter determines which records to be deleted in the bulk
delete operation.
example:
conditions:
- field: CreatedDate
operator: LT
value: '2020-01-01T00:00:00.000Z'
type: object
namespace:
description: |
The namespace of the object. Custom objects belong to the `default` namespace. Zuora standard objects belong to the `com_zuora` namespace. Bulk job operations on the following Zuora standard objects are supported:
* SavedQuery
enum:
- default
- com_zuora
type: string
object:
description: The object that the bulk operation performs on.
example: passenger
type: string
operation:
description: The operation that the bulk job performs. Only the users that
have the "Delete Custom Objects" permission can submit a `delete` bulk job
request. Only the users that have the "Edit Custom Objects" permission can
submit a `create` or `update` bulk job request. See [Platform Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/h_Platform_Roles#Platform_Permissions)
for more information.
enum:
- delete
- create
- update
type: string
required:
- operation
- object
- namespace
type: object
CustomObjectBulkJobResponse:
example:
CreatedById: 7b39d73f-22e6-404a-b8e7-894f7620e91c
CreatedDate: '2021-03-15T06:47:18Z'
Id: ed4b9701-bafb-4976-8019-b08269430153
UpdatedById: 7b39d73f-22e6-404a-b8e7-894f7620e91c
UpdatedDate: '2021-03-15T06:47:18Z'
error:
code: 71012560
message: Service limit reached, please retry later.
namespace: default
object: passenger
operation: delete
processingTime: 1882
recordsProcessed: 500
status: failed
properties:
CreatedById:
description: The ID of the user who creates the job.
format: uuid
type: string
CreatedDate:
description: The time when the bulk job is created.
format: date-time
type: string
Id:
description: The custom object bulk job ID.
format: uuid
type: string
UpdatedById:
description: The ID of the user who updates the job.
format: uuid
type: string
UpdatedDate:
description: The time when the bulk job is updated.
format: date-time
type: string
error:
properties:
code:
description: The error code.
example: 71012560
format: Int32
type: integer
message:
description: The error message.
example: Service limit reached, please retry later.
type: string
type: object
namespace:
description: |
The namespace of the object. Custom objects belong to the `default` namespace. Zuora standard objects belong to the `com_zuora` namespace. Bulk job operations on the following Zuora standard objects are supported:
* SavedQuery
enum:
- default
- com_zuora
type: string
object:
description: The object to that the bulk operation performs on.
example: passenger
type: string
operation:
description: 'The operation that the bulk job performs. Only the users that
have the "Delete Custom Objects" permission can submit a `delete` bulk job
request. Only the users that have the "Edit Custom Objects" permission can
submit a `create` or `update` bulk job request. See [Platform Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/h_Platform_Roles#Platform_Permissions)
for more information.
'
enum:
- delete
- create
- update
type: string
processingTime:
description: The amount of time elapsed, in milliseconds, from the submission
to the completion of the bulk job.
example: 550
type: integer
recordsProcessed:
description: The number of object records processed by the bulk job.
example: 1000
type: integer
status:
description: |
The status of the bulk job:
- `accepted` - The job has been accepted and is ready to process.
- `pending` - The job is waiting for your input. You can use [Upload a file for a custom object bulk job](https://developer.zuora.com/api-references/api/operation/POST_UploadFileForCustomObjectBulkJob) to upload a file so that the job can start creating records.
- `in_progress` - The job is processing.
- `completed` - The job has completed.
- `failed` - The job was unable to complete. You can use [List all errors for a custom object bulk job](https://developer.zuora.com/api-references/api/operation/GET_CustomObjectBulkJobErrors) to list the errors.
- `cancelled` - The job was cancelled by the server.
enum:
- accepted
- pending
- in_progress
- completed
- failed
- cancelled
example: failed
type: string
type: object
CustomObjectBulkJobResponseCollection:
properties:
count:
description: The number of custom object bulk jobs returned in the result
page set.
example: 2
type: integer
cursor:
description: The `cursor` points to the last job record of the current page.
example: a9e9a58d-0a11-4685-b1ab-99521dbc20a1
type: string
jobs:
description: All custom object bulk jobs returned in the result page set.
example:
- CreatedById: 2c92c0f96a07409d016a0a58ab1172ec
CreatedDate: '2021-03-10T00:05:54.207Z'
Id: 5112347a-f7a1-4373-99df-c082984de7be
UpdatedById: 2c92c0f96a07409d016a0a58ab1172ec
UpdatedDate: '2021-03-10T00:08:15.614Z'
namespace: default
object: vehicle
operation: create
processingTime: 62
recordsProcessed: 3
status: completed
- CreatedById: 2c92c0f96a07409d016a0a58ab1172ec
CreatedDate: '2021-03-09T22:27:59.503Z'
Id: a9e9a58d-0a11-4685-b1ab-99521dbc20a1
UpdatedById: 2c92c0f96a07409d016a0a58ab1172ec
UpdatedDate: '2021-03-09T22:27:59.503Z'
namespace: default
object: vehicle
operation: create
processingTime: 0
recordsProcessed: 0
status: pending
items:
$ref: '#/definitions/CustomObjectBulkJobResponse'
type: array
required:
- jobs
type: object
CustomObjectCustomFieldDefinition:
description: The custom field definition in the custom object
properties:
displayName:
description: |
Indicates whether to use this field as the display name of the custom object when being linked to another custom object.
This field applies only to the Text custom field type:
- The `type` field is `string`.
- The `enum` field is not specified.
type: boolean
format:
description: The data format of the custom field
type: string
label:
description: The UI label of the custom field
type: string
maxLength:
description: |
The maximum length of string that can be stored in the custom field.
This field applies only to the following custom field types:
- Text:
- The `type` field is `string`.
- The `format` field is not specified or is `url`.
- The `enum` field is not specified.
- Picklist:
- The `type` field is `string`.
- The `enum` field is specified.
- The `multiselect` field is not specified or is `false`.
- Multiselect:
- The `type` field is `string`.
- The `enum` field is specified.
- The `multiselect` field is `true`.
type: integer
multiselect:
description: |
Indicates whether this is a multiselect custom field.
This field applies only to the Picklist or Multiselect custom field types:
- The `type` field is `string`.
- The `maxLength` field is specified.
- The `enum` field is specified.
type: boolean
origin:
description: Specifies that this is a custom field
enum:
- custom
type: string
type:
description: The data type of the custom field
type: string
title: customObjectCustomFieldDefinition
type: object
CustomObjectCustomFieldDefinitionUpdate:
description: The custom field definition in the custom object
properties:
default:
description: Applicable if the `type` of the action is `updateField`
type: string
description:
description: Applicable if the `type` of the action is `updateField`
type: string
displayName:
description: |
Indicates whether to use this field as the display name of the custom object when being linked to another custom object.
This field applies only to the Text custom field type:
- The `type` field is `string`.
- The `enum` field is not specified.
type: boolean
format:
description: The data format of the custom field
type: string
label:
description: The UI label of the custom field
type: string
maxLength:
description: |
The maximum length of string that can be stored in the custom field.
This field applies only to the following custom field types:
- Text:
- The `type` field is `string`.
- The `format` field is not specified or is `url`.
- The `enum` field is not specified.
- Picklist:
- The `type` field is `string`.
- The `enum` field is specified.
- The `multiselect` field is not specified or is `false`.
- Multiselect:
- The `type` field is `string`.
- The `enum` field is specified.
- The `multiselect` field is `true`.
If the custom field is filterable, the value of `maxLength` must be 512 or less.
type: integer
multiselect:
description: |
Indicates whether this is a multiselect custom field.
This field applies only to the creation of Picklist or Multiselect custom fields:
- The action `type` field is `addField`.
- The definition `type` field is `string`.
- The `maxLength` field is specified.
- The `enum` field is specified.
type: boolean
origin:
description: Specifies that this is a custom field
enum:
- custom
type: string
type:
description: The data type of the custom field
type: string
title: customObjectCustomFieldDefinition
type: object
CustomObjectCustomFieldsDefinition:
additionalProperties:
$ref: '#/definitions/CustomObjectCustomFieldDefinition'
description: The custom field definition in the custom object definition
title: customObjectCustomFieldDefinition
type: object
CustomObjectDefinition:
example:
CreatedById: 7b39d73f-22e6-404a-b8e7-894f7620e91c
CreatedDate: '2019-09-29T06:45:23.378Z'
Id: df7f10f9-4ec9-4389-a9eb-a6a3d549bb61
UpdatedById: 7b39d73f-22e6-404a-b8e7-894f7620e91c
UpdatedDate: '2019-09-29T06:45:23.378Z'
schema:
filterable:
- last_name__c
- email__c
label: Personal Profile
object: person
properties:
CreatedById:
format: uuid
label: CreatedById
origin: system
type: string
CreatedDate:
format: date-time
label: CreatedDate
origin: system
type: string
Id:
format: uuid
label: Id
origin: system
type: string
UpdatedById:
format: uuid
label: UpdatedById
origin: system
type: string
UpdatedDate:
format: date-time
label: UpdatedDate
origin: system
type: string
age__c:
description: Age in years
minimum: 0
origin: custom
type: integer
email__c:
format: email
maxLength: 128
origin: custom
type: string
home_address__c:
format: uuid
origin: custom
type: string
last_name__c:
maxLength: 128
origin: custom
type: string
marital_status__c:
default: Unknown
enum:
- Single
- Married
- Unknown
origin: custom
type: string
work_address__c:
format: uuid
origin: custom
type: string
relationships:
- cardinality: manyToOne
fields:
home_address__c: Id
namespace: default
object: address
recordConstraints:
create:
enforceValidMapping: false
- cardinality: manyToOne
fields:
work_address__c: Id
namespace: default
object: address
recordConstraints:
create:
enforceValidMapping: false
- cardinality: oneToMany
fields:
Id: person_id__c
namespace: default
object: car
recordConstraints:
create:
enforceValidMapping: false
- cardinality: oneToMany
fields:
Id: person_id__c
namespace: default
object: device
recordConstraints:
create:
enforceValidMapping: false
required:
- last_name__c
- marital_status__c
type: object
type: person
properties:
CreatedById:
description: The creator's Id
format: uuid
type: string
CreatedDate:
description: The creation time of the custom object definition in date-time
format.
format: date-time
type: string
Id:
description: The unique Id of the custom object definition
format: uuid
type: string
UpdatedById:
description: The modifier's Id
format: uuid
type: string
UpdatedDate:
description: The update time of the custom object definition in date-time
format.
format: date-time
type: string
schema:
description: The schema of the custom object definition
properties:
auditable:
description: The set of fields which Audit Trail tracks and records changes
of.
items:
type: string
type: array
enableCreateRecordAuditing:
description: Indicates whether to audit the creation of custom object
records of this custom object definition.
type: boolean
enableDeleteRecordAuditing:
description: Indicates whether to audit the deletion of custom object
records of this custom object definition.
type: boolean
filterable:
description: The set of fields that are allowed to be queried on. Queries
on non-filterable fields will be rejected. You can not change a non-filterable
field to filterable.
items:
type: string
type: array
label:
description: A label for the custom object
type: string
object:
description: The API name of the custom object
type: string
properties:
$ref: '#/definitions/CustomObjectAllFieldsDefinition'
description: all fields definition of the custom object definition
type: object
relationships:
description: An array of relationships with Zuora objects or other custom
objects
items:
additionalProperties: false
properties:
cardinality:
default: manyToOne
description: |
The cardinality of the relationship from this object to another object.
A `manyToOne` relationship means this object is the child object (the "many" side), and the referenced object (the "one" side) is the parent.
A `oneToMany` relationship means this object is the parent object (the "one" side), and the referenced object (the "many" side) is the child.
enum:
- manyToOne
- oneToMany
type: string
fields:
$ref: '#/definitions/FieldsAdditionalProperties'
namespace:
description: The namespace where the related object is located
type: string
object:
description: The API name of the related object
type: string
recordConstraints:
description: 'Specifies contraints to apply to custom object records.
'
properties:
create:
properties:
enforceValidMapping:
description: |
Specifies whether Zuora validates the values of mapped fields
in custom object records.
type: boolean
type: object
type: object
type: object
type: array
required:
description: The required fields of the custom object definition. You
can change required fields to optional. However, you can only change
optional fields to required on the custom objects with no records.
items:
type: string
type: array
type:
description: The custom object definition type. Can only be `object` currently.
enum:
- object
type: string
unique:
description: The fields with unique constraints.
items:
type: string
type: array
type: object
type:
description: The API name of the custom object
type: string
title: customObjectDefinition
type: object
CustomObjectDefinitionUpdateActionRequest:
example:
field:
definition:
description: Address zip code
label: Zip code
maxLength: 10
type: string
name: zip__c
namespace: default
object: address
type: addField
properties:
description:
description: Optional property for `updateObject` action
type: string
enableCreateRecordAuditing:
description: |
Optional property for `updateObject` action.
Indicates whether to audit the creation of custom object records of this custom object definition.
Note that you must enable the **Custom Object Definition** audit trail setting in your Zuora tenant before auditing custom object record creation. For more information, see Manage audit trail settings .
type: boolean
enableDeleteRecordAuditing:
description: |
Optional property for `updateObject` action.
Indicates whether to audit the deletion of custom object records of this custom object definition.
Note that you must enable the **Custom Object Definition** audit trail setting in your Zuora tenant before auditing custom object record deletion. For more information, see Manage audit trail settings .
type: boolean
field:
$ref: '#/definitions/UpdateCustomObjectCusotmField'
label:
description: Optional property for `updateObject` action
type: string
namespace:
description: The namespace of the custom object definition to be updated
type: string
object:
description: The API name of the custom object definition to be updated
type: string
relationship:
additionalProperties: false
properties:
cardinality:
description: |
The cardinality of the relationship from this object to another object.
Only the `manyToOne` cardinality can be used when creating relationships. A relationship with `oneToMany` cardinality is created implicitly when a `manyToOne` relationship is created.
A custom object definition can have a maximum of 2 `manyToOne` relationships.
enum:
- manyToOne
type: string
fields:
$ref: '#/definitions/FieldsAdditionalProperties'
namespace:
description: The namespace where the related object is located
type: string
object:
description: The API name of the related object
type: string
recordConstraints:
description: 'Specifies contraints to apply to custom object records.
'
properties:
create:
properties:
enforceValidMapping:
default: true
description: |
Specifies whether Zuora validates the values of mapped fields
in custom object records.
By default, Zuora validates the values of mapped fields
in custom object records. For example, if the
custom object definition has a field called `AccountId__c`
that is mapped to the `Id` field of the `account` object,
Zuora verifies that the value of `AccountId__c` is a valid
account ID when a custom object record is created.
If the value of `AccountId__c` is not a valid account ID,
the operation fails.
type: boolean
type: object
type: object
required:
- namespace
- object
- fields
type: object
type:
description: The type of the updating action on a custom object definition
enum:
- addField
- deleteField
- updateField
- updateObject
- renameField
- addRelationship
- deleteRelationship
type: string
required:
- type
- namespace
- object
type: object
CustomObjectDefinitionUpdateActionResponse:
example:
field:
definition:
description: Address zip code
label: Zip code
maxLength: 10
type: string
name: zip__c
namespace: default
object: address
type: addField
properties:
description:
description: Optional property for `updateObject` action
type: string
enableCreateRecordAuditing:
description: Indicates whether to audit the creation of custom object records
of this custom object definition.
type: boolean
enableDeleteRecordAuditing:
description: Indicates whether to audit the deletion of custom object records
of this custom object definition.
type: boolean
field:
$ref: '#/definitions/UpdateCustomObjectCusotmField'
label:
description: Optional property for `updateObject` action
type: string
namespace:
description: The namespace of the custom object definition to be updated
type: string
object:
description: The API name of the custom object definition to be updated
type: string
relationship:
additionalProperties: false
properties:
cardinality:
default: manyToOne
description: |
The cardinality of the relationship from this object to another object.
A `manyToOne` relationship means this object is the child object (the "many" side), and the referenced object (the "one" side) is the parent.
A `oneToMany` relationship means this object is the parent object (the "one" side), and the referenced object (the "many" side) is the child.
enum:
- manyToOne
- oneToMany
type: string
fields:
$ref: '#/definitions/FieldsAdditionalProperties'
namespace:
description: The namespace where the related object is located
type: string
object:
description: The API name of the related object
type: string
recordConstraints:
description: 'Specifies contraints to apply to custom object records.
'
properties:
create:
properties:
enforceValidMapping:
default: true
description: |
Specifies whether Zuora validates the values of mapped fields
in custom object records.
type: boolean
type: object
type: object
type: object
type:
description: The type of the updating action on a custom object definition
enum:
- addField
- deleteField
- updateField
- updateObject
- renameField
- addRelationship
- deleteRelationship
type: string
type: object
CustomObjectDefinitions:
additionalProperties:
$ref: '#/definitions/CustomObjectDefinition'
description: The custom object definitions. This object maps types to custom object
definitions.
title: customObjectDefinitions
type: object
CustomObjectRecordBatchAction:
description: The batch action on custom object records
properties:
allowPartialSuccess:
default: false
description: |
Indicates whether the records that pass the schema validation should be updated when not all records in the request pass the schema validation.
Only applicable when `type` is `update`.
example: true
type: boolean
ids:
description: Ids of the custom object records that you want to delete. Each
ID must be a string of 36 characters. Only applicable when `type` is `delete`.
example:
- 64edb2a5-2796-4e95-9559-846f8636a01b
- dbfb35a3-dd2b-42c9-b8f7-eb36fed1a1e1
- 2c2a1810-bfef-4150-84de-50e769978e42
items:
format: uuid
type: string
type: array
records:
$ref: '#/definitions/CustomObjectRecordBatchUpdateMapping'
type: object
type:
description: The type of the batch action
enum:
- delete
- update
type: string
required:
- type
title: updateDeleteBatchAction
type: object
CustomObjectRecordBatchRequest:
description: Request of processing custom object records in batch.
example:
action:
allowPartialSuccess: true
records:
64edb2a5-2796-4e95-9559-846f8636a01b:
age__c: eighteen
name__c: elba43
person_id__c: 30c52793-8f06-41c6-b623-04829710d7a
type: update
properties:
action:
$ref: '#/definitions/CustomObjectRecordBatchAction'
type: object
required:
- action
type: object
CustomObjectRecordBatchUpdateMapping:
additionalProperties:
description: Map of object Id and associated custom fields data to be updated
type: object
description: Object records that you want to update. Only applicable when `type`
is `update`.
example:
64edb2a5-2796-4e95-9559-846f8636a01b:
name__c: elba43
person_id__c": 30c52793-8f06-41c6-b623-04829710d7a
title: updateIdFieldsMapping
type: object
CustomObjectRecordWithAllFields:
allOf:
- properties:
CreatedById:
description: The creator's Id
type: string
CreatedDate:
description: The record creation time in the date-time format
format: date-time
type: string
Id:
description: The unique Id of the custom object record
format: uuid
maxLength: 36
minLength: 36
type: string
UpdatedById:
description: The modifier's Id
type: string
UpdatedDate:
description: The record modification time in the date-time format
format: date-time
type: string
type:
description: The type of the custom object record. It is the API name of
the custom object definition.
type: string
- $ref: '#/definitions/CustomObjectRecordWithOnlyCustomFields'
description: Record data from an object
example:
CreatedById: 58bcc694-0b01-4c38-83d9-679891aee4dc
CreatedDate: '2017-06-07T17:26:47.501Z'
Id: f4f3d0a8-9d45-43d6-956c-4820f2de7559
UpdatedById: 58bcc694-0b01-4c38-83d9-679891aee4dc
UpdatedDate: '2017-06-07T17:26:47.501Z'
age__c: 32
email__c: smith123@example.com
home_address__c: 59b38ad1-27d4-40e8-af66-8c138bc382ee
last_name__c: Smith
marital_status__c: Married
type: person
version: 1
work_address__c: 8a19f16a-2b5e-4a26-bb20-c79cd6984714
title: customObjectRecord
type: object
CustomObjectRecordWithOnlyCustomFields:
additionalProperties:
description: The field-value pairs for a custom object record
example:
age__c: 32
email__c: smith123@example.com
home_address__c: 59b38ad1-27d4-40e8-af66-8c138bc382ee
last_name__c: Smith
marital_status__c: Married
work_address__c: 8a19f16a-2b5e-4a26-bb20-c79cd6984714
title: customObjectRecord
type: object
CustomObjectRecordsBatchUpdatePartialSuccessResponse:
example:
error:
code: 710125XX
details:
- code: 710125XX
message: Field [age__c] is an integer field but received a string value.
record:
Id: 64edb2a5-2796-4e95-9559-846f8636a01b
age__c: 19
name__c: elba43
person_id__c: 30c52793-8f06-41c6-b623-04829710d7a
message: Unabled to update object records due to invalid request.
properties:
error:
$ref: '#/definitions/CustomObjectRecordsErrorResponse'
description: 'If the `allowPartialSuccess` flag is set to true, this field
will capture the failures that occurred in the partially successful update
operation.
'
type: object
type: object
CustomObjectRecordsErrorResponse:
properties:
code:
example: 710125XX
format: Int32
type: integer
details:
example:
- code: 710125XX
message: Field [age__c] is an integer field but received a string value.
record:
Id: 8a19f16a-2b5e-4a26-bb20-c79cd6984714
age__c: '32'
email__c: smith123@example.com
home_address__c: 59b38ad1-27d4-40e8-af66-8c138bc382ee
last_name__c: Smith
marital_status__c: Married
work_address__c: 8a19f16a-2b5e-4a26-bb20-c79cd6984714
items:
$ref: '#/definitions/CustomObjectRecordsWithError'
type: array
message:
example: Unabled to create object records due to invalid request.
type: string
type: object
CustomObjectRecordsThrottledResponse:
properties:
code:
example: 71012561
format: Int32
type: integer
details:
example:
- code: 71012561
message: Unable to process record due to internal error or database throttling.
record:
Id: 8a19f16a-2b5e-4a26-bb20-c79cd6984714
age__c: 32
email__c: smith123@example.com
home_address__c: 59b38ad1-27d4-40e8-af66-8c138bc382ee
last_name__c: Smith
marital_status__c: Married
work_address__c: 8a19f16a-2b5e-4a26-bb20-c79cd6984714
items:
$ref: '#/definitions/CustomObjectRecordsWithError'
type: array
message:
example: Unabled to create object records, please try again later.
type: string
type: object
CustomObjectRecordsWithError:
properties:
code:
description: '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.
'
enum:
- 71012520
- 71012521
- 71012522
- 71012523
- 71012524
- 71012525
- 71012526
- 71012530
format: Int32
type: integer
message:
example: Field [last_name__c] cannot accept empty string.
type: string
record:
$ref: '#/definitions/CustomObjectRecordWithAllFields'
example:
age__c: 32
email__c: smith123@example.com
home_address__c: 59b38ad1-27d4-40e8-af66-8c138bc382ee
last_name__c: Smith
marital_status__c: Married
work_address__c: 8a19f16a-2b5e-4a26-bb20-c79cd6984714
type: object
type: object
DELETEUnresigerApplePayDomainResponse:
properties:
success:
description: Indicates whether this call succeeds.
type: boolean
type: object
DailyConsumptionRevRecRequest:
example:
chargeSegmentNumber: '1'
fundId: 2c9890508ad035db018ad0d8d1685fef
originalChargeId: 2c9890508ad035db018ad0d8d1685fef
properties:
chargeSegmentNumber:
description: 'Rate plan charge number.
'
type: string
fundId:
description: 'Fund ID. For more information about fund, see Prepaid with Drawdown .
'
type: string
originalChargeId:
description: 'Original rate plan charge ID.
'
type: string
required:
- originalChargeId
type: object
DataAccessControlField:
additionalProperties:
description: 'Field for data access control. The name of the data access control
field has the form *customField*__h
. The data access control
field is case sensitive. See [Data Access Control](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/Data_Access_Control)
for more information.
'
type: string
description: 'Container for the data access control field.
'
title: dataAccessControlField
type: object
DataQueryErrorResponse:
properties:
code:
description: 'Error code.
'
type: integer
message:
description: 'Error message.
'
type: string
type: object
DataQueryJob:
allOf:
- $ref: '#/definitions/DataQueryJobCommon'
- properties:
dataFile:
description: 'The URL of the query results. Only applicable if the value
of the `queryStatus` field is `completed`.
'
format: URL
type: string
outputRows:
description: 'The number of rows the query results. Only applicable if the
value of the `queryStatus` field is `completed`.
'
type: integer
processingTime:
description: 'Processing time of the query job, in milliseconds. Only applicable
if the value of the `queryStatus` field is `completed`.
'
type: integer
queryStatus:
description: |
Status of the query job.
* `submitted` - query submitted to query service for processing
* `accepted` - query accepted by the query service
* `in_progress` - query executed by the query service
* `completed` - query execution completed by the query service
* `failed` - query unable to be processed by the query service
* `cancelled` - query cancelled by the user
If the value of this field is `completed`, the `dataFile` field contains the location of the query results.
If the value of this field is `accepted` or `in_progress`, you can use [Cancel a data query job](#operation/DELETE_DataQueryJob) to prevent Zuora from performing the query. Zuora then sets the status of the query job to `cancelled`.
enum:
- submitted
- accepted
- in_progress
- completed
- failed
- cancelled
type: string
type: object
description: 'A data query job.
'
title: queryJob
DataQueryJobCancelled:
allOf:
- $ref: '#/definitions/DataQueryJobCommon'
- properties:
queryStatus:
description: 'Status of the query job.
'
enum:
- cancelled
type: string
type: object
description: 'A cancelled data query job.
'
title: cancelledQueryJob
DataQueryJobCommon:
properties:
createdBy:
description: 'The query job creator''s Id.
'
format: uuid
maxLength: 64
minLength: 64
type: string
id:
description: 'Internal identifier of the query job.
'
format: uuid
maxLength: 64
minLength: 64
type: string
query:
description: 'The query that was submitted.
'
type: string
remainingRetries:
description: 'The number of times that Zuora will retry the query if Zuora
is unable to perform the query.
'
type: integer
sourceData:
description: |
Indicates the source that data queries run against:
* `LIVE` represents the live transactional databases at Zuora (Data Query Live).
* `WAREHOUSE` represents Zuora Warehouse, which has better performance and fewer limitations than the live transactional database. For more information, see Zuora Warehouse .
type: string
updatedOn:
description: 'Date and time when the query job was last updated, in ISO 8601
format.
'
format: date-time
type: string
useIndexJoin:
description: 'Indicates whether to use Index Join. See Index Join for more information.
'
type: boolean
type: object
DebitMemoCollectRequest:
example:
applicationOrder:
- CreditMemo
- UnappliedPayment
applyCredit: true
collect: true
payment:
gatewayId: 2c98902f6f1de6d1016f1ded559f3b9d
paymentMethodId: 2c98902f6f1de6d1016f1dedba313ba2
properties:
applicationOrder:
description: |
The priority order to apply credit memos and/or unapplied payments to the debit memo. Possible item values are: `CreditMemo`, `UnappliedPayment`.
**Note:**
- This field is valid only if the `applyCredit` field is set to `true`.
- If no value is specified for this field, the default priority order is used, ["CreditMemo", "UnappliedPayment"], to apply credit memos first and then apply unapplied payments.
- If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `["CreditMemo"]`, only credit memos are used to apply the debit memo.
items:
type: string
type: array
applyCredit:
default: false
description: |
Whether to automatically apply credit memos or unapplied payments, or both to the debit memo.
If the value is `true`, the credit memo or unapplied payment, or both will be automatically applied to the debit memo. If no value is specified or the value is `false`, no action is taken.
type: boolean
collect:
default: false
description: 'Indicates if the current request needs to collect payment or
not.
'
type: boolean
payment:
description: |
Some detail info that would be used to processed an electronic payment.
The info would only effect when `collect` set to `true`.
properties:
gatewayId:
description: |
The ID of the gateway instance that processes the payment. The ID must be a valid gateway instance ID and this gateway must support the specific payment method.
If no gateway ID is specified in the request body, the default gateway for the customer account is used automatically, if this default one is not configured, the default gateway of the tenant would be used.
type: string
paymentMethodId:
description: |
The unique ID of the payment method that the customer used to make the payment.
If no payment method ID is specified in the request body, the default payment method for the customer account is used automatically. If the default payment method is different from the type of payments that you want to create, an error occurs.
type: string
type: object
type: object
DebitMemoCollectResponse:
allOf:
- properties:
appliedCreditMemos:
description: 'The information about which credit memo applied to the specific
debit memo.
'
items:
$ref: '#/definitions/DebitMemoCollectResponseAppliedCreditMemos'
type: array
appliedPayments:
description: 'The information about which payment applied to the specific
debit memo.
'
items:
$ref: '#/definitions/DebitMemoCollectResponseAppliedPayments'
type: array
debitMemo:
description: 'The information about the debit memo that just collected.
'
properties:
id:
description: 'The unique ID of the debit memo.
'
type: string
number:
description: 'The unique identification number of the debit memo.
'
type: string
type: object
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
processedPayment:
description: 'The information about the payment that newly processed to
the debit memo.
'
properties:
amount:
description: 'The total amount of the payment.
'
format: double
type: number
gatewayId:
description: 'The ID of the gateway instance that processes the payment.
'
type: string
gatewayResponse:
description: 'The message returned from the payment gateway for the
payment. This message is gateway-dependent.
'
type: string
gatewayResponseCode:
description: 'The code returned from the payment gateway for the payment.
This code is gateway-dependent.
'
type: string
id:
description: 'The unique ID of the created payment. For example, 4028905f5a87c0ff015a87eb6b75007f.
'
type: string
number:
description: 'The unique identification number of the payment. For example,
P-00000001.
'
type: string
paymentMethodId:
description: 'The unique ID of the payment method that the customer
used to make the payment.
'
type: string
status:
description: 'The status of the payment.
'
enum:
- Processing
- Processed
- Error
- Canceled
type: string
type: object
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
DebitMemoCollectResponseAppliedCreditMemos:
allOf:
- properties:
appliedAmount:
description: 'The applied amount of the credit memo to the debit memo.
'
format: double
type: number
id:
description: 'The unique ID of the credit memo.
'
type: string
number:
description: 'The unique identification number of the credit memo.
'
type: string
unappliedAmount:
description: 'The unapplied amount of the credit memo after applied to the
debit memo.
'
format: double
type: number
type: object
DebitMemoCollectResponseAppliedPayments:
allOf:
- properties:
appliedAmount:
description: 'The applied amount of the payment to the debit memo.
'
format: double
type: number
id:
description: 'The unique ID of the payment.
'
type: string
number:
description: 'The unique identification number of the payment.
'
type: string
unappliedAmount:
description: 'The unapplied amount of the payment after applied to the debit
memo.
'
format: double
type: number
type: object
DebitMemoEntityPrefix:
description: |
Container for the prefix and starting document number of debit memos.
**Note:** This field is only available if you have the Invoice Settlement feature enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
properties:
prefix:
description: 'The prefix of debit memos.
'
example: DM
type: string
startNumber:
description: 'The starting document number of debit memos.
'
example: 10
type: integer
title: debitMemo
type: object
DebitMemoFromChargeCustomRatesType:
allOf:
- properties:
currency:
description: |
The currency code for either Reporting or Home currency.
**Note**: This field is only available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
customFxRate:
description: |
The Custom FX conversion rate between home currency and transactional currency items.
**Note**: This field is only available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: decimal
type: number
rateDate:
description: |
The date on which a particular currency rate is fixed or obtained on.
**Note**: This field is only available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: date
type: string
required:
- currency
- customFxRate
type: object
- $ref: '#/definitions/DebitMemoItemObjectCustomFields'
title: customRates
DebitMemoFromChargeDetailType:
allOf:
- properties:
amount:
description: |
The amount of the debit memo item.
**Note**: This field is only available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: double
type: number
chargeId:
description: |
The ID of the product rate plan charge that the debit memo is created from.
**Note**: This field is not available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
comment:
description: |
Comments about the product rate plan charge.
**Note**: This field is not available if you set the `zuora-version` request header to `257.0` or before.
maxLength: 255
minLength: 0
type: string
description:
description: |
The description of the product rate plan charge.
**Note**: This field is only available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
maxLength: 255
minLength: 0
type: string
financeInformation:
description: 'Container for the finance information related to the product
rate plan charge associated with the debit memo.
'
properties:
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as
Monthly Recurring Liability.
'
maxLength: 100
minLength: 0
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as
Monthly Recurring Charges or Overage Charges.
'
maxLength: 100
minLength: 0
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the
revenue schedule.
'
maxLength: 100
minLength: 0
type: string
type: object
memoItemAmount:
description: |
The amount of the debit memo item.
**Note**: This field is not available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: double
type: number
productRatePlanChargeId:
description: |
The ID of the product rate plan charge that the debit memo is created from.
**Note**: This field is only available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
quantity:
description: 'The number of units for the debit memo item.
'
format: double
type: number
serviceEndDate:
description: 'The service end date of the debit memo item. If not specified,
the effective end date of the corresponding product rate plan will be
used.
'
format: date
type: string
serviceStartDate:
description: 'The service start date of the debit memo item. If not specified,
the effective start date of the corresponding product rate plan will be
used.
'
format: date
type: string
required:
- chargeId
- productRatePlanChargeId
type: object
- $ref: '#/definitions/DebitMemoItemObjectCustomFields'
title: charges
DebitMemoFromChargeType:
allOf:
- properties:
accountId:
description: |
The ID of the account associated with the debit memo.
**Note**: When creating debit memos from product rate plan charges, you must specify `accountNumber`, `accountId`, or both in the request body. If both fields are specified, they must correspond to the same account.
type: string
accountNumber:
description: |
The number of the account associated with the debit memo.
**Note**: When creating debit memos from product rate plan charges, you must specify `accountNumber`, `accountId`, or both in the request body. If both fields are specified, they must correspond to the same account.
type: string
autoPay:
description: "Whether debit memos are automatically picked up for processing\
\ in the corresponding payment run. \n\nBy default, debit memos are automatically\
\ picked up for processing in the corresponding payment run.\n"
type: boolean
autoPost:
default: false
description: "Whether to automatically post the debit memo after it is created.\
\ \n\nSetting this field to `true`, you do not need to separately call\
\ the [Post a debit memo](https://developer.zuora.com/api-references/api/operation/PUT_PostDebitMemo)\
\ operation to post the debit memo.\n"
type: boolean
charges:
description: 'Container for product rate plan charges. The maximum number
of items is 1,000.
'
items:
$ref: '#/definitions/DebitMemoFromChargeDetailType'
maxItems: 1000
type: array
comment:
description: 'Comments about the debit memo.
'
maxLength: 255
minLength: 0
type: string
currency:
description: "The code of a currency as defined in Billing Settings through\
\ the Zuora UI.\n\nIf you do not specify a currency during debit memo\
\ creation, the default account currency is applied. The currency that\
\ you specify in the request must be configured and activated in Billing\
\ Settings.\n \n**Note**: This field is available only if you have the\
\ Multiple Currencies feature in the **Early Adopter**\
\ phase enabled.\n"
type: string
customRates:
description: |
It contains Home currency and Reporting currency custom rates currencies. The maximum number of items is 2 (you can pass the Home currency item or Reporting currency item or both).
**Note**: The API custom rate feature is permission controlled.
items:
$ref: '#/definitions/DebitMemoFromChargeCustomRatesType'
maxItems: 2
type: array
dueDate:
description: 'The date by which the payment for the debit memo is due, in
`yyyy-mm-dd` format.
'
format: date
type: string
effectiveDate:
description: 'The date when the debit memo takes effect.
'
format: date
type: string
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty. If you do not specify a value,
Zuora uses the default reason code.
'
type: string
type: object
- $ref: '#/definitions/DebitMemoObjectNSFields'
- $ref: '#/definitions/DebitMemoObjectCustomFields'
example:
accountId: 402890555a7e9791015a7f15fe44001c
autoPay: true
autoPost: false
charges:
- amount: 30
chargeId: 402890555a87d7f5015a892cae910050
comment: this is comment1
quantity: 1
- amount: 20
chargeId: 402890555a87d7f5015a892dff7f0053
comment: this is comment2
comment: the comment
currency: USD
customRates:
- currency: CAD
customFxRate: 2.22
rateDate: '2022-10-21'
- currency: EUR
customFxRate: 2.22
rateDate: '2022-10-21'
effectiveDate: '2017-10-17'
reasonCode: Correcting invoice error
title: charges
DebitMemoFromInvoiceType:
allOf:
- properties:
autoPay:
description: "Whether debit memos are automatically picked up for processing\
\ in the corresponding payment run. \nBy default, debit memos are automatically\
\ picked up for processing in the corresponding payment run.\n"
type: boolean
autoPost:
default: false
description: "Whether to automatically post the debit memo after it is created.\
\ \nSetting this field to `true`, you do not need to separately call the\
\ [Post debit memo](https://developer.zuora.com/api-references/api/operation/PUT_PostDebitMemo)\
\ operation to post the debit memo.\n"
type: boolean
comment:
description: "Comments about the debit memo. \n"
maxLength: 255
minLength: 0
type: string
effectiveDate:
description: 'The date when the debit memo takes effect.
'
format: date
type: string
invoiceId:
description: "The ID of the invoice that the debit memo is created from.\n\
* If this field is specified, its value must be the same as the value\
\ of the `invoiceId` path parameter. Otherwise, its value overrides the\
\ value of the `invoiceId` path parameter. \n* If this field is not specified,\
\ the value of the `invoiceId` path parameter is used. \n"
type: string
items:
description: 'Container for items. The maximum number of items is 1,000.
'
items:
$ref: '#/definitions/DebitMemoItemFromInvoiceItemType'
maxItems: 1000
type: array
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty. If you do not specify a value,
Zuora uses the default reason code.
'
type: string
taxAutoCalculation:
default: true
description: 'Whether to automatically calculate taxes in the debit memo.
'
type: boolean
type: object
- $ref: '#/definitions/DebitMemoObjectNSFields'
- $ref: '#/definitions/DebitMemoObjectCustomFields'
example:
autoPay: true
comment: the comment
effectiveDate: '2017-11-30'
items:
- amount: 1
autoPost: false
comment: This is comment!
invoiceItemId: 402890555a7d4022015a7dadb3b700a6
quantity: 1
serviceEndDate: '2017-11-30'
serviceStartDate: '2017-11-01'
skuName: SKU-30
taxItems:
- amount: 0.01
jurisdiction: CALIFORNIA
locationCode: '06'
sourceTaxItemId: 402890555a7d4022015a7dadb39b00a1
taxCode: null
taxCodeDescription: null
taxDate: '2017-11-30'
taxExemptAmount: 0.0
taxName: STATE TAX
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
taxMode: TaxExclusive
unitOfMeasure: Test_UOM
reasonCode: Charge Dispute
DebitMemoItemFromInvoiceItemType:
allOf:
- properties:
amount:
description: 'The amount of the debit memo item.
'
format: double
type: number
comment:
description: |
Comments about the debit memo item.
**Note**: This field is not available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
description:
description: |
The description of the debit memo item.
**Note**: This field is only available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
financeInformation:
description: 'Container for the finance information related to the debit
memo item.
'
properties:
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as
Monthly Recurring Liability.
'
maxLength: 100
minLength: 0
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as
Monthly Recurring Charges or Overage Charges.
'
maxLength: 100
minLength: 0
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the
revenue schedule.
'
maxLength: 100
minLength: 0
type: string
type: object
invoiceItemId:
description: 'The ID of the invoice item.
'
type: string
quantity:
description: 'The number of units for the debit memo item.
'
format: double
type: number
serviceEndDate:
description: 'The service end date of the debit memo item.
'
format: date
type: string
serviceStartDate:
description: "The service start date of the debit memo item. \n"
format: date
type: string
skuName:
description: 'The name of the charge associated with the invoice.
'
type: string
taxItems:
description: 'Container for taxation items.
'
items:
$ref: '#/definitions/DebitMemoTaxItemFromInvoiceTaxItemType'
type: array
taxMode:
default: TaxExclusive
description: |
The tax mode of the debit memo item, indicating whether the amount of the debit memo item includes tax.
**Note**: You can set this field to `TaxInclusive` only if the `taxAutoCalculation` field is set to `true`.
If you set `taxMode` to `TaxInclusive`, you cannot input tax amounts for debit memo items. The corresponding invoice item must use the same tax engine as the debit memo item to calculate tax amounts.
enum:
- TaxExclusive
- TaxInclusive
type: string
unitOfMeasure:
description: 'The definable unit that you measure when determining charges.
'
type: string
required:
- skuName
- amount
type: object
- $ref: '#/definitions/DebitMemoItemObjectCustomFields'
title: items
DebitMemoItemObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Debit Memo Item object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Debit Memo Item object.
'
title: debitMemoItemFieldsCustom
type: object
DebitMemoObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Debit Memo object. The name of each custom
field has the form *customField*__c
. Custom field names are case
sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Debit Memo object.
'
title: debitMemoFieldsCustom
type: object
DebitMemoObjectCustomFieldsCMWriteOff:
additionalProperties:
description: 'Custom fields of the Debit Memo object. The name of each custom
field has the form *customField*__c
. Custom field names are case
sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Debit Memo object.
'
title: debitMemoFieldsCustom
type: object
DebitMemoObjectNSFields:
description: 'Container for Debit Memo fields provided by the [Zuora Connector
for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
properties:
IntegrationId__NS:
description: 'ID of the corresponding object in NetSuite. Only available if
you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IntegrationStatus__NS:
description: 'Status of the debit memo''s synchronization with NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
SyncDate__NS:
description: 'Date when the debit memo was synchronized with NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
title: debitMemoFieldsNS
type: object
DebitMemoTaxItemFromInvoiceTaxItemType:
properties:
amount:
description: 'The amount of the debit memo taxation item.
'
format: double
type: number
financeInformation:
description: 'Container for the finance information related to the source
taxation item.
'
properties:
salesTaxPayableAccountingCode:
description: 'The accounting code for the sales taxes payable.
'
maxLength: 100
minLength: 0
type: string
type: object
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of the `taxCode`
field.
'
type: string
sourceTaxItemId:
description: 'The ID of the source taxation item.
'
type: string
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific debit memo.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date that the tax is applied to the debit memo, in `yyyy-mm-dd`
format.
'
format: date
type: string
taxExemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
taxName:
description: 'The name of taxation.
'
type: string
taxRate:
description: 'The tax rate applied to the debit memo.
'
format: double
type: number
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'The type of the tax rate applied to the debit memo.
'
enum:
- Percentage
- FlatFee
type: string
title: taxItems
type: object
DebitMemosFromCharges:
allOf:
- $ref: '#/definitions/POSTBulkDebitMemosRequestType'
- properties:
memos:
description: 'The container for a list of debit memos. The maximum number
of debit memos is 50.
'
items:
$ref: '#/definitions/DebitMemoFromChargeType'
maxItems: 50
type: array
type: object
example:
//: Please replace the value of the `sourceType` field with `Standalone`. This
is not a request field, but only a comment on the `sourceType` field.
memos:
- accountId: 402890555a7e9791015a7f15fe44001c
autoPay: true
autoPost: false
charges:
- amount: 30
chargeId: 402890555a87d7f5015a892cae910050
comment: this is comment1
quantity: 1
- amount: 20
chargeId: 402890555a87d7f5015a892dff7f0053
comment: this is comment2
comment: the comment
currency: USD
effectiveDate: '2017-10-17'
reasonCode: Correcting invoice error
sourceType: Standalone
DebitMemosFromInvoices:
allOf:
- $ref: '#/definitions/POSTBulkDebitMemosRequestType'
- properties:
memos:
description: 'The container for a list of debit memos. The maximum number
of debit memos is 50.
'
items:
$ref: '#/definitions/POSTBulkDebitMemoFromInvoiceType'
maxItems: 50
type: array
type: object
example:
//: Please replace the value of the `sourceType` field with `Invoice`. This
is not a request field, but only a comment on the `sourceType` field.
memos:
- autoPay: true
comment: the comment
effectiveDate: '2017-11-30'
invoiceId: 402890555a7d4022015a7dadb3b300a4
items:
- amount: 1
autoPost: false
comment: This is comment!
invoiceItemId: 402890555a7d4022015a7dadb3b700a6
quantity: 1
serviceEndDate: '2017-11-30'
serviceStartDate: '2017-11-01'
skuName: SKU-30
taxItems:
- amount: 0.01
jurisdiction: CALIFORNIA
locationCode: '06'
sourceTaxItemId: 402890555a7d4022015a7dadb39b00a1
taxCode: null
taxCodeDescription: null
taxDate: '2017-11-30'
taxExemptAmount: 0
taxName: STATE TAX
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
taxMode: TaxExclusive
unitOfMeasure: Test_UOM
reasonCode: Charge Dispute
sourceType: Invoice
DebitTaxationItemObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Debit Taxation Item object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Debit Taxation Item object.
'
title: debitTaxationItemFieldsCustom
type: object
DeleteAccountResponseType:
properties:
id:
description: 'The ID of the deleted account.
'
type: string
jobId:
description: "The ID of the job that handles the account deletion operation.\
\ \n\nYou can specify the value of this field as the value of the `jobId`\
\ path parameter in the [Retrieve an operation job](https://developer.zuora.com/api-references/api/operation/GET_OperationJob/)\
\ API operation to query job information.\n"
type: string
jobStatus:
description: "The status of the account deletion operation. \n"
enum:
- Pending
type: string
reasons:
items:
properties:
code:
description: 'The error code of the response.
'
type: string
message:
description: 'The detail information of the error response.
'
type: string
type: object
type: array
success:
description: 'Whether the call succeeded.
'
type: boolean
type: object
DeleteBatchQueryJobResponse:
properties:
batches:
description: 'A JSON array object that contains a list of batch objects.
'
items:
$ref: '#/definitions/BatchQueries'
required:
- name
- query
- status
- batchId
- batchType
type: array
format:
description: 'The format of the query. The default value is `csv`.
'
enum:
- csv
- zip
- gzip
type: string
id:
description: "The job ID created for the AQuA API request. The job ID can\
\ be used for querying for the query status. \n\nThe ID exists only if the\
\ JSON request can be parsed and validated successfully. Otherwise, the\
\ job ID is null.\n"
type: string
name:
description: 'The name of the job. 32 character limit.
'
type: string
sourceData:
description: |
Indicates the source this aggregate query runs against:
* `LIVE` represents the live transactional databases at Zuora (Data Query Live).
* `WAREHOUSE` represents Zuora Warehouse, which has better performance and fewer limitations than the live transactional database. For more information, see Zuora Warehouse .
type: string
status:
description: |
The status of the AQuA job:
- submitted: The AQuA job was submitted to the query executor for processing.
- executing: The AQuA job is being processed.
- completed: The AQuA job was successfully executed.
- error: The AQuA job was not processed because of validation errors.
- aborted: The AQuA job execution failed because one or more queries of this job failed.
- cancelled: The AQuA job was cancelled.
enum:
- submitted
- executing
- completed
- error
- aborted
- cancelled
type: string
version:
description: "The API version you want to use. \n\nThe supported versions\
\ are as follows:\n - `1.1`. It supports both modes\n - `1.0`. Default.\
\ It supports stateless modes only.\n\nSee Stateless and stateful modes for more information.\n"
format: float
type: number
type: object
DeleteDataQueryJobResponse:
properties:
data:
$ref: '#/definitions/DataQueryJobCancelled'
type: object
DeleteInvoiceResponseType:
properties:
id:
description: 'The ID of the deleted invoice.
'
type: string
jobId:
description: "The ID of the job that handles the invoice deletion operation.\
\ \n\nYou can specify the value of this field as the value of the `jobId`\
\ path parameter in the [Retrieve an operation job](https://developer.zuora.com/api-references/api/operation/GET_OperationJob/)\
\ API operation to query job information.\n"
type: string
jobStatus:
description: "The status of the invoice deletion operation. \n"
enum:
- Pending
- Completed
type: string
reasons:
items:
properties:
code:
description: 'The error code of the response.
'
type: string
message:
description: 'The detail information of the error response.
'
type: string
type: object
type: array
success:
description: 'Whether the call succeeded.
'
type: boolean
type: object
DeleteResult:
properties:
errors:
description: 'If the delete failed, this contains an array of Error objects.
'
items:
$ref: '#/definitions/ActionsErrorResponse'
type: array
id:
description: 'ID of the deleted object.
'
type: string
success:
description: 'A boolean field indicating the success of the delete operation.
If the delete was successful, it is `true`. Otherwise, `false`.
'
type: boolean
type: object
DeleteWorkflowError:
properties:
Errors:
description: The error messages
items:
type: string
type: array
type: object
DeleteWorkflowSuccess:
properties:
id:
description: The id of the deleted workflow
type: string
success:
description: The indicator for whether the deletion was a success
type: boolean
type: object
DeliveryScheduleParams:
properties:
frequency:
description: 'Specifies the frequency for delivery schedule
'
enum:
- Weekly
type: string
friday:
description: 'Indicates whether delivery on friday.
'
type: boolean
monday:
description: 'Indicates whether delivery on monday.
'
type: boolean
saturday:
description: 'Indicates whether delivery on saturday.
'
type: boolean
sunday:
description: 'Indicates whether delivery on sunday.
'
type: boolean
thursday:
description: 'Indicates whether delivery on thursday.
'
type: boolean
tuesday:
description: 'Indicates whether delivery on tuesday.
'
type: boolean
wednesday:
description: 'Indicates whether delivery on wednesday.
'
type: boolean
type: object
DestinationValidityPeriodInfo:
description: Date range of the destination validity period to which the funds
are transferred. It should be close to the source validity period.
properties:
endDate:
description: End date of the destination validity period.
format: date
type: string
startDate:
description: Start date of the destination validity period.
format: date
type: string
required:
- startDate
- endDate
title: destinationValidityPeriod
type: object
DetailedWorkflow:
description: 'A workflow.
'
properties:
call_type:
description: 'The call type of the active workflow version.
'
type: string
calloutTrigger:
description: 'Indicates whether the callout trigger is enabled for the retrieved
workflow.
'
type: boolean
createdAt:
description: 'The date and time when the workflow is created, in the `YYYY-MM-DD
HH:MM:SS` format.
'
format: datetime
type: string
description:
description: 'The description of the workflow.
'
type: string
finished_at:
description: 'The date and time when the instance of the workflow version
finished at.
'
format: datetime
type: string
id:
description: 'The unique ID of the workflow.
'
type: integer
interval:
description: 'The schedule of the workflow, in a CRON expression. Returns
null if the schedued trigger is disabled.
'
type: string
name:
description: 'The name of the workflow.
'
type: string
ondemandTrigger:
description: 'Indicates whether the ondemand trigger is enabled for the workflow.
'
type: boolean
original_workflow_id:
description: 'The unique ID of the original workflow version.
'
type: integer
priority:
description: "The priority of the active workflow version. \n"
type: string
scheduledTrigger:
description: 'Indicates whether the scheduled trigger is enabled for the workflow.
'
type: boolean
started_at:
description: 'The date and time when the instance of the workflow version
started at.
'
format: datetime
type: string
status:
description: 'The status of the active workflow version.
'
type: integer
sync_trigger:
description: 'Indicates whether the workflow version is enabled for the sync
mode.
'
type: boolean
timezone:
description: 'The timezone that is configured for the scheduler of the workflow.
Returns null if the scheduled trigger is disabled.
'
type: string
type:
description: 'The type of the workflow. Currently the only valid value is
''Workflow::Setup''.
'
enum:
- Workflow::Setup
- Workflow::Instance
type: string
updatedAt:
description: 'The date and time when the workflow is updated the last time,
in the `YYYY-MM-DD HH:MM:SS` format.
'
format: datetime
type: string
version:
description: "The version number of the active workflow version. \
\ \n"
type: string
title: detailed workflow
type: object
DiscountApplyDetail:
properties:
productRatePlanChargeId:
description: 'Product Rate Plan Charge Id of the discount apply to.
'
type: string
productRatePlanId:
description: 'Product Rate Plan Id of the discount apply to.
'
type: string
required:
- productRatePlanId
- productRatePlanChargeId
title: discountApplyDetail
type: object
DiscountItemObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Discount Item object. The name of each custom
field has the form *customField*__c
. Custom field names are case
sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of an Discount Item object.
'
title: discountItemFieldsCustom
type: object
DiscountItemObjectNSFields:
description: 'Container for discount Item fields provided by the [Zuora Connector
for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
properties:
IntegrationId__NS:
description: 'ID of the corresponding object in NetSuite. Only available if
you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IntegrationStatus__NS:
description: 'Status of the invoice item''s synchronization with NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
SyncDate__NS:
description: 'Date when the invoice item was synchronized with NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
title: discountItemFieldsNS
type: object
DiscountPricingOverride:
description: 'Pricing information about a discount charge.
'
properties:
applyDiscountTo:
description: 'Specifies which type of charge the discount charge applies to.
'
enum:
- ONETIME
- RECURRING
- USAGE
- ONETIMERECURRING
- ONETIMEUSAGE
- RECURRINGUSAGE
- ONETIMERECURRINGUSAGE
type: string
applyToBillingPeriodPartially:
description: |
Allow the discount duration to be aligned with the billing period partially.
**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.
type: boolean
discountAmount:
description: 'Only applicable if the discount charge is a fixed-amount discount.
'
type: number
discountApplyDetails:
description: |
Charge list of discount be applied to.
**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.
items:
$ref: '#/definitions/DiscountApplyDetail'
type: array
discountClass:
description: |
The discount class defines the sequence in which discount product rate plan charges are applied.
**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.
type: string
discountLevel:
description: 'Application scope of the discount charge. For example, if the
value of this field is `subscription` and the value of the `applyDiscountTo`
field is `RECURRING`, the discount charge applies to all recurring charges
in the same subscription as the discount charge.
'
enum:
- rateplan
- subscription
- account
type: string
discountPercentage:
description: 'Only applicable if the discount charge is a percentage discount.
'
type: number
originalDiscountAmount:
description: |
The manufacturer's suggested retail discount price for standalone charge.
Only applicable if the standalone discount charge is a fixed-amount discount.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: number
originalDiscountPercentage:
description: |
The manufacturer's suggested retail discount percentage for standalone charge.
Only applicable if the standalone discount charge is a percentage discount.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: number
priceChangeOption:
description: 'Specifies how Zuora changes the price of the charge each time
the subscription renews.
'
enum:
- NoChange
- UseLatestProductCatalogPricing
type: string
title: discount
type: object
DiscountPricingUpdate:
properties:
applyDiscountTo:
description: 'Specifies which type of charge the discount charge applies to.
'
enum:
- ONETIME
- RECURRING
- USAGE
- ONETIMERECURRING
- ONETIMEUSAGE
- RECURRINGUSAGE
- ONETIMERECURRINGUSAGE
type: string
discountLevel:
description: 'Application scope of the discount charge. For example, if the
value of this field is `subscription` and the value of the `applyDiscountTo`
field is `RECURRING`, the discount charge applies to all recurring charges
in the same subscription as the discount charge.
'
enum:
- rateplan
- subscription
- account
type: string
discountPercentage:
description: 'The amount of the discount as a percentage. This field is only
used for percentage discounts.
'
type: number
priceChangeOption:
description: 'Specifies how Zuora changes the price of the charge each time
the subscription renews.
'
enum:
- NoChange
- UseLatestProductCatalogPricing
type: string
type: object
EndConditions:
description: 'Specifies when a charge becomes inactive.
'
properties:
endDateCondition:
description: |
Condition for the charge to become inactive.
- If the value of this field is `Fixed_Period`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.
- If the value of this field is `Specific_End_Date`, use the `specificEndDate` field to specify the date when the charge becomes inactive.
enum:
- Subscription_End
- Fixed_Period
- Specific_End_Date
type: string
endDatePolicy:
description: "End date policy of the discount charge to become active when\
\ the **Apply to billing period partially** checkbox is selected from the\
\ product catalog UI or the `applyToBillingPeriodPartially` field is set\
\ as true from the \"CRUD: Create a product rate plan charge\" operation.\
\ \n\n- If the value of this field is `FixedPeriod`, the charge is active\
\ for a predefined duration based on the value of the `upToPeriodsType`\
\ and `upToPeriods` fields.\n- If the value of this field is `SpecificEndDate`,\
\ use the `specificEndDate` field to specify the date when the charge becomes\
\ inactive.\n\n**Notes**: \n- You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount)\
\ feature to access this field.\n- You can use either `endDateCondition`\
\ or `endDatePolicy` to define when a discount charge ends, but not both\
\ at the same time.\n"
enum:
- AlignToApplyToCharge
- SpecificEndDate
- FixedPeriod
type: string
specificEndDate:
description: 'Date in YYYY-MM-DD format. Only applicable if the value of the
`endDateCondition` field is `Specific_End_Date`.
'
format: date
type: string
upToPeriods:
description: 'Duration of the charge in billing periods, days, weeks, months,
or years, depending on the value of the `upToPeriodsType` field. Only applicable
if the value of the `endDateCondition` field is `Fixed_Period`.
'
type: integer
upToPeriodsType:
description: 'Unit of time that the charge duration is measured in. Only applicable
if the value of the `endDateCondition` field is `Fixed_Period`.
'
enum:
- Billing_Periods
- Days
- Weeks
- Months
- Years
type: string
title: endDate
type: object
Error401:
properties:
code:
example: 7101251X
format: Int32
type: integer
message:
example: Unauthorized Action
type: string
type: object
ErrorResponse:
example:
reasons:
- code: ObjectNotFound
message: Notification definition with id 6e569e1e05f040eda51a927b140c0ac1
does not exist
properties:
reasons:
items:
properties:
code:
description: 'The error code of response.
'
type: string
message:
description: The detail information of the error response
type: string
type: object
type: array
type: object
ErrorResponse401Record:
properties:
code:
example: 7101251X
format: Int32
type: integer
details:
example:
- code: 7101251X
message: Unauthorized to view object record.
items:
$ref: '#/definitions/Error401'
type: array
message:
example: Unauthorized to process object record.
type: string
type: object
EventTrigger:
properties:
active:
description: The status of the trigger.
type: boolean
baseObject:
description: |
The base object that the trigger rule is defined upon. The format of the value in this field depends on the base object type:
- Standard object: object name, which should follow the pattern ^[A-Z][\w\-]*$. For example, `Invoice`.
- Custom object: `default__`. For example, `default__vehicle`.
maxLength: 100
minLength: 1
type: string
condition:
description: The JEXL expression to be evaluated against object changes. See
above for more information and an example.
maxLength: 5000
minLength: 1
type: string
description:
description: The description of the trigger.
maxLength: 1000
type: string
eventType:
$ref: '#/definitions/EventType'
id:
format: uuid
type: string
type: object
EventType:
properties:
description:
description: The description of the event type.
maxLength: 1000
type: string
displayName:
description: The display name for the event type.
maxLength: 500
minLength: 1
type: string
name:
description: 'The name of the event. Should be unique, contain no space, and
be in the pattern: ^[A-Za-z]{1,}[\\w\\-]*$'
maxLength: 200
minLength: 1
type: string
required:
- name
- displayName
type: object
ExecuteInvoiceScheduleBillRunResponse:
allOf:
- properties:
autoEmail:
description: 'Whether to automatically send an email after Auto-Post is
complete.
'
type: boolean
autoPost:
description: 'Whether to automatically post the bill run after the bill
run is created.
'
type: boolean
autoRenewal:
description: 'Whether to automatically renew auto-renew subscriptions that
are up for renewal.
'
type: boolean
batches:
description: "A list of the batches of accounts for this bill run. \n\n\
This field cannot exist with the `billRunFilters` field.\n\n**Values:**\
\ `AllBatches` or Batch*n* where *n* is a number between 1 and 50, for\
\ example, `Batch7`.\n"
items:
type: string
type: array
billCycleDay:
description: "The day of the bill cycle, this field is only valid when `batches`\
\ is specified.\n\n**Values:** \n- `AllBillCycleDays` or 1 - 31 for an\
\ ad-hoc bill run \n- `AllBillCycleDays` or 1 - 31 or `AsRunDay` for a\
\ scheduled bill run\n"
type: string
billRunFilters:
description: |
A list of the target account or subscriptions for this bill run.
This field cannot exist with the `batches` field.
items:
$ref: '#/definitions/BillRunFilters'
type: array
billRunNumber:
description: 'The number of bill run.
'
type: string
chargeTypeToExclude:
description: 'The types of the charges to be excluded from the generation
of billing documents.
'
items:
enum:
- OneTime
- Recurring
- Usage
type: string
type: array
createdById:
description: 'The ID of the user who created the bill run.
'
type: string
createdDate:
description: 'The date and time when the bill run was created.
'
format: date-time
type: string
id:
description: 'The unique ID of the bill run.
'
type: string
invoiceDate:
description: 'The invoice date for this bill run, only valid for ad-hoc
bill runs.
'
format: date
type: string
invoiceDateOffset:
description: 'The offset compared to bill run execution date, only valid
for scheduled bill runs.
'
type: integer
noEmailForZeroAmountInvoice:
description: "Whether to suppress emails for invoices with the total amount\
\ of zero or not for this bill run after the bill run is complete. \n\n\
**Note**: Do not email invoices with the total amount of zero.\n"
type: boolean
organizationLabels:
description: "The organization(s) that the object belongs to. \n\nNote:\
\ This field is available only when the Multi-Org feature is enabled.\
\ \n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
scheduledExecutionTime:
description: 'The scheduled execution time for a bill run.
'
format: date-time
type: string
status:
description: 'The status of the bill run.
'
enum:
- Pending
- Processing
- Completed
- Error
- Canceled
- Posted
- PostInProgress
- CancelInProgress
- RemoveInProgress
- Paused
type: string
targetDate:
description: 'The target date for this bill run, only valid for ad-hoc bill
run.
'
format: date
type: string
targetDateOffset:
description: 'The offset compared to bill run execution date, only valid
for scheduled bill run.
'
type: integer
updatedById:
description: 'The ID of the user who updated the bill run.
'
type: string
updatedDate:
description: 'The date and time when the bill run was updated.
'
format: date-time
type: string
type: object
- {}
example:
autoEmail: false
autoPost: false
autoRenewal: false
billRunFilters:
- accountId: 2c9081a03c63c94c013c66688a2c00bf
filterType: Subscription
subscriptionId: 402882297e387c51017e38a245c313db
billRunNumber: BR-00000016
chargeTypeToExclude:
- OneTime
- Usage
createdById: ff808081298c6e5401298c7274a40005
createdDate: '2022-01-24 19:58:27'
id: 2c9890077e8a8490017e8bf3a5171a43
invoiceDate: '2020-02-01'
noEmailForZeroAmountInvoice: false
status: Pending
success: true
targetDate: '2020-02-01'
updatedById: ff808081298c6e5401298c7274a40005
updatedDate: '2022-01-24 19:58:27'
ExportWorkflowVersionResponse:
properties:
linkages:
items:
$ref: '#/definitions/Linkage'
type: array
tasks:
items:
$ref: '#/definitions/Task'
type: array
workflow:
$ref: '#/definitions/Workflow'
type: object
type: object
FieldsAdditionalProperties:
additionalProperties:
type: string
description: 'Field mappings in the form of ``: ``.
'
title: relationshipFieldMapping
type: object
FieldsAdditionalPropertiesForPostDefinition:
additionalProperties:
type: string
description: 'Field mappings in the form of ``: ``.
Usually the `` can only be the `Id` field of the related
object. Two exceptions are Subscription Name and Rate Plan Charge Number as
both of them are unique.
'
title: relationshipFieldMapping
type: object
FilterRuleParameterDefinition:
description: 'Definition of a filter rule parameter.
'
properties:
description:
maxLength: 255
type: string
displayName:
description: 'The display name of the parameter.
'
maxLength: 255
type: string
options:
description: 'The option values of the parameter.
'
items:
type: string
type: array
valueType:
description: 'The type of the value.
'
enum:
- STRING
- BYTE
- SHORT
- CHARACTER
- INTEGER
- LONG
- FLOAT
- DOUBLE
- BOOLEAN
- BIG_INTEGER
- BIG_DECIMAL
- LOCAL_DATE
- LOCAL_DATE_TIME
- TIMESTAMP
- BYTE_ARRAY
- SHORT_ARRAY
- CHARACTER_ARRAY
- INTEGER_ARRAY
- FLOAT_ARRAY
- DOUBLE_ARRAY
- BOOLEAN_ARRAY
- STRING_ARRAY
- BIG_INTEGER_ARRAY
- BIG_DECIMAL_ARRAY
- LOCAL_DATE_ARRAY
- LOCAL_DATE_TIME_ARRAY
- TIMESTAMP_ARRAY
type: string
title: parameter
type: object
FilterRuleParameterDefinitions:
additionalProperties:
$ref: '#/definitions/FilterRuleParameterDefinition'
description: 'The parameters of the filter rule and their name must match those
in the filter rule. And all parameters must be defined in the event type payload.
The name of parameters can''t be duplicate. The following reserved keywords
should not be used as a parameter name: `AttachmentList`, `RecipientList`, `RecipientType`,
`Exceptions`, `OCP_OBJECT_TYPE`, `OCP_OBJECT_ID`, `OCP_TRIGGER_BY`
'
title: parameters
type: object
FilterRuleParameterValues:
additionalProperties:
description: 'The following reserved key words should not be used as a parameter
name: `AttachmentList`, `RecipientList`, `RecipientType`, `Exceptions`, `OCP_OBJECT_TYPE`,
`OCP_OBJECT_ID`, `OCP_TRIGGER_BY`. `Include.Attachment` is a special boolean
parameter. By specifying this parameter, you can tell a notification whose
event type is based on Invoice to include attachments while sending emails.
'
type: string
description: 'The parameter values used to configure the filter rule.
'
title: filterRuleParams
type: object
FulfillmentCommon:
properties:
billTargetDate:
description: 'The target date for the Fulfillment to be picked up by bill
run for billing.
'
format: date
type: string
carrier:
description: 'The carrier of the Fulfillment. The available values can be
configured in **Billing Settings** > **Fulfillment Settings** through Zuora
UI.
'
type: string
customFields:
$ref: '#/definitions/FulfillmentCustomFields'
description:
description: 'The description of the Fulfillment.
'
type: string
excludeItemBillingFromRevenueAccounting:
description: "The flag to exclude Fulfillment related invoice items, invoice\
\ item adjustments, credit memo items, and debit memo items from revenue\
\ accounting.\n\n**Note**: This field is only available if you have the\
\ [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration)\
\ feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
description: "The flag to exclude Fulfillment from revenue accounting.\n\n\
**Note**: This field is only available if you have the [Zuora Billing -\
\ Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration)\
\ feature enabled. \n"
type: boolean
externalId:
description: 'The external id of the Fulfillment.
'
type: string
fulfillmentDate:
description: 'The date of the Fulfillment.
'
format: date
type: string
fulfillmentLocation:
description: 'The fulfillment location of the Fulfillment. The available values
can be configured in **Billing Settings** > **Fulfillment Settings** through
Zuora UI.
'
type: string
fulfillmentSystem:
description: 'The fulfillment system of the Fulfillment. The available values
can be configured in **Billing Settings** > **Fulfillment Settings** through
Zuora UI.
'
type: string
fulfillmentType:
description: "The type of the Fulfillment. \n"
enum:
- Delivery
- Return
type: string
orderLineItemId:
description: 'The reference id of the related Order Line Item.
'
format: UUID
type: string
quantity:
description: 'The quantity of the Fulfillment.
'
type: number
state:
description: 'The state of the Fulfillment. See [State transitions for an
order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States)
for more information.
'
enum:
- Executing
- Booked
- SentToBilling
- Complete
- Cancelled
type: string
trackingNumber:
description: 'The tracking number of the Fulfillment.
'
type: string
title: Fulfillment
type: object
FulfillmentCustomFields:
additionalProperties:
description: 'Custom fields of the Fulfillment object. The name of each custom
field has the form *customField*__c
. Custom field names are case
sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Fulfillment object.
'
title: FulfillmentCustomFields
type: object
FulfillmentGet:
allOf:
- properties:
fulfillmentNumber:
description: 'The sytem generated number for the Fulfillment.
'
type: string
id:
description: 'The sytem generated Id.
'
format: UUID
type: string
type: object
- $ref: '#/definitions/FulfillmentCommon'
FulfillmentItemCommon:
properties:
customFields:
$ref: '#/definitions/FulfillmentItemCustomFields'
description:
description: 'The description of the Fulfillment Item.
'
type: string
itemIdentifier:
description: 'The external identifier of the Fulfillment Item.
'
type: string
title: FulfillmentItem
type: object
FulfillmentItemCustomFields:
additionalProperties:
description: 'Custom fields of the Fulfillment Item object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Fulfillment Item object.
'
title: FulfillmentItemCustomFields
type: object
FulfillmentItemGet:
allOf:
- properties:
fulfillmentId:
description: 'The reference id of the related Fulfillment.
'
format: UUID
type: string
id:
description: 'The sytem generated Id.
'
format: UUID
type: string
type: object
- $ref: '#/definitions/FulfillmentItemCommon'
FulfillmentItemPost:
allOf:
- properties:
fulfillmentNumber:
description: 'The reference of the related Fulfillment.
'
type: string
type: object
- $ref: '#/definitions/FulfillmentItemCommon'
FulfillmentItemPostFromFulfillmentPost:
allOf:
- $ref: '#/definitions/FulfillmentItemCommon'
FulfillmentPost:
allOf:
- properties:
orderLineItemId:
description: 'The reference id of the related Order Line Item.
'
format: UUID
type: string
type: object
- $ref: '#/definitions/FulfillmentCommon'
- properties:
fulfillmentItems:
items:
$ref: '#/definitions/FulfillmentItemPostFromFulfillmentPost'
type: array
type: object
GETAPaymentGatwayResponse:
properties:
id:
description: The ID of the payment gateway.
type: string
isActive:
description: Specifies if this payment gateway is in active status.
type: boolean
isDefault:
description: Specifies if this is the default payment gateway to process payments
for your customer accounts.
type: boolean
name:
description: The name of the payment gateway.
type: string
type:
description: The type of the payment gateway
type: string
title: paymentgateways
type: object
GETARPaymentType:
allOf:
- properties:
accountId:
description: 'The ID of the customer account that the payment is for.
'
type: string
accountNumber:
description: 'The number of the customer account that the payment is for.
'
type: string
amount:
description: 'The total amount of the payment.
'
format: double
type: number
appliedAmount:
description: 'The applied amount of the payment.
'
format: double
type: number
authTransactionId:
description: 'The authorization transaction ID from the payment gateway.
'
type: string
bankIdentificationNumber:
description: 'The first six or eight digits of the credit card or debit
card used for the payment, when applicable.
'
type: string
cancelledOn:
description: 'The date and time when the payment was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: 'Comments about the payment.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the payment.
'
type: string
createdDate:
description: 'The date and time when the payment was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
creditBalanceAmount:
description: 'The amount that the payment transfers to the credit balance.
The value is not `0` only for those payments that come from legacy payment
operations performed without the Invoice Settlement feature.
'
format: double
type: number
currency:
description: |
When Standalone Payment is not enabled, the `currency` of the payment must be the same as the payment currency defined in the customer account settings through Zuora UI.
When Standalone Payment is enabled and `standalone` is `true`, the `currency` of the standalone payment can be different from the payment currency defined in the customer account settings. The amount will not be summed up to the account balance or key metrics regardless of currency.
type: string
effectiveDate:
description: 'The date and time when the payment takes effect, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
financeInformation:
description: 'Container for the finance information related to the payment.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
type: string
bankAccountAccountingCodeType:
description: 'The type of the accounting code that maps to a bank account
in your accounting system.
'
type: string
transferredToAccounting:
description: "Whether the payment was transferred to an external accounting\
\ system. Use this field for integration with accounting systems,\
\ such as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
type: string
unappliedPaymentAccountingCodeType:
description: 'The type of the accounting code for the unapplied payment.
'
type: string
type: object
gatewayId:
description: 'The ID of the gateway instance that processes the payment.
'
type: string
gatewayOrderId:
description: 'A merchant-specified natural key value that can be passed
to the electronic payment gateway when a payment is created. If not specified,
the payment number will be passed in instead.
'
type: string
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
gatewayResponse:
description: 'The message returned from the payment gateway for the payment.
This message is gateway-dependent.
'
type: string
gatewayResponseCode:
description: 'The code returned from the payment gateway for the payment.
This code is gateway-dependent.
'
type: string
gatewayState:
description: 'The status of the payment in the gateway; use for reconciliation.
'
enum:
- MarkedForSubmission
- Submitted
- Settled
- NotSubmitted
- FailedToSettle
type: string
id:
description: 'The unique ID of the created payment. For example, 4028905f5a87c0ff015a87eb6b75007f.
'
type: string
markedForSubmissionOn:
description: 'The date and time when a payment was marked and waiting for
batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
number:
description: 'The unique identification number of the payment. For example,
P-00000001.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentGatewayNumber:
description: 'The natural key for the payment gateway.
'
type: string
paymentMethodId:
description: 'The unique ID of the payment method that the customer used
to make the payment.
'
type: string
paymentMethodSnapshotId:
description: 'The unique ID of the payment method snapshot which is a copy
of the particular Payment Method used in a transaction.
'
type: string
paymentScheduleKey:
description: The unique ID or the number of the payment schedule that is
linked to the payment. See [Link payments to payment schedules](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Payment_Schedules/Link_payments_with_payment_schedules)
for more information.
type: string
payoutId:
description: 'The payout ID of the payment from the gateway side.
'
type: string
prepayment:
description: 'Indicates whether the payment is used as a reserved payment.
See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown)
for more information.
'
type: boolean
referenceId:
description: 'The transaction ID returned by the payment gateway. Use this
field to reconcile payments between your gateway and Zuora Payments.
'
type: string
refundAmount:
description: 'The amount of the payment that is refunded.
'
format: double
type: number
secondPaymentReferenceId:
description: 'The transaction ID returned by the payment gateway if there
is an additional transaction for the payment. Use this field to reconcile
payments between your gateway and Zuora Payments.
'
type: string
settledOn:
description: 'The date and time when the payment was settled in the payment
processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the
Spectrum gateway only and not applicable to other gateways.
'
format: date-time
type: string
softDescriptor:
description: 'A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
'
type: string
softDescriptorPhone:
description: 'A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
'
type: string
standalone:
default: false
description: |
This field is only available if the support for standalone payment is enabled. This field is not available for transferring, applying, or unapplying a payment.
The value `true` indicates this is a standalone payment that is created and processed in Zuora through Zuora gateway integration but will be settled outside of Zuora. No settlement data will be created. The standalone payment cannot be applied, unapplied, or transferred.
The value `false` indicates this is an ordinary payment that is created, processed, and settled in Zuora.
type: boolean
status:
description: 'The status of the payment.
'
enum:
- Draft
- Processing
- Processed
- Error
- Canceled
- Posted
type: string
submittedOn:
description: 'The date and time when the payment was submitted, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type:
description: 'The type of the payment.
'
enum:
- External
- Electronic
type: string
unappliedAmount:
description: 'The unapplied amount of the payment.
'
format: double
type: number
updatedById:
description: 'The ID of the Zuora user who last updated the payment.
'
type: string
updatedDate:
description: 'The date and time when the payment was last updated, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/PaymentObjectNSFields'
- $ref: '#/definitions/PaymentObjectCustomFields'
GETARPaymentTypeWithPaymentOption:
allOf:
- properties:
accountId:
description: 'The ID of the customer account that the payment is for.
'
type: string
accountNumber:
description: 'The number of the customer account that the payment is for.
'
type: string
amount:
description: 'The total amount of the payment.
'
format: double
type: number
appliedAmount:
description: 'The applied amount of the payment.
'
format: double
type: number
authTransactionId:
description: 'The authorization transaction ID from the payment gateway.
'
type: string
bankIdentificationNumber:
description: 'The first six or eight digits of the credit card or debit
card used for the payment, when applicable.
'
type: string
cancelledOn:
description: 'The date and time when the payment was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: 'Comments about the payment.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the payment.
'
type: string
createdDate:
description: 'The date and time when the payment was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
creditBalanceAmount:
description: 'The amount that the payment transfers to the credit balance.
The value is not `0` only for those payments that come from legacy payment
operations performed without the Invoice Settlement feature.
'
format: double
type: number
currency:
description: |
When Standalone Payment is not enabled, the `currency` of the payment must be the same as the payment currency defined in the customer account settings through Zuora UI.
When Standalone Payment is enabled and `standalone` is `true`, the `currency` of the standalone payment can be different from the payment currency defined in the customer account settings. The amount will not be summed up to the account balance or key metrics regardless of currency.
type: string
effectiveDate:
description: 'The date and time when the payment takes effect, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
financeInformation:
description: 'Container for the finance information related to the payment.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
type: string
bankAccountAccountingCodeType:
description: 'The type of the accounting code that maps to a bank account
in your accounting system.
'
type: string
transferredToAccounting:
description: "Whether the payment was transferred to an external accounting\
\ system. Use this field for integration with accounting systems,\
\ such as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
type: string
unappliedPaymentAccountingCodeType:
description: 'The type of the accounting code for the unapplied payment.
'
type: string
type: object
gatewayId:
description: 'The ID of the gateway instance that processes the payment.
'
type: string
gatewayOrderId:
description: 'A merchant-specified natural key value that can be passed
to the electronic payment gateway when a payment is created. If not specified,
the payment number will be passed in instead.
'
type: string
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
gatewayResponse:
description: 'The message returned from the payment gateway for the payment.
This message is gateway-dependent.
'
type: string
gatewayResponseCode:
description: 'The code returned from the payment gateway for the payment.
This code is gateway-dependent.
'
type: string
gatewayState:
description: 'The status of the payment in the gateway; use for reconciliation.
'
enum:
- MarkedForSubmission
- Submitted
- Settled
- NotSubmitted
- FailedToSettle
type: string
id:
description: 'The unique ID of the created payment. For example, 4028905f5a87c0ff015a87eb6b75007f.
'
type: string
markedForSubmissionOn:
description: 'The date and time when a payment was marked and waiting for
batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
number:
description: 'The unique identification number of the payment. For example,
P-00000001.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentGatewayNumber:
description: 'The natural key for the payment gateway.
'
type: string
paymentMethodId:
description: 'The unique ID of the payment method that the customer used
to make the payment.
'
type: string
paymentMethodSnapshotId:
description: 'The unique ID of the payment method snapshot which is a copy
of the particular Payment Method used in a transaction.
'
type: string
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
paymentScheduleKey:
description: The unique ID or the number of the payment schedule that is
linked to the payment. See [Link payments to payment schedules](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Payment_Schedules/Link_payments_with_payment_schedules)
for more information.
type: string
payoutId:
description: 'The payout ID of the payment from the gateway side.
'
type: string
prepayment:
description: 'Indicates whether the payment is used as a reserved payment.
See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown)
for more information.
'
type: boolean
referenceId:
description: 'The transaction ID returned by the payment gateway. Use this
field to reconcile payments between your gateway and Zuora Payments.
'
type: string
refundAmount:
description: 'The amount of the payment that is refunded.
'
format: double
type: number
secondPaymentReferenceId:
description: 'The transaction ID returned by the payment gateway if there
is an additional transaction for the payment. Use this field to reconcile
payments between your gateway and Zuora Payments.
'
type: string
settledOn:
description: 'The date and time when the payment was settled in the payment
processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the
Spectrum gateway only and not applicable to other gateways.
'
format: date-time
type: string
softDescriptor:
description: 'A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
'
type: string
softDescriptorPhone:
description: 'A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
'
type: string
standalone:
default: false
description: |
This field is only available if the support for standalone payment is enabled. This field is not available for transferring, applying, or unapplying a payment.
The value `true` indicates this is a standalone payment that is created and processed in Zuora through Zuora gateway integration but will be settled outside of Zuora. No settlement data will be created. The standalone payment cannot be applied, unapplied, or transferred.
The value `false` indicates this is an ordinary payment that is created, processed, and settled in Zuora.
type: boolean
status:
description: |
The status of the payment.
If the Asynchronous Payment Statuses feature is not enabled, possible values are `Draft`, `Processing`, `Processed`, `Error`, `Canceled`, and `Posted`.
If the Asynchronous Payment Statuses feature is enabled, when the ACH or Bank Transfer payment is created, it is in a `Pending` status upon successful network communication with the gateway. To transition from a `Pending` status to another status, use one of our Gateway Reconciliation options or cancel the payment.
enum:
- Draft
- Processing
- Processed
- Error
- Canceled
- Posted
- Pending
type: string
submittedOn:
description: 'The date and time when the payment was submitted, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type:
description: 'The type of the payment.
'
enum:
- External
- Electronic
type: string
unappliedAmount:
description: 'The unapplied amount of the payment.
'
format: double
type: number
updatedById:
description: 'The ID of the Zuora user who last updated the payment.
'
type: string
updatedDate:
description: 'The date and time when the payment was last updated, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/PaymentObjectNSFields'
- $ref: '#/definitions/PaymentObjectCustomFields'
GETARPaymentTypewithSuccess:
allOf:
- properties:
accountId:
description: 'The ID of the customer account that the payment is for.
'
type: string
accountNumber:
description: 'The number of the customer account that the payment is for.
'
type: string
amount:
description: 'The total amount of the payment.
'
format: double
type: number
appliedAmount:
description: 'The applied amount of the payment.
'
format: double
type: number
authTransactionId:
description: 'The authorization transaction ID from the payment gateway.
'
type: string
bankIdentificationNumber:
description: 'The first six or eight digits of the credit card or debit
card used for the payment, when applicable.
'
type: string
cancelledOn:
description: 'The date and time when the payment was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: 'Comments about the payment.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the payment part.
'
type: string
createdDate:
description: 'The date and time when the payment was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
creditBalanceAmount:
description: 'The amount that the payment transfers to the credit balance.
The value is not `0` only for those payments that come from legacy payment
operations performed without the Invoice Settlement feature.
'
format: double
type: number
currency:
description: |
When Standalone Payment is not enabled, the `currency` of the payment must be the same as the payment currency defined in the customer account settings through Zuora UI.
When Standalone Payment is enabled and `standalone` is `true`, the `currency` of the standalone payment can be different from the payment currency defined in the customer account settings. The amount will not be summed up to the account balance or key metrics regardless of currency.
type: string
effectiveDate:
description: 'The date and time when the payment takes effect, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
financeInformation:
description: 'Container for the finance information related to the payment.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
type: string
bankAccountAccountingCodeType:
description: 'The type of the accounting code that maps to a bank account
in your accounting system.
'
type: string
transferredToAccounting:
description: "Whether the payment was transferred to an external accounting\
\ system. Use this field for integration with accounting systems,\
\ such as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
type: string
unappliedPaymentAccountingCodeType:
description: 'The type of the accounting code for the unapplied payment.
'
type: string
type: object
gatewayId:
description: 'The ID of the gateway instance that processes the payment.
'
type: string
gatewayOrderId:
description: 'A merchant-specified natural key value that can be passed
to the electronic payment gateway when a payment is created.
'
type: string
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
gatewayResponse:
description: 'The message returned from the payment gateway for the payment.
This message is gateway-dependent.
'
type: string
gatewayResponseCode:
description: 'The code returned from the payment gateway for the payment.
This code is gateway-dependent.
'
type: string
gatewayState:
description: "The status of the payment in the gateway; use for reconciliation.\
\ \n"
enum:
- MarkedForSubmission
- Submitted
- Settled
- NotSubmitted
- FailedToSettle
type: string
id:
description: 'The unique ID of the payment. For example, 4028905f5a87c0ff015a87eb6b75007f.
'
type: string
markedForSubmissionOn:
description: 'The date and time when a payment was marked and waiting for
batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
number:
description: 'The unique identification number of the payment. For example,
P-00000001.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentGatewayNumber:
description: 'The natural key for the payment gateway.
'
type: string
paymentMethodId:
description: 'The unique ID of the payment method that the customer used
to make the payment.
'
type: string
paymentMethodSnapshotId:
description: 'The unique ID of the payment method snapshot which is a copy
of the particular Payment Method used in a transaction.
'
type: string
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
paymentScheduleKey:
description: The unique ID or the number of the payment schedule that is
linked to the payment. See [Link payments to payment schedules](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Payment_Schedules/Link_payments_with_payment_schedules)
for more information.
type: string
payoutId:
description: 'The payout ID of the payment from the gateway side.
'
type: string
prepayment:
description: 'Indicates whether the payment is used as a reserved payment.
See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown)
for more information.
'
type: boolean
referenceId:
description: 'The transaction ID returned by the payment gateway. Use this
field to reconcile payments between your gateway and Zuora Payments.
'
type: string
refundAmount:
description: 'The amount of the payment that is refunded.
'
format: double
type: number
secondPaymentReferenceId:
description: 'The transaction ID returned by the payment gateway if there
is an additional transaction for the payment. Use this field to reconcile
payments between your gateway and Zuora Payments.
'
type: string
settledOn:
description: 'The date and time when the payment was settled in the payment
processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the
Spectrum gateway only and not applicable to other gateways.
'
format: date-time
type: string
softDescriptor:
description: 'A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
'
type: string
softDescriptorPhone:
description: 'A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
'
type: string
standalone:
default: false
description: |
This field is only available if the support for standalone payment is enabled.
The value `true` indicates this is a standalone payment that is created and processed in Zuora through Zuora gateway integration but will be settled outside of Zuora. No settlement data will be created. The standalone payment cannot be applied, unapplied, or transferred.
The value `false` indicates this is an ordinary payment that is created, processed, and settled in Zuora.
type: boolean
status:
description: 'The status of the payment.
'
enum:
- Draft
- Processing
- Processed
- Error
- Canceled
- Posted
type: string
submittedOn:
description: 'The date and time when the payment was submitted, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
type:
description: 'The type of the payment.
'
enum:
- External
- Electronic
type: string
unappliedAmount:
description: 'The unapplied amount of the payment.
'
format: double
type: number
updatedById:
description: 'The ID of the Zuora user who last updated the payment.
'
type: string
updatedDate:
description: 'The date and time when the payment was last updated, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/PaymentObjectNSFields'
- $ref: '#/definitions/PaymentObjectCustomFields'
title: payments
GETAccountCurrencyMetricsType:
allOf:
- properties:
balance:
description: 'The total balance in this currency.
'
type: string
contractedMrr:
description: 'The future expected Monthly Recurring Revenue (MRR) in this
currency, accounting for future upgrades, downgrades, upsells, and cancellations.
'
format: decimal
type: string
currency:
description: 'The currency that metrics are aggregated based on.
'
type: string
reservedPaymentAmount:
description: 'The reserved payment amount of the customer account in this
currency. For more information, see Prepaid Cash with Drawdown .
'
format: decimal
type: string
totalDebitMemoBalance:
description: "The total balance of all posted debit memos in this currency.\n\
\n**Note:** This field is only available if you have 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 for more\
\ information.\n"
format: decimal
type: string
totalInvoiceBalance:
description: 'The total balance of all posted invoices in this currency.
'
format: decimal
type: string
unappliedCreditMemoAmount:
description: 'The total unapplied amount of all posted credit memos in this
currency.
'
format: decimal
type: string
unappliedPaymentAmount:
description: |
The total unapplied amount of all posted payments in this currency.
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
format: decimal
type: string
type: object
title: metricsData
GETAccountPMAccountHolderInfo:
description: 'The account holder information.
'
properties:
accountHolderName:
description: 'The full name of the account holder.
'
maxLength: 60
type: string
addressLine1:
description: 'The first line of the address for the account holder.
'
type: string
addressLine2:
description: "The second line of the address for the account holder. \n"
type: string
city:
description: "The city where the account holder stays. \n"
type: string
country:
description: |
The country where the account holder stays.
When creating a payment method through a translated UI or Payment Page, a country name in a translated language might be selected. Regardless of the country texts selected when creating the payment method, only the country name listed in [Country Names and Their ISO Standard 2- and 3-Digit Codes](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/D_Country%2C_State%2C_and_Province_Codes/A_Country_Names_and_Their_ISO_Codes) returns in this field. Internationalization is not supported for the API field value.
type: string
email:
description: 'The email address of the account holder.
'
type: string
phone:
description: 'The phone number of the account holder.
'
type: string
state:
description: 'The state where the account holder stays.
'
type: string
zipCode:
description: 'The zip code for the address of the account holder.
'
type: string
title: accountHolderInfo
type: object
GETAccountPaymentMethodType:
allOf:
- properties:
defaultPaymentMethodId:
description: 'ID of the default payment method for the account.
'
type: string
paymentGateway:
description: 'The name of the payment gateway instance. If null or left
unassigned, the Account will use the Default Gateway.
'
type: string
returnedPaymentMethodType:
description: |
Container for a specific type of payment method on the customer account. For example, `creditcard`, `debitcard`, `creditcardreferencetransaction`, `ach`, etc. Each `returnedPaymentMethodType` array contains one or more payment methods of that payment method type.
**Note:** The response could return more than one payment method type arrays. See **Response samples** as an example.
items:
$ref: '#/definitions/GETPaymentMethodResponseForAccount'
title: Payment Method Type
type: array
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
- $ref: '#/definitions/customAccountPaymentMethod'
GETAccountSummaryInvoiceType:
properties:
amount:
description: 'Invoice amount before adjustments, discounts, and similar items.
'
type: number
balance:
description: 'Balance due on the invoice.
'
format: decimal
type: string
dueDate:
description: 'Due date as `yyyy-mm-dd`.
'
format: date
type: string
id:
description: 'Invoice ID.
'
type: string
invoiceDate:
description: 'Invoice date as `yyyy-mm-dd`.
'
format: date
type: string
invoiceNumber:
description: 'Invoice number.
'
type: string
status:
description: 'Invoice status - not the payment status of the invoice, just
the status of the invoice itself. Possible values are: `Posted`, `Draft`,
`Canceled`, `Error`.
'
type: string
title: invoices
type: object
GETAccountSummaryPaymentInvoiceType:
properties:
appliedPaymentAmount:
description: 'Amount of payment applied to the invoice.
'
format: decimal
type: string
invoiceId:
description: 'Invoice ID.
'
type: string
invoiceNumber:
description: 'Invoice number.
'
type: string
title: paidInvoices
type: object
GETAccountSummaryPaymentType:
properties:
effectiveDate:
description: 'Effective date as `yyyy-mm-dd`.
'
format: date
type: string
id:
description: 'Payment ID.
'
type: string
paidInvoices:
description: 'Container for paid invoices for this subscription.
'
items:
$ref: '#/definitions/GETAccountSummaryPaymentInvoiceType'
type: array
paymentNumber:
description: 'Payment number.
'
type: string
paymentType:
description: 'Payment type; possible values are: `External`, `Electronic`.
'
type: string
status:
description: 'Payment status. Possible values are: `Draft`, `Processing`,
`Processed`, `Error`, `Voided`, `Canceled`, `Posted`.
'
type: string
title: payments
type: object
GETAccountSummarySubscriptionRatePlanType:
properties:
productId:
description: 'Product ID.
'
type: string
productName:
description: 'Product name.
'
type: string
productRatePlanId:
description: 'Product Rate Plan ID.
'
type: string
productSku:
description: ''
type: string
ratePlanName:
description: 'Rate plan name.
'
type: string
title: ratePlans
type: object
GETAccountSummarySubscriptionType:
allOf:
- properties:
autoRenew:
description: 'If `true`, auto-renew is enabled. If `false`, auto-renew is
disabled.
'
type: boolean
id:
description: 'Subscription ID.
'
type: string
initialTerm:
description: "Duration of the initial subscription term in whole months.\
\ \n"
type: string
ratePlans:
description: 'Container for rate plans for this subscription.
'
items:
$ref: '#/definitions/GETAccountSummarySubscriptionRatePlanType'
type: array
renewalTerm:
description: 'Duration of the renewal term in whole months.
'
type: string
status:
description: 'Subscription status; possible values are: `Draft`, `PendingActivation`,
`PendingAcceptance`, `Active`, `Cancelled`, `Expired`.
'
type: string
subscriptionNumber:
description: 'Subscription Number.
'
type: string
subscriptionStartDate:
description: 'Subscription start date.
'
format: date
type: string
termEndDate:
description: 'End date of the subscription term. If the subscription is
evergreen, this is either null or equal to the cancellation date, as appropriate.
'
format: date
type: string
termStartDate:
description: 'Start date of the subscription term. If this is a renewal
subscription, this date is different than the subscription start date.
'
format: date
type: string
termType:
description: 'Possible values are: `TERMED`, `EVERGREEN`.
'
type: string
type: object
- $ref: '#/definitions/SubscriptionObjectQTFields'
- $ref: '#/definitions/SubscriptionObjectNSFields'
- $ref: '#/definitions/SubscriptionObjectCustomFields'
title: subscriptions
GETAccountSummaryType:
properties:
basicInfo:
$ref: '#/definitions/GETAccountSummaryTypeBasicInfo'
billToContact:
$ref: '#/definitions/GETAccountSummaryTypeBillToContact'
invoices:
description: 'Container for invoices. Only returns the last 6 invoices.
'
items:
$ref: '#/definitions/GETAccountSummaryInvoiceType'
type: array
payments:
description: 'Container for payments. Only returns the last 6 payments.
'
items:
$ref: '#/definitions/GETAccountSummaryPaymentType'
type: array
soldToContact:
$ref: '#/definitions/GETAccountSummaryTypeSoldToContact'
subscriptions:
description: 'Container for subscriptions.
'
items:
$ref: '#/definitions/GETAccountSummarySubscriptionType'
type: array
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
taxInfo:
description: 'Container for tax exempt information, used to establish the
tax exempt status of a customer account.
'
properties:
VATId:
description: 'EU Value Added Tax ID.
'
type: string
companyCode:
description: 'Unique code that identifies a company account in Avalara.
'
type: string
exemptCertificateId:
description: 'ID of the customer tax exemption certificate.
'
type: string
exemptCertificateType:
description: 'Type of tax exemption certificate that the customer holds.
'
type: string
exemptDescription:
description: 'Description of the tax exemption certificate that the customer
holds.
'
type: string
exemptEffectiveDate:
description: 'Date when the customer tax exemption starts.
'
format: date
type: string
exemptEntityUseCode:
description: |
A unique entity use code to apply exemptions in Avalara AvaTax.
This account-level field is required only when you choose Avalara as your tax engine. See [Exempt Transactions](https://developer.avalara.com/avatax/handling-tax-exempt-customers/)for more details.
maxLength: 64
type: string
exemptExpirationDate:
description: 'Date when the customer tax exemption expires.
'
format: date
type: string
exemptIssuingJurisdiction:
description: 'Jurisdiction in which the customer tax exemption certificate
was issued.
'
type: string
exemptStatus:
description: 'Status of the account tax exemption.
'
type: string
type: object
usage:
description: |
Container for usage data. Only returns the last 6 months of usage.
**Note:** If the Active Rating feature is enabled, no usage data is returned in the response body field.
items:
$ref: '#/definitions/GETAccountSummaryUsageType'
type: array
type: object
GETAccountSummaryTypeBasicInfo:
allOf:
- properties:
accountNumber:
description: 'Account number.
'
type: string
additionalEmailAddresses:
description: 'A list of additional email addresses to receive email notifications.
'
items:
type: string
type: array
autoPay:
description: 'Whether future payments are automatically collected when they
are due during a payment run.
'
type: boolean
balance:
description: 'Current outstanding balance.
'
format: decimal
type: string
batch:
description: 'The alias name given to a batch. A string of 50 characters
or less.
'
type: string
billCycleDay:
description: 'Billing cycle day (BCD), the day of the month when a bill
run generates invoices for the account.
'
type: string
currency:
description: 'A currency as defined in Billing Settings in the Zuora UI.
'
type: string
defaultPaymentMethod:
description: ''
properties:
creditCardExpirationMonth:
description: 'Two-digit numeric card expiration month as `mm`.
'
type: string
creditCardExpirationYear:
description: 'Four-digit card expiration year as `yyyy`.
'
type: string
creditCardNumber:
description: 'Credit card number, 16 characters or less, displayed in
masked format (e.g., ************1234).
'
type: string
creditCardType:
description: |
The type of the credit card.
Possible values include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Methods](https://knowledgecenter.zuora.com/Zuora_Central/Billing_and_Payments/L_Payment_Methods/Supported_Payment_Methods).
type: string
id:
description: 'ID of the default payment method associated with this
account.
'
type: string
paymentMethodType:
description: ''
type: string
type: object
id:
description: 'Account ID.
'
type: string
invoiceDeliveryPrefsEmail:
description: "Whether the customer wants to receive invoices through email.\
\ \n"
type: boolean
invoiceDeliveryPrefsPrint:
description: 'Whether the customer wants to receive printed invoices, such
as through postal mail.
'
type: boolean
lastInvoiceDate:
description: 'Date of the most recent invoice for the account; null if no
invoice has ever been generated.
'
format: date
type: string
lastMetricsUpdate:
description: "The date and time when account metrics are last updated, if\
\ the account is a partner account.\n\n**Note**: \n - This field is available\
\ only if you have the Reseller Account feature enabled.\n - If you\
\ have the Reseller Account feature enabled, and set the `partnerAccount`\
\ field to `false` for an account, the value of the `lastMetricsUpdate`\
\ field is automatically set to `null` in the response. \n - If you ever\
\ set the `partnerAccount` field to `true` for an account, the value of\
\ `lastMetricsUpdate` field is the time when the account metrics are last\
\ updated.\n \n"
format: date-time
type: string
lastPaymentAmount:
description: 'Amount of the most recent payment collected for the account;
null if no payment has ever been collected.
'
format: decimal
type: string
lastPaymentDate:
description: 'Date of the most recent payment collected for the account.
Null if no payment has ever been collected.
'
format: date
type: string
name:
description: 'Account name.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
partnerAccount:
description: "Whether the customer account is a partner, distributor, or\
\ reseller. \n\n\n**Note**: This field is available only if you have the\
\ Reseller Account feature enabled.\n"
type: boolean
purchaseOrderNumber:
description: The purchase order number provided by your customer for services,
products, or both purchased.
type: string
status:
description: 'Account status; possible values are: `Active`, `Draft`, `Canceled`.
'
type: string
tags:
description: ''
type: string
type: object
- $ref: '#/definitions/AccountObjectNSFields'
- $ref: '#/definitions/AccountObjectCustomFields'
description: 'Container for basic information about the account.
'
title: basicInfo
GETAccountSummaryTypeBillToContact:
allOf:
- properties:
address1:
description: 'First address line, 255 characters or less.
'
type: string
address2:
description: 'Second address line, 255 characters or less.
'
type: string
city:
description: 'City, 40 characters or less.
'
type: string
country:
description: 'Full country name. This field does not contain the ISO-standard
abbreviation of the country name.
'
type: string
county:
description: 'County; 32 characters or less. Zuora Tax uses this information
to calculate county taxation. '
type: string
fax:
description: 'Fax phone number, 40 characters or less.
'
type: string
firstName:
description: 'First name, 100 characters or less.
'
type: string
id:
description: 'Contact ID.
'
type: string
lastName:
description: 'Last name, 100 characters or less.
'
type: string
state:
description: 'Full state name. This field does not contain the ISO-standard
abbreviation of the state name.
'
type: string
taxRegion:
description: 'A region string, defined in your Zuora tax rules.
'
type: string
workEmail:
description: 'Work email address, 80 characters or less.
'
type: string
workPhone:
description: 'Work phone number, 40 characters or less.
'
type: string
zipCode:
description: 'Zip code, 20 characters or less.
'
type: string
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
description: "Container for bill-to contact information.\n\n**Note**: \n - If\
\ you have the Flexible Billing Attributes feature disabled, this field\
\ is unavailable in the request body and the value of this field is `null` in\
\ the response body. \n - If you have the Flexible Billing Attributes feature\
\ enabled, and you do not specify the `billToContactId` field in the request\
\ or you select **Default Contact from Account** for the `billToContactId` field\
\ during subscription creation, the value of the `billToContact` field is automatically\
\ set to `null` in the response body.\n"
title: Contact
GETAccountSummaryTypeSoldToContact:
allOf:
- properties:
address1:
description: 'First address line, 255 characters or less.
'
type: string
address2:
description: 'Second address line, 255 characters or less.
'
type: string
city:
description: 'City, 40 characters or less.
'
type: string
country:
description: 'Full country name. This field does not contain the ISO-standard
abbreviation of the country name.
'
type: string
county:
description: 'County; 32 characters or less. Zuora Tax uses this information
to calculate county taxation. '
type: string
fax:
description: 'Fax phone number, 40 characters or less.
'
type: string
firstName:
description: 'First name, 100 characters or less.
'
type: string
id:
description: 'Contact ID.
'
type: string
lastName:
description: 'Last name, 100 characters or less.
'
type: string
state:
description: 'Full state name. This field does not contain the ISO-standard
abbreviation of the state name.
'
type: string
taxRegion:
description: 'A region string, defined in your Zuora tax rules.
'
type: string
workEmail:
description: 'Work email address, 80 characters or less.
'
type: string
workPhone:
description: 'Work phone number, 40 characters or less.
'
type: string
zipCode:
description: 'Zip code, 20 characters or less.
'
type: string
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
description: "Container for sold-to contact information.\n\n**Note**: \n - If\
\ you have the Flexible Billing Attributes feature disabled, this field\
\ is unavailable in the request body and the value of this field is `null` in\
\ the response body. \n - If you have the Flexible Billing Attributes feature\
\ enabled, and you do not specify the `soldToContactId` field in the request\
\ or you select **Default Contact from Account** for the `soldToContactId` field\
\ during subscription creation, the value of the `soldToContact` field is automatically\
\ set to `null` in the response body.\n"
title: Contact
GETAccountSummaryUsageType:
properties:
quantity:
description: 'Number of units used.
'
format: decimal
type: string
startDate:
description: 'The start date of a usage period as `yyyy-mm`. Zuora uses this
field value to determine the usage date.
'
format: date
type: string
unitOfMeasure:
description: 'Unit by which consumption is measured, as configured in the
Billing Settings section of the web-based UI.
'
type: string
title: usage
type: object
GETAccountType:
properties:
basicInfo:
$ref: '#/definitions/GETAccountTypeBasicInfo'
billToContact:
$ref: '#/definitions/GETAccountTypeBillToContact'
billingAndPayment:
description: Container for billing and payment information for the account.
properties:
additionalEmailAddresses:
description: 'A list of additional email addresses to receive email notifications.
'
items:
type: string
type: array
autoPay:
description: |+
Whether future payments are automatically collected when they are due during a payment run.
type: boolean
billCycleDay:
description: 'Billing cycle day (BCD), the day of the month when a bill
run generates invoices for the account.
'
type: string
currency:
description: 'A currency defined in the web-based UI administrative settings.
'
type: string
defaultPaymentMethodId:
description: 'ID of the default payment method for the account.
'
type: string
invoiceDeliveryPrefsEmail:
description: "Whether the customer wants to receive invoices through email.\
\ \n"
type: boolean
invoiceDeliveryPrefsPrint:
description: 'Whether the customer wants to receive printed invoices,
such as through postal mail.
'
type: boolean
paymentGateway:
description: 'The name of the payment gateway instance. If null or left
unassigned, the Account will use the Default Gateway.
'
type: string
paymentTerm:
description: 'A payment-terms indicator defined in the web-based UI administrative
settings, e.g., "Net 30".
'
type: string
type: object
einvoiceProfile:
$ref: '#/definitions/GetAccountEInvoiceProfile'
metrics:
description: "Container for account metrics of the account's default currency.\
\ \n\nIf you have the Multiple Currencies feature in the **Early Adopter**\
\ phase enabled, the `metricsData` field provides account metrics of different\
\ currencies.\n"
properties:
balance:
description: 'The customer''s total invoice balance minus credit balance.
'
format: decimal
type: string
contractedMrr:
description: 'Future expected MRR that accounts for future upgrades, downgrades,
upsells and cancellations.
'
format: decimal
type: string
creditBalance:
description: 'Current credit balance.
'
format: decimal
type: string
reservedPaymentAmount:
description: "The Reserved Payment Amount of the customer account. See\
\ [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown)\
\ for more information. \n"
format: float
type: number
totalDebitMemoBalance:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Total balance of all posted debit memos.
format: decimal
type: string
totalInvoiceBalance:
description: 'Total balance of all posted invoices.
'
format: decimal
type: string
unappliedCreditMemoAmount:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Total unapplied amount of all posted credit memos.
format: decimal
type: string
unappliedPaymentAmount:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Total unapplied amount of all posted payments.
format: decimal
type: string
type: object
metricsData:
description: |
Container for account metrics of different currencies.
**Note**: This field is available only if you have the Multiple Currencies feature in the **Early Adopter** phase enabled.
items:
$ref: '#/definitions/GETAccountCurrencyMetricsType'
type: array
soldToContact:
$ref: '#/definitions/GETAccountTypeSoldToContact'
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
taxInfo:
description: 'Container for tax exempt information, used to establish the
tax exempt status of a customer account.
'
properties:
VATId:
description: 'EU Value Added Tax ID.
'
type: string
companyCode:
description: 'Unique code that identifies a company account in Avalara.
'
type: string
exemptCertificateId:
description: 'ID of the customer tax exemption certificate.
'
type: string
exemptCertificateType:
description: 'Type of tax exemption certificate that the customer holds.
'
type: string
exemptDescription:
description: 'Description of the tax exemption certificate that the customer
holds.
'
type: string
exemptEffectiveDate:
description: 'Date when the customer tax exemption starts.
'
format: date
type: string
exemptEntityUseCode:
description: |
A unique entity use code to apply exemptions in Avalara AvaTax.
This account-level field is required only when you choose Avalara as your tax engine. See [Exempt Transactions](https://developer.avalara.com/avatax/handling-tax-exempt-customers/)for more details.
maxLength: 64
type: string
exemptExpirationDate:
description: 'Date when the customer tax exemption expires.
'
format: date
type: string
exemptIssuingJurisdiction:
description: 'Jurisdiction in which the customer tax exemption certificate
was issued.
'
type: string
exemptStatus:
description: 'Status of the account tax exemption.
'
type: string
type: object
type: object
GETAccountTypeBasicInfo:
allOf:
- properties:
accountNumber:
description: 'Account number.
'
type: string
batch:
description: 'The alias name given to a batch. A string of 50 characters
or less.
'
type: string
communicationProfileId:
description: The ID of the communication profile that this account is linked
to.
type: string
creditMemoTemplateId:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
The unique ID of the credit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08a6246fdf101626b1b3fe0144b.
type: string
crmId:
description: 'CRM account ID for the account, up to 100 characters.
'
type: string
debitMemoTemplateId:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
The unique ID of the debit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08d62470a8501626b19d24f19e2.
type: string
id:
description: 'Account ID.
'
type: string
invoiceTemplateId:
description: 'Invoice template ID, configured in Billing Settings in the
Zuora UI.
'
type: string
lastMetricsUpdate:
description: "The date and time when account metrics are last updated, if\
\ the account is a partner account.\n\n**Note**: \n - This field is available\
\ only if you have the Reseller Account feature enabled.\n - If you\
\ have the Reseller Account feature enabled, and set the `partnerAccount`\
\ field to `false` for an account, the value of the `lastMetricsUpdate`\
\ field is automatically set to `null` in the response. \n - If you ever\
\ set the `partnerAccount` field to `true` for an account, the value of\
\ `lastMetricsUpdate` field is the time when the account metrics are last\
\ updated.\n \n"
format: date-time
type: string
name:
description: 'Account name.
'
type: string
notes:
description: 'Notes associated with the account, up to 65,535 characters.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
parentId:
description: Identifier of the parent customer account for this Account
object. The length is 32 characters. Use this field if you have Customer Hierarchy enabled.
type: string
partnerAccount:
description: "Whether the customer account is a partner, distributor, or\
\ reseller. \n\n\n**Note**: This field is available only if you have the\
\ Reseller Account feature enabled.\n"
type: boolean
profileNumber:
description: The number of the communication profile that this account is
linked to.
type: string
purchaseOrderNumber:
description: The purchase order number provided by your customer for services,
products, or both purchased.
type: string
salesRep:
description: The name of the sales representative associated with this account,
if applicable. Maximum of 50 characters.
type: string
sequenceSetId:
description: "The ID of the billing document sequence set that is assigned\
\ to the customer account. \n"
type: string
status:
description: 'Account status; possible values are: `Active`, `Draft`, `Canceled`.
'
type: string
tags:
description: ''
type: string
type: object
- $ref: '#/definitions/AccountObjectNSFields'
- $ref: '#/definitions/AccountObjectCustomFields'
description: 'Container for basic information about the account.
'
title: basicInfo
GETAccountTypeBillToContact:
allOf:
- properties:
address1:
description: 'First address line, 255 characters or less.
'
type: string
address2:
description: 'Second address line, 255 characters or less.
'
type: string
city:
description: 'City, 40 characters or less.
'
type: string
country:
description: 'Full country name. This field does not contain the ISO-standard
abbreviation of the country name.
'
type: string
county:
description: 'County; 32 characters or less. Zuora Tax uses this information
to calculate county taxation. '
type: string
fax:
description: 'Fax phone number, 40 characters or less.
'
type: string
firstName:
description: 'First name, 100 characters or less.
'
type: string
homePhone:
description: 'Home phone number, 40 characters or less.
'
type: string
id:
description: ID of the person to bill for the account, 32 characters or
less.
type: string
lastName:
description: 'Last name, 100 characters or less.
'
type: string
mobilePhone:
description: 'Mobile phone number, 40 characters or less.
'
type: string
nickname:
description: 'Nickname for this contact.
'
type: string
otherPhone:
description: 'Other phone number, 40 characters or less.
'
type: string
otherPhoneType:
description: 'Possible values are: `Work`, `Mobile`, `Home`, `Other`.
'
type: string
personalEmail:
description: 'Personal email address, 80 characters or less.
'
type: string
state:
description: 'Full state name. This field does not contain the ISO-standard
abbreviation of the state name.
'
type: string
taxRegion:
description: 'A region string, defined in your Zuora tax rules.
'
type: string
workEmail:
description: 'Work email address, 80 characters or less.
'
type: string
workPhone:
description: 'Work phone number, 40 characters or less.
'
type: string
zipCode:
description: 'Zip code, 20 characters or less.
'
type: string
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
description: 'Container for bill-to contact information.
'
title: Contact
GETAccountTypeSoldToContact:
allOf:
- properties:
address1:
description: 'First address line, 255 characters or less.
'
type: string
address2:
description: 'Second address line, 255 characters or less.
'
type: string
city:
description: 'City, 40 characters or less.
'
type: string
country:
description: 'Full country name. This field does not contain the ISO-standard
abbreviation of the country name.
'
type: string
county:
description: 'County; 32 characters or less. Zuora tax uses this information
to calculate county taxation. '
type: string
fax:
description: 'Fax phone number, 40 characters or less.
'
type: string
firstName:
description: 'First name, 100 characters or less.
'
type: string
homePhone:
description: 'Home phone number, 40 characters or less.
'
type: string
id:
description: ID of the person who bought the subscription associated with
the account, 32 characters or less.
type: string
lastName:
description: 'Last name, 100 characters or less.
'
type: string
mobilePhone:
description: 'Mobile phone number, 40 characters or less.
'
type: string
nickname:
description: 'Nickname for this contact.
'
type: string
otherPhone:
description: 'Other phone number, 40 characters or less.
'
type: string
otherPhoneType:
description: 'Possible values are: `Work`, `Mobile`, `Home`, `Other`.
'
type: string
personalEmail:
description: 'Personal email address, 80 characters or less.
'
type: string
state:
description: 'Full state name. This field does not contain the ISO-standard
abbreviation of the state name.
'
type: string
taxRegion:
description: 'A region string, defined in your Zuora tax rules.
'
type: string
workEmail:
description: 'Work email address, 80 characters or less.
'
type: string
workPhone:
description: 'Work phone number, 40 characters or less.
'
type: string
zipCode:
description: 'Zip code, 20 characters or less.
'
type: string
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
description: 'Container for sold-to contact information. Uses the same field structure
as billToContact.
'
title: Contact
GETAccountingCodeItemType:
allOf:
- properties:
category:
description: 'The category associated with the accounting code.
'
enum:
- Assets
- Liabilities
- Equity
- Revenue
- Expenses
type: string
createdBy:
description: 'The ID of the user who created the accounting code.
'
type: string
createdOn:
description: 'Date and time when the accounting code was created.
'
format: date-time
type: string
glAccountName:
description: |
Name of the account in your general ledger.
Field only available if you have Zuora Finance enabled.
type: string
glAccountNumber:
description: |
Account number in your general ledger.
Field only available if you have Zuora Finance enabled.
type: string
id:
description: 'ID of the accounting code.
'
type: string
name:
description: 'Name of the accounting code.
'
type: string
notes:
description: 'Any optional notes for the accounting code.
'
type: string
status:
description: 'The accounting code status.
'
enum:
- Active
- Inactive
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type:
description: "Accounting code type. \n\nNote that `On-Account Receivable`\
\ is only available if you enable the Invoice Settlement feature. \n"
enum:
- AccountsReceivable
- On-Account Receivable
- Cash
- OtherAssets
- CustomerCashOnAccount
- DeferredRevenue
- SalesTaxPayable
- OtherLiabilities
- SalesRevenue
- SalesDiscounts
- OtherRevenue
- OtherEquity
- BadDebt
- OtherExpenses
type: string
updatedBy:
description: 'The ID of the user who last updated the accounting code.
'
type: string
updatedOn:
description: 'Date and time when the accounting code was last updated.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/AccountingCodeObjectCustomFields'
GETAccountingCodeItemWithoutSuccessType:
allOf:
- properties:
category:
description: 'The category associated with the accounting code.
'
enum:
- Assets
- Liabilities
- Equity
- Revenue
- Expenses
type: string
createdBy:
description: 'The ID of the user who created the accounting code.
'
type: string
createdOn:
description: 'Date and time when the accounting code was created.
'
format: date-time
type: string
glAccountName:
description: |
Name of the account in your general ledger.
Field only available if you have Zuora Finance enabled.
type: string
glAccountNumber:
description: |
Account number in your general ledger.
Field only available if you have Zuora Finance enabled.
type: string
id:
description: 'ID of the accounting code.
'
type: string
name:
description: 'Name of the accounting code.
'
type: string
notes:
description: 'Any optional notes for the accounting code.
'
type: string
status:
description: 'The accounting code status.
'
enum:
- Active
- Inactive
type: string
type:
description: "Accounting code type. \n\nNote that `On-Account Receivable`\
\ is only available if you enable the Invoice Settlement feature. \n"
enum:
- AccountsReceivable
- On-Account Receivable
- Cash
- OtherAssets
- CustomerCashOnAccount
- DeferredRevenue
- SalesTaxPayable
- OtherLiabilities
- SalesRevenue
- SalesDiscounts
- OtherRevenue
- OtherEquity
- BadDebt
- OtherExpenses
type: string
updatedBy:
description: 'The ID of the user who last updated the accounting code.
'
type: string
updatedOn:
description: 'Date and time when the accounting code was last updated.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/AccountingCodeObjectCustomFields'
title: accountingCodes
GETAccountingCodesType:
properties:
accountingCodes:
description: 'An array of all the accounting codes in your chart of accounts.
Each accounting code has the following fields.
'
items:
$ref: '#/definitions/GETAccountingCodeItemWithoutSuccessType'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GETAccountingPeriodType:
allOf:
- properties:
createdBy:
description: 'ID of the user who created the accounting period.
'
type: string
createdOn:
description: 'Date and time when the accounting period was created.
'
format: date-time
type: string
endDate:
description: 'The end date of the accounting period.
'
format: date
type: string
fileIds:
description: 'File IDs of the reports available for the accounting period.
You can retrieve the reports by specifying the file ID in a [Get Files](https://developer.zuora.com/api-references/api/operation/GET_Files)
REST API call.
'
properties:
accountsReceivableAccountAgingDetailExportFileId:
description: 'File ID of the Accounts Receivable Aging Account Detail
report.
'
type: string
accountsReceivableInvoiceAgingDetailExportFileId:
description: 'File ID of the Accounts Receivable Aging Invoice Detail
report.
'
type: string
arRollForwardDetailExportFileId:
description: 'File ID of the Accounts Receivable Detail report.
'
type: string
fxRealizedGainAndLossDetailExportFileId:
description: |
File ID of the Realized Gain and Loss Detail report.
Returned only if you have Foreign Currency Conversion enabled.
type: string
fxUnrealizedGainAndLossDetailExportFileId:
description: |
File ID of the Unrealized Gain and Loss Detail report.
Returned only if you have Foreign Currency Conversion enabled
type: string
revenueDetailCsvFileId:
description: 'File ID of the Revenue Detail report in CSV format.
'
type: string
revenueDetailExcelFileId:
description: 'File ID of the Revenue Detail report in XLSX format.
'
type: string
unprocessedChargesFileId:
description: 'File ID of a report containing all unprocessed charges
for the accounting period.
'
type: string
type: object
fiscalYear:
description: 'Fiscal year of the accounting period.
'
type: string
fiscal_quarter:
description: ''
format: int64
type: integer
id:
description: 'ID of the accounting period.
'
type: string
name:
description: 'Name of the accounting period.
'
type: string
notes:
description: 'Any optional notes about the accounting period.
'
type: string
organizationLabels:
description: "The organization(s) that the object belongs to. \n\nNote:\
\ This field is available only when the Multi-Org feature is enabled.\
\ \n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
runTrialBalanceEnd:
description: 'Date and time that the trial balance was completed. If the
trial balance status is `Pending`, `Processing`, or `Error`, this field
is `null`.
'
format: date-time
type: string
runTrialBalanceErrorMessage:
description: 'If trial balance status is Error, an error message is returned
in this field.
'
type: string
runTrialBalanceStart:
description: 'Date and time that the trial balance was run. If the trial
balance status is Pending, this field is null.
'
format: date-time
type: string
runTrialBalanceStatus:
description: |
Status of the trial balance for the accounting period. Possible values:
* `Pending`
* `Processing`
* `Completed`
* `Error`
type: string
startDate:
description: 'The start date of the accounting period.
'
format: date
type: string
status:
description: |
Status of the accounting period. Possible values:
* `Open`
* `PendingClose`
* `Closed`
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
updatedBy:
description: 'ID of the user who last updated the accounting period.
'
type: string
updatedOn:
description: 'Date and time when the accounting period was last updated.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/AccountingPeriodObjectCustomFields'
GETAccountingPeriodWithoutSuccessType:
allOf:
- properties:
createdBy:
description: 'ID of the user who created the accounting period.
'
type: string
createdOn:
description: 'Date and time when the accounting period was created.
'
format: date-time
type: string
endDate:
description: 'The end date of the accounting period.
'
format: date
type: string
fileIds:
description: 'File IDs of the reports available for the accounting period.
You can retrieve the reports by specifying the file ID in a [Get Files](https://developer.zuora.com/api-references/api/operation/GET_Files)
REST API call.
'
properties:
accountsReceivableAccountAgingDetailExportFileId:
description: 'File ID of the Accounts Receivable Aging Account Detail
report.
'
type: string
accountsReceivableInvoiceAgingDetailExportFileId:
description: 'File ID of the Accounts Receivable Aging Invoice Detail
report.
'
type: string
arRollForwardDetailExportFileId:
description: 'File ID of the Accounts Receivable Detail report.
'
type: string
fxRealizedGainAndLossDetailExportFileId:
description: |
File ID of the Realized Gain and Loss Detail report.
Returned only if you have Foreign Currency Conversion enabled.
type: string
fxUnrealizedGainAndLossDetailExportFileId:
description: |
File ID of the Unrealized Gain and Loss Detail report.
Returned only if you have Foreign Currency Conversion enabled
type: string
revenueDetailCsvFileId:
description: 'File ID of the Revenue Detail report in CSV format.
'
type: string
revenueDetailExcelFileId:
description: 'File ID of the Revenue Detail report in XLSX format.
'
type: string
unprocessedChargesFileId:
description: 'File ID of a report containing all unprocessed charges
for the accounting period.
'
type: string
type: object
fiscalYear:
description: 'Fiscal year of the accounting period.
'
type: string
fiscal_quarter:
description: ''
format: int64
type: integer
id:
description: 'ID of the accounting period.
'
type: string
name:
description: 'Name of the accounting period.
'
type: string
notes:
description: 'Any optional notes about the accounting period.
'
type: string
organizationLabels:
description: "The organization(s) that the object belongs to. \n\nNote:\
\ This field is available only when the Multi-Org feature is enabled.\
\ \n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
runTrialBalanceEnd:
description: 'Date and time that the trial balance was completed. If the
trial balance status is `Pending`, `Processing`, or `Error`, this field
is `null`.
'
format: date-time
type: string
runTrialBalanceErrorMessage:
description: 'If trial balance status is Error, an error message is returned
in this field.
'
type: string
runTrialBalanceStart:
description: 'Date and time that the trial balance was run. If the trial
balance status is `Pending`, this field is `null`.
'
format: date-time
type: string
runTrialBalanceStatus:
description: |
Status of the trial balance for the accounting period. Possible values:
* `Pending`
* `Processing`
* `Completed`
* `Error`
type: string
startDate:
description: 'The start date of the accounting period.
'
format: date
type: string
status:
description: |
Status of the accounting period. Possible values:
* `Open`
* `PendingClose`
* `Closed`
type: string
updatedBy:
description: 'D of the user who last updated the accounting period.
'
type: string
updatedOn:
description: 'Date and time when the accounting period was last updated.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/AccountingPeriodObjectCustomFields'
title: accountingPeriods
GETAccountingPeriodsType:
properties:
accountingPeriods:
description: 'An array of all accounting periods on your tenant. The accounting
periods are returned in ascending order of start date; that is, the latest
period is returned first.
'
items:
$ref: '#/definitions/GETAccountingPeriodWithoutSuccessType'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GETAdjustmentByIdResponseType:
allOf:
- properties:
adjustmentId:
description: 'The system generated delivery adjustment ID.
'
format: UUID
type: string
adjustmentNumber:
description: 'The system generated delivery adjustment Number.
'
format: string
type: string
amount:
description: 'The amount of the delivery adjustment.
'
format: number
type: string
billingDate:
description: 'The billing date is same as the delivery date of the delivery
adjustment, in `yyyy-mm-dd` format.
'
format: date
type: string
chargeNumber:
description: 'The charge number in the subscription for which the delivery
adjustment is created.
'
type: string
creditMemoNumber:
description: 'The Credit Memo generated for the delivery adjustment.
'
type: string
debitMemoNumber:
description: "The Debit Memo generated to write off the Credit Memo for\
\ the delivery adjustment. \n\n**Note**: This field is only visible\
\ when the delivery adjustment is in `Cancelled` status.\n"
type: string
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as Monthly
Recurring Liability.
'
type: string
deliveryDate:
description: 'The delivery adjustment date, in `yyyy-mm-dd` format.
'
format: date
type: string
deliveryDay:
description: 'The delivery adjustment day of the week.
'
format: string
type: string
reason:
description: 'The reason for the delivery adjustment.
'
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as Monthly
Recurring Charges or Overage Charges.
'
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the revenue
schedule.
'
type: string
status:
description: "The status of the delivery adjustment will be `Billed` or\
\ `Cancelled`. \n"
type: string
subscriptionNumber:
description: 'The subscription number for which the delivery adjustment
is created.
'
type: string
type: object
GETAdjustmentsBySubscriptionNumberResponseType:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
adjustments:
description: 'Container for all the delivery adjustments of a subscription.
'
items:
$ref: '#/definitions/GETAdjustmentByIdResponseType'
type: array
type: object
GETAdjustmentsResponseType:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
adjustments:
description: 'Container for delivery adjustments of a subscription.
'
items:
$ref: '#/definitions/POSTAdjustmentResponseType'
type: array
ineligibleAdjustments:
description: 'Container for ineligible delivery adjustments of a subscription.
'
items:
$ref: '#/definitions/POSTIneligibleAdjustmentResponseType'
type: array
totalAmount:
description: 'The total amount of all the delivery adjustments.
'
format: number
type: string
totalNumberOfDeliveries:
description: 'The total number of all delivery adjustments.
'
format: number
type: string
type: object
GETAllCustomObjectDefinitionsInNamespaceResponse:
example:
count: 2
definitions:
Delivery:
CreatedById: 2c92c0f9-6a07-409d-016a-0a58ab1172eb
CreatedDate: '2021-04-29T04:06:07.876Z'
Id: 362e0954-7108-49ca-abb0-6f628478e77f
UpdatedById: 2c92c0f9-6a07-409d-016a-0a58ab1172eb
UpdatedDate: '2021-04-29T04:06:07.876Z'
schema:
description: Delivery schedule for shipping products based on customer's
subscription.
filterable:
- ContactId__c
- SubscriptionId__c
- Quantity__c
- ProductName__c
- Cancelled__c
- ShippingStatus__c
- Id
- CreatedById
- UpdatedById
- CreatedDate
- UpdatedDate
label: Delivery
object: Delivery
properties:
CancellationTime__c:
description: The time at which customer cancelled this particular
shipment.
format: date-time
label: Cancellation Time
origin: custom
type: string
Cancelled__c:
default: false
description: Indicator is true when the customer has cancelled this
particular shipment.
label: Shipment Cancelled
origin: custom
type: boolean
ContactEmail__c:
description: The customer's email address.
label: Customer Email
maxLength: 128
origin: custom
type: string
ContactId__c:
description: The customer contact who will receive the shipment.
format: uuid
label: Ship To Customer
origin: custom
type: string
CreatedById:
label: CreatedById
origin: system
type: string
CreatedDate:
format: date-time
label: CreatedDate
origin: system
type: string
Id:
format: uuid
label: Id
origin: system
type: string
ProductName__c:
description: The name of the product that is being shipped to customer.
label: Product Name
maxLength: 512
origin: custom
type: string
Quantity__c:
description: The quantity of product that is being shipped to customer.
label: Quantity
maximum: 20
minimum: 1
origin: custom
type: integer
ShippingDate__c:
description: The date the product will be sent to shipping vendor
for delivery.
format: date
label: Shipping Date
origin: custom
type: string
ShippingStatus__c:
default: Pending
description: The status of the shipment - e.g. Pending, Preparing
shipment, Waiting for tracking information, or Shipped.
enum:
- Pending
- Preparing shipment
- Waiting for tracking information
- Shipped
label: Shipping Status
maxLength: 512
origin: custom
type: string
SubscriptionId__c:
description: The subscription that is associated with the shipment
record.
format: uuid
label: Subscription
origin: custom
type: string
TotalWeight__c:
description: The total weight of the product and packaging that is
being shipped to customer.
label: Total Weight (lbs.)
minimum: 0
origin: custom
type: number
UpdatedById:
label: UpdatedById
origin: system
type: string
UpdatedDate:
format: date-time
label: UpdatedDate
origin: system
type: string
relationships:
- cardinality: manyToOne
fields:
ContactId__c: Id
namespace: com_zuora
object: contact
recordConstraints:
create:
enforceValidMapping: false
- cardinality: manyToOne
fields:
SubscriptionId__c: Id
namespace: com_zuora
object: subscription
recordConstraints:
create:
enforceValidMapping: false
required:
- SubscriptionId__c
- ContactId__c
- ProductName__c
- Quantity__c
- ShippingDate__c
- Id
- CreatedById
- UpdatedById
- CreatedDate
- UpdatedDate
type: Delivery
birth_place_custom_object:
CreatedById: 2c92c0f9-6a07-409d-016a-0a58ab1172eb
CreatedDate: '2021-04-29T04:06:07.876Z'
Id: 25924740-669d-4bcd-97b2-61c7410c7563
UpdatedById: 2c92c0f9-6a07-409d-016a-0a58ab1172eb
UpdatedDate: '2021-04-29T04:06:07.876Z'
schema:
filterable:
- ContactId__c
- city__c
- Id
- CreatedById
- UpdatedById
- CreatedDate
- UpdatedDate
label: Birth Place Custom Object
object: birth_place_custom_object
properties:
ContactId__c:
format: uuid
label: Contact
origin: custom
type: string
CreatedById:
label: CreatedById
origin: system
type: string
CreatedDate:
format: date-time
label: CreatedDate
origin: system
type: string
Id:
format: uuid
label: Id
origin: system
type: string
UpdatedById:
label: UpdatedById
origin: system
type: string
UpdatedDate:
format: date-time
label: UpdatedDate
origin: system
type: string
city__c:
label: city label
maxLength: 512
origin: custom
type: string
country__c:
label: country label
maxLength: 512
origin: custom
type: string
state__c:
label: state label
maxLength: 512
origin: custom
type: string
relationships:
- cardinality: manyToOne
fields:
ContactId__c: Id
namespace: com_zuora
object: contact
recordConstraints:
create:
enforceValidMapping: false
required:
- city__c
- state__c
- country__c
- Id
- CreatedById
- UpdatedById
- CreatedDate
- UpdatedDate
type: object
type: birth_place_custom_object
properties:
count:
description: The number of objects in the `definitions` object. The value
of this field is the number of custom object definitions in the namespace.
type: integer
definitions:
$ref: '#/definitions/CustomObjectDefinitions'
type: object
GETAttachmentResponseType:
properties:
createdBy:
description: 'Zuora user id who added this attachment to the object.
'
type: string
createdOn:
description: 'Date and time when the attachment was added to the object.
'
format: date-time
type: string
description:
description: 'Description of the attachment.
'
type: string
fileContentType:
description: 'File type.
'
type: string
fileId:
description: 'File ID of the attached file. Use this file ID with [Get files](https://developer.zuora.com/api-references/api/operation/GET_Files)
to download the file.
'
type: string
fileName:
description: 'Attachment file name.
'
type: string
id:
description: 'Id of this attachment.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
updatedBy:
description: 'Zuora user id who last updated the attachment.
'
type: string
updatedOn:
description: 'Date and time when the attachment was last updated.
'
format: date-time
type: string
type: object
GETAttachmentResponseWithoutSuccessType:
properties:
createdBy:
description: 'Zuora user id of who added this attachment to the object.
'
type: string
createdOn:
description: 'Date and time when the attachment was added to the object.
'
format: date-time
type: string
description:
description: 'Description of the attachment.
'
type: string
fileContentType:
description: 'Attachment file type.
'
type: string
fileId:
description: 'File ID of the attached file. Use this file ID with [Get files](https://developer.zuora.com/api-references/api/operation/GET_Files)
to download the file.
'
type: string
fileName:
description: 'Attachment file name.
'
type: string
id:
description: 'Zuora id of this attachement.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
updatedBy:
description: 'Zuora user id who last updated the attachment.
'
type: string
updatedOn:
description: 'Date and time when the attachment was last updated.
'
format: date-time
type: string
title: attachments
type: object
GETAttachmentsResponseType:
properties:
attachments:
description: 'Container for one or more attachments.
'
items:
$ref: '#/definitions/GETAttachmentResponseWithoutSuccessType'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GETBillingDocumentFilesDeletionJobResponse:
properties:
id:
description: 'The unique ID of the billing document file deletion job.
'
type: string
status:
description: 'The status of the billing document file deletion job.
'
enum:
- Pending
- Processing
- Completed
- Error
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETBillingDocumentsResponseType:
properties:
accountId:
description: The ID of the customer account associated with the billing document.
format: uuid
type: string
amount:
description: 'The total amount of the billing document.
'
format: double
type: number
balance:
description: 'The balance of the billing document.
'
format: double
type: number
documentDate:
description: 'The date of the billing document. The date can be the invoice
date for invoices, credit memo date for credit memos, or debit memo date
for debit memos.
'
format: date
type: string
documentNumber:
description: 'The number of the billing document.
'
type: string
documentType:
description: 'The type of the billing document.
'
enum:
- Invoice
- CreditMemo
- DebitMemo
type: string
id:
description: 'The ID of the billing document.
'
type: string
status:
description: 'The current status of the billing document.
'
enum:
- Draft
- Posted
- Canceled
- Error
type: string
title: documents
type: object
GETCMTaxItemType:
allOf:
- properties:
appliedAmount:
description: 'The applied amount of the taxation item.
'
format: double
type: number
exemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
financeInformation:
description: 'Container for the finance information related to the taxation
item.
'
properties:
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
type: string
onAccountAccountingCodeType:
description: 'The type of the accounting code that maps to an on account
in your accounting system.
'
type: string
salesTaxPayableAccountingCode:
description: 'The accounting code for the sales taxes payable.
'
type: string
salesTaxPayableAccountingCodeType:
description: 'The type of the accounting code for the sales taxes payable.
'
type: string
type: object
id:
description: 'The ID of the taxation item.
'
type: string
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of the
`taxCode` field.
'
type: string
name:
description: 'The name of the taxation item.
'
type: string
refundAmount:
description: 'The amount of the refund on the taxation item.
'
format: double
type: number
sourceTaxItemId:
description: 'The ID of the source taxation item.
'
type: string
taxAmount:
description: 'The amount of taxation.
'
format: double
type: number
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific credit memo.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date that the tax is applied to the credit memo, in `yyyy-mm-dd`
format.
'
format: date
type: string
taxRate:
description: 'The tax rate applied to the credit memo.
'
format: double
type: number
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'The type of the tax rate.
'
enum:
- Percentage
- FlatFee
type: string
unappliedAmount:
description: 'The unapplied amount of the taxation item.
'
format: double
type: number
type: object
- $ref: '#/definitions/CreditTaxationItemObjectCustomFields'
title: creditTaxItems
GETCMTaxItemTypeNew:
allOf:
- properties:
appliedAmount:
description: 'The applied amount of the taxation item.
'
format: double
type: number
exemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
financeInformation:
description: 'Container for the finance information related to the taxation
item.
'
properties:
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
type: string
onAccountAccountingCodeType:
description: 'The type of the accounting code that maps to an on account
in your accounting system.
'
type: string
salesTaxPayableAccountingCode:
description: 'The accounting code for the sales taxes payable.
'
type: string
salesTaxPayableAccountingCodeType:
description: 'The type of the accounting code for the sales taxes payable.
'
type: string
type: object
id:
description: 'The ID of the taxation item.
'
type: string
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of the
`taxCode` field.
'
type: string
name:
description: 'The name of the taxation item.
'
type: string
refundAmount:
description: 'The amount of the refund on the taxation item.
'
format: double
type: number
sourceTaxItemId:
description: 'The ID of the source taxation item.
'
type: string
taxAmount:
description: 'The amount of taxation.
'
format: double
type: number
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific credit memo.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date that the tax is applied to the credit memo, in `yyyy-mm-dd`
format.
'
format: date
type: string
taxRate:
description: 'The tax rate applied to the credit memo.
'
format: double
type: number
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'The type of the tax rate.
'
enum:
- Percentage
- FlatFee
type: string
unappliedAmount:
description: 'The unapplied amount of the taxation item.
'
format: double
type: number
type: object
- $ref: '#/definitions/CreditTaxationItemObjectCustomFields'
title: data
GETCalloutHistoryVOType:
properties:
attemptedNum:
description: 'The number of times the callout was retried.
'
type: string
createTime:
description: 'The time that the calloutHistory record was made.
'
type: string
eventCategory:
description: 'The event category for the callout.
'
type: string
eventContext:
description: 'The context of the callout event.
'
type: string
notification:
description: 'The name of the notification.
'
type: string
requestMethod:
description: 'The request method set in notifications settings.
'
type: string
requestUrl:
description: 'The base url set in notifications settings.
'
type: string
responseCode:
description: 'The responseCode of the request.
'
type: string
responseContent:
description: ''
type: string
title: calloutHistories
type: object
GETCalloutHistoryVOsType:
properties:
calloutHistories:
description: 'A container for callout histories.
'
items:
$ref: '#/definitions/GETCalloutHistoryVOType'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GETCancelAdjustmentResponseType:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
debitMemoNumber:
description: "The Debit Memo generated to write off the Credit Memo for\
\ the delivery adjustment. \n"
type: string
type: object
GETCatalogGroupProductRatePlanResponse:
properties:
description:
description: 'The description of the product rate plan.
'
type: string
effectiveEndDate:
description: 'The effective end Date of the product rate plan.
'
type: string
effectiveStartDate:
description: 'The effective start date of the product rate plan.
'
type: string
grade:
description: 'The grade of the product rate plan.
'
type: number
id:
description: 'The ID of the product rate plan.
'
type: string
name:
description: 'The name of the product rate plan.
'
type: string
organizationLabels:
description: "The organization(s) that the object belongs to. \n\nNote: This\
\ field is available only when the Multi-Org feature is enabled. \
\ \n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
status:
description: 'The status of the product rate plan.
'
enum:
- Active
- Expired
- NotStarted
type: string
title: productRatePlans
type: object
GETCatalogType:
properties:
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
products:
description: 'Container for one or more products:
'
items:
$ref: '#/definitions/GETProductType'
type: array
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GETChargeDefinitionPricingTier:
description: 'An array of charge pricing tiers.
'
items:
properties:
currency:
description: 'The code corresponding to the currency for the tier''s price.
'
type: string
discountAmount:
description: 'The specific amount for a fixed discount. The field is applicable
only for charges based on the Discount-Fixed Amount charge model.
'
format: double
type: number
discountPercentage:
description: 'The percentage of discount for a percentage discount. The
field is applicable only for charges based on the Discount-Percentage
charge model.
'
format: double
type: number
endingUnit:
description: 'The end number of a range of units for the tier. The field
is applicable only for charges based on the Tiered Pricing or Tiered with
Overage Pricing charge model.
'
format: double
type: number
overagePrice:
description: 'Indicates whether the price is an overage price, which is
the price when usage surpasses the last defined tier.
'
format: double
type: number
price:
description: 'The price of the tier if the price format is flat fee, or
the price of each unit in the tier if the price format is per unit.
'
format: double
type: number
startingUnit:
description: 'The starting number of a range of units for the tier. The
field is applicable only for charges based on the Tiered Pricing or Tiered
with Overage Pricing charge model.
'
format: double
type: number
type: object
title: pricingTiers
type: array
GETContactSnapshotResponse:
allOf:
- properties:
address1:
description: 'The first line for the address of the contact, which is often
a street address or business name.
'
type: string
address2:
description: 'The second line for the address of the contact, which is mostly
the locality.
'
type: string
city:
description: 'The city for the address of the contact.
'
type: string
contactId:
description: 'The Zuora ID of the contact who the snapshot belongs to.
'
type: string
country:
description: 'The country for the address of the contact.
'
type: string
county:
description: 'The county for the address of the contact. The field value
might optionally be used by Zuora Tax to calculate county tax.
'
type: string
description:
description: 'A description of the contact.
'
type: string
fax:
description: 'The fax number of the contact.
'
format: number
type: string
firstName:
description: 'The first name of the contact.
'
type: string
homePhone:
description: 'The home phone number of the contact.
'
format: number
type: string
id:
description: 'The unique ID of the contact snapshot.
'
type: string
lastName:
description: 'The last name of the contact.
'
type: string
mobilePhone:
description: 'The mobile phone number of the contact.
'
format: number
type: string
nickname:
description: 'A nickname for the contact.
'
type: string
otherPhone:
description: 'An additional phone number for the contact.
'
type: string
otherPhoneType:
description: 'The type of the additional phone number.
'
enum:
- Work
- Mobile
- Home
- Other
type: string
personalEmail:
description: 'The personal email address of the contact.
'
type: string
postalCode:
description: 'The postal code for the address of the contact.
'
format: number
type: string
state:
description: 'The state or province for the address of the contact.
'
type: string
taxRegion:
description: 'If using Zuora Tax rules.
'
type: string
workEmail:
description: 'The business email address of the contact.
'
type: string
workPhone:
description: 'The business email address of the contact.
'
format: number
type: string
type: object
- $ref: '#/definitions/ContactSnapshotObjectCustomFields'
GETCreditMemoCollectionType:
properties:
creditmemos:
description: 'Container for credit memos.
'
items:
$ref: '#/definitions/GETCreditMemoTypewithSuccess'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETCreditMemoItemType:
allOf:
- properties:
amount:
description: 'The amount of the credit memo item. For tax-inclusive credit
memo items, the amount indicates the credit memo item amount including
tax. For tax-exclusive credit memo items, the amount indicates the credit
memo item amount excluding tax.
'
format: double
type: number
amountWithoutTax:
description: 'The credit memo item amount excluding tax.
'
format: double
type: number
appliedAmount:
description: 'The applied amount of the credit memo item.
'
format: double
type: number
appliedToItemId:
description: 'The unique ID of the credit memo item that the discount charge
is applied to.
'
type: string
comment:
description: |
Comments about the credit memo item.
**Note**: This field is not available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
createdById:
description: 'The ID of the Zuora user who created the credit memo item.
'
type: string
createdDate:
description: 'The date and time when the credit memo item was created, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
creditFromItemId:
description: 'The ID of the credit from item.
'
type: string
creditFromItemSource:
description: 'The type of the credit from item.
'
enum:
- InvoiceItem
- CreditMemoItem
type: string
creditTaxItems:
description: "Container for the taxation items of the credit memo item.\
\ \n\n**Note**: This field is not available if you set the `zuora-version`\
\ request header to `239.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
items:
$ref: '#/definitions/GETCMTaxItemType'
type: array
description:
description: |
The description of the credit memo item.
**Note**: This field is only available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
excludeItemBillingFromRevenueAccounting:
description: "The flag to exclude the credit memo item from revenue accounting.\n\
\n**Note**: This field is only available if you have the Billing - Revenue\
\ Integration feature enabled. \n"
type: boolean
financeInformation:
description: 'Container for the finance information related to the credit
memo item.
'
properties:
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as
Monthly Recurring Liability.
'
type: string
deferredRevenueAccountingCodeType:
description: 'The type of the deferred revenue accounting code, such
as Deferred Revenue.''
'
type: string
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
type: string
onAccountAccountingCodeType:
description: 'The type of the accounting code that maps to an on account
in your accounting system.
'
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as
Monthly Recurring Charges or Overage Charges.
'
type: string
recognizedRevenueAccountingCodeType:
description: 'The type of the recognized revenue accounting code, such
as Sales Revenue or Sales Discount.
'
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the
revenue schedule.
'
type: string
revenueScheduleNumber:
description: 'Revenue schedule number. The revenue schedule number is
always prefixed with "RS", for example, RS-00000001.
'
type: string
type: object
id:
description: 'The ID of the credit memo item.
'
type: string
invoiceScheduleId:
description: "The ID of the invoice schedule associated with the credit\
\ memo item. \n\n**Note**: This field is available only if you have the\
\ Billing Schedule feature enabled.\n"
type: string
invoiceScheduleItemId:
description: |
The ID of the invoice schedule item associated with the credit memo item. The credit memo item is generated during the processing of the invoice schedule item.
**Note**: This field is available only if you have the Billing Schedule feature enabled.
type: string
numberOfDeliveries:
description: "The number of deliveries dedicated to the Delivery Pricing\
\ charges. The value might be different, as follows:\n- For the credit\
\ memo generated by a bill run, this field has a value. \n- For the credit\
\ memo generated from an invoice, this field is blank.\n\n**Note**: This\
\ field is available only if you have the Delivery Pricing feature enabled.\
\ \n"
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
processingType:
description: "The kind of the charge for the credit memo item. Its possible\
\ values are `Charge` and `Discount`. \n"
type: string
quantity:
description: 'The number of units for the credit memo item.
'
format: double
type: number
refundAmount:
description: 'The amount of the refund on the credit memo item.
'
format: double
type: number
serviceEndDate:
description: 'The service end date of the credit memo item.
'
format: date
type: string
serviceStartDate:
description: 'The service start date of the credit memo item. If the associated
charge is a one-time fee, this date is the date of that charge.
'
format: date
type: string
sku:
description: 'The SKU for the product associated with the credit memo item.
'
type: string
skuName:
description: 'The name of the SKU.
'
type: string
soldToContactId:
description: |
The ID of the sold-to contact associated with the credit memo item.
**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.
type: string
soldToContactSnapshotId:
description: |
The ID of the sold-to contact snapshot associated with the credit memo item.
**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.
type: string
sourceItemId:
description: |
The ID of the source item.
- If the value of the `sourceItemType` field is `SubscriptionComponent` , the value of this field is the ID of the corresponding rate plan charge.
- If the value of the `sourceItemType` field is `InvoiceDetail`, the value of this field is the ID of the corresponding invoice item.
- If the value of the `sourceItemType` field is `ProductRatePlanCharge` , the value of this field is the ID of the corresponding product rate plan charge.
- If the value of the `sourceItemType` field is `OrderLineItem` , the value of this field is the ID of the corresponding return order line item.
type: string
sourceItemType:
description: |
The type of the source item.
- If a credit memo is not created from an invoice or a product rate plan charge or a return order line item,, the value of this field is `SubscriptionComponent`.
- If a credit memo is created from an invoice, the value of this field is `InvoiceDetail`.
- If a credit memo is created from a product rate plan charge, the value of this field is `ProductRatePlanCharge`.
- If a credit memo is created from a return order line item, the value of this field is `OrderLineItem`.
enum:
- SubscriptionComponent
- InvoiceDetail
- ProductRatePlanCharge
- OrderLineItem
type: string
subscriptionId:
description: 'The ID of the subscription associated with the credit memo
item.
'
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
taxMode:
description: 'The tax mode of the credit memo item, indicating whether the
amount of the credit memo item includes tax.
'
enum:
- TaxExclusive
- TaxInclusive
type: string
taxationItems:
description: "Container for the taxation items of the credit memo item.\
\ \n\n**Note**: This field is only available if you set the `zuora-version`\
\ request header to `239.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
properties:
data:
description: 'List of taxation items.
'
items:
$ref: '#/definitions/GETCMTaxItemTypeNew'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
type: object
unappliedAmount:
description: 'The unapplied amount of the credit memo item.
'
format: double
type: number
unitOfMeasure:
description: 'The units to measure usage.
'
type: string
unitPrice:
description: 'The per-unit price of the credit memo item.
'
format: double
type: number
updatedById:
description: 'The ID of the Zuora user who last updated the credit memo
item.
'
type: string
updatedDate:
description: 'The date and time when the credit memo item was last updated,
in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/CreditMemoItemObjectCustomFields'
GETCreditMemoItemTypewithSuccess:
allOf:
- properties:
amount:
description: 'The amount of the credit memo item. For tax-inclusive credit
memo items, the amount indicates the credit memo item amount including
tax. For tax-exclusive credit memo items, the amount indicates the credit
memo item amount excluding tax.
'
format: double
type: number
amountWithoutTax:
description: 'The credit memo item amount excluding tax.
'
format: double
type: number
appliedAmount:
description: 'The applied amount of the credit memo item.
'
format: double
type: number
appliedToItemId:
description: 'The unique ID of the credit memo item that the discount charge
is applied to.
'
type: string
comment:
description: |
Comments about the credit memo item.
**Note**: This field is not available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
createdById:
description: 'The ID of the Zuora user who created the credit memo item.
'
type: string
createdDate:
description: 'The date and time when the credit memo item was created, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
creditFromItemId:
description: 'The ID of the credit from item.
'
type: string
creditFromItemSource:
description: 'The type of the credit from item.
'
enum:
- InvoiceItem
- CreditMemoItem
type: string
creditTaxItems:
description: "Container for the taxation items of the credit memo item.\
\ \n\n**Note**: This field is not available if you set the `zuora-version`\
\ request header to `239.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
items:
$ref: '#/definitions/GETCMTaxItemType'
type: array
description:
description: |
The description of the credit memo item.
**Note**: This field is only available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
excludeItemBillingFromRevenueAccounting:
description: "The flag to exclude the credit memo item from revenue accounting.\n\
\n**Note**: This field is only available if you have the Billing - Revenue\
\ Integration feature enabled. \n"
type: boolean
financeInformation:
description: 'Container for the finance information related to the credit
memo item.
'
properties:
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as
Monthly Recurring Liability.
'
type: string
deferredRevenueAccountingCodeType:
description: "The type of the deferred revenue accounting code, such\
\ as Deferred Revenue. \n"
type: string
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
type: string
onAccountAccountingCodeType:
description: 'The type of the accounting code that maps to an on account
in your accounting system.
'
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as
Monthly Recurring Charges or Overage Charges.
'
type: string
recognizedRevenueAccountingCodeType:
description: "The type of the recognized revenue accounting code, such\
\ as Sales Revenue or Sales Discount. \n"
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the
revenue schedule.
'
type: string
revenueScheduleNumber:
description: 'Revenue schedule number. The revenue schedule number is
always prefixed with "RS", for example, RS-00000001.
'
type: string
type: object
id:
description: 'The ID of the credit memo item.
'
type: string
invoiceScheduleId:
description: "The ID of the invoice schedule associated with the credit\
\ memo item. \n\n**Note**: This field is available only if you have the\
\ Billing Schedule feature enabled.\n"
type: string
invoiceScheduleItemId:
description: |
The ID of the invoice schedule item associated with the credit memo item. The credit memo item is generated during the processing of the invoice schedule item.
**Note**: This field is available only if you have the Billing Schedule feature enabled.
type: string
numberOfDeliveries:
description: "The number of deliveries dedicated to the Delivery Pricing\
\ charges. The value might be different, as follows:\n- For the credit\
\ memo generated by a bill run, this field has a value. \n- For the credit\
\ memo generated from an invoice, this field is blank.\n\n**Note**: This\
\ field is available only if you have the Delivery Pricing feature enabled.\n"
type: number
processingType:
description: "The kind of the charge for the credit memo item. Its possible\
\ values are `Charge` and `Discount`. \n"
type: string
quantity:
description: 'The number of units for the credit memo item.
'
format: double
type: number
refundAmount:
description: 'The amount of the refund on the credit memo item.
'
format: double
type: number
serviceEndDate:
description: "The service end date of the credit memo item. \n"
format: date
type: string
serviceStartDate:
description: 'The service start date of the credit memo item.
'
format: date
type: string
sku:
description: 'The SKU for the product associated with the credit memo item.
'
type: string
skuName:
description: 'The name of the SKU.
'
type: string
soldToContactId:
description: |
The ID of the sold-to contact associated with the credit memo item.
**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.
type: string
soldToContactSnapshotId:
description: |
The ID of the sold-to contact snapshot associated with the credit memo item.
**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.
type: string
sourceItemId:
description: |
The ID of the source item.
- If the value of the `sourceItemType` field is `SubscriptionComponent` , the value of this field is the ID of the corresponding rate plan charge.
- If the value of the `sourceItemType` field is `InvoiceDetail`, the value of this field is the ID of the corresponding invoice item.
- If the value of the `sourceItemType` field is `ProductRatePlanCharge` , the value of this field is the ID of the corresponding product rate plan charge.
- If the value of the `sourceItemType` field is `OrderLineItem` , the value of this field is the ID of the corresponding return order line item.
type: string
sourceItemType:
description: "The type of the source item.\n\n- If a credit memo is not\
\ created from an invoice or a product rate plan charge or a return order\
\ line item, the value of this field is `SubscriptionComponent`. \n- If\
\ a credit memo is created from an invoice, the value of this field is\
\ `InvoiceDetail`.\n- If a credit memo is created from a product rate\
\ plan charge, the value of this field is `ProductRatePlanCharge`.\n-\
\ If a credit memo is created from a return order line item, the value\
\ of this field is `OrderLineItem`.\n \n"
enum:
- SubscriptionComponent
- InvoiceDetail
- ProductRatePlanCharge
- OrderLineItem
type: string
subscriptionId:
description: 'The ID of the subscription associated with the credit memo
item.
'
type: string
taxMode:
description: 'The tax mode of the credit memo item, indicating whether the
amount of the credit memo item includes tax.
'
enum:
- TaxExclusive
- TaxInclusive
type: string
taxationItems:
description: "Container for the taxation items of the credit memo item.\
\ \n\n**Note**: This field is only available if you set the `zuora-version`\
\ request header to `239.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
properties:
data:
description: 'List of taxation items.
'
items:
$ref: '#/definitions/GETCMTaxItemTypeNew'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
type: object
unappliedAmount:
description: 'The unapplied amount of the credit memo item.
'
format: double
type: number
unitOfMeasure:
description: 'The units to measure usage.
'
type: string
unitPrice:
description: 'The per-unit price of the credit memo item.
'
format: double
type: number
updatedById:
description: 'The ID of the Zuora user who last updated the credit memo
item.
'
type: string
updatedDate:
description: 'The date and time when the credit memo item was last updated,
in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/CreditMemoItemObjectCustomFields'
title: items
GETCreditMemoItemsListType:
properties:
items:
description: 'Container for credit memo items.
'
items:
$ref: '#/definitions/GETCreditMemoItemTypewithSuccess'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETCreditMemoPartType:
properties:
amount:
description: 'The amount of the credit memo part.
'
format: double
type: number
createdById:
description: 'The ID of the Zuora user who created the credit memo part.
'
type: string
createdDate:
description: 'The date and time when the credit memo part was created, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
debitMemoId:
description: 'The ID of the debit memo associated with the credit memo part.
'
type: string
id:
description: 'The ID of the credit memo part.
'
type: string
invoiceId:
description: 'The ID of the invoice associated with the credit memo part.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
updatedById:
description: 'The ID of the Zuora user who last updated the credit memo part.
'
type: string
updatedDate:
description: 'The date and time when the credit memo part was last upated,
in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
GETCreditMemoPartTypewithSuccess:
properties:
amount:
description: 'The amount of the credit memo part.
'
format: double
type: number
createdById:
description: 'The ID of the Zuora user who created the credit memo part.
'
type: string
createdDate:
description: 'The date and time when the credit memo part was created, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
debitMemoId:
description: 'The ID of the debit memo associated with the credit memo part.
'
type: string
id:
description: 'The ID of the credit memo part.
'
type: string
invoiceId:
description: 'The ID of the invoice associated with the credit memo part.
'
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the credit memo part.
'
type: string
updatedDate:
description: 'The date and time when the credit memo part was last upated,
in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
title: parts
type: object
GETCreditMemoPartsCollectionType:
properties:
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
parts:
description: 'Container for credit memo parts.
'
items:
$ref: '#/definitions/GETCreditMemoPartTypewithSuccess'
type: array
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETCreditMemoType:
allOf:
- properties:
accountId:
description: 'The ID of the customer account associated with the credit
memo.
'
type: string
accountNumber:
description: 'The number of the customer account associated with the credit
memo.
'
type: string
amount:
description: 'The total amount of the credit memo.
'
format: double
type: number
appliedAmount:
description: 'The applied amount of the credit memo.
'
format: double
type: number
autoApplyUponPosting:
description: 'Whether the credit memo automatically applies to the invoice
upon posting.
'
type: boolean
billToContactId:
description: |
The ID of the bill-to contact associated with the credit memo.
The value of this field is `null` if you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled.
type: string
billToContactSnapshotId:
description: |
The ID of the bill-to contact snapshot associated with the credit memo.
The value of this field is `null` if the bill rule [Preserve snapshot of bill-to and sold-to contacts when billing documents are posted](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Billing_Rules#Preserve_snapshot_of_bill-to_and_sold-to_contacts_when_billing_documents_are_posted) is disabled.
type: string
cancelledById:
description: 'The ID of the Zuora user who cancelled the credit memo.
'
type: string
cancelledOn:
description: 'The date and time when the credit memo was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: 'Comments about the credit memo.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the credit memo.
'
type: string
createdDate:
description: 'The date and time when the credit memo was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
creditMemoDate:
description: 'The date when the credit memo takes effect, in `yyyy-mm-dd`
format. For example, 2017-05-20.
'
format: date
type: string
currency:
description: 'A currency defined in the web-based UI administrative settings.
'
type: string
einvoiceErrorCode:
description: |
The error code returned when the e-invoice file status is `Failed`. This code can either be a Zuora-generated error code or one returned by a third-party e-invoicing service provider.
**Note**: This field is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
type: string
einvoiceErrorMessage:
description: |
The error message returned when the e-invoice file status is `Failed`. This message can either be a Zuora-generated error message or one returned by a third-party e-invoicing service provider.
**Note**: This field is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
type: string
einvoiceFileId:
description: |
The ID of the e-invoice file generated for the credit memo.
**Note**: This field is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
type: string
einvoiceStatus:
description: "The status of the e-invoice file generation for the credit\
\ memo. \n\n- If e-invoice file generation succeeds, both the error code\
\ and message are empty, and the `eInvoiceFileId` field stores the ID\
\ of the generated e-invoice file.\n- If a failure occurs during e-invoice\
\ file generation, an error code and an error message are returned respectively\
\ in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n\n**Note**:\
\ This field is available only if you have the E-Invoicing feature in **Early Adopter** phase\
\ enabled.\n"
enum:
- Processing
- Success
- Failed
type: string
excludeFromAutoApplyRules:
description: 'Whether the credit memo is excluded from the rule of automatically
applying credit memos to invoices.
'
type: boolean
excludeItemBillingFromRevenueAccounting:
description: "The flag to exclude the credit memo item from revenue accounting.\n\
\n**Note**: This field is only available if you have the Billing - Revenue\
\ Integration feature enabled. \n"
type: boolean
id:
description: 'The unique ID of the credit memo.
'
type: string
latestPDFFileId:
description: 'The ID of the latest PDF file generated for the credit memo.
'
type: string
number:
description: 'The unique identification number of the credit memo.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
postedById:
description: 'The ID of the Zuora user who posted the credit memo.
'
type: string
postedOn:
description: 'The date and time when the credit memo was posted, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty.
'
type: string
referredInvoiceId:
description: 'The ID of a referred invoice.
'
type: string
refundAmount:
description: 'The amount of the refund on the credit memo.
'
format: double
type: number
reversed:
description: 'Whether the credit memo is reversed.
'
type: boolean
sequenceSetId:
description: |
The ID of the sequence set associated with the credit memo.
The value of this field is `null` if you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled.
type: string
source:
description: |
The source of the credit memo.
Possible values:
- `BillRun`: The credit memo is generated by a bill run.
- `API`: The credit memo is created by calling the [Invoice and collect](https://developer.zuora.com/api-references/api/operation/POST_TransactionInvoicePayment) operation, or by calling the Orders, Order Line Items, or Fulfillments API operations.
- `ApiSubscribe`: The credit memo is created by calling the [Create subscription](https://developer.zuora.com/api-references/api/operation/POST_Subscription) and [Create account](https://developer.zuora.com/api-references/api/operation/POST_Account) operation.
- `ApiAmend`: The credit memo is created by calling the [Update subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription) operation.
- `AdhocFromPrpc`: The credit memo is created from a product rate plan charge through the Zuora UI or by calling the [Create a credit memo from a charge](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromPrpc) operation.
- `AdhocFromInvoice`: The credit memo is created from an invoice or created by reversing an invoice. You can create a credit memo from an invoice through the Zuora UI or by calling the [Create credit memo from invoice](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromInvoice) operation. You can create a credit memo by reversing an invoice through the Zuora UI or by calling the [Reverse invoice](https://developer.zuora.com/api-references/api/operation/PUT_ReverseInvoice) operation.
type: string
sourceId:
description: |
The ID of the credit memo source.
If a credit memo is generated from a bill run, the value is the number of the corresponding bill run. Otherwise, the value is `null`.
type: string
sourceType:
description: 'The type of the credit memo source.
'
enum:
- Subscription
- Standalone
- Invoice
- Order
- CreditMemo
- Consolidation
type: string
status:
description: 'The status of the credit memo.
'
enum:
- Draft
- Posted
- Canceled
- Error
- PendingForTax
- Generating
- CancelInProgress
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
targetDate:
description: 'The target date for the credit memo, in `yyyy-mm-dd` format.
For example, 2017-07-20.
'
format: date
type: string
taxAmount:
description: 'The amount of taxation.
'
format: double
type: number
taxMessage:
description: 'The message about the status of tax calculation related to
the credit memo. If tax calculation fails in one credit memo, this field
displays the reason for the failure.
'
type: string
taxStatus:
description: |
The status of tax calculation related to the credit memo.
**Note**: This field is only applicable to tax calculation by third-party tax engines.
enum:
- Complete
- Error
type: string
totalTaxExemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
transferredToAccounting:
description: 'Whether the credit memo was transferred to an external accounting
system. Use this field for integration with accounting systems, such as
NetSuite.
'
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedAmount:
description: 'The unapplied amount of the credit memo.
'
format: double
type: number
updatedById:
description: 'The ID of the Zuora user who last updated the credit memo.
'
type: string
updatedDate:
description: 'The date and time when the credit memo was last updated, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/CreditMemoObjectNSFields'
- $ref: '#/definitions/CreditMemoObjectCustomFields'
GETCreditMemoTypewithSuccess:
allOf:
- properties:
accountId:
description: 'The ID of the customer account associated with the credit
memo.
'
type: string
accountNumber:
description: 'The number of the account associated with the credit memo.
'
type: string
amount:
description: 'The total amount of the credit memo.
'
format: double
type: number
appliedAmount:
description: 'The applied amount of the credit memo.
'
format: double
type: number
autoApplyUponPosting:
description: 'Whether the credit memo automatically applies to the invoice
upon posting.
'
type: boolean
billToContactId:
description: |
The ID of the bill-to contact associated with the credit memo.
The value of this field is `null` if you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled.
type: string
cancelledById:
description: 'The ID of the Zuora user who cancelled the credit memo.
'
type: string
cancelledOn:
description: 'The date and time when the credit memo was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: 'Comments about the credit memo.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the credit memo.
'
type: string
createdDate:
description: 'The date and time when the credit memo was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
creditMemoDate:
description: 'The date when the credit memo takes effect, in `yyyy-mm-dd`
format. For example, 2017-05-20.
'
format: date
type: string
currency:
description: 'A currency defined in the web-based UI administrative settings.
'
type: string
einvoiceErrorCode:
description: |
The error code returned when the e-invoice file status is `Failed`. This code can either be a Zuora-generated error code or one returned by a third-party e-invoicing service provider.
**Note**: This field is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
type: string
einvoiceErrorMessage:
description: |
The error message returned when the e-invoice file status is `Failed`. This message can either be a Zuora-generated error message or one returned by a third-party e-invoicing service provider.
**Note**: This field is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
type: string
einvoiceFileId:
description: |
The ID of the e-invoice file generated for the credit memo.
**Note**: This field is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
type: string
einvoiceStatus:
description: "The status of the e-invoice file generation for the credit\
\ memo. \n\n- If e-invoice file generation succeeds, both the error code\
\ and message are empty, and the `eInvoiceFileId` field stores the ID\
\ of the generated e-invoice file.\n- If a failure occurs during e-invoice\
\ file generation, an error code and an error message are returned respectively\
\ in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n\n**Note**:\
\ This field is available only if you have the E-Invoicing feature in **Early Adopter** phase\
\ enabled.\n"
enum:
- Processing
- Success
- Failed
type: string
excludeFromAutoApplyRules:
description: 'Whether the credit memo is excluded from the rule of automatically
applying unapplied credit memos to invoices and debit memos during payment
runs.
'
type: boolean
id:
description: 'The unique ID of the credit memo.
'
type: string
latestPDFFileId:
description: 'The ID of the latest PDF file generated for the credit memo.
'
type: string
number:
description: 'The unique identification number of the credit memo.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
postedById:
description: 'The ID of the Zuora user who posted the credit memo.
'
type: string
postedOn:
description: 'The date and time when the credit memo was posted, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty.
'
type: string
referredInvoiceId:
description: 'The ID of a referred invoice.
'
type: string
refundAmount:
description: 'The amount of the refund on the credit memo.
'
format: double
type: number
reversed:
description: 'Whether the credit memo is reversed.
'
type: boolean
sequenceSetId:
description: |
The ID of the sequence set associated with the credit memo.
The value of this field is `null` if you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled.
type: string
source:
description: |
The source of the credit memo.
Possible values:
- `BillRun`: The credit memo is generated by a bill run.
- `API`: The credit memo is created by calling the [Invoice and collect](https://developer.zuora.com/api-references/api/operation/POST_TransactionInvoicePayment) operation, or by calling the Orders, Order Line Items, or Fulfillments API operations.
- `ApiSubscribe`: The credit memo is created by calling the [Create subscription](https://developer.zuora.com/api-references/api/operation/POST_Subscription) and [Create account](https://developer.zuora.com/api-references/api/operation/POST_Account) operation.
- `ApiAmend`: The credit memo is created by calling the [Update subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription) operation.
- `AdhocFromPrpc`: The credit memo is created from a product rate plan charge through the Zuora UI or by calling the [Create a credit memo from a charge](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromPrpc) operation.
- `AdhocFromInvoice`: The credit memo is created from an invoice or created by reversing an invoice. You can create a credit memo from an invoice through the Zuora UI or by calling the [Create credit memo from invoice](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromInvoice) operation. You can create a credit memo by reversing an invoice through the Zuora UI or by calling the [Reverse invoice](https://developer.zuora.com/api-references/api/operation/PUT_ReverseInvoice) operation.
type: string
sourceId:
description: "The ID of the credit memo source. \n\nIf a credit memo is\
\ generated from a bill run, the value is the number of the corresponding\
\ bill run. Otherwise, the value is `null`.\n"
type: string
sourceType:
description: 'The type of the credit memo source.
'
enum:
- Subscription
- Standalone
- Invoice
- Order
- CreditMemo
- Consolidation
type: string
status:
description: "The status of the credit memo. \n"
enum:
- Draft
- Posted
- Canceled
- Error
- PendingForTax
- Generating
- CancelInProgress
type: string
targetDate:
description: 'The target date for the credit memo, in `yyyy-mm-dd` format.
For example, 2017-07-20.
'
format: date
type: string
taxAmount:
description: 'The amount of taxation.
'
format: double
type: number
taxMessage:
description: 'The message about the status of tax calculation related to
the credit memo. If tax calculation fails in one credit memo, this field
displays the reason for the failure.
'
type: string
taxStatus:
description: |
The status of tax calculation related to the credit memo.
**Note**: This field is only applicable to tax calculation by third-party tax engines.
enum:
- Complete
- Error
type: string
totalTaxExemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
transferredToAccounting:
description: "Whether the credit memo was transferred to an external accounting\
\ system. Use this field for integration with accounting systems, such\
\ as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedAmount:
description: 'The unapplied amount of the credit memo.
'
format: double
type: number
updatedById:
description: 'The ID of the Zuora user who last updated the credit memo.
'
type: string
updatedDate:
description: 'The date and time when the credit memo was last updated, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/CreditMemoObjectNSFields'
- $ref: '#/definitions/CreditMemoObjectCustomFields'
title: creditmemos
GETCustomExchangeRatesDataType:
properties:
DATE:
description: 'Container for exchange rate information on a given date. The
field name is the date in `yyyy-mm-dd` format, for example, 2016-01-15.
'
properties:
CURRENCY:
description: |
The exchange rate on the **providerExchangeRateDate**. The field name is the ISO currency code of the currency, for example, `EUR`.
There may be more than one currency returned for a given **providerExchangeRateDate**. If the rate for a certain currency is not available on the **providerExchangeRateDate**, the currency is not returned in the response.
type: string
providerExchangeRateDate:
description: |
The date of the exchange rate used. The date is in `yyyy-mm-dd` format.
Corresponds to the value specified in the Provider Exchange Rate Date column in the Import Foreign Exchange Rates template when you uploaded the rates through the Mass Updater.
format: date
type: string
title: List of exchange rates
type: object
title: rates
type: object
GETCustomExchangeRatesType:
properties:
inverse:
description: |
- If `true`, the exchange rate in the response is an inverse exchange rate.
- If `false`, the exchange rate in the response is not an inverse exchange rate.
The value is determined by the **Use inverse rate** checkbox in your Zuora Finance Manage Currency Conversion settings.
type: boolean
rates:
description: "Container for exchange rate data. Contains a set of fields that\
\ provide exchange rate data for each day between the specified `startDate`\
\ and `endDate` (inclusive). \n"
items:
$ref: '#/definitions/GETCustomExchangeRatesDataType'
type: array
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GETDMTaxItemType:
allOf:
- properties:
appliedAmount:
description: 'The applied amount of the taxation item.
'
format: double
type: number
creditAmount:
description: "The amount of credit memos applied to the debit memo. \n"
format: double
type: number
exemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
financeInformation:
description: 'Container for the finance information related to the taxation
item.
'
properties:
salesTaxPayableAccountingCode:
description: 'The accounting code for the sales taxes payable.
'
type: string
salesTaxPayableAccountingCodeType:
description: 'The type of the accounting code for the sales taxes payable.
'
type: string
type: object
id:
description: 'The ID of the taxation item.
'
type: string
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of the
`taxCode` field.
'
type: string
name:
description: 'The name of the taxation item.
'
type: string
paymentAmount:
description: "The amount of payments applied to the debit memo. \n"
format: double
type: number
refundAmount:
description: 'The amount of the refund on the taxation item.
'
format: double
type: number
sourceTaxItemId:
description: 'The ID of the source taxation item.
'
type: string
taxAmount:
description: 'The amount of taxation.
'
format: double
type: number
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific debit memo.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date that the tax is applied to the debit memo, in `yyyy-mm-dd`
format.
'
format: date
type: string
taxRate:
description: 'The tax rate applied to the debit memo.
'
format: double
type: number
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'The type of the tax rate.
'
enum:
- Percentage
- FlatFee
type: string
unappliedAmount:
description: 'The unapplied amount of the taxation item.
'
format: double
type: number
type: object
- $ref: '#/definitions/DebitTaxationItemObjectCustomFields'
title: taxItems
GETDMTaxItemTypeNew:
allOf:
- properties:
balance:
description: 'The balance of the taxation item.
'
format: double
type: number
creditAmount:
description: "The amount of credit memos applied to the debit memo. \n"
format: double
type: number
exemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
financeInformation:
description: 'Container for the finance information related to the taxation
item.
'
properties:
salesTaxPayableAccountingCode:
description: 'The accounting code for the sales taxes payable.
'
type: string
salesTaxPayableAccountingCodeType:
description: 'The type of the accounting code for the sales taxes payable.
'
type: string
type: object
id:
description: 'The ID of the taxation item.
'
type: string
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of the
`taxCode` field.
'
type: string
name:
description: 'The name of the taxation item.
'
type: string
paymentAmount:
description: "The amount of payments applied to the debit memo. \n"
format: double
type: number
sourceTaxItemId:
description: 'The ID of the source taxation item.
'
type: string
taxAmount:
description: 'The amount of taxation.
'
format: double
type: number
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific debit memo.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date that the tax is applied to the debit memo, in `yyyy-mm-dd`
format.
'
format: date
type: string
taxRate:
description: 'The tax rate applied to the debit memo.
'
format: double
type: number
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'The type of the tax rate.
'
enum:
- Percentage
- FlatFee
type: string
type: object
- $ref: '#/definitions/DebitTaxationItemObjectCustomFields'
title: data
GETDebitMemoCollectionType:
properties:
debitmemos:
description: 'Container for debit memos.
'
items:
$ref: '#/definitions/GETDebitMemoTypewithSuccess'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETDebitMemoItemCollectionType:
properties:
items:
description: 'Container for debit memo items.
'
items:
$ref: '#/definitions/GETDebitMemoItemTypewithSuccess'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETDebitMemoItemType:
allOf:
- properties:
amount:
description: 'The amount of the debit memo item. For tax-inclusive debit
memo items, the amount indicates the debit memo item amount including
tax. For tax-exclusive debit memo items, the amount indicates the debit
memo item amount excluding tax.
'
format: double
type: number
amountWithoutTax:
description: 'The debit memo item amount excluding tax.
'
format: double
type: number
appliedToItemId:
description: 'The parent debit memo item that this debit memo items is applied
to if this item is discount.
'
type: string
balance:
description: 'The balance of the debit memo item.
'
format: double
type: number
beAppliedAmount:
description: 'The applied amount of the debit memo item.
'
format: double
type: number
comment:
description: |
Comments about the debit memo item.
**Note**: This field is not available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
createdById:
description: 'The ID of the Zuora user who created the debit memo item.
'
type: string
createdDate:
description: 'The date and time when the debit memo item was created, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
description:
description: |
Description about the debit memo item.
**Note**: This field is only available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
excludeItemBillingFromRevenueAccounting:
description: "The flag to exclude the debit memo item from revenue accounting.\n\
\n**Note**: This field is only available if you have the Billing - Revenue\
\ Integration feature enabled. \n"
type: boolean
financeInformation:
description: 'Container for the finance information related to the debit
memo item.
'
properties:
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as
Monthly Recurring Liability.
'
type: string
deferredRevenueAccountingCodeType:
description: 'The type of the deferred revenue accounting code, such
as Deferred Revenue.
'
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as
Monthly Recurring Charges or Overage Charges.
'
type: string
recognizedRevenueAccountingCodeType:
description: 'The type of the recognized revenue accounting code, such
as Sales Revenue or Sales Discount.
'
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the
revenue schedule.
'
type: string
revenueScheduleNumber:
description: 'The revenue schedule number. The revenue schedule number
is always prefixed with "RS", for example, RS-00000001.
'
type: string
type: object
id:
description: 'The ID of the debit memo item.
'
type: string
processingType:
description: "The kind of the charge for the debit memo item. Its possible\
\ values are `Charge` and `Discount`. \n"
type: string
quantity:
description: 'The number of units for the debit memo item.
'
format: double
type: number
serviceEndDate:
description: 'The end date of the service period associated with this debit
memo item. Service ends one second before the date specified in this field.
'
format: date
type: string
serviceStartDate:
description: 'The start date of the service period associated with this
debit memo item. If the associated charge is a one-time fee, this date
is the date of that charge.
'
format: date
type: string
sku:
description: 'The SKU for the product associated with the debit memo item.
'
type: string
skuName:
description: 'The name of the SKU.
'
type: string
soldToContactId:
description: |
The ID of the sold-to contact associated with the invoice item.
The value of this field is `null` if you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled.
type: string
soldToContactSnapshotId:
description: "The ID of the sold-to contact snapshot associated with the\
\ invoice item.\n\nThe value of this field is `null` if you have the [Flexible\
\ Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes)\
\ feature disabled. \n"
type: string
sourceItemId:
description: 'The ID of the source item.
'
type: string
sourceItemType:
description: 'The type of the source item.
'
enum:
- CreditMemoItem
- SubscriptionComponent
- InvoiceDetail
- ProductRatePlanCharge
type: string
subscriptionId:
description: 'The ID of the subscription associated with the debit memo
item.
'
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
taxItems:
description: "Container for the taxation items of the debit memo item..\
\ \n\n**Note**: This field is not available if you set the `zuora-version`\
\ request header to `239.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
items:
$ref: '#/definitions/GETDMTaxItemType'
type: array
taxMode:
description: 'The tax mode of the debit memo item, indicating whether the
amount of the debit memo item includes tax.
'
enum:
- TaxExclusive
- TaxInclusive
type: string
taxationItems:
description: |
Container for the taxation items of the debit memo item.
**Note**: This field is only available if you set the `zuora-version` request header to `239.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
properties:
data:
description: 'List of taxation items.
'
items:
$ref: '#/definitions/GETDMTaxItemTypeNew'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
type: object
unitOfMeasure:
description: 'The units to measure usage.
'
type: string
unitPrice:
description: 'The per-unit price of the debit memo item.
'
format: double
type: number
updatedById:
description: 'The ID of the Zuora user who last updated the debit memo item.
'
type: string
updatedDate:
description: 'The date and time when the debit memo item was last updated,
in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/DebitMemoItemObjectCustomFields'
GETDebitMemoItemTypewithSuccess:
allOf:
- properties:
amount:
description: 'The amount of the debit memo item. For tax-inclusive debit
memo items, the amount indicates the debit memo item amount including
tax. For tax-exclusive debit memo items, the amount indicates the debit
memo item amount excluding tax.
'
format: double
type: number
amountWithoutTax:
description: 'The debit memo item amount excluding tax.
'
format: double
type: number
appliedToItemId:
description: 'The parent debit memo item that this debit memo items is applied
to if this item is discount.
'
type: string
balance:
description: 'The balance of the debit memo item.
'
format: double
type: number
beAppliedAmount:
description: 'The applied amount of the debit memo item.
'
format: double
type: number
comment:
description: |
Comments about the debit memo item.
**Note**: This field is not available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
createdById:
description: 'The ID of the Zuora user who created the debit memo item.
'
type: string
createdDate:
description: 'The date and time when the debit memo item was created, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
description:
description: |
The description of the debit memo item.
**Note**: This field is only available if you set the `zuora-version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
excludeItemBillingFromRevenueAccounting:
description: "The flag to exclude the debit memo item from revenue accounting.\n\
\n**Note**: This field is only available if you have the Billing - Revenue\
\ Integration feature enabled. \n"
type: boolean
financeInformation:
description: 'Container for the finance information related to the debit
memo item.
'
properties:
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as
Monthly Recurring Liability.
'
type: string
deferredRevenueAccountingCodeType:
description: 'The type of the deferred revenue accounting code, such
as Deferred Revenue.
'
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as
Monthly Recurring Charges or Overage Charges.
'
type: string
recognizedRevenueAccountingCodeType:
description: 'The type of the recognized revenue accounting code, such
as Sales Revenue or Sales Discount.
'
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the
revenue schedule.
'
type: string
revenueScheduleNumber:
description: 'The revenue schedule number. The revenue schedule number
is always prefixed with "RS", for example, RS-00000001.
'
type: string
type: object
id:
description: 'The ID of the debit memo item.
'
type: string
processingType:
description: "The kind of the charge for the debit memo item. Its possible\
\ values are `Charge` and `Discount`. \n"
type: string
quantity:
description: 'The number of units for the debit memo item.
'
format: double
type: number
serviceEndDate:
description: 'The end date of the service period associated with this debit
memo item. Service ends one second before the date specified in this field.
'
format: date
type: string
serviceStartDate:
description: 'The start date of the service period associated with this
debit memo item. If the associated charge is a one-time fee, this date
is the date of that charge.
'
format: date
type: string
sku:
description: 'The SKU for the product associated with the debit memo item.
'
type: string
skuName:
description: 'The name of the SKU.
'
type: string
soldToContactId:
description: |
The ID of the sold-to contact associated with the invoice item.
The value of this field is `null` if you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled.
type: string
soldToContactSnapshotId:
description: "The ID of the sold-to contact snapshot associated with the\
\ invoice item.\n\nThe value of this field is `null` if you have the [Flexible\
\ Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes)\
\ feature disabled. \n"
type: string
sourceItemId:
description: 'The ID of the source item.
'
type: string
sourceItemType:
description: 'The type of the source item.
'
enum:
- CreditMemoItem
- SubscriptionComponent
- InvoiceDetail
- ProductRatePlanCharge
type: string
subscriptionId:
description: 'The ID of the subscription associated with the debit memo
item.
'
type: string
taxItems:
description: "Container for the taxation items of the debit memo item. \n\
\n**Note**: This field is not available if you set the `zuora-version`\
\ request header to `239.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
items:
$ref: '#/definitions/GETDMTaxItemType'
type: array
taxMode:
description: 'The tax mode of the debit memo item, indicating whether the
amount of the debit memo item includes tax.
'
enum:
- TaxExclusive
- TaxInclusive
type: string
taxationItems:
description: "Container for the taxation items of the debit memo item. \n\
\n**Note**: This field is only available if you set the `zuora-version`\
\ request header to `239.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
properties:
data:
description: 'List of taxation items.
'
items:
$ref: '#/definitions/GETDMTaxItemTypeNew'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
type: object
unitOfMeasure:
description: 'The units to measure usage.
'
type: string
unitPrice:
description: 'The per-unit price of the debit memo item.
'
format: double
type: number
updatedById:
description: 'The ID of the Zuora user who last updated the debit memo item.
'
type: string
updatedDate:
description: 'The date and time when the debit memo item was last updated,
in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/DebitMemoItemObjectCustomFields'
title: items
GETDebitMemoType:
allOf:
- properties:
accountId:
description: 'The ID of the customer account associated with the debit memo.
'
type: string
accountNumber:
description: "The number of the customer account associated with the debit\
\ memo. \n"
type: string
amount:
description: 'The total amount of the debit memo.
'
format: double
type: number
autoPay:
description: |
Whether debit memos are automatically picked up for processing in the corresponding payment run.
By default, debit memos are automatically picked up for processing in the corresponding payment run.
type: boolean
balance:
description: 'The balance of the debit memo.
'
format: double
type: number
beAppliedAmount:
description: 'The amount that is applied to the debit memo.
'
format: double
type: number
billToContactId:
description: |
The ID of the bill-to contact associated with the debit memo.
The value of this field is `null` if you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled.
type: string
billToContactSnapshotId:
description: |
The ID of the bill-to contact snapshot associated with the debit memo.
The value of this field is `null` if the bill rule [Preserve snapshot of bill-to and sold-to contacts when billing documents are posted](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Billing_Rules#Preserve_snapshot_of_bill-to_and_sold-to_contacts_when_billing_documents_are_posted) is disabled.
type: string
cancelledById:
description: 'The ID of the Zuora user who cancelled the debit memo.
'
type: string
cancelledOn:
description: 'The date and time when the debit memo was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: 'Comments about the debit memo.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the debit memo.
'
type: string
createdDate:
description: 'The date and time when the debit memo was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
debitMemoDate:
description: 'The date when the debit memo takes effect, in `yyyy-mm-dd`
format. For example, 2017-05-20.
'
format: date
type: string
dueDate:
description: 'The date by which the payment for the debit memo is due, in
`yyyy-mm-dd` format.
'
format: date
type: string
einvoiceErrorCode:
description: |
The error code returned when the e-invoice file status is `Failed`. This code can either be a Zuora-generated error code or one returned by a third-party e-invoicing service provider.
**Note**: This field is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
type: string
einvoiceErrorMessage:
description: |
The error message returned when the e-invoice file status is `Failed`. This message can either be a Zuora-generated error message or one returned by a third-party e-invoicing service provider.
**Note**: This field is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
type: string
einvoiceFileId:
description: |
The ID of the e-invoice file generated for the debit memo.
**Note**: This field is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
type: string
einvoiceStatus:
description: "The status of the e-invoice file generation for the debit\
\ memo. \n\n- If e-invoice file generation succeeds, both the error code\
\ and message are empty, and the `eInvoiceFileId` field stores the ID\
\ of the generated e-invoice file.\n- If a failure occurs during e-invoice\
\ file generation, an error code and an error message are returned respectively\
\ in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n\n**Note**:\
\ This field is available only if you have the E-Invoicing feature in **Early Adopter** phase\
\ enabled.\n"
enum:
- Processing
- Success
- Failed
type: string
excludeItemBillingFromRevenueAccounting:
description: "The flag to exclude the debit memo item from revenue accounting.\n\
\n**Note**: This field is only available if you have the Billing - Revenue\
\ Integration feature enabled. \n"
type: boolean
id:
description: 'The unique ID of the debit memo.
'
type: string
latestPDFFileId:
description: 'The ID of the latest PDF file generated for the debit memo.
'
type: string
number:
description: 'The unique identification number of the debit memo.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentTerm:
description: |
The name of the payment term assoicated with the debit memo.
The value of this field is `null` if you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled.
type: string
postedById:
description: 'The ID of the Zuora user who posted the debit memo.
'
type: string
postedOn:
description: 'The date and time when the debit memo was posted, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty.
'
type: string
referredCreditMemoId:
description: 'The ID of the credit memo from which the debit memo was created.
'
type: string
referredInvoiceId:
description: 'The ID of a referred invoice.
'
type: string
sequenceSetId:
description: "The ID of the sequence set associated with the debit memo.\n\
\nThe value of this field is `null` if you have the [Flexible Billing\
\ Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes)\
\ feature disabled.\n \n"
type: string
sourceType:
description: 'The type of the debit memo source.
'
enum:
- Subscription
- Standalone
- Order
- Consolidation
- Invoice
- CreditMemo
type: string
status:
description: 'The status of the debit memo.
'
enum:
- Draft
- Posted
- Canceled
- Error
- PendingForTax
- Generating
- CancelInProgress
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
targetDate:
description: 'The target date for the debit memo, in `yyyy-mm-dd` format.
For example, 2017-07-20.
'
format: date
type: string
taxAmount:
description: 'The amount of taxation.
'
format: double
type: number
taxMessage:
description: 'The message about the status of tax calculation related to
the debit memo. If tax calculation fails in one debit memo, this field
displays the reason for the failure.
'
type: string
taxStatus:
description: |
The status of tax calculation related to the debit memo.
**Note**: This field is only applicable to tax calculation by third-party tax engines.
enum:
- Complete
- Error
type: string
totalTaxExemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
transferredToAccounting:
description: 'Whether the debit memo was transferred to an external accounting
system. Use this field for integration with accounting systems, such as
NetSuite.
'
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the debit memo.
'
type: string
updatedDate:
description: 'The date and time when the debit memo was last updated, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/DebitMemoObjectNSFields'
- $ref: '#/definitions/DebitMemoObjectCustomFields'
title: memos
GETDebitMemoTypewithSuccess:
allOf:
- properties:
accountId:
description: 'The ID of the customer account associated with the debit memo.
'
type: string
accountNumber:
description: 'The number of the customer account associated with the debit
memo.
'
type: string
amount:
description: 'The total amount of the debit memo.
'
format: double
type: number
autoPay:
description: "Whether debit memos are automatically picked up for processing\
\ in the corresponding payment run. \n\nBy default, debit memos are automatically\
\ picked up for processing in the corresponding payment run. \n"
type: boolean
balance:
description: 'The balance of the debit memo.
'
format: double
type: number
beAppliedAmount:
description: 'The applied amount of the debit memo.
'
format: double
type: number
billToContactId:
description: |
The ID of the bill-to contact associated with the debit memo.
The value of this field is `null` if you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled.
type: string
cancelledById:
description: 'The ID of the Zuora user who cancelled the debit memo.
'
type: string
cancelledOn:
description: 'The date and time when the debit memo was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: 'Comments about the debit memo.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the debit memo.
'
type: string
createdDate:
description: 'The date and time when the debit memo was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
debitMemoDate:
description: 'The date when the debit memo takes effect, in `yyyy-mm-dd`
format. For example, 2017-05-20.
'
format: date
type: string
dueDate:
description: 'The date by which the payment for the debit memo is due, in
`yyyy-mm-dd` format.
'
format: date
type: string
einvoiceErrorCode:
description: |
The error code returned when the e-invoice file status is `Failed`. This code can either be a Zuora-generated error code or one returned by a third-party e-invoicing service provider.
**Note**: This field is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
type: string
einvoiceErrorMessage:
description: |
The error message returned when the e-invoice file status is `Failed`. This message can either be a Zuora-generated error message or one returned by a third-party e-invoicing service provider.
**Note**: This field is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
type: string
einvoiceFileId:
description: |
The ID of the e-invoice file generated for the debit memo.
**Note**: This field is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
type: string
einvoiceStatus:
description: "The status of the e-invoice file generation for the debit\
\ memo. \n\n- If e-invoice file generation succeeds, both the error code\
\ and message are empty, and the `eInvoiceFileId` field stores the ID\
\ of the generated e-invoice file.\n- If a failure occurs during e-invoice\
\ file generation, an error code and an error message are returned respectively\
\ in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n\n**Note**:\
\ This field is available only if you have the E-Invoicing feature in **Early Adopter** phase\
\ enabled.\n"
enum:
- Processing
- Success
- Failed
type: string
id:
description: 'The unique ID of the debit memo.
'
type: string
latestPDFFileId:
description: 'The ID of the latest PDF file generated for the debit memo.
'
type: string
number:
description: 'The unique identification number of the debit memo.
'
type: string
paymentTerm:
description: |
The name of the payment term associated with the debit memo.
The value of this field is `null` if you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled.
type: string
postedById:
description: 'The ID of the Zuora user who posted the debit memo.
'
type: string
postedOn:
description: 'The date and time when the debit memo was posted, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty.
'
type: string
referredCreditMemoId:
description: 'The ID of the credit memo from which the debit memo was created.
'
type: string
referredInvoiceId:
description: 'The ID of a referred invoice.
'
type: string
sequenceSetId:
description: |
The ID of the sequence set associated with the debit memo.
The value of this field is `null` if you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled.
type: string
sourceType:
description: 'The type of the debit memo source.
'
enum:
- Subscription
- Standalone
- Order
- Consolidation
- Invoice
- CreditMemo
type: string
status:
description: "The status of the debit memo. \n"
enum:
- Draft
- Posted
- Canceled
- Error
- PendingForTax
- Generating
- CancelInProgress
type: string
targetDate:
description: 'The target date for the debit memo, in `yyyy-mm-dd` format.
For example, 2017-07-20.
'
format: date
type: string
taxAmount:
description: 'The amount of taxation.
'
format: double
type: number
taxMessage:
description: 'The message about the status of tax calculation related to
the debit memo. If tax calculation fails in one debit memo, this field
displays the reason for the failure.
'
type: string
taxStatus:
description: |
The status of tax calculation related to the debit memo.
**Note**: This field is only applicable to tax calculation by third-party tax engines.
enum:
- Complete
- Error
type: string
totalTaxExemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
transferredToAccounting:
description: "Whether the debit memo was transferred to an external accounting\
\ system. Use this field for integration with accounting systems, such\
\ as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the debit memo.
'
type: string
updatedDate:
description: 'The date and time when the debit memo was last updated, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:31:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/DebitMemoObjectNSFields'
- $ref: '#/definitions/DebitMemoObjectCustomFields'
title: debitmemos
GETDeliverySchedule:
properties:
frequency:
description: 'The frequency of the delivery. Only weekly delivery is supported
now.
'
enum:
- Weekly
type: string
friday:
description: 'The flag to indicate whether the delivery happens on Friday.
'
type: boolean
monday:
description: 'The flag to indicate whether the delivery happens on Monday.
'
type: boolean
saturday:
description: 'The flag to indicate whether the delivery happens on Saturday.
'
type: boolean
sunday:
description: 'The flag to indicate whether the delivery happens on Sunday.
'
type: boolean
thursday:
description: 'The flag to indicate whether the delivery happens on Thursday.
'
type: boolean
tuesday:
description: 'The flag to indicate whether the delivery happens on Tuesday.
'
type: boolean
wendesday:
description: 'The flag to indicate whether the delivery happens on Wendesday.
'
type: boolean
title: DeliverySchedule
type: object
GETDeliveryScheduleType:
description: "The `deliverySchedule` is used for the Delivery Pricing charge model\
\ only. \n\n**Note**: The Delivery Pricing charge model is in the **Early Adopter**\
\ phase. We are actively soliciting feedback from a small set of early adopters\
\ before releasing it as generally available. To manage and access this feature\
\ through the self-service interface, see [Enable billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features)\
\ in the Knowledge Center. You can check **Delivery Pricing** in **Billing Settings**\
\ > **Enable Charge Types / Models**.\n"
properties:
frequency:
description: 'Specifies delivery frequency for the delivery schedule.
'
enum:
- Weekly
type: string
friday:
description: 'Indicates whether delivery occurs on Friday.
'
type: boolean
monday:
description: 'Indicates whether delivery occurs on Monday.
'
type: boolean
saturday:
description: 'Indicates whether delivery occurs on Saturday.
'
type: boolean
sunday:
description: 'Indicates whether delivery occurs on Sunday.
'
type: boolean
thursday:
description: 'Indicates whether delivery occurs on Thursday.
'
type: boolean
tuesday:
description: 'Indicates whether delivery occurs on Tuesday.
'
type: boolean
wednesday:
description: 'Indicates whether delivery occurs on Wednesday.
'
type: boolean
title: deliverySchedule
type: object
GETDiscountApplyDetailsType:
properties:
appliedProductName:
description: 'The name of the product that the discount rate plan charge applies
to.
'
type: string
appliedProductRatePlanChargeId:
description: 'The ID of the product rate plan charge that the discount rate
plan charge applies to.
'
type: string
appliedProductRatePlanChargeName:
description: 'The name of the product rate plan charge that the discount rate
plan charge applies to.
'
type: string
appliedProductRatePlanId:
description: 'The ID of the product rate plan that the discount rate plan
charge applies to.
'
type: string
appliedProductRatePlanName:
description: 'The name of the product rate plan that the discount rate plan
charge applies to.
'
type: string
title: discountApplyDetails
type: object
GETEmailHistoryVOType:
properties:
accountId:
description: 'ID of an account.
'
type: string
bcc:
description: 'Blind carbon copy recipients of the email.
'
type: string
cc:
description: 'Carbon Copy recipients of the email.
'
type: string
errorMessage:
description: 'null if the content of result is "OK". A description of the
error if the content of result is not "OK".
'
type: string
eventCategory:
description: 'The event category of the email.
'
type: string
fromEmail:
description: 'The sender of the email.
'
type: string
notification:
description: 'The name of the notification.
'
type: string
replyTo:
description: 'The reply-to address as configured in the email template.
'
type: string
result:
description: 'The result from the mail server of sending the email.
'
type: string
sendTime:
description: 'The date and time the email was sent.
'
type: string
subject:
description: 'The subject of the email.
'
type: string
toEmail:
description: 'The intended recipient of the email.
'
type: string
title: emailHistories
type: object
GETEmailHistoryVOsType:
properties:
emailHistories:
description: 'A container for email histories.
'
items:
$ref: '#/definitions/GETEmailHistoryVOType'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GETIntervalPriceTierType:
properties:
endingUnit:
description: 'Decimal defining end of tier range.
'
type: number
isOveragePrice:
description: 'True if the price is overage price for the tier.
'
type: boolean
price:
description: 'The decimal value of the tiered charge model. If the charge
model is not a tiered type then this price field will be null and the `price`
field directly under the `productRatePlanCharges` applies.
'
type: number
priceFormat:
description: 'Tier price format. Allowed values: `flat fee`, `per unit`.
'
type: string
startingUnit:
description: 'Decimal defining start of tier range.
'
type: number
tier:
description: 'Unique number of the tier.
'
format: int64
type: integer
title: IntervalPricing
type: object
GETIntervalPriceType:
properties:
duration:
description: 'Duration period of this interval.
'
type: integer
price:
description: 'Price of this interval.
'
type: number
sequence:
description: 'A system-generated number that indicates the sequence in which
each interval price is billed.
'
type: integer
subscriptionChargeIntervalPriceTiers:
items:
$ref: '#/definitions/GETIntervalPriceTierType'
type: array
type:
description: 'Interval type of this pricing.
'
enum:
- Day
- Month
- Infinity
type: string
title: IntervalPricing
type: object
GETInvoiceFilesResponse:
properties:
invoiceFiles:
description: 'Container for invoice PDF files.
'
items:
$ref: '#/definitions/InvoiceFile'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETInvoiceItemsResponse:
properties:
invoiceItems:
description: 'Container for invoice items.
'
items:
$ref: '#/definitions/InvoiceItem'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETInvoiceTaxItemType:
allOf:
- $ref: '#/definitions/TaxationItemObjectCustomFields'
- properties:
availableToCreditAmount:
description: 'The amount of the invoice taxation item that is available
to credit.
'
format: decimal
type: number
balance:
description: 'The balance of the taxation item.
'
format: double
type: number
creditAmount:
description: "The amount of credit memos applied to the taxation item. \n"
format: double
type: number
exemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
id:
description: 'The ID of the taxation item.
'
type: string
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of the
`taxCode` field.
'
type: string
name:
description: 'The name of the taxation item.
'
type: string
paymentAmount:
description: "The amount of payments applied to the taxation item. \n"
format: double
type: number
taxAmount:
description: 'The amount of taxation.
'
format: double
type: number
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific invoice.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date that the tax is applied to the invoice, in `yyyy-mm-dd`
format.
'
format: date
type: string
taxRate:
description: 'The tax rate applied to the invoice.
'
format: double
type: number
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'The type of the tax rate.
'
enum:
- Percentage
- FlatFee
type: string
title: data
type: object
title: data
GETInvoiceTaxationItemsResponse:
properties:
data:
description: 'Container for the taxation items of the invoice item.
'
items:
$ref: '#/definitions/GETInvoiceTaxItemType'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETJournalEntriesInJournalRunType:
properties:
journalEntries:
description: 'Key name that represents the list of journal entries.
'
items:
$ref: '#/definitions/GETJournalEntryDetailTypeWithoutSuccess'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GETJournalEntryDetailType:
allOf:
- properties:
accountingPeriodName:
description: 'Name of the accounting period that the journal entry belongs
to.
'
type: string
aggregateCurrency:
description: 'Returns true if the journal entry is aggregating currencies.
That is, if the journal entry was created when the `Aggregate transactions
with different currencies during a Journal Run` setting was configured
to `Yes`. Otherwise, returns `false`.
'
type: boolean
currency:
description: 'Currency used.
'
type: string
homeCurrency:
description: 'Home currency used.
'
type: string
journalEntryDate:
description: 'Date of the journal entry.
'
format: date
type: string
journalEntryItems:
description: 'Key name that represents the list of journal entry items.
'
items:
$ref: '#/definitions/GETJournalEntryItemType'
type: array
notes:
description: |2
Additional information about this record.
Character limit: 2,000
type: string
number:
description: 'Journal entry number in the format JE-00000001.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
segments:
description: 'List of segments that apply to the summary journal entry.
'
items:
$ref: '#/definitions/GETJournalEntrySegmentType'
type: array
status:
description: 'Status of journal entry.
'
enum:
- Created
- Cancelled
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
timePeriodEnd:
description: 'End date of time period included in the journal entry.
'
format: date
type: string
timePeriodStart:
description: 'Start date of time period included in the journal entry.
'
format: date
type: string
transactionType:
description: 'Transaction type of the transactions included in the summary
journal entry.
'
type: string
transferDateTime:
description: 'Date and time that transferredToAccounting was changed to
`Yes`. This field is returned only when transferredToAccounting is `Yes`.
Otherwise, this field is `null`.
'
format: date-time
type: string
transferredBy:
description: 'User ID of the person who changed transferredToAccounting
to `Yes`. This field is returned only when transferredToAccounting is
`Yes`. Otherwise, this field is `null`.
'
type: string
transferredToAccounting:
description: 'Status shows whether the journal entry has been transferred
to an accounting system. '
enum:
- 'No'
- Processing
- 'Yes'
- Error
- Ignore
type: string
type: object
- $ref: '#/definitions/JournalEntryObjectCustomFields'
GETJournalEntryDetailTypeWithoutSuccess:
allOf:
- properties:
accountingPeriodName:
description: 'Name of the accounting period that the journal entry belongs
to.
'
type: string
aggregateCurrency:
description: 'Returns true if the journal entry is aggregating currencies.
That is, if the journal entry was created when the `Aggregate transactions
with different currencies during a JournalRun` setting was configured
to "Yes". Otherwise, returns `false`.
'
type: boolean
currency:
description: 'Currency used.
'
type: string
homeCurrency:
description: 'Home currency used.
'
type: string
journalEntryDate:
description: 'Date of the journal entry.
'
format: date
type: string
journalEntryItems:
description: 'Key name that represents the list of journal entry items.
'
items:
$ref: '#/definitions/GETJournalEntryItemType'
type: array
notes:
description: |
Additional information about this record.
Character limit: 2,000
type: string
number:
description: 'Journal entry number in the format JE-00000001.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
segments:
description: 'List of segments that apply to the summary journal entry.
'
items:
$ref: '#/definitions/GETJournalEntrySegmentType'
type: array
status:
description: 'Status of journal entry. '
enum:
- Created
- Cancelled
type: string
timePeriodEnd:
description: 'End date of time period included in the journal entry.
'
format: date
type: string
timePeriodStart:
description: 'Start date of time period included in the journal entry.
'
format: date
type: string
transactionType:
description: 'Transaction type of the transactions included in the summary
journal entry.
'
type: string
transferDateTime:
description: 'Date and time that transferredToAccounting was changed to
`Yes`. This field is returned only when transferredToAccounting is `Yes`.
Otherwise, this field is `null`.
'
format: date-time
type: string
transferredBy:
description: 'User ID of the person who changed transferredToAccounting
to `Yes`. This field is returned only when transferredToAccounting is
`Yes`. Otherwise, this field is `null`.
'
type: string
transferredToAccounting:
description: 'Status shows whether the journal entry has been transferred
to an accounting system. '
enum:
- 'No'
- Processing
- 'Yes'
- Error
- Ignore
type: string
type: object
- $ref: '#/definitions/JournalEntryObjectCustomFields'
title: journalEntries
GETJournalEntryItemType:
allOf:
- properties:
accountingCodeName:
description: 'Name of the accounting code.
'
type: string
accountingCodeType:
description: "Accounting code type.\n\nNote that `On-Account Receivable`\
\ is only available if you enable the Invoice Settlement feature. \n"
enum:
- AccountsReceivable
- On-Account Receivable
- Cash
- OtherAssets
- CustomerCashOnAccount
- DeferredRevenue
- SalesTaxPayable
- OtherLiabilities
- SalesRevenue
- SalesDiscounts
- OtherRevenue
- OtherEquity
- BadDebt
- OtherExpenses
type: string
amount:
description: 'Journal entry item amount in transaction currency.
'
format: decimal
type: string
glAccountName:
description: 'The account number in the general ledger (GL) that corresponds
to the accounting code.
'
type: string
glAccountNumber:
description: 'The account name in the general ledger (GL) that corresponds
to the accounting code.
'
type: string
homeCurrencyAmount:
description: 'Journal entry item amount in home currency.
'
format: decimal
type: string
type:
description: 'Type of journal entry item. '
enum:
- Credit
- Debit
type: string
type: object
- $ref: '#/definitions/JournalEntryItemObjectCustomFields'
title: journalEntryItems
GETJournalEntrySegmentType:
properties:
segmentName:
description: 'Name of segment.
'
type: string
segmentValue:
description: 'Value of segment in this summary journal entry.
'
type: string
title: segments
type: object
GETJournalRunTransactionType:
properties:
type:
description: "Transaction type. Invoice Adjustment is deprecated on Production.\
\ Zuora recommends that you use the Invoice Item Adjustment instead.\n\n\
If you enable the Invoice Settlement feature, Debit Memo Item, Credit Memo\
\ Item, and Credit Memo Application Item are available, Payment and Refund\
\ will be replaced by Payment Application and Refund Application. \n\nIf\
\ you enable both the Invoice Settlement feature and the Invoice Item Settlement\
\ feature, Payment and Refund will be replaced by Payment Application Item\
\ and Refund Application Item. \n"
enum:
- Invoice Item
- Taxation Item
- Invoice Item Adjustment (Invoice)
- Invoice Item Adjustment (Tax)
- Invoice Adjustment
- Electronic Payment
- External Payment
- Electronic Refund
- External Refund
- Electronic Credit Balance Payment
- External Credit Balance Payment
- Electronic Credit Balance Refund
- External Credit Balance Refund
- Credit Balance Adjustment (Applied from Credit Balance)
- Credit Balance Adjustment (Transferred to Credit Balance)
- Revenue Event Item
- Debit Memo Item (Charge)
- Debit Memo Item (Tax)
- Credit Memo Item (Charge)
- Credit Memo Item (Tax)
- Credit Memo Application Item
- Electronic Payment Application
- External Payment Application
- Electronic Refund Application
- External Refund Application
- Electronic Payment Application Item
- External Payment Application Item
- Electronic Refund Application Item
- External Refund Application Item
type: string
title: transactionTypes
type: object
GETJournalRunType:
properties:
aggregateCurrency:
description: ''
type: boolean
executedOn:
description: 'Date and time the journal run was executed.
'
format: date-time
type: string
journalEntryDate:
description: 'Date of the journal entry.
'
format: date
type: string
number:
description: 'Journal run number.
'
type: string
organizationLabels:
description: "The organization(s) that the object belongs to. \n\nNote: This\
\ field is available only when the Multi-Org feature is enabled.\n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
segmentationRuleName:
description: 'Name of GL segmentation rule used in the journal run.
'
type: string
status:
description: "Status of the journal run. \n"
enum:
- Pending
- Processing
- Completed
- Error
- CancelInprogress
- Cancelled
- DeleteInprogress
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
targetEndDate:
description: 'The target end date of the journal run.
'
format: date
type: string
targetStartDate:
description: 'The target start date of the journal run.
'
format: date
type: string
totalJournalEntryCount:
description: 'Total number of journal entries in the journal run.
'
format: int64
type: integer
transactionTypes:
description: 'Transaction types included in the journal run.
'
items:
$ref: '#/definitions/GETJournalRunTransactionType'
type: array
type: object
GETListApplePayDomainsResponse:
properties:
domains:
description: 'Container for domains that are already registered with Apple
Pay.
'
items:
properties:
createdBy:
description: 'The ID of the user who created this domain.
'
type: string
createdOn:
description: "The date and time when the domain was created, in `yyyy-mm-dd\
\ hh:mm:ss` format. \n"
format: date-time
type: string
domainName:
description: "The name of the domain registered with Apple Pay, such\
\ as `testapplepay.zuora.com`. \n"
type: string
domainVerified:
description: "Indicates whether the domain registration is successfully\
\ verified. \n"
type: boolean
id:
description: 'The ID of the domain, such as `402881a38924ff1001892502da090021`.
'
type: string
updatedBy:
description: 'The ID of the user who made the last update to this domain.
'
type: string
updatedOn:
description: 'The last date and time when the domain was updated, in
`yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
type: array
success:
description: 'Indicates whether this call succeeds.
'
type: boolean
type: object
GETMassUpdateType:
properties:
actionType:
description: 'Type of mass action.
'
type: string
endedOn:
description: 'Date and time that the mass action was completed. The format
is `yyyy-MM-dd hh:mm:ss`.
'
format: date-time
type: string
errorCount:
description: |
Total number of failed records.
This field is updated in real time. When the mass action **status** is Processing, this field returns the number of records that have failed so far. When the mass action **status** is Pending, this field is null.
type: string
inputSize:
description: 'Size of the input file in bytes.
'
format: int64
type: integer
outputSize:
description: 'Size of the response file in bytes.
'
format: int64
type: integer
outputType:
description: |
Type of output for the response file. The following table describes the output type.
| Output Type | Description |
|----------------|-------------------------------------|
| (url:.csv.zip) | URL pointing to a zipped .csv file. |
type: string
outputURL:
description: "URL to download the response file. The response file is a zipped\
\ .csv file. \nThe response file is identical to the file you uploaded to\
\ perform the mass action, with additional columns providing information\
\ about the outcome of each record. \nThis field only returns a value when\
\ the mass action **status** is Completed or Stopped. Otherwise, this field\
\ is null.\n"
type: string
processedCount:
description: |
Total number of processed records. This field is equal to the sum of `errorCount` and `successCount`.
This field is updated in real time. When the mass action **status** is Processing, this field returns the number of records that have been processed so far. When the mass action **status** is Pending, this field is null.
type: string
startedOn:
description: 'Date and time that Zuora started processing the mass action.
The format is `yyyy-MM-dd hh:mm:ss`.
'
format: date-time
type: string
status:
description: |
Status of the mass action. The following table describes the mass action statuses.
| Status | Description |
|------------|----------------------------------------------------------------------------|
| Pending | Mass action has not yet started being processed. |
| Processing | Mass action is in progress. |
| Stopping | Mass action is in the process of stopping, but has not yet stopped. |
| Stopped | Mass action has stopped. |
| Completed | Mass action was successfully completed. There may still be failed records. |
| Failed | Mass action failed. No records are processed. No response file is created. |
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
successCount:
description: |
Total number of successful records.
This field is updated in real time. When the mass action **status** is Processing, this field returns the number of records that have succeeded so far. When the mass action **status** is Pending, this field is null.
type: string
totalCount:
description: |
Total number of records in the uploaded mass action file.
When the mass action **status** is Pending, this field is null.
type: string
uploadedBy:
description: 'Email of the person who uploaded the mass action file.
'
type: string
uploadedOn:
description: 'Date and time that the mass action file was uploaded. The format
is `yyyy-MM-dd hh:mm:ss`.
'
format: date-time
type: string
type: object
GETOfferChargeConfiguration:
description: 'Container for the configurations of the product rate plan charge.
'
properties:
billCycleDay:
description: 'The override value of the billCycleDay for this charge
'
type: number
billCycleType:
description: 'The override value of the billCycleType for this charge
'
enum:
- DefaultFromCustomer
- SpecificDayofMonth
- SubscriptionStartDay
- ChargeTriggerDay
- SpecificDayofWeek
- TermStartDay
- TermEndDay
type: string
billingPeriod:
description: 'The override value of the billingPeriod for this charge
'
enum:
- Month
- Quarter
- Semi_Annual
- Annual
- Eighteen_Months
- Two_Years
- Three_Years
- Five_Years
- Specific_Months
- Subscription_Term
- Week
- Specific_Weeks
type: string
billingPeriodAlignment:
description: 'The override value of the billingPeriodAlignment for this charge
'
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
- AlignToTermEnd
type: string
billingTiming:
description: 'The override value of the billingTiming for this charge
'
enum:
- IN_ADVANCE
- IN_ARREARS
type: string
endDateCondition:
description: 'The override value of the endDateCondition for this charge
'
enum:
- Subscription_End
- One_Time
- Fixed_Period
- Specific_End_Date
type: string
id:
description: 'The unique ID of the product rate plan charge.
'
specificBillingPeriod:
description: 'The override value of the specificBillingPeriod for this charge
'
type: number
triggerEvent:
description: 'The override value of the triggerEvent for this charge
'
enum:
- ContractEffective
- ServiceActivation
- CustomerAcceptance
- SpecificDate
type: string
upToPeriods:
description: 'The override value of the upToPeriods for this charge
'
type: number
upToPeriodsType:
description: 'The override value of the upToPeriodsType for this charge
'
enum:
- Billing_Periods
- Days
- Weeks
- Months
- Years
type: string
weeklyBillCycleDay:
description: 'The override value of the weeklyBillCycleDay for this charge
'
enum:
- Sunday
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
type: string
title: chargeConfiguration
type: object
GETOfferIntervalPrice:
properties:
duration:
description: 'The duration of the interval.
'
type: number
overagePrice:
description: |
The overage price of the interval.
This field is only applicable for charges with the Overage or Tiered with Overage pricing charge model.
type: number
price:
description: "The price of the interval. \n\nThis field is only applicable\
\ for charges with the Flat Fee, Per Unit, or Delivery Pricing charge model.\n"
type: number
sequence:
description: "The sequence of the interval. \n"
type: number
tiers:
description: "Container for the tiers of the interval. \n\nThis field is only\
\ applicable for charges with the Tiered, Volume, or Tiered with Overage\
\ pricing charge model.\n"
items:
$ref: '#/definitions/GETOfferTier'
type: array
type:
description: 'The type of the interval.
'
enum:
- Infinity
- Day
- Month
type: string
title: intervalPrices
type: object
GETOfferPriceBookItem:
properties:
currency:
description: 'The currency for the price.
'
type: string
defaultQuantity:
description: "The default quantity. \n\nThis field is applicable only for\
\ one-time and recurring charges.\n"
type: number
effectiveEndDate:
description: 'The effective end date of the price book item.
'
format: date
type: string
effectiveStartDate:
description: 'The effective start date of the price book item.
'
format: date
type: string
id:
description: 'The unique ID of the price book item.
'
type: string
includedUnits:
description: "The number of units included in the price book item. \n\nThis\
\ field is only applicable for charges with the Overage pricing charge model.\
\ \n"
type: number
intervalPrices:
description: "Container for the interval prices of the product rate plan charge.\
\ \n\nThis field is applicable only if you want to use interval prices for\
\ different periods.\n"
items:
$ref: '#/definitions/GETOfferIntervalPrice'
type: array
listPriceBase:
description: "The list price base. \n\nThis field is applicable only for recurring\
\ charges.\n\n**Note**: The `Per_Year` enum value is available only if you\
\ have the Annual List Price feature enabled.\n"
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
type: string
number:
description: 'The unique number of the price book item.
'
type: string
offerId:
description: 'The ID of the offer associated with the price book item.
'
type: string
offerNumber:
description: 'The number of the offer associated with the price book item.
'
type: string
overagePrice:
description: "The overage price of the price book item. \n\nThis field is\
\ only applicable for charges with the Overage or Tiered with Overage pricing\
\ charge model.\n"
type: number
price:
description: "The price of the price book item. \n\nThis field is only applicable\
\ for charges with the Flat Fee, Per Unit, or Delivery Pricing charge model.\n"
type: number
productChargeId:
description: 'The ID of the product rate plan charge associated with the price
book item.
'
type: string
tiers:
description: "Container for the tiers of the price book item. \n\nThis field\
\ is only applicable for charges with the Tiered, Volume, or Tiered with\
\ Overage pricing charge model.\n"
items:
$ref: '#/definitions/GETOfferTier'
type: array
title: priceBookItems
type: object
GETOfferProductRatePlanCharge:
properties:
chargeConfiguration:
$ref: '#/definitions/GETOfferChargeConfiguration'
description:
description: 'The description of the product rate plan charge.
'
type: string
id:
description: 'The unique ID of the product rate plan charge.
'
type: string
model:
description: 'The charge model of the product rate plan charge.
'
type: string
name:
description: 'The name of the product rate plan charge.
'
type: string
number:
description: 'The unique number of the product rate plan charge.
'
type: string
priceBookItems:
items:
$ref: '#/definitions/GETOfferPriceBookItem'
type: array
productRatePlanId:
description: 'The unique ID of the product rate plan containing the product
rate plan charge.
'
type: string
sequence:
description: "The sequence of the product rate plan charge in this offer.\
\ \n\nThis field is used in scenarios like adding a charge to the same offer\
\ for multiple times.\n"
type: string
type:
description: 'The charge type of the product rate plan charge.
'
type: string
title: productRatePlanCharges
type: object
GETOfferResponse:
properties:
description:
description: 'The description of the offer.
'
type: string
effectiveEndTime:
description: 'The effective end time of the offer.
'
format: dateTime
type: string
effectiveStartTime:
description: 'The effective start time of the offer.
'
format: dateTime
type: string
id:
description: 'The unique ID of the offer.
'
type: string
name:
description: 'The name of the offer.
'
type: string
number:
description: 'The unique number of the offer.
'
type: string
pricingLevel:
default: Component
description: 'The pricing level of the offer.
'
enum:
- Component
type: string
productRatePlanCharges:
items:
$ref: '#/definitions/GETOfferProductRatePlanCharge'
type: array
success:
description: 'Whether the call succeeded.
'
type: boolean
type:
default: Static
description: "The type of the offer. \n"
enum:
- Static
type: string
type: object
GETOfferTier:
properties:
endingUnit:
description: 'The ending unit of the tier.
'
type: number
price:
description: 'The price of the tier.
'
type: number
priceFormat:
description: 'The price format of the tier.
'
enum:
- FlatFee
- PerUnit
type: string
startingUnit:
description: 'The starting unit of the tier.
'
type: number
tier:
description: 'The number of the tier.
'
type: number
title: tiers
type: object
GETOpenPaymentMethodTypeRevisionResponse:
properties:
entityId:
description: 'If an entity UUID is provided, this custom payment method type
is specific to this entity only. If no entity UUID is provided, the custom
payment method type is available to the global entity and all the sub entities
in the tenant.
'
type: string
fields:
description: 'An array containing field metadata of the custom payment method
type.
'
items:
$ref: '#/definitions/OpenPaymentMethodTypeResponseFields'
type: array
internalName:
description: |
A string to identify the custom payment method type in the API name of the payment method type.
This field is used along with the `tenantId` field by the system to construct and generate the API name of the custom payment method type in the following way:
`__c_`
For example, if `internalName` is `AmazonPay`, and `tenantId` is `12368`, the API name of the custom payment method type will be `AmazonPay__c_12368`.
type: string
label:
description: 'The label that is used to refer to this type in the Zuora UI.
'
type: string
methodReferenceIdField:
description: |
The identification reference of the custom payment method.
This field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.
type: string
revision:
description: 'The revision number of the custom payment method type, which
starts from 1 and increases by 1 when you update a published revision for
the first time.
'
type: integer
status:
description: 'The status of the custom payment method type.
'
type: string
subTypeField:
description: |
The identification reference indicating the subtype of the custom payment method.
This field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.
type: string
tenantId:
description: 'Zuora tenant ID. If multi-entity is enabled in your tenant,
this is the ID of the parent tenant of all the sub entities.
'
type: string
userReferenceIdField:
description: |
The identification reference of the user or customer account.
This field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.
type: string
version:
description: 'The time when the custom payment method type was first published.
'
type: string
GETPMAccountHolderInfo:
description: 'The account holder information.
'
properties:
accountHolderName:
description: 'The full name of the account holder.
'
type: string
addressLine1:
description: 'The first line of the address for the account holder.
'
type: string
addressLine2:
description: "The second line of the address for the account holder. \n"
type: string
city:
description: 'The city where the account holder stays.
'
type: string
country:
description: "The country where the account holder stays.\n\nWhen creating\
\ a payment method through a translated UI or Payment Page, a country name\
\ in a translated language might be selected. Regardless of the country\
\ texts selected when creating the payment method, only the country name\
\ listed in\_[Country Names and Their ISO Standard 2- and 3-Digit Codes](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/D_Country%2C_State%2C_and_Province_Codes/A_Country_Names_and_Their_ISO_Codes)\_\
returns in this field. Internationalization is not supported for the API\
\ field value.\n"
type: string
email:
description: 'The email address of the account holder.
'
type: string
phone:
description: 'The phone number of the account holder.
'
type: string
state:
description: 'The state where the account holder stays.
'
type: string
zipCode:
description: 'The zip code for the address of the account holder.
'
type: string
title: accountHolderInfo
type: object
GETPaymentGatwaysResponse:
properties:
paymentgateways:
description: ''
items:
$ref: '#/definitions/GETAPaymentGatwayResponse'
type: array
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETPaymentItemPartCollectionType:
properties:
itemParts:
description: 'Container for payment part items.
'
items:
$ref: '#/definitions/GETPaymentItemPartTypewithSuccess'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETPaymentItemPartType:
properties:
amount:
description: 'The amount of the payment part item.
'
format: double
type: number
createdById:
description: 'The ID of the Zuora user who created the payment part item.
'
type: string
createdDate:
description: 'The date and time when the payment part item was created, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
debitMemoItemId:
description: 'The ID of the debit memo item associated with the payment part
item.
'
type: string
id:
description: 'The ID of the payment part item.
'
type: string
invoiceItemId:
description: 'The ID of the invoice item associated with the payment part
item.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
taxItemId:
description: 'The ID of the taxation item associated with the payment part
item.
'
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the payment part item.
'
type: string
updatedDate:
description: 'The date and time when the payment part item was last updated,
in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
GETPaymentItemPartTypewithSuccess:
properties:
amount:
description: 'The amount of the payment part item.
'
format: double
type: number
createdById:
description: 'The ID of the Zuora user who created the payment part item.
'
type: string
createdDate:
description: 'The date and time when the payment part item was created, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
debitMemoItemId:
description: 'The ID of the debit memo item associated with the payment part
item.
'
type: string
id:
description: 'The ID of the payment part item.
'
type: string
invoiceItemId:
description: 'The ID of the invoice item associated with the payment part
item.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
taxItemId:
description: 'The ID of the taxation item associated with the payment part
item.
'
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the payment part item.
'
type: string
updatedDate:
description: 'The date and time when the payment part item was last updated,
in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
title: itemParts
type: object
GETPaymentMethodResponse:
allOf:
- properties:
accountHolderInfo:
$ref: '#/definitions/GETPMAccountHolderInfo'
bankIdentificationNumber:
description: 'The first six or eight digits of the payment method''s number,
such as the credit card number or account number. Banks use this number
to identify a payment method.
'
type: string
createdBy:
description: ID of the user who created this payment method.
type: string
createdOn:
description: 'The date and time when the payment method was created, in
`yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
creditCardMaskNumber:
description: |
The masked credit card number, such as:
```
*********1112
```
type: string
creditCardType:
description: |
The type of the credit card or debit card.
Possible values include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Gateways](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways).
**Note:** This field is only returned for the Credit Card and Debit Card payment types.
type: string
deviceSessionId:
description: 'The session ID of the user when the `PaymentMethod` was created
or updated.
'
type: string
existingMandate:
description: 'Indicates whether the mandate is an existing mandate.
'
enum:
- 'Yes'
- 'No'
type: string
id:
description: 'The payment method ID.
'
type: string
ipAddress:
description: 'The IP address of the user when the payment method was created
or updated.
'
type: string
isDefault:
description: 'Indicates whether this payment method is the default payment
method for the account.
'
type: boolean
lastFailedSaleTransactionDate:
description: 'The date of the last failed attempt to collect payment with
this payment method.
'
format: date-time
type: string
lastTransaction:
description: ID of the last transaction of this payment method.
type: string
lastTransactionTime:
description: The time when the last transaction of this payment method happened.
format: date-time
type: string
mandateInfo:
$ref: '#/definitions/POSTPMMandateInfo'
maxConsecutivePaymentFailures:
description: 'The number of allowable consecutive failures Zuora attempts
with the payment method before stopping.
'
type: integer
numConsecutiveFailures:
description: "The number of consecutive failed payments for this payment\
\ method. It is reset to `0` upon successful payment. \n"
format: int32
type: integer
paymentRetryWindow:
description: 'The retry interval setting, which prevents making a payment
attempt if the last failed attempt was within the last specified number
of hours.
'
type: integer
secondTokenId:
description: |
A gateway unique identifier that replaces sensitive payment method data.
**Note:** This field is only returned for the Credit Card Reference Transaction payment type.
type: string
status:
description: 'The status of the payment method.
'
enum:
- Active
- Closed
- Scrubbed
type: string
tokenId:
description: |
A gateway unique identifier that replaces sensitive payment method data or represents a gateway's unique customer profile.
**Note:** This field is only returned for the Credit Card Reference Transaction payment type.
type: string
totalNumberOfErrorPayments:
description: 'The number of error payments that used this payment method.
'
format: int32
type: integer
totalNumberOfProcessedPayments:
description: 'The number of successful payments that used this payment method.
'
format: int32
type: integer
type:
description: 'The type of the payment method. For example, `CreditCard`.
'
type: string
updatedBy:
description: ID of the user who made the last update to this payment method.
type: string
updatedOn:
description: 'The last date and time when the payment method was updated,
in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
useDefaultRetryRule:
description: 'Indicates whether this payment method uses the default retry
rules configured in the Zuora Payments settings.
'
type: boolean
type: object
- $ref: '#/definitions/PaymentMethodObjectCustomFields'
- $ref: '#/definitions/GETPaymentMethodResponseBankTransfer'
- $ref: '#/definitions/GETPaymentMethodResponseACH'
- $ref: '#/definitions/GETPaymentMethodResponseCreditCard'
- $ref: '#/definitions/GETPaymentMethodResponsePayPal'
- $ref: '#/definitions/GETPaymentMethodResponseGooglePay'
- $ref: '#/definitions/GETPaymentMethodResponseApplePay'
GETPaymentMethodResponseACH:
properties:
bankABACode:
description: 'The nine-digit routing number or ABA number used by banks. This
field is only required if the `type` field is set to `ACH`.
'
type: string
bankAccountName:
description: 'The name of the account holder, which can be either a person
or a company. This field is only required if the `type` field is set to
`ACH`.
'
type: string
bankAccountNumber:
description: 'The bank account number associated with the ACH payment. This
field is only required if the `type` field is set to `ACH`.
'
type: string
bankAccountType:
description: |
The type of bank account associated with the ACH payment. This field is only required if the `type` field is set to `ACH`.
When creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify any of the allowed values as a dummy value, `Checking` preferably.
enum:
- BusinessChecking
- BusinessSaving
- Checking
- Saving
type: string
bankName:
description: |
The name of the bank where the ACH payment account is held. This field is only required if the `type` field is set to `ACH`.
When creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify a dummy value.
type: string
type: object
GETPaymentMethodResponseACHForAccount:
properties:
bankABACode:
description: 'The nine-digit routing number or ABA number used by banks. This
field is only required if the `type` field is set to `ACH`.
'
type: string
bankAccountName:
description: 'The name of the account holder, which can be either a person
or a company. This field is only required if the `type` field is set to
`ACH`.
'
type: string
type: object
GETPaymentMethodResponseApplePay:
properties:
appleBIN:
description: 'This field is only available for Apple Pay payment methods.
'
type: string
appleCardNumber:
description: 'This field is only available for Apple Pay payment methods.
'
type: string
appleCardType:
description: |
This field is only available for Apple Pay payment methods.
For Apple Pay payment methods on Adyen, the first 100 characters of [paymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant) returned from Adyen are stored in this field.
type: string
appleExpiryDate:
description: 'This field is only available for Apple Pay payment methods.
'
type: string
appleGatewayToken:
description: 'This field is only available for Apple Pay payment methods.
'
type: string
type: object
GETPaymentMethodResponseApplePayForAccount:
properties:
appleBIN:
description: 'This field is only available for Apple Pay payment methods.
'
type: string
appleCardNumber:
description: 'This field is only available for Apple Pay payment methods.
'
type: string
appleCardType:
description: |
This field is only available for Apple Pay payment methods.
For Apple Pay payment methods on Adyen, the first 100 characters of [paymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant) returned from Adyen are stored in this field.
type: string
appleExpiryDate:
description: 'This field is only available for Apple Pay payment methods.
'
type: string
appleGatewayToken:
description: 'This field is only available for Apple Pay payment methods.
'
type: string
type: object
GETPaymentMethodResponseBankTransfer:
properties:
IBAN:
description: 'The International Bank Account Number used to create the SEPA
payment method. The value is masked.
'
type: string
accountNumber:
description: 'The number of the customer''s bank account and it is masked.
'
type: string
bankCode:
description: "The sort code or number that identifies the bank. This is also\
\ known as the sort code. \n"
type: string
bankTransferType:
description: 'The type of the Bank Transfer payment method. For example, `SEPA`.
'
type: string
branchCode:
description: "The branch code of the bank used for Direct Debit. \
\ \n"
type: string
businessIdentificationCode:
description: "The BIC code used for SEPA. The value is masked. \n"
type: string
identityNumber:
description: "The identity number used for Bank Transfer. \n"
type: string
type: object
GETPaymentMethodResponseBankTransferForAccount:
properties:
IBAN:
description: 'The International Bank Account Number used to create the SEPA
payment method. The value is masked.
'
type: string
accountNumber:
description: 'The number of the customer''s bank account and it is masked.
'
type: string
bankCode:
description: "The sort code or number that identifies the bank. This is also\
\ known as the sort code. \n"
type: string
bankTransferType:
description: 'The type of the Bank Transfer payment method. For example, `SEPA`.
'
type: string
branchCode:
description: 'The branch code of the bank used for Direct Debit.
'
type: string
businessIdentificationCode:
description: "The BIC code used for SEPA. The value is masked. \n"
type: string
identityNumber:
description: "The identity number used for Bank Transfer. \n"
type: string
type: object
GETPaymentMethodResponseCreditCard:
properties:
cardNumber:
description: |
The masked credit card number.
When `cardNumber` is `null`, the following fields will not be returned:
- `expirationMonth`
- `expirationYear`
- `accountHolderInfo`
type: string
expirationMonth:
description: "One or two digits expiration month (1-12).\n \n"
type: integer
expirationYear:
description: 'Four-digit expiration year.
'
type: integer
securityCode:
description: "The CVV or CVV2 security code for the credit card or debit card.\n\
\ Only required if changing expirationMonth, expirationYear,\
\ or cardHolderName.\n To ensure PCI compliance, this value isn''t\
\ stored and can''t be queried. \n"
type: string
type: object
GETPaymentMethodResponseCreditCardForAccount:
properties:
cardNumber:
description: |
The masked credit card number.
When `cardNumber` is `null`, the following fields will not be returned:
- `expirationMonth`
- `expirationYear`
- `accountHolderInfo`
type: string
expirationMonth:
description: 'One or two digits expiration month (1-12).
'
type: integer
expirationYear:
description: 'Four-digit expiration year.
'
type: integer
securityCode:
description: "The CVV or CVV2 security code for the credit card or debit card.\n\
\ Only required if changing expirationMonth, expirationYear,\
\ or cardHolderName.\n To ensure PCI compliance, this value isn''t\
\ stored and can''t be queried. \n"
type: string
type: object
GETPaymentMethodResponseForAccount:
allOf:
- properties:
accountHolderInfo:
$ref: '#/definitions/GETAccountPMAccountHolderInfo'
bankIdentificationNumber:
description: 'The first six or eight digits of the payment method''s number,
such as the credit card number or account number. Banks use this number
to identify a payment method.
'
type: string
createdBy:
description: ID of the user who created this payment method.
type: string
createdOn:
description: 'The date and time when the payment method was created, in
`yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
creditCardMaskNumber:
description: |
The masked credit card number, such as:
```
*********1112
```
**Note:** This field is only returned for Credit Card Reference Transaction payment type.
type: string
creditCardType:
description: |
The type of the credit card or debit card.
Possible values include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Gateways](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways).
**Note:** This field is only returned for the Credit Card and Debit Card payment types.
type: string
deviceSessionId:
description: 'The session ID of the user when the `PaymentMethod` was created
or updated.
'
type: string
existingMandate:
description: 'Indicates whether the mandate is an existing mandate.
'
enum:
- 'Yes'
- 'No'
type: string
id:
description: 'The payment method ID.
'
type: string
ipAddress:
description: 'The IP address of the user when the payment method was created
or updated.
'
type: string
isDefault:
description: 'Indicates whether this payment method is the default payment
method for the account.
'
type: boolean
lastFailedSaleTransactionDate:
description: 'The date of the last failed attempt to collect payment with
this payment method.
'
format: date-time
type: string
lastTransaction:
description: ID of the last transaction of this payment method.
type: string
lastTransactionTime:
description: The time when the last transaction of this payment method happened.
format: date-time
type: string
mandateInfo:
$ref: '#/definitions/POSTAccountPMMandateInfo'
maxConsecutivePaymentFailures:
description: 'The number of allowable consecutive failures Zuora attempts
with the payment method before stopping.
'
type: integer
numConsecutiveFailures:
description: "The number of consecutive failed payments for this payment\
\ method. It is reset to `0` upon successful payment. \n"
format: int32
type: integer
paymentRetryWindow:
description: 'The retry interval setting, which prevents making a payment
attempt if the last failed attempt was within the last specified number
of hours.
'
type: integer
secondTokenId:
description: |
A gateway unique identifier that replaces sensitive payment method data.
**Note:** This field is only returned for the Credit Card Reference Transaction payment type.
type: string
status:
description: 'The status of the payment method.
'
enum:
- Active
- Closed
- Scrubbed
type: string
tokenId:
description: |
A gateway unique identifier that replaces sensitive payment method data or represents a gateway's unique customer profile.
**Note:** This field is only returned for the Credit Card Reference Transaction payment type.
type: string
totalNumberOfErrorPayments:
description: 'The number of error payments that used this payment method.
'
format: int32
type: integer
totalNumberOfProcessedPayments:
description: 'The number of successful payments that used this payment method.
'
format: int32
type: integer
type:
description: 'The type of the payment method. For example, `CreditCard`.
'
type: string
updatedBy:
description: ID of the user who made the last update to this payment method.
type: string
updatedOn:
description: 'The last date and time when the payment method was updated,
in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
useDefaultRetryRule:
description: 'Indicates whether this payment method uses the default retry
rules configured in the Zuora Payments settings.
'
type: boolean
type: object
- $ref: '#/definitions/PaymentMethodObjectCustomFieldsForAccount'
- $ref: '#/definitions/GETPaymentMethodResponseBankTransferForAccount'
- $ref: '#/definitions/GETPaymentMethodResponseACHForAccount'
- $ref: '#/definitions/GETPaymentMethodResponseCreditCardForAccount'
- $ref: '#/definitions/GETPaymentMethodResponsePayPalForAccount'
- $ref: '#/definitions/GETPaymentMethodResponseGooglePayForAccount'
- $ref: '#/definitions/GETPaymentMethodResponseApplePayForAccount'
GETPaymentMethodResponseGooglePay:
properties:
googleBIN:
description: 'This field is only available for Google Pay payment methods.
'
type: string
googleCardNumber:
description: 'This field is only available for Google Pay payment methods.
'
type: string
googleCardType:
description: |
This field is only available for Google Pay payment methods.
For Google Pay payment methods on Adyen, the first 100 characters of [paymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant) returned from Adyen are stored in this field.
type: string
googleExpiryDate:
description: 'This field is only available for Google Pay payment methods.
'
type: string
googleGatewayToken:
description: 'This field is only available for Google Pay payment methods.
'
type: string
type: object
GETPaymentMethodResponseGooglePayForAccount:
properties:
googleBIN:
description: 'This field is only available for Google Pay payment methods.
'
type: string
googleCardNumber:
description: 'This field is only available for Google Pay payment methods.
'
type: string
googleCardType:
description: |
This field is only available for Google Pay payment methods.
For Google Pay payment methods on Adyen, the first 100 characters of [paymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant) returned from Adyen are stored in this field.
type: string
googleExpiryDate:
description: 'This field is only available for Google Pay payment methods.
'
type: string
googleGatewayToken:
description: 'This field is only available for Google Pay payment methods.
'
type: string
type: object
GETPaymentMethodResponsePayPal:
properties:
BAID:
description: 'ID of a PayPal billing agreement. For example, I-1TJ3GAGG82Y9.
'
type: string
email:
description: "Email address associated with the PayPal payment method. \n"
type: string
preapprovalKey:
description: 'The PayPal preapproval key.
'
type: string
type: object
GETPaymentMethodResponsePayPalForAccount:
properties:
BAID:
description: 'ID of a PayPal billing agreement. For example, I-1TJ3GAGG82Y9.
'
type: string
email:
description: "Email address associated with the PayPal payment method. \n"
type: string
preapprovalKey:
description: "The PayPal preapproval key. \n"
type: string
type: object
GETPaymentMethodUpdaterInstancesResponse:
properties:
success:
description: Indicates whether the call is successful.
type: boolean
updaters:
description: 'Container for PMU instances available on your tenant.
'
properties:
daysToUpdateBeforeBcd:
description: 'The days prior to the Bill Cycle Day to start PMU service.
'
type: integer
id:
description: 'The ID of the PMU instance.
'
type: string
isActive:
description: '`true` indicates that this PMU instance is active.
'
type: boolean
isDefault:
description: '`true` indicates that it is the default PMU instance.
'
type: boolean
isTest:
description: '`true` indicates that this PMU instance is for testing.
'
type: string
processAssociatedGwOnly:
description: |
`true` indicates that only the payment methods for customer accounts that meet either of the following conditions are included in the updates:
- The default payment gateway of the customer account is set to an instance of the same type as `updaterGatewayType`.
- The default payment gateway of the customer account is not configured, but the default payment gateway of the tenant is set to an instance of the same type as `updaterGatewayType`.
`false` indicates that information of all payment methods is submitted.
type: boolean
processAutopayDefaultPmOnly:
description: "`true` indicates that only the default payment methods for\
\ customer accounts with the AutoPay setting enabled are included in\
\ the updates. \n\n`false` indicates that data of all payment methods\
\ for all customer accounts is submitted, regardless of whether AutoPay\
\ is enabled for the customer account or not.\n"
type: boolean
processMastercard:
description: '`true` indicates that Mastercard data processing is supported.
'
type: boolean
processVisa:
description: '`true` indicates that Visa data processing is supported.
'
type: boolean
updaterGatewayType:
description: 'The payment gateway type of the PMU instance.
'
type: string
updaterName:
description: 'The name of the PMU instance.
'
type: string
type: object
type: object
GETPaymentPartType:
properties:
amount:
description: 'The amount of the payment part.
'
format: double
type: number
createdById:
description: 'The ID of the Zuora user who created the payment part.
'
type: string
createdDate:
description: 'The date and time when the payment part was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
debitMemoId:
description: 'The ID of the debit memo associated with the payment part.
'
type: string
id:
description: 'The ID of the payment part.
'
type: string
invoiceId:
description: 'The ID of the invoice associated with the payment part.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
updatedById:
description: 'The ID of the Zuora user who last updated the payment part.
'
type: string
updatedDate:
description: 'The date and time when the payment part was last updated, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
GETPaymentPartTypewithSuccess:
properties:
amount:
description: 'The amount of the payment part.
'
format: double
type: number
createdById:
description: 'The ID of the Zuora user who created the payment part.
'
type: string
createdDate:
description: 'The date and time when the payment part was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
debitMemoId:
description: 'The ID of the debit memo associated with the payment part.
'
type: string
id:
description: 'The ID of the payment part.
'
type: string
invoiceId:
description: 'The ID of the invoice associated with the payment part.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the payment part.
'
type: string
updatedDate:
description: 'The date and time when the payment part was last updated, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
title: parts
type: object
GETPaymentPartsCollectionType:
properties:
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
parts:
description: 'Container for payment parts.
'
items:
$ref: '#/definitions/GETPaymentPartTypewithSuccess'
type: array
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETPaymentRunCollectionType:
properties:
nextPage:
description: 'The URL for requesting the next page of the response, if it
exists; otherwise absent.
'
type: string
paymentRuns:
description: 'Container for payment runs.
'
items:
$ref: '#/definitions/GETPaymentRunType'
type: array
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GETPaymentRunDataArrayResponse:
properties:
data:
description: 'Container for payment run data. Each element in the array is
a record processed by the payment run.
'
items:
$ref: '#/definitions/GETPaymentRunDataElementResponse'
type: array
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GETPaymentRunDataElementResponse:
allOf:
- properties:
accountId:
description: 'The customer account ID specified in the `data` field when
creating the payment run.
'
type: string
accountNumber:
description: 'The customer account number specified in the `data` field
when creating the payment run.
'
type: string
amount:
description: 'The amount specified in the `data` field when creating the
payment run. `null` is returned if it was not specified.
'
type: number
amountCollected:
description: 'The amount that is collected.
'
type: number
amountToCollect:
description: 'The amount to be collected.
'
type: number
comment:
description: 'The comment specified in the `data` field when creating the
payment run. `null` is returned if it was not specified.
'
type: string
currency:
description: |
This field is only available if support for standalone payments is enabled.
The currency of the standalone payment. The currency of the standalone payment can be different from the payment currency defined in the customer account settings.
type: string
documentId:
description: 'The billing document ID specified in the `data` field when
creating the payment run. `null` is returned if it was not specified.
'
type: string
documentNumber:
description: 'The billing document number specified in the `data` field
when creating the payment run. `null` is returned if it was not specified.
'
type: string
documentType:
description: 'The billing document type specified in the `data` field when
creating the payment run. `null` is returned if it was not specified.
'
enum:
- Invoice
- DebitMemo
type: string
errorCode:
description: 'The error code of the response.
'
type: string
errorMessage:
description: 'The detailed information of the error response.
'
type: string
paymentGatewayId:
description: 'The payment gateway ID specified in the `data` field when
creating the payment run. `null` is returned if it was not specified.
'
type: string
paymentMethodId:
description: 'The payment method ID specified in the `data` field when creating
the payment run. `null` is returned if it was not specified.
'
type: string
result:
description: 'Indicates whether the data is processed successfully or not.
'
enum:
- Processed
- Error
type: string
standalone:
description: |
This field is only available if the support for standalone payment is enabled.
The value `true` indicates this is a standalone payment that is created and processed in Zuora through Zuora gateway integration but will be settled outside of Zuora. No settlement data will be created. The standalone payment cannot be applied, unapplied, or transferred.
type: boolean
transactions:
description: 'Container for transactions that apply to the current request.
Each element contains an array of the settlement/payment applied to the
record.
'
items:
$ref: '#/definitions/GETPaymentRunDataTransactionElementResponse'
type: array
title: payment run data
type: object
- $ref: '#/definitions/PaymentObjectCustomFields'
GETPaymentRunDataTransactionElementResponse:
properties:
amount:
description: |
The total amount of the newly generated payment.
**Note:** This field is only available if `type` is `Payment`.
type: number
appliedAmount:
description: 'The amount allocated to this data record.
'
type: number
errorCode:
description: |
The error code of the response.
**Note:** This field is only available if `type` is `Payment`.
type: string
errorMessage:
description: |
The detailed information of the error response.
**Note:** This field is only available if `type` is `Payment`.
type: string
id:
description: 'The ID of the current transaction.
'
type: string
status:
description: |
The status of the newly generated payment.
**Note:** This field is only available if `type` is `Payment`.
enum:
- Processed
- Processing
- Error
type: string
type:
description: 'The type of the current transaction.
'
enum:
- Payment
- CreditMemo
- UnappliedPayment
- CreditBalanceAdjustment
type: string
title: payment run transaction
type: object
GETPaymentRunSummaryResponse:
properties:
numberOfCreditBalanceAdjustments:
description: |
**Note:** This field is only available if you have the Credit Balance feature enabled.
The number of credit balance adjustments that are successfully processed in the payment run.
type: integer
numberOfCreditMemos:
description: |
**Note:** This field is only available if you have the Invoice Settlement feature enabled.
The total number of credit memos that are successfully processed in the payment run.
type: integer
numberOfDebitMemos:
description: |
**Note:** This field is only available if you have the Invoice Settlement feature enabled.
The total number of debit memos that are picked up for processing in the payment run.
type: integer
numberOfErrorInputData:
description: 'The number of input data that are processed with errors.
'
type: integer
numberOfErrors:
description: 'The number of payments with the status of `Error` and `Processing`.
'
type: integer
numberOfInputData:
description: 'The total number of input data.
'
type: integer
numberOfInvoices:
description: |
**Note:** This field is only available if you have the Invoice Settlement feature enabled.
The total number of invoices that are picked up for processing in the payment run.
type: integer
numberOfPayments:
description: 'The number of payments that are successfully processed in the
payment run.
'
type: integer
numberOfProcessedInputData:
description: 'The number of input data that are successfully processed.
'
type: integer
numberOfReceivables:
description: |
The total number of receivables that are picked up for processing in the payment run.
The value of this field is the sum of the value of the `numberOfInvoices` field and that of the `numberOfDebitMemos` field.
type: integer
numberOfUnappliedPayments:
description: |
**Note:** This field is only available if you have the Invoice Settlement feature enabled.
The number of unapplied payments that are successfully processed in the payment run.
type: integer
numberOfUnprocessedDebitMemos:
description: |
**Note:** This field is only available if you have the Invoice Settlement feature enabled.
The number of debit memos with remaining positive balances after the payment run is completed.
type: integer
numberOfUnprocessedInvoices:
description: |
**Note:** This field is only available if you have the Invoice Settlement feature enabled.
The number of invoices with remaining positive balances after the payment run is completed.
type: integer
numberOfUnprocessedReceivables:
description: 'The number of receivables with remaining positive balances after
the payment run is completed.
'
type: integer
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
totalValues:
description: 'Container for total values.
'
items:
$ref: '#/definitions/GETPaymentRunSummaryTotalValues'
type: array
type: object
GETPaymentRunSummaryTotalValues:
properties:
totalValueOfCreditBalance:
description: |
**Note:** This field is only available if you have the Credit Balance feature enabled.
The total amount of credit balance after the payment run is completed.
type: string
totalValueOfCreditMemos:
description: |
**Note:** This field is only available if you have the Invoice Settlement feature enabled.
The total amount of credit memos that are successfully processed in the payment run.
type: string
totalValueOfDebitMemos:
description: |
**Note:** This field is only available if you have the Invoice Settlement feature enabled.
The total amount of debit memos that are picked up for processing in the payment run.
type: string
totalValueOfErrors:
description: 'The total amount of receivables associated with the payments
with the status of `Error` and `Processing`.
'
type: string
totalValueOfInvoices:
description: |
**Note:** This field is only available if you have the Invoice Settlement feature enabled.
The total amount of invoices that are picked up for processing in the payment run.
type: string
totalValueOfPayments:
description: 'The total amount of payments that are successfully processed
in the payment run.
'
type: string
totalValueOfReceivables:
description: |
The total amount of receivables associated with the payment run.
The value of this field is the sum of the value of the `totalValueOfInvoices` field and that of the `totalValueOfDebitMemos` field.
type: string
totalValueOfUnappliedPayments:
description: |
**Note:** This field is only available if you have the Invoice Settlement feature enabled.
The total amount of unapplied payments that are successfully processed in the payment run.
type: integer
totalValueOfUnprocessedDebitMemos:
description: |
**Note:** This field is only available if you have the Invoice Settlement feature enabled.
The total amount of debit memos with remaining positive balances after the payment run is completed.
type: string
totalValueOfUnprocessedInvoices:
description: |
**Note:** This field is only available if you have the Invoice Settlement feature enabled.
The total amount of invoices with remaining positive balances after the payment run is completed.
type: string
totalValueOfUnprocessedReceivables:
description: 'The total amount of receivables with remaining positive balances
after the payment run is completed.
'
type: string
title: totalValues
type: object
GETPaymentRunType:
properties:
accountId:
description: 'The ID of the customer account associated with the payment run.
'
type: string
applyCreditBalance:
description: |
**Note:** This field is only available if you have the Credit Balance feature enabled and the Invoice Settlement feature disabled.
Whether to apply credit balances in the payment run. This field is only available when you have Invoice Settlement feature disabled.
type: boolean
autoApplyCreditMemo:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Whether to automatically apply a posted credit memo to one or more receivables in the payment run.
type: boolean
autoApplyUnappliedPayment:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Whether to automatically apply unapplied payments to one or more receivables in the payment run.
type: boolean
batch:
description: 'The alias name given to a batch.
'
example: Batch1
type: string
billCycleDay:
description: "The billing cycle day (BCD), the day of the month when a bill\
\ run generates invoices for the account. \n"
example: 1
type: string
billingRunId:
description: 'The ID of the bill run.
'
format: uuid
type: string
collectPayment:
description: "Whether to process electronic payments during the execution\
\ of payment runs. \n"
type: boolean
completedOn:
description: 'The date and time when the payment run is completed, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 11:39:58.
'
format: date-time
type: string
consolidatedPayment:
description: "**Note:** The **Process Electronic Payment** permission also\
\ needs to be allowed for a Manage Payment Runs role to work. See [Payments\
\ Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/e_Payments_Roles)\
\ for more information. \n\nWhether to process a single payment for all\
\ receivables that are due on an account.\n"
type: boolean
createdById:
description: 'The ID of the Zuora user who created the payment run.
'
type: string
createdDate:
description: 'The date and time when the payment run was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
currency:
description: 'A currency defined in the web-based UI administrative settings.
'
example: USD
type: string
executedOn:
description: 'The date and time when the payment run is executed, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 11:30:37.
'
format: date-time
type: string
id:
description: 'The ID of the payment run.
'
type: string
number:
description: 'The identification number of the payment run.
'
type: string
organizationLabels:
description: "The organization(s) that the object belongs to. \n\nNote: This\
\ field is available only when the Multi-Org feature is enabled.\n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
paymentGatewayId:
description: 'The ID of the gateway instance that processes the payment.
'
format: uuid
type: string
processPaymentWithClosedPM:
description: "**Note:** The **Process Electronic Payment** permission also\
\ needs to be allowed for a Manage Payment Runs role to work. See [Payments\
\ Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/e_Payments_Roles)\
\ for more information. \n\nWhether to process payments even if the default\
\ payment method is closed.\n"
type: boolean
runDate:
description: 'The date and time when the scheduled payment run is to be executed
for collecting payments.
'
format: date-time
type: string
status:
description: 'The status of the created payment run.
'
enum:
- Pending
- Processing
- Completed
- Error
- Canceled
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
targetDate:
description: "The target date used to determine which receivables to be collected\
\ in the payment run. \n"
format: date
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the payment run.
'
type: string
updatedDate:
description: 'The date and time when the payment run was last updated, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
title: paymentRuns
type: object
GETPaymentScheduleItemResponse:
allOf:
- properties:
accountId:
description: 'ID of the customer account that owns the payment schedule
item, for example `402880e741112b310149b7343ef81234`.
'
type: string
amount:
description: 'The total amount of the payment schedule item.
'
format: decimal
type: number
balance:
description: 'The remaining balance of payment schedule item.
'
format: decimal
type: number
billingDocument:
properties:
id:
description: 'ID of the billing document. for example, `2c9890306fb2121e016fb21a6b550041`.
'
type: string
number:
description: 'The number of the billing docuemnt, for example, `INV00002345`.
'
type: string
type:
description: 'Indicates whether the associated billing document is a
debit memo or a invoice.
'
type: string
type: object
cancellationReason:
description: "The reason for the cancellation of payment schedule item.\
\ \n"
type: string
createdById:
description: 'The ID of the user who created the payment schedule item.
'
type: string
createdDate:
description: 'The date and time when the payment schedule item was created.
'
format: date
type: string
currency:
description: 'The currency of the payment.
'
type: string
description:
description: 'The description of the payment schedule item.
'
type: string
errorMessage:
description: 'The error message indicating if the error is related to the
configuration or the payment collection.
'
type: string
id:
description: 'ID of the payment schedule item. For example, `412880e749b72b310149b7343ef81346`.
'
type: string
number:
description: 'Number of the payment schedule item.
'
type: string
paymentGatewayId:
description: 'ID of the payment gateway of the payment schedule item.
'
type: string
paymentId:
description: "ID of the payment that is created by the payment schedule\
\ item\uFF0C or linked to the payment schedule item. This field is only\
\ available if the request doesn\u2019t specify `zuora-version`, or `zuora-version`\
\ is set to a value equal to or smaller than\_`336.0`. \n"
type: string
paymentMethodId:
description: 'ID of the payment method of the payment schedule item.
'
type: string
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
paymentScheduleId:
description: 'ID of the payment schedule that contains the payment schedule
item, for example, `ID402880e749b72b310149b7343ef80005`,
'
type: string
paymentScheduleNumber:
description: 'Number of the payment schedule that contains the payment schedule
item, for example, `ID402880e749b72b310149b7343ef80005`,
'
type: string
psiPayments:
description: "Container for payments linked to the payment schedule item.\
\ \n"
items:
$ref: '#/definitions/LinkedPaymentID'
type: array
runHour:
description: "At which hour in the day in the tenant\u2019s timezone this\
\ payment will be collected. If the payment `runHour` and `scheduledDate`\
\ are backdated, the system will collect the payment when the next runHour\
\ occurs.\n"
type: integer
scheduledDate:
description: 'The scheduled date when the payment is processed.
'
format: date
type: string
standalone:
description: 'Indicates if the payment created by the payment schedule item
is a standalone payment.
'
type: boolean
status:
description: |
ID of the payment method of the payment schedule item.
- `Pending`: Waiting for processing.
- `Processed`: The payment has been collected.
- `Error`: Failed to collect the payment.
- `Canceled`: After a pending payment schedule item is canceled by the user, the item is marked as `Canceled`.
enum:
- Pending
- Processed
- Error
- Canceled
type: string
success:
description: "Returns `true` if the request was processed successfully.\
\ \n"
type: boolean
updatedById:
description: 'The ID of the user who updated the payment schedule item.
'
type: string
updatedDate:
description: 'The date and time when the payment schedule item was last
updated.
'
format: date
type: string
type: object
- $ref: '#/definitions/PaymentScheduleItemCustomFields'
GETPaymentScheduleResponse:
allOf:
- properties:
accountId:
description: 'ID of the account that owns the payment schedule.
'
type: string
accountNumber:
description: 'Number of the account that owns the payment schedule.
'
type: string
billingDocument:
properties:
id:
description: 'ID of the billing document. for example, `2c9890306fb2121e016fb21a6b550041`.
'
type: string
number:
description: 'The number of the billing docuemnt, for example, `INV00002345`.
'
type: string
type:
description: 'Indicates whether the associated billing document is a
debit memo or a invoice.
'
type: string
type: object
createdById:
description: 'The ID of the user who created this payment schedule.
'
type: string
createdDate:
description: 'The date and time the payment schedule is created.
'
format: date
type: string
description:
description: 'The description of the payment schedule.
'
type: string
id:
description: 'ID of the payment schedule.
'
type: string
isCustom:
description: 'Indicates if the payment schedule is a custom payment schedule.
'
type: boolean
items:
description: 'Container for payment schedule items.
'
items:
$ref: '#/definitions/PaymentScheduleItemCommonResponse'
type: array
nextPaymentDate:
description: 'The date the next payment will be processed.
'
format: date
type: string
occurrences:
description: 'The number of payment schedule items that are created by this
payment schedule.
'
type: integer
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
paymentScheduleNumber:
description: 'Number of the payment schedule.
'
type: string
period:
description: |
For recurring payment schedule only. The period of payment generation. Available values include: `Monthly`, `Weekly`, `BiWeekly`.
Return `null` for custom payment schedules.
type: string
prepayment:
description: 'Indicates whether the payments created by the payment schedule
are used as a reserved payment. This field is available only if the prepaid
cash drawdown permission is enabled. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown)
for more information.
'
type: boolean
recentPaymentDate:
description: 'The date the last payment was processed.
'
format: date
type: string
runHour:
description: "[0,1,2,~,22,23]\n\nAt which hour in the day in the tenant\u2019\
s timezone this payment will be collected.\n\nReturn `0` for custom payment\
\ schedules.\n"
type: integer
standalone:
description: 'Indicates if the payments that the payment schedule created
are standalone payments.
'
type: boolean
startDate:
description: 'The date when the first payment of this payment schedule is
proccessed.
'
format: date
type: string
status:
description: |
The status of the payment schedule.
- Active: There is still payment schedule item to process.
- Canceled: After a payment schedule is canceled by the user, the schedule is marked as `Canceled`.
- Completed: After all payment schedule items are processed, the schedule is marked as `Completed`.
enum:
- Active
- Canceled
- Completed
type: string
success:
description: "Returns `true` if the request was processed successfully.\
\ \n"
type: boolean
totalAmount:
description: 'The total amount that will be collected by the payment schedule.
'
type: number
totalPaymentsErrored:
description: 'The number of errored payments.
'
type: integer
totalPaymentsProcessed:
description: 'The number of processed payments.
'
type: integer
updatedById:
description: 'The ID of the user who last updated this payment schedule.
'
type: string
updatedDate:
description: 'The date and time the payment schedule is last updated.
'
format: date
type: string
type: object
- $ref: '#/definitions/PaymentScheduleCustomFields'
GETPaymentScheduleStatisticResponse:
description: 'The object that contains the payment schedule statistic of the specified
date.
'
properties:
date:
description: 'The specified date.
'
format: date
type: string
paymentRuns:
items:
$ref: '#/definitions/PaymentRunStatistic'
title: PaymentRunStatistic
type: array
paymentScheduleItems:
properties:
error:
description: "The number of errored payment schedule items. \
\ \n"
type: integer
pending:
description: 'The number of pending payment schedule items.
'
type: integer
processed:
description: "The number of processed payment schedule items. \n"
type: integer
type: object
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GETPaymentSchedulesResponse:
description: 'Container for payment schedules.
'
items:
$ref: '#/definitions/PaymentScheduleCommonResponse'
type: array
GETPriceBookItemIntervalPrice:
properties:
duration:
description: 'The duration of the interval.
'
type: number
overagePrice:
description: |
The overage price of the interval.
This field is only applicable for charges with the Overage or Tiered with Overage pricing charge model.
type: number
price:
description: "The price of the interval. \n\nThis field is only applicable\
\ for charges with the Flat Fee, Per Unit, or Delivery Pricing charge model.\n"
type: number
sequence:
description: "The sequence of the interval. \n"
type: number
tiers:
description: "Container for the tiers of the interval. \n\nThis field is only\
\ applicable for charges with the Tiered, Volume, or Tiered with Overage\
\ pricing charge model.\n"
items:
$ref: '#/definitions/GETPriceBookItemTier'
type: array
type:
description: 'The type of the interval.
'
enum:
- Infinity
- Day
- Month
type: string
title: intervalPrices
type: object
GETPriceBookItemResponse:
properties:
currency:
description: 'The currency for the price.
'
type: string
defaultQuantity:
description: "The default quantity. \n\nThis field is applicable only for\
\ one-time and recurring charges.\n"
type: number
effectiveEndDate:
description: 'The effective end date of the price book item.
'
format: date
type: string
effectiveStartDate:
description: 'The effective start date of the price book item.
'
format: date
type: string
id:
description: 'The unique ID of the price book item.
'
type: string
includedUnits:
description: "The number of units included in the price book item. \n\nThis\
\ field is only applicable for charges with the Overage pricing charge model.\
\ \n"
type: number
intervalPrices:
description: "Container for the interval prices of the product rate plan charge.\
\ \n\nThis field is applicable only if you want to use interval prices for\
\ different periods.\n"
items:
$ref: '#/definitions/GETPriceBookItemIntervalPrice'
type: array
listPriceBase:
description: "The list price base. \n\nThis field is applicable only for recurring\
\ charges.\n\n**Note**: The `Per_Year` enum value is available only if you\
\ have the Annual List Price feature enabled.\n"
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
type: string
number:
description: 'The unique number of the price book item.
'
type: string
offerId:
description: 'The ID of the offer associated with the price book item.
'
type: string
offerNumber:
description: 'The number of the offer associated with the price book item.
'
type: string
overagePrice:
description: "The overage price of the price book item. \n\nThis field is\
\ only applicable for charges with the Overage or Tiered with Overage pricing\
\ charge model.\n"
type: number
price:
description: "The price of the price book item. \n\nThis field is only applicable\
\ for charges with the Flat Fee, Per Unit, or Delivery Pricing charge model.\n"
type: number
productChargeId:
description: 'The ID of the product rate plan charge associated with the price
book item.
'
type: string
success:
description: 'Whether the call succeeded.
'
type: boolean
tiers:
description: "Container for the tiers of the price book item. \n\nThis field\
\ is only applicable for charges with the Tiered, Volume, or Tiered with\
\ Overage pricing charge model.\n"
items:
$ref: '#/definitions/GETPriceBookItemTier'
type: array
type: object
GETPriceBookItemTier:
properties:
endingUnit:
description: 'The ending unit of the tier.
'
type: number
price:
description: 'The price of the tier.
'
type: number
priceFormat:
description: 'The price format of the tier.
'
enum:
- FlatFee
- PerUnit
type: string
startingUnit:
description: 'The starting unit of the tier.
'
type: number
tier:
description: 'The number of the tier.
'
type: number
title: tiers
type: object
GETProductChargeDefinitionPricing:
properties:
currency:
description: 'The currency for the price.
'
type: string
discountAmount:
description: 'The specific amount for a fixed discount. The field is applicable
only for charges based on the Discount-Fixed Amount charge model.
'
format: double
type: number
discountPercentage:
description: 'The percentage of discount for a percentage discount. The field
is applicable only for charges based on the Discount-Percentage charge model.
'
format: double
type: number
includedUnits:
description: "The number of units included in this price item. \n\nThis field\
\ is only applicable for charges based on the Overage Pricing charge model.\n"
type: number
overagePrice:
description: "The overage price of the price item. \n\nThis field is only\
\ applicable for charges based on the Overage Pricing or Tiered with Overage\
\ Pricing charge model.\n"
type: number
price:
description: "The price of this item. \n\nThis field is only applicable for\
\ charges based on the following charge models:\n - Flat Fee\n - Per Unit\n\
\ - Delivery Pricing\n"
type: number
tiers:
description: "Container for the tiers of the price item. \n\nThis field is\
\ only applicable for charges based on the following charge models:\n -\
\ Tiered Pricing\n - Volume Pricing\n - Tiered with Overage Pricing\n"
items:
$ref: '#/definitions/GETChargeDefinitionPricingTier'
type: array
title: prices
type: object
GETProductChargeDefinitionResponse:
properties:
applyDiscountTo:
description: 'Indicates which type of charge the discount charge applies to.
'
enum:
- ONETIME
- RECURRING
- USAGE
- ONETIMERECURRING
- ONETIMEUSAGE
- RECURRINGUSAGE
- ONETIMERECURRINGUSAGE
type: string
billingDay:
description: 'The bill cycle type for the charge.
'
type: string
billingPeriod:
description: 'The billing period for the product charge definition.
'
type: string
billingPeriodAlignment:
description: 'The billing period alignment setting for the charge.
'
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
- AlignToTermEnd
type: string
billingTiming:
description: 'The billing timing setting for the product charge definition.
'
enum:
- IN_ADVANCE
- IN_ARREARS
type: string
chargeModel:
description: 'Determines how to calculate charges. Charge models must be individually
activated in Zuora Billing administration.
'
enum:
- DiscountFixedAmount
- DiscountPercentage
- FlatFee
- PerUnit
- Overage
- Tiered
- TieredWithOverage
- Volume
- Delivery
- MultiAttributePricing
- PreratedPerUnit
- PreratedPricing
- HighWatermarkVolumePricing
- HighWatermarkTieredPricing
type: string
chargeType:
description: 'Indicates the type of charge.
'
enum:
- OneTime
- Recurring
- Usage
type: string
customFields:
$ref: '#/definitions/ProductChargeDefinitionObjectCustomFields'
defaultQuantity:
description: "The default quantity. \n\nThis field is applicable only for\
\ one-time and recurring charges.\n"
type: number
deliverySchedule:
$ref: '#/definitions/GETDeliverySchedule'
description:
description: 'The description for the charge.
'
type: string
discountClass:
description: |
The class that the discount belongs to. The discount class defines the order in which discount product rate plan charges are applied.
For more information, see [Manage Discount Classes](https://knowledgecenter.zuora.com/BC_Subscription_Management/Product_Catalog/B_Charge_Models/Manage_Discount_Classes).
type: string
discountLevel:
description: 'The application scope of the discount charge. For example, if
the value of this field is `subscription` and the value of the `applyDiscountTo`
field is `RECURRING`, the discount charge applies to all recurring charges
in the same subscription as the discount charge.
'
enum:
- rateplan
- subscription
- account
type: string
effectiveEndDate:
description: 'The effective end date of the product charge definition.
'
format: date-time
type: string
effectiveStartDate:
description: 'The effective start date of the product charge definition.
'
format: date-time
type: string
endDateCondition:
description: 'The end date condition for this charge.
'
enum:
- Subscription_End
- One_Time
- Fixed_Period
- Specific_End_Date
type: string
excludeItemBillingFromRevenueAccounting:
description: "Indicates whether to exclude the related invoice items, invoice\
\ item adjustments, credit memo items, and debit memo items from revenue\
\ accounting.\n\n**Note**: This field is only available if you have the\
\ Order to Revenue or Billing - Revenue Integration feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
description: |
Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.
**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.
type: boolean
financeInformation:
description: 'Container for finance information of the rate plan charge.
'
properties:
accountsReceivableAccountingCode:
description: 'The accounting code for accounts receivable.
'
type: string
accountsReceivableAccountingCodeType:
description: 'The type of the accounting code for accounts receivable.
'
type: string
adjustmentLiabilityAccountingCode:
description: "The accounting code for adjustment liability. \n\n**Note**:\
\ This field is only available if you have the Zuora Billing - Revenue\
\ Integration feature enabled.\n"
type: string
adjustmentLiabilityAccountingCodeType:
description: "The type associated with the adjustment liability accounting\
\ code. \n\n**Note**: This field is only available if you have the Zuora\
\ Billing - Revenue Integration feature enabled.\n"
type: string
adjustmentRevenueAccountingCode:
description: "The accounting code for adjustment revenue. \n\n**Note**:\
\ This field is only available if you have the Zuora Billing - Revenue\
\ Integration feature enabled.\n"
type: string
adjustmentRevenueAccountingCodeType:
description: "The type associated with the adjustment revenue accounting\
\ code. \n\n**Note**: This field is only available if you have the Zuora\
\ Billing - Revenue Integration feature enabled.\n"
type: string
contractAssetAccountingCode:
description: "The accounting code for contract asset. \n\n**Note**: This\
\ field is only available if you have the Zuora Billing - Revenue Integration\
\ feature enabled.\n"
type: string
contractAssetAccountingCodeType:
description: "The type associated with the contract asset accounting code.\
\ \n\n**Note**: This field is only available if you have the Zuora Billing\
\ - Revenue Integration feature enabled.\n"
type: string
contractLiabilityAccountingCode:
description: "The accounting code for contract liability. \n\n**Note**:\
\ This field is only available if you have the Zuora Billing - Revenue\
\ Integration feature enabled.\n"
type: string
contractLiabilityAccountingCodeType:
description: "The type associated with the contract liability accounting\
\ code. \n\n**Note**: This field is only available if you have the Zuora\
\ Billing - Revenue Integration feature enabled.\n"
type: string
contractRecognizedRevenueAccountingCode:
description: "The accounting code for contract recognized revenue. \n\n\
**Note**: This field is only available if you have the Zuora Billing\
\ - Revenue Integration feature enabled.\n"
type: string
contractRecognizedRevenueAccountingCodeType:
description: "The type associated with the contract recognized revenue\
\ accounting code. \n\n**Note**: This field is only available if you\
\ have the Zuora Billing - Revenue Integration feature enabled.\n"
type: string
deferredRevenueAccountingCode:
description: 'The accounting code for deferred revenue, such as Monthly
Recurring Liability.
'
type: string
deferredRevenueAccountingCodeType:
description: "The type associated with the deferred revenue accounting\
\ code, such as Deferred Revenue. \n"
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for recognized revenue, such as Monthly
Recurring Charges or Overage Charges.
'
type: string
recognizedRevenueAccountingCodeType:
description: 'The type associated with the recognized revenue accounting
code, such as Sales Revenue or Sales Discount.
'
type: string
unbilledReceivablesAccountingCode:
description: "The accounting code for unbilled receivables. \n\n**Note**:\
\ This field is only available if you have the Zuora Billing - Revenue\
\ Integration feature enabled.\n"
type: string
unbilledReceivablesAccountingCodeType:
description: "The type associated with the unbilled receivables accounting\
\ code. \n\n**Note**: This field is only available if you have the Zuora\
\ Billing - Revenue Integration feature enabled.\n"
type: string
title: financeInformation
type: object
isAllocationEligible:
description: |
Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `false`.
**Values**: `true`, `false`
**Note**: This field is available only if you have the Additional Revenue Fields property enabled.
type: boolean
isDefault:
description: 'Indicates whether this charge definition is the default one
for the charge.
'
type: boolean
isStackedDiscount:
description: |
**Note**: This field is only applicable to the Discount - Percentage charge model.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 130 or higher. Otherwise, an error occurs.
This field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:
- `True`: This is a stacked discount, which should be calculated by stacking with other discounts.
- `False`: This is not a stacked discount, which should be calculated in sequence with other discounts.
For more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).
type: boolean
isUnbilled:
description: "Specifies how to perform the accounting during revenue recognition.\
\ The default value is `false`.\n\n**Values**: `true`, `false`\n\n**Note**:\
\ This field is available only if you have the Additional Revenue Fields\
\ property enabled. \n"
type: boolean
listPriceBase:
description: "The list price base. \n\nThis field is applicable only for recurring\
\ charges.\n\n**Note**: The `Per_Year` enum value is available only if you\
\ have the Annual List Price feature enabled.\n"
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
type: string
numberOfPeriod:
description: 'Indicates the number of periods to use when calculating charges
in an overage smoothing charge model. The valid value is a positive whole
number.
'
format: int64
type: integer
overageCalculationOption:
description: "Determines when to calculate overage charges. If the value of\
\ the `SmoothingMode` field is not specified, the value of this field is\
\ ignored.\n\n**Values**: \n - `EndOfSmoothingPeriod`: This option is used\
\ by default. The overage is charged at the end of the smoothing period.\n\
\ - `PerBillingPeriod`: The overage is charged on-demand rather than waiting\
\ until the end of the smoothing period.\n"
enum:
- EndOfSmoothingPeriod
- PerBillingPeriod
type: string
overageUnusedUnitsCreditOption:
description: 'Determines whether to credit the customer with unused units
of usage.
'
enum:
- NoCredit
- CreditBySpecificRate
type: string
priceChangeOption:
default: NoChange
description: 'Applies an automatic price change when a termed subscription
is renewed.
'
enum:
- NoChange
- SpecificPercentageValue
- UseLatestProductCatalogPricing
type: string
priceIncreaseOption:
description: 'Applies an automatic price change when a termed subscription
is renewed.
'
enum:
- FromTenantPercentageValue
- SpecificPercentageValue
type: string
priceIncreasePercentage:
description: |
Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the `priceIncreaseOption` value to `SpecificPercentageValue`.
**Character limit**: 16
**Values**: a decimal value between -100 and 100
format: double
type: number
prices:
description: 'Container for the prices of the product charge definition.
'
items:
$ref: '#/definitions/GETProductChargeDefinitionPricing'
type: array
productCategory:
description: "This field is used to maintain the product category for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
productChargeDefinitionId:
description: 'The unique ID of the product charge definition.
'
type: string
productChargeDefinitionNumber:
description: 'The unique number (natural key) of the product charge definition.
'
type: string
productClass:
description: "This field is used to maintain the product class for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
productDiscountApplyDetails:
description: "Container for the application details about a discount product\
\ rate plan charge. \n\nOnly discount product rate plan charges have values\
\ for this field.\n"
items:
$ref: '#/definitions/GETProductDiscountApplyDetailsType'
type: array
productFamily:
description: "This field is used to maintain the product family for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled.\n"
type: string
productLine:
description: "This field is used to maintain the product line for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled.\n"
type: string
productRatePlanChargeId:
description: 'The unique ID of the product charge of the charge definition.
'
type: string
productRatePlanChargeNumber:
description: 'The unique number (natural key) of the product charge of the
charge definition.
'
type: string
productRatePlanId:
description: 'The unique ID of the product rate plan that uses this charge
definition.
'
type: string
productRatePlanName:
description: 'Th name of the product rate plan that uses this charge definition.
'
type: string
productRatePlanNumber:
description: 'The unique number (natural key) of the product rate plan that
uses this charge definition.
'
type: string
ratingGroup:
default: ByBillingPeriod
description: "The rating group based on which usage records are rated.\n\n\
Possible values: \n - `ByBillingPeriod`: The rating is based\
\ on all the usages in a billing period. \n - `ByUsageStartDate`: The rating\
\ is based on all the usages on the same usage start date. \n - `ByUsageRecord`:\
\ The rating is based on each usage record.\n - `ByUsageUpload`: The rating\
\ is based on all the usages in a uploaded usage file (`.xls` or `.csv`).\n\
\ - `ByGroupId`: The rating is based on all the usages in a custom group.\n\
\n**Notes:** \n - The `ByBillingPeriod` value can be applied for all charge\
\ models. \n - The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload`\
\ values can only be applied for Per Unit, Volume Pricing, and Tiered Pricing\
\ charge models. \n - The `ByGroupId` value is only available if you have\
\ the Active Rating feature enabled.\n - Use this field only for Usage\
\ charges. One-time charges and recurring charges return `NULL`.\n"
enum:
- ByBillingPeriod
- ByUsageStartDate
- ByUsageRecord
- ByUsageUpload
- ByGroupId
type: string
recognizedRevenueAccount:
description: |
The name of the recognized revenue account for this charge.
- Required when the Allow Blank Accounting Code setting is No.
- Optional when the Allow Blank Accounting Code setting is Yes.
This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
maxLength: 100
type: string
revRecCode:
description: 'Associates this product rate plan charge with a specific revenue
recognition code.
'
maxLength: 70
type: string
revRecTriggerCondition:
description: 'Indicates when revenue recognition begins.
'
enum:
- ContractEffectiveDate
- ServiceActivationDate
- CustomerAcceptanceDate
type: string
revenueRecognitionRuleName:
description: 'Determines when to recognize the revenue for this charge.
'
enum:
- Recognize upon invoicing
- Recognize daily over time
type: string
smoothingModel:
description: 'Indicates the smoothing model for an overage smoothing charge
model.
'
enum:
- RollingWindow
- Rollover
type: string
specificBillingPeriod:
description: 'The specific number of billing period for the product charge
definition.
'
type: number
specificListPriceBase:
description: "The number of months for the list price base of the charge definition.\
\ \nThis field is `null` if the `listPriceBase` field is not set to `Per_Specific_Months`.\n"
format: int32
maximum: 200
minimum: 1
type: integer
success:
description: 'Indicates whether the request succeeded.
'
type: boolean
taxCode:
description: |
Specifies the tax code for taxation rules.
**Note**: This value affects the tax calculation of the rate plan charge.
maxLength: 64
type: string
taxMode:
description: |
Determines how to define taxation for the charge.
**Note**: This value affects the tax calculation of the rate plan charge.
enum:
- TaxExclusive
- TaxInclusive
type: string
taxable:
description: |
Determines whether the charge definition is taxable.
**Character limit**: 5
**Values**: `True`, `False`
**Note**: This value affects the tax calculation of the rate plan charge.
type: boolean
term:
description: "The number of periods of a termed subscription that is eligible\
\ for this charge definition. This field is applicable when the `termType`\
\ field is set to `TERMED`, \nand is to be used together with the `termPeriodType`\
\ field.\n"
type: number
termPeriodType:
description: 'The period type for the subscription term that is eligible for
this charge definition.
'
enum:
- Month
- Year
- Day
- Week
type: string
termType:
description: 'The type of the subscription that is eligible for this charge
definition.
'
enum:
- TERMED
- EVERGREEN
type: string
triggerEvent:
description: |
Specifies when to start billing the customer for the charge definition.
**Values**:
- `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.
- `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.
- `CustomerAcceptance` is when the customer accepts the services or products for a subscription.
enum:
- ContractEffective
- ServiceActivation
- CustomerAcceptance
type: string
uom:
description: 'Indicates the unit of measure (UOM) that is configured in **Settings
> Billing** for the product rate plan charge.
'
type: string
upToPeriods:
description: 'The number of up-to periods for this charge.
'
type: number
upToPeriodsType:
description: 'The up-to-periods type for this charge.
'
enum:
- Billing_Periods
- Days
- Weeks
- Months
- Years
type: string
usageRecordRatingOption:
default: EndOfBillingPeriod
description: 'Determines how Zuora processes usage records for per-unit usage
charges.
'
enum:
- EndOfBillingPeriod
- OnDemand
type: string
useDiscountSpecificAccountingCode:
description: |
Determines whether to define a new accounting code for the new discount charge.
**Character limit**: 5
**Values**: `True`, `False`
type: boolean
useTenantDefaultForPriceChange:
description: "Applies the tenant-level percentage uplift value for an automatic\
\ price change to a termed subscription's renewal. \n\n**Character limit**:\
\ 5\n\n**Values**: `true`, `false`\n"
type: boolean
type: object
GETProductChargeDefinitionsResponse:
properties:
chargeDefinitions:
description: 'The list of the product charge definitions that are retrieved.
'
items:
properties:
applyDiscountTo:
description: 'Indicates which type of charge the discount charge applies
to.
'
enum:
- ONETIME
- RECURRING
- USAGE
- ONETIMERECURRING
- ONETIMEUSAGE
- RECURRINGUSAGE
- ONETIMERECURRINGUSAGE
type: string
billingDay:
description: 'The bill cycle type for the charge.
'
type: string
billingPeriod:
description: 'The billing period for the product charge definition.
'
type: string
billingPeriodAlignment:
description: 'The billing period alignment setting for the charge.
'
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
- AlignToTermEnd
type: string
billingTiming:
description: 'The billing timing setting for the product charge definition.
'
enum:
- IN_ADVANCE
- IN_ARREARS
type: string
chargeModel:
description: 'Determines how to calculate charges. Charge models must
be individually activated in Zuora Billing administration.
'
enum:
- DiscountFixedAmount
- DiscountPercentage
- FlatFee
- PerUnit
- Overage
- Tiered
- TieredWithOverage
- Volume
- Delivery
- MultiAttributePricing
- PreratedPerUnit
- PreratedPricing
- HighWatermarkVolumePricing
- HighWatermarkTieredPricing
type: string
chargeType:
description: 'Indicates the type of charge.
'
enum:
- OneTime
- Recurring
- Usage
type: string
customFields:
$ref: '#/definitions/ProductChargeDefinitionObjectCustomFields'
defaultQuantity:
description: "The default quantity. \n\nThis field is applicable only\
\ for one-time and recurring charges.\n"
type: number
deliverySchedule:
$ref: '#/definitions/GETDeliverySchedule'
description:
description: 'The description for the charge.
'
type: string
discountClass:
description: |
The class that the discount belongs to. The discount class defines the order in which discount product rate plan charges are applied.
For more information, see [Manage Discount Classes](https://knowledgecenter.zuora.com/BC_Subscription_Management/Product_Catalog/B_Charge_Models/Manage_Discount_Classes).
type: string
discountLevel:
description: 'The application scope of the discount charge. For example,
if the value of this field is `subscription` and the value of the
`applyDiscountTo` field is `RECURRING`, the discount charge applies
to all recurring charges in the same subscription as the discount
charge.
'
enum:
- rateplan
- subscription
- account
type: string
effectiveEndDate:
description: 'The effective end date of the product charge definition.
'
format: date-time
type: string
effectiveStartDate:
description: 'The effective start date of the product charge definition.
'
format: date-time
type: string
endDateCondition:
description: 'The end date condition for this charge.
'
enum:
- Subscription_End
- One_Time
- Fixed_Period
- Specific_End_Date
type: string
excludeItemBillingFromRevenueAccounting:
description: "Indicates whether to exclude the related invoice items,\
\ invoice item adjustments, credit memo items, and debit memo items\
\ from revenue accounting.\n\n**Note**: This field is only available\
\ if you have the Order to Revenue or Billing - Revenue Integration\
\ feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
description: |
Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.
**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.
type: boolean
financeInformation:
description: 'Container for finance information of the rate plan charge.
'
properties:
accountsReceivableAccountingCode:
description: 'The accounting code for accounts receivable.
'
type: string
accountsReceivableAccountingCodeType:
description: 'The type of the accounting code for accounts receivable.
'
type: string
adjustmentLiabilityAccountingCode:
description: "The accounting code for adjustment liability. \n\n\
**Note**: This field is only available if you have the Zuora Billing\
\ - Revenue Integration feature enabled.\n"
type: string
adjustmentLiabilityAccountingCodeType:
description: "The type associated with the adjustment liability\
\ accounting code. \n\n**Note**: This field is only available\
\ if you have the Zuora Billing - Revenue Integration feature\
\ enabled.\n"
type: string
adjustmentRevenueAccountingCode:
description: "The accounting code for adjustment revenue. \n\n**Note**:\
\ This field is only available if you have the Zuora Billing -\
\ Revenue Integration feature enabled.\n"
type: string
adjustmentRevenueAccountingCodeType:
description: "The type associated with the adjustment revenue accounting\
\ code. \n\n**Note**: This field is only available if you have\
\ the Zuora Billing - Revenue Integration feature enabled.\n"
type: string
contractAssetAccountingCode:
description: "The accounting code for contract asset. \n\n**Note**:\
\ This field is only available if you have the Zuora Billing -\
\ Revenue Integration feature enabled.\n"
type: string
contractAssetAccountingCodeType:
description: "The type associated with the contract asset accounting\
\ code. \n\n**Note**: This field is only available if you have\
\ the Zuora Billing - Revenue Integration feature enabled.\n"
type: string
contractLiabilityAccountingCode:
description: "The accounting code for contract liability. \n\n**Note**:\
\ This field is only available if you have the Zuora Billing -\
\ Revenue Integration feature enabled.\n"
type: string
contractLiabilityAccountingCodeType:
description: "The type associated with the contract liability accounting\
\ code. \n\n**Note**: This field is only available if you have\
\ the Zuora Billing - Revenue Integration feature enabled.\n"
type: string
contractRecognizedRevenueAccountingCode:
description: "The accounting code for contract recognized revenue.\
\ \n\n**Note**: This field is only available if you have the Zuora\
\ Billing - Revenue Integration feature enabled.\n"
type: string
contractRecognizedRevenueAccountingCodeType:
description: "The type associated with the contract recognized revenue\
\ accounting code. \n\n**Note**: This field is only available\
\ if you have the Zuora Billing - Revenue Integration feature\
\ enabled.\n"
type: string
deferredRevenueAccountingCode:
description: 'The accounting code for deferred revenue, such as
Monthly Recurring Liability.
'
type: string
deferredRevenueAccountingCodeType:
description: "The type associated with the deferred revenue accounting\
\ code, such as Deferred Revenue. \n"
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for recognized revenue, such as
Monthly Recurring Charges or Overage Charges.
'
type: string
recognizedRevenueAccountingCodeType:
description: 'The type associated with the recognized revenue accounting
code, such as Sales Revenue or Sales Discount.
'
type: string
unbilledReceivablesAccountingCode:
description: "The accounting code for unbilled receivables. \n\n\
**Note**: This field is only available if you have the Zuora Billing\
\ - Revenue Integration feature enabled.\n"
type: string
unbilledReceivablesAccountingCodeType:
description: "The type associated with the unbilled receivables\
\ accounting code. \n\n**Note**: This field is only available\
\ if you have the Zuora Billing - Revenue Integration feature\
\ enabled.\n"
type: string
title: financeInformation
type: object
isAllocationEligible:
description: |
Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `false`.
**Values**: `true`, `false`
**Note**: This field is available only if you have the Additional Revenue Fields property enabled.
type: boolean
isDefault:
description: 'Indicates whether this charge definition is the default
one for the charge.
'
type: boolean
isStackedDiscount:
description: |
**Note**: This field is only applicable to the Discount - Percentage charge model.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 130 or higher. Otherwise, an error occurs.
This field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:
- `True`: This is a stacked discount, which should be calculated by stacking with other discounts.
- `False`: This is not a stacked discount, which should be calculated in sequence with other discounts.
For more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).
type: boolean
isUnbilled:
description: "Specifies how to perform the accounting during revenue\
\ recognition. The default value is `false`.\n\n**Values**: `true`,\
\ `false`\n\n**Note**: This field is available only if you have the\
\ Additional Revenue Fields property enabled. \n"
type: boolean
listPriceBase:
description: "The list price base. \n\nThis field is applicable only\
\ for recurring charges.\n\n**Note**: The `Per_Year` enum value is\
\ available only if you have the Annual List Price feature enabled.\n"
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
type: string
numberOfPeriod:
description: 'Indicates the number of periods to use when calculating
charges in an overage smoothing charge model. The valid value is a
positive whole number.
'
format: int64
type: integer
overageCalculationOption:
description: "Determines when to calculate overage charges. If the value\
\ of the `SmoothingMode` field is not specified, the value of this\
\ field is ignored.\n\n**Values**: \n - `EndOfSmoothingPeriod`: This\
\ option is used by default. The overage is charged at the end of\
\ the smoothing period.\n - `PerBillingPeriod`: The overage is charged\
\ on-demand rather than waiting until the end of the smoothing period.\n"
enum:
- EndOfSmoothingPeriod
- PerBillingPeriod
type: string
overageUnusedUnitsCreditOption:
description: 'Determines whether to credit the customer with unused
units of usage.
'
enum:
- NoCredit
- CreditBySpecificRate
type: string
priceChangeOption:
default: NoChange
description: 'Applies an automatic price change when a termed subscription
is renewed.
'
enum:
- NoChange
- SpecificPercentageValue
- UseLatestProductCatalogPricing
type: string
priceIncreaseOption:
description: 'Applies an automatic price change when a termed subscription
is renewed.
'
enum:
- FromTenantPercentageValue
- SpecificPercentageValue
type: string
priceIncreasePercentage:
description: |
Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the `priceIncreaseOption` value to `SpecificPercentageValue`.
**Character limit**: 16
**Values**: a decimal value between -100 and 100
format: double
type: number
prices:
description: 'Container for the prices of the product charge definition.
'
items:
$ref: '#/definitions/GETProductChargeDefinitionPricing'
type: array
productCategory:
description: "This field is used to maintain the product category for\
\ integration with Zuora Revenue. \n\n**Note**: This field is available\
\ only if you have the Additional Revenue Fields property enabled.\
\ \n"
type: string
productChargeDefinitionId:
description: 'The unique ID of the product charge definition.
'
type: string
productChargeDefinitionNumber:
description: 'The unique number (natural key) of the product charge
definition.
'
type: string
productClass:
description: "This field is used to maintain the product class for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if\
\ you have the Additional Revenue Fields property enabled. \n"
type: string
productDiscountApplyDetails:
description: "Container for the application details about a discount\
\ product rate plan charge. \n\nOnly discount product rate plan charges\
\ have values for this field.\n"
items:
$ref: '#/definitions/GETProductDiscountApplyDetailsType'
type: array
productFamily:
description: "This field is used to maintain the product family for\
\ integration with Zuora Revenue. \n\n**Note**: This field is available\
\ only if you have the Additional Revenue Fields property enabled.\n"
type: string
productLine:
description: "This field is used to maintain the product line for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if\
\ you have the Additional Revenue Fields property enabled.\n"
type: string
productRatePlanChargeId:
description: 'The unique ID of the product charge of the charge definition.
'
type: string
productRatePlanChargeNumber:
description: 'The unique number (natural key) of the product charge
of the charge definition.
'
type: string
productRatePlanId:
description: 'The unique ID of the product rate plan that uses this
charge definition.
'
type: string
productRatePlanName:
description: 'Th name of the product rate plan that uses this charge
definition.
'
type: string
productRatePlanNumber:
description: 'The unique number (natural key) of the product rate plan
that uses this charge definition.
'
type: string
ratingGroup:
default: ByBillingPeriod
description: "The rating group based on which usage records are rated.\n\
\nPossible values: \n - `ByBillingPeriod`: The rating\
\ is based on all the usages in a billing period. \n - `ByUsageStartDate`:\
\ The rating is based on all the usages on the same usage start date.\
\ \n - `ByUsageRecord`: The rating is based on each usage record.\n\
\ - `ByUsageUpload`: The rating is based on all the usages in a\
\ uploaded usage file (`.xls` or `.csv`).\n - `ByGroupId`: The rating\
\ is based on all the usages in a custom group.\n\n**Notes:** \n \
\ - The `ByBillingPeriod` value can be applied for all charge models.\
\ \n - The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload`\
\ values can only be applied for Per Unit, Volume Pricing, and Tiered\
\ Pricing charge models. \n - The `ByGroupId` value is only available\
\ if you have the Active Rating feature enabled.\n - Use this field\
\ only for Usage charges. One-time charges and recurring charges return\
\ `NULL`.\n"
enum:
- ByBillingPeriod
- ByUsageStartDate
- ByUsageRecord
- ByUsageUpload
- ByGroupId
type: string
recognizedRevenueAccount:
description: |
The name of the recognized revenue account for this charge.
- Required when the Allow Blank Accounting Code setting is No.
- Optional when the Allow Blank Accounting Code setting is Yes.
This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
maxLength: 100
type: string
revRecCode:
description: 'Associates this product rate plan charge with a specific
revenue recognition code.
'
maxLength: 70
type: string
revRecTriggerCondition:
description: 'Indicates when revenue recognition begins.
'
enum:
- ContractEffectiveDate
- ServiceActivationDate
- CustomerAcceptanceDate
type: string
revenueRecognitionRuleName:
description: 'Determines when to recognize the revenue for this charge.
'
enum:
- Recognize upon invoicing
- Recognize daily over time
type: string
smoothingModel:
description: 'Indicates the smoothing model for an overage smoothing
charge model.
'
enum:
- RollingWindow
- Rollover
type: string
specificBillingPeriod:
description: 'The specific number of billing period for the product
charge definition.
'
type: number
specificListPriceBase:
description: "The number of months for the list price base of the charge\
\ definition. \nThis field is `null` if the `listPriceBase` field\
\ is not set to `Per_Specific_Months`.\n"
format: int32
maximum: 200
minimum: 1
type: integer
taxCode:
description: |
Specifies the tax code for taxation rules.
**Note**: This value affects the tax calculation of the rate plan charge.
maxLength: 64
type: string
taxMode:
description: |
Determines how to define taxation for the charge.
**Note**: This value affects the tax calculation of the rate plan charge.
enum:
- TaxExclusive
- TaxInclusive
type: string
taxable:
description: |
Determines whether the charge definition is taxable.
**Character limit**: 5
**Values**: `True`, `False`
**Note**: This value affects the tax calculation of the rate plan charge.
type: boolean
term:
description: "The number of periods of a termed subscription that is\
\ eligible for this charge definition. This field is applicable when\
\ the `termType` field is set to `TERMED`, \nand is to be used together\
\ with the `termPeriodType` field.\n"
type: number
termPeriodType:
description: 'The period type for the subscription term that is eligible
for this charge definition.
'
enum:
- Month
- Year
- Day
- Week
type: string
termType:
description: 'The type of the subscription that is eligible for this
charge definition.
'
enum:
- TERMED
- EVERGREEN
type: string
triggerEvent:
description: |
Specifies when to start billing the customer for the charge definition.
**Values**:
- `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.
- `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.
- `CustomerAcceptance` is when the customer accepts the services or products for a subscription.
enum:
- ContractEffective
- ServiceActivation
- CustomerAcceptance
type: string
uom:
description: 'Indicates the unit of measure (UOM) that is configured
in **Settings > Billing** for the product rate plan charge.
'
type: string
upToPeriods:
description: 'The number of up-to periods for this charge.
'
type: number
upToPeriodsType:
description: 'The up-to-periods type for this charge.
'
enum:
- Billing_Periods
- Days
- Weeks
- Months
- Years
type: string
usageRecordRatingOption:
default: EndOfBillingPeriod
description: 'Determines how Zuora processes usage records for per-unit
usage charges.
'
enum:
- EndOfBillingPeriod
- OnDemand
type: string
useDiscountSpecificAccountingCode:
description: |
Determines whether to define a new accounting code for the new discount charge.
**Character limit**: 5
**Values**: `True`, `False`
type: boolean
useTenantDefaultForPriceChange:
description: "Applies the tenant-level percentage uplift value for an\
\ automatic price change to a termed subscription's renewal. \n\n\
**Character limit**: 5\n\n**Values**: `true`, `false`\n"
type: boolean
title: chargeDefinitions
type: object
type: array
success:
description: 'Indicates whether the request succeeded.
'
type: boolean
type: object
GETProductDiscountApplyDetailsType:
properties:
appliedProductRatePlanChargeId:
description: 'The ID of the product rate plan charge that the discount product
rate plan charge applies to.
'
type: string
appliedProductRatePlanId:
description: 'The ID of the product rate plan that the discount product rate
plan charge applies to.
'
type: string
title: productDiscountApplyDetails
type: object
GETProductRatePlanChargeDeliverySchedule:
description: 'The delivery schedule information of this charge. Only when this
charge is using Delivery Pricing charge model
'
properties:
frequency:
description: 'The frequency of the delivery. Only supports weekly now
'
enum:
- Weekly
type: string
friday:
description: 'The flag to indicate should the delivery happen on Friday
'
type: boolean
monday:
description: 'The flag to indicate should the delivery happen on Monday
'
type: boolean
saturday:
description: 'The flag to indicate should the delivery happen on Saturday
'
type: boolean
sunday:
description: 'The flag to indicate should the delivery happen on Sunday
'
type: boolean
thursday:
description: 'The flag to indicate should the delivery happen on Thursday
'
type: boolean
tuesday:
description: 'The flag to indicate should the delivery happen on Tuesday
'
type: boolean
wendesday:
description: 'The flag to indicate should the delivery happen on Wendesday
'
type: boolean
title: deliverySchedule
type: object
GETProductRatePlanChargePricingTierType:
properties:
endingUnit:
description: 'Decimal defining end of tier range.
'
format: decimal
type: string
price:
description: 'The decimal value of the tiered charge model. If the charge
model is not a tiered type then this price field will be null and the price
field directly under the productRatePlanCharges applies.
'
format: decimal
type: string
priceFormat:
description: "Tier price format.\n\nAllowed values:\n- flat fee \n- per unit\n"
type: string
startingUnit:
description: 'Decimal defining start of tier range.
'
format: decimal
type: string
tier:
description: 'Unique number of the tier.
'
format: int64
type: integer
title: tiers
type: object
GETProductRatePlanChargePricingType:
properties:
currency:
description: 'Currency used by the charge model. For example: USD or EUR
'
type: string
discountAmount:
description: 'Value subtracted from price in currency specified. Used only
when the charge model is DiscountFixedAmount.
'
format: decimal
type: string
discountPercentage:
description: 'Percent discount applied to the price. Used only when the charge
model is DiscountPercentage.
'
format: decimal
type: string
includedUnits:
description: 'Specifies the number of units in the base set of units when
the charge model is Overage.
'
format: decimal
type: string
overagePrice:
description: 'Price per unit when base set of units is exceeded. Used only
when charge model is Overage or Tiered with Overage.
'
format: decimal
type: string
price:
description: 'The decimal value that applies when the charge model is not
tiered
'
format: decimal
type: string
tiers:
description: 'Container for one or many defined tier ranges with distinct
pricing. Applies when model is `Tiered`, `TieredWithOverage`, or `Volume`
'
items:
$ref: '#/definitions/GETProductRatePlanChargePricingTierType'
type: array
title: pricing
type: object
GETProductRatePlanChargeResponse:
properties:
applyDiscountTo:
description: 'Indicates which type of charge the discount charge applies to.
'
enum:
- ONETIME
- RECURRING
- USAGE
- ONETIMERECURRING
- ONETIMEUSAGE
- RECURRINGUSAGE
- ONETIMERECURRINGUSAGE
type: string
billingDay:
description: 'The bill cycle type for this charge.
'
type: string
billingPeriod:
description: 'The billing period for this charge.
'
type: string
billingPeriodAlignment:
description: 'The billing period alignment setting for this charge.
'
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
- AlignToTermEnd
type: string
billingTiming:
description: 'The billing timing for this charge.
'
enum:
- IN_ADVANCE
- IN_ARREARS
type: string
customFields:
$ref: '#/definitions/ProductRatePlanChargeObjectCustomFields'
defaultQuantity:
description: "The default quantity. \n\nThis field is applicable only for\
\ one-time and recurring charges.\n"
type: number
deliverySchedule:
$ref: '#/definitions/GETDeliverySchedule'
description:
description: 'The description for this charge.
'
type: string
discountClass:
description: |
The class that the discount belongs to. The discount class defines the order in which discount product rate plan charges are applied.
For more information, see [Manage Discount Classes](https://knowledgecenter.zuora.com/BC_Subscription_Management/Product_Catalog/B_Charge_Models/Manage_Discount_Classes).
type: string
discountLevel:
description: 'The application scope of the discount charge. For example, if
the value of this field is `subscription` and the value of the `applyDiscountTo`
field is `RECURRING`, the discount charge applies to all recurring charges
in the same subscription as the discount charge.
'
enum:
- rateplan
- subscription
- account
type: string
endDateCondition:
description: 'The end date condition for this charge.
'
enum:
- Subscription_End
- One_Time
- Fixed_Period
- Specific_End_Date
type: string
excludeItemBillingFromRevenueAccounting:
description: "Indicates whether to exclude the related invoice items, invoice\
\ item adjustments, credit memo items, and debit memo items from revenue\
\ accounting.\n\n**Note**: This field is only available if you have the\
\ Order to Revenue or Billing - Revenue Integration feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
description: |
Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.
**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.
type: boolean
financeInformation:
description: 'Container for the finance information of a product rate plan
charge.
'
properties:
adjustmentLiabilityAccountingCode:
description: "The accounting code for adjustment liability. \n\n**Note**:\
\ This field is only available if you have the Zuora Billing - Revenue\
\ Integration feature enabled.\n"
type: string
adjustmentLiabilityAccountingCodeType:
description: "The type associated with the adjustment liability accounting\
\ code. \n\n**Note**: This field is only available if you have the Zuora\
\ Billing - Revenue Integration feature enabled.\n"
type: string
adjustmentRevenueAccountingCode:
description: "The accounting code for adjustment revenue. \n\n**Note**:\
\ This field is only available if you have the Zuora Billing - Revenue\
\ Integration feature enabled.\n"
type: string
adjustmentRevenueAccountingCodeType:
description: "The type associated with the adjustment revenue accounting\
\ code. \n\n**Note**: This field is only available if you have the Zuora\
\ Billing - Revenue Integration feature enabled.\n"
type: string
contractAssetAccountingCode:
description: "The accounting code for contract asset. \n\n**Note**: This\
\ field is only available if you have the Zuora Billing - Revenue Integration\
\ feature enabled.\n"
type: string
contractAssetAccountingCodeType:
description: "The type associated with the contract asset accounting code.\
\ \n\n**Note**: This field is only available if you have the Zuora Billing\
\ - Revenue Integration feature enabled.\n"
type: string
contractLiabilityAccountingCode:
description: "The accounting code for contract liability. \n\n**Note**:\
\ This field is only available if you have the Zuora Billing - Revenue\
\ Integration feature enabled.\n"
type: string
contractLiabilityAccountingCodeType:
description: "The type associated with the contract liability accounting\
\ code. \n\n**Note**: This field is only available if you have the Zuora\
\ Billing - Revenue Integration feature enabled.\n"
type: string
contractRecognizedRevenueAccountingCode:
description: "The accounting code for contract recognized revenue. \n\n\
**Note**: This field is only available if you have the Zuora Billing\
\ - Revenue Integration feature enabled.\n"
type: string
contractRecognizedRevenueAccountingCodeType:
description: "The type associated with the contract recognized revenue\
\ accounting code. \n\n**Note**: This field is only available if you\
\ have the Zuora Billing - Revenue Integration feature enabled.\n"
type: string
deferredRevenueAccountingCode:
description: 'The accounting code for deferred revenue, such as Monthly
Recurring Liability.
'
type: string
deferredRevenueAccountingCodeType:
description: "The type associated with the deferred revenue accounting\
\ code, such as Deferred Revenue. \n"
type: string
recognizedRevenueAccountingCode:
description: "The accounting code for recognized revenue, such as Monthly\
\ Recurring Charges or Overage Charges. \n"
type: string
recognizedRevenueAccountingCodeType:
description: 'The type associated with the recognized revenue accounting
code, such as Sales Revenue or Sales Discount.
'
type: string
unbilledReceivablesAccountingCode:
description: "The accounting code for unbilled receivables. \n\n**Note**:\
\ This field is only available if you have the Zuora Billing - Revenue\
\ Integration feature enabled.\n"
type: string
unbilledReceivablesAccountingCodeType:
description: "The type associated with the unbilled receivables accounting\
\ code. \n\n**Note**: This field is only available if you have the Zuora\
\ Billing - Revenue Integration feature enabled.\n"
type: string
title: financeInformation
type: object
id:
description: 'The unique ID of the product rate plan charge.
'
type: string
isAllocationEligible:
description: |
Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `false`.
**Values**: `true`, `false`
**Note**: This field is available only if you have the Additional Revenue Fields property enabled.
type: boolean
isStackedDiscount:
description: |
**Note**: This field is only applicable to the Discount - Percentage charge model.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 130 or higher. Otherwise, an error occurs.
This field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:
- `True`: This is a stacked discount, which should be calculated by stacking with other discounts.
- `False`: This is not a stacked discount, which should be calculated in sequence with other discounts.
For more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).
type: boolean
isUnbilled:
description: "Specifies how to perform the accounting during revenue recognition.\
\ The default value is `false`.\n\n**Values**: `true`, `false`\n\n**Note**:\
\ This field is available only if you have the Additional Revenue Fields\
\ property enabled. \n"
type: boolean
listPriceBase:
description: "The base of list price. \n\nThis field is applicable only for\
\ recurring charges.\n\n**Note**: The `Per_Year` enum value is available\
\ only if you have the Annual List Price feature enabled.\n"
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
type: string
model:
description: 'Determines how to calculate charges. Charge models must be individually
activated in Zuora Billing administration.
'
enum:
- DiscountFixedAmount
- DiscountPercentage
- FlatFee
- PerUnit
- Overage
- Tiered
- TieredwithOverage
- Volume
- Delivery
- MultiAttributePricing
- PreratedPerUnit
- PreratedPricing
- HighWatermarkVolumePricing
- HighWatermarkTieredPricing
type: string
name:
description: 'The name of the product rate plan charge.
'
type: string
numberOfPeriod:
description: 'Indicates the number of periods to use when calculating charges
in an overage smoothing charge model. The valid value is a positive whole
number.
'
format: int64
type: integer
overageCalculationOption:
description: "Determines when to calculate overage charges. If the value of\
\ the SmoothingMode field is not specified, the value of this field is ignored.\n\
\n**Values**: \n - `EndOfSmoothingPeriod`: This option is used by default.\
\ The overage is charged at the end of the smoothing period.\n - `PerBillingPeriod`:\
\ The overage is charged on-demand rather than waiting until the end of\
\ the smoothing period.\n"
enum:
- EndOfSmoothingPeriod
- PerBillingPeriod
type: string
overageUnusedUnitsCreditOption:
description: 'Determines whether to credit the customer with unused units
of usage.
'
enum:
- NoCredit
- CreditBySpecificRate
type: string
priceChangeOption:
default: NoChange
description: 'Applies an automatic price change when a termed subscription
is renewed.
'
enum:
- NoChange
- SpecificPercentageValue
- UseLatestProductCatalogPricing
type: string
priceIncreaseOption:
description: 'Applies an automatic price change when a termed subscription
is renewed.
'
enum:
- FromTenantPercentageValue
- SpecificPercentageValue
type: string
priceIncreasePercentage:
description: |
Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the `priceIncreaseOption` field to `SpecificPercentageValue`.
**Character limit**: 16
**Values**: a decimal value between -100 and 100
format: double
type: number
pricing:
description: 'Container for the prices of the product rate plan charge.
'
items:
$ref: '#/definitions/GETRatePlanChargePricing'
type: array
pricingSummary:
description: "A concise description of the charge model and pricing that is\
\ suitable to show to your customers. \n\nWhen the rate plan charge model\
\ is `Tiered` and multi-currency is enabled, this field includes an array\
\ of string of each currency, and each string of currency includes tier\
\ price description separated by comma.\n\nFor the following charge models,\
\ the value of this field is an empty string:\n- Multi-Attribute Pricing\n\
- High Water Mark Tiered Pricing\n- High Water Mark Volume Pricing\n- Pre-Rated\
\ Per Unit Pricing\n- Pre-Rated Pricing\n\nThe charge models are available\
\ for customers with Enterprise and Nine editions by default. If you are\
\ a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information.\n"
items:
type: string
type: array
productCategory:
description: "This field is used to maintain the product category for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
productChargeDefinitions:
description: 'A link to retrieve product charge definitions of this charge.
'
type: string
productClass:
description: "This field is used to maintain the product class for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
productDiscountApplyDetails:
description: "Container for the application details about a discount product\
\ rate plan charge. \n\nOnly discount product rate plan charges have values\
\ in this field.\n"
items:
$ref: '#/definitions/GETProductDiscountApplyDetailsType'
type: array
productFamily:
description: "This field is used to maintain the product family for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled.\n"
type: string
productLine:
description: "This field is used to maintain the product line for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled.\n"
type: string
productRatePlanChargeNumber:
description: 'The number of this product rate plan charge.
'
type: string
ratingGroup:
default: ByBillingPeriod
description: "Specifies a rating group based on which usage records are rated.\n\
\nPossible values: \n - `ByBillingPeriod`: The rating is\
\ based on all the usages in a billing period. \n - `ByUsageStartDate`:\
\ The rating is based on all the usages on the same usage start date. \n\
\ - `ByUsageRecord`: The rating is based on each usage record.\n - `ByUsageUpload`:\
\ The rating is based on all the usages in a uploaded usage file (`.xls`\
\ or `.csv`).\n - `ByGroupId`: The rating is based on all the usages in\
\ a custom group.\n\n**Notes:** \n - The `ByBillingPeriod` value can be\
\ applied for all charge models. \n - The `ByUsageStartDate`, `ByUsageRecord`,\
\ and `ByUsageUpload` values can only be applied for per unit, volume pricing,\
\ and tiered pricing charge models. \n - The `ByGroupId` value is only\
\ available if you have the Active Rating feature enabled.\n - Use this\
\ field only for Usage charges. One-Time Charges and Recurring Charges return\
\ `NULL`.\n"
enum:
- ByBillingPeriod
- ByUsageStartDate
- ByUsageRecord
- ByUsageUpload
- ByGroupId
type: string
recognizedRevenueAccount:
description: |
The name of the recognized revenue account for this charge.
- Required when the Allow Blank Accounting Code setting is No.
- Optional when the Allow Blank Accounting Code setting is Yes.
This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
maxLength: 100
type: string
revRecCode:
description: 'Associates this product rate plan charge with a specific revenue
recognition code.
'
maxLength: 70
type: string
revRecTriggerCondition:
description: 'Specifies when revenue recognition begins.
'
enum:
- ContractEffectiveDate
- ServiceActivationDate
- CustomerAcceptanceDate
type: string
revenueRecognitionRuleName:
description: 'Determines when to recognize the revenue for this charge.
'
enum:
- Recognize upon invoicing
- Recognize daily over time
type: string
smoothingModel:
description: 'Specifies the smoothing model for an overage smoothing charge
model.
'
enum:
- RollingWindow
- Rollover
type: string
specificBillingPeriod:
description: 'The specific number of billing periods for this charge.
'
type: number
specificListPriceBase:
description: 'The number of months for the list price base of the charge.
The value of this field is `null` if you do not set the value of the `listPriceBase`
field to `Per_Specific_Months`.
'
format: int32
maximum: 200
minimum: 1
type: integer
success:
description: 'Indicates whether the request succeeded.
'
type: boolean
taxCode:
description: |
Specifies the tax code for taxation rules. This field is required when the `Taxable` field is set to `True`.
**Note**: This value affects the tax calculation of the rate plan charge.
maxLength: 64
type: string
taxMode:
description: |
Determines how to define taxation for the charge. This field is required when the `Taxable` field is set to `True`.
**Note**: This value affects the tax calculation of the rate plan charge.
enum:
- TaxExclusive
- TaxInclusive
type: string
taxable:
description: |
Determines whether the charge is taxable. When set to `True`, the `TaxMode` and `TaxCode` fields are required when creating or updating th Product Rate Plan Charge object.
**Character limit**: 5
**Values**: `True`, `False`
**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.
type: boolean
triggerEvent:
description: |
Specifies when to start billing the customer for the charge.
**Values**:
- `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.
- `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.
- `CustomerAcceptance` is when the customer accepts the services or products for a subscription.
enum:
- ContractEffective
- ServiceActivation
- CustomerAcceptance
type: string
type:
description: 'Specifies the type of charge.
'
enum:
- OneTime
- Recurring
- Usage
type: string
uom:
description: 'Indicates the units of measure (UOM) that is configured in **Settings
> Billing** for the product rate plan charge.
'
type: string
upToPeriods:
description: 'The number of up-to-periods value for this charge.
'
type: number
upToPeriodsType:
description: 'The up-to-periods type setting for this charge.
'
enum:
- Billing_Periods
- Days
- Weeks
- Months
- Years
type: string
usageRecordRatingOption:
default: EndOfBillingPeriod
description: 'Determines how Zuora processes usage records for per-unit usage
charges.
'
enum:
- EndOfBillingPeriod
- OnDemand
type: string
useDiscountSpecificAccountingCode:
description: |
Determines whether to define a new accounting code for the new discount charge.
**Character limit**: 5
**Values**: `True`, `False`
type: boolean
useTenantDefaultForPriceChange:
description: "Applies the tenant-level percentage uplift value for an automatic\
\ price change to a termed subscription's renewal. \n\n**Character limit**:\
\ 5\n\n**Values**: `true`, `false`\n"
type: boolean
type: object
GETProductRatePlanChargeType:
allOf:
- properties:
applyDiscountTo:
description: |
Specifies where (to what charge type) the discount will be applied. These field values are case-sensitive.
Permissible values:
- RECURRING
- USAGE
- ONETIMERECURRING
- ONETIMEUSAGE
- RECURRINGUSAGE
- ONETIMERECURRINGUSAGE
type: string
billingDay:
description: 'The bill cycle day (BCD) for the charge. The BCD determines
which day of the month or week the customer is billed. The BCD value in
the account can override the BCD in this object.
'
type: string
billingPeriod:
description: |
The billing period for the charge. The start day of the billing period is also called the bill cycle day (BCD).
Values:
- Month
- Quarter
- Annual
- Semi_Annual
- Specific Months
- Week
- Specific_Weeks
type: string
billingPeriodAlignment:
description: |
Aligns charges within the same subscription if multiple charges begin on different dates.
Possible values:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
type: string
billingTiming:
description: "The billing timing for the charge. You can choose to bill\
\ for charges in advance or in arrears.\n\nValues:\n- In Advance\n- In\
\ Arrears\n\n**Note:** This feature is in Limited Availability. If you\
\ wish to have access to the feature, submit a request at [Zuora Global\
\ Support](https://support.zuora.com). \n"
type: string
chargeModelConfigurations:
description: This field is for Zuora Internal Use only. See the **pricing**
field for the same information as this field.
type: object
creditOption:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option)\
\ for more information. \n"
enum:
- TimeBased
- ConsumptionBased
- FullCreditBack
type: string
defaultQuantity:
description: 'The default quantity of units. This field is required if
you use a per-unit charge model.
'
format: decimal
type: string
deliverySchedule:
$ref: '#/definitions/GETProductRatePlanChargeDeliverySchedule'
description:
description: 'Usually a brief line item summary of the Rate Plan Charge.
'
type: string
discountClass:
description: |
The class that the discount belongs to. The discount class defines the order in which discount product rate plan charges are applied.
For more information, see [Manage Discount Classes](https://knowledgecenter.zuora.com/BC_Subscription_Management/Product_Catalog/B_Charge_Models/Manage_Discount_Classes).
type: string
discountLevel:
description: "The level of the discount. \n\nValues:\n- RatePlan\n- Subscription\n\
- Account\n"
type: string
drawdownRate:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).
type: number
drawdownUom:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
Unit of measurement for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge).
type: string
endDateCondition:
description: |
Defines when the charge ends after the charge trigger date. If the subscription ends before the charge end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the charge end date.
Values:
- Subscription_End
- Fixed_Period
type: string
excludeItemBillingFromRevenueAccounting:
description: "The flag to exclude the related invoice items, invoice item\
\ adjustments, credit memo items, and debit memo items from revenue accounting.\n\
\n**Note**: This field is only available if you have the Billing - Revenue\
\ Integration feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
description: "The flag to exclude the related rate plan charges and order\
\ line items from revenue accounting.\n\n**Note**: This field is only\
\ available if you have the Billing - Revenue Integration feature enabled.\
\ \n"
type: boolean
financeInformation:
description: 'Container for finance information of a rate plan charge.
'
properties:
adjustmentLiabilityAccountingCode:
description: "The accounting code for adjustment liability. \n\n**Note**:\
\ This field is only available if you have the RevPro Integration\
\ feature enabled. \n"
type: string
adjustmentLiabilityAccountingCodeType:
description: "The type associated with the adjustment liability accounting\
\ code. \n\n**Note**: This field is only available if you have the\
\ RevPro Integration feature enabled.\n"
type: string
adjustmentRevenueAccountingCode:
description: "The accounting code for adjustment revenue. \n\n**Note**:\
\ This field is only available if you have the RevPro Integration\
\ feature enabled. \n"
type: string
adjustmentRevenueAccountingCodeType:
description: "The type associated with the adjustment revenue accounting\
\ code. \n\n**Note**: This field is only available if you have the\
\ RevPro Integration feature enabled.\n"
type: string
contractAssetAccountingCode:
description: "The accounting code for contract asset. \n\n**Note**:\
\ This field is only available if you have the RevPro Integration\
\ feature enabled. \n"
type: string
contractAssetAccountingCodeType:
description: "The type associated with the contract asset accounting\
\ code. \n\n**Note**: This field is only available if you have the\
\ RevPro Integration feature enabled.\n"
type: string
contractLiabilityAccountingCode:
description: "The accounting code for contract liability. \n\n**Note**:\
\ This field is only available if you have the RevPro Integration\
\ feature enabled. \n"
type: string
contractLiabilityAccountingCodeType:
description: "The type associated with the contract liability accounting\
\ code. \n\n**Note**: This field is only available if you have the\
\ RevPro Integration feature enabled.\n"
type: string
contractRecognizedRevenueAccountingCode:
description: "The accounting code for contract recognized revenue. \n\
\n**Note**: This field is only available if you have the RevPro Integration\
\ feature enabled. \n"
type: string
contractRecognizedRevenueAccountingCodeType:
description: "The type associated with the contract recognized revenue\
\ accounting code. \n\n**Note**: This field is only available if you\
\ have the RevPro Integration feature enabled.\n"
type: string
deferredRevenueAccountingCode:
description: "The accounting code for deferred revenue, such as Monthly\
\ Recurring Liability. \n"
type: string
deferredRevenueAccountingCodeType:
description: "The type associated with the deferred revenue accounting\
\ code, such as Deferred Revenue. \n"
type: string
recognizedRevenueAccountingCode:
description: "The accounting code for recognized revenue, such as Monthly\
\ Recurring Charges or Overage Charges. \n"
type: string
recognizedRevenueAccountingCodeType:
description: "The type associated with the recognized revenue accounting\
\ code, such as Sales Revenue or Sales Discount. \n"
type: string
unbilledReceivablesAccountingCode:
description: "The accounting code for unbilled receivables. \n\n**Note**:\
\ This field is only available if you have the RevPro Integration\
\ feature enabled. \n"
type: string
unbilledReceivablesAccountingCodeType:
description: "The type associated with the unbilled receivables accounting\
\ code. \n\n**Note**: This field is only available if you have the\
\ RevPro Integration feature enabled.\n"
type: string
title: financeInformation
type: object
formula:
description: |
The pricing formula to calculate the actual rating amount for each usage record.
This field is only available for the usage-based charges that use the Multi-Attribute Pricing charge model. The charge model is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
type: string
id:
description: 'Unique product rate-plan charge ID.
'
type: string
includedUnits:
description: 'Specifies the number of units in the base set of units when
the charge model is Overage.
'
format: decimal
type: string
isAllocationEligible:
description: |
This field is used to identify if the charge segment is allocation eligible in revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
isPrepaid:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
Indicates whether this charge is a prepayment (topup) charge or a drawdown charge. Values: `true` or `false`.
type: boolean
isRollover:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The value is either "True" or "False". It determines whether the rollover fields are needed.
type: boolean
isStackedDiscount:
description: |
**Note**: This field is only applicable to the Discount - Percentage charge model.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 130 or higher. Otherwise, an error occurs.
This field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:
- `true`: This is a stacked discount, which should be calculated by stacking with other discounts.
- `false`: This is not a stacked discount, which should be calculated in sequence with other discounts.
For more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).
type: boolean
isUnbilled:
description: |
This field is used to dictate how to perform the accounting during revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
listPriceBase:
description: |
The list price base for the product rate plan charge.
This field is only applicable for recurring charges.
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
- Per_Specific_Months
type: string
maxQuantity:
description: 'Specifies the maximum number of units for this charge. Use
this field and the `minQuantity` field to create a range of units allowed
in a product rate plan charge.
'
format: decimal
type: string
minQuantity:
description: 'Specifies the minimum number of units for this charge. Use
this field and the `maxQuantity` field to create a range of units allowed
in a product rate plan charge.
'
format: decimal
type: string
model:
description: "Charge model which determines how charges are calculated.\
\ Charge models must be individually activated in Zuora Billing administration.\
\ \n\nPossible values are:\n- `FlatFee`\n- `PerUnit`\n- `Overage`\n- `Volume`\n\
- `Tiered`\n- `TieredWithOverage`\n- `DiscountFixedAmount`\n- `DiscountPercentage`\n\
- `Delivery` (available only if you have the Delivery Pricing charge model\
\ enabled)\n- `MultiAttributePricing` (available only if you have the\
\ Multi-Attribute Pricing charge model enabled. The charge model is available\
\ for customers with Enterprise and Nine editions by default. If you are\
\ a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information.)\n- `PreratedPerUnit` (available only if you\
\ have the Pre-rated Per Unit Pricing charge model enabled. The charge\
\ model is available for customers with Enterprise and Nine editions by\
\ default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information.)\n- `PreratedPricing` (available only if you\
\ have the Pre-rated Pricing charge model enabled. The charge model is\
\ available for customers with Enterprise and Nine editions by default.\
\ If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information.)\n- `HighWatermarkVolumePricing` (available\
\ only if you have the High Water Mark Volume Pricing charge model enabled.\
\ The charge model is available for customers with Enterprise and Nine\
\ editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information.)\n- `HighWatermarkTieredPricing` (available\
\ only if you have the High Water Mark Tiered Pricing charge model enabled.\
\ The charge model is available for customers with Enterprise and Nine\
\ editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information.)\n\nThe value of the `pricing` field contains\
\ details about these charge models and the value of `pricingSummary`\
\ field contains their associated pricing summary values.\n"
type: string
name:
description: 'Name of the product rate-plan charge. (Not required to be
unique.)
'
type: string
numberOfPeriods:
description: 'Value specifies the number of periods used in the smoothing
model calculations Used when overage smoothing model is `RollingWindow`
or `Rollover`.
'
format: int64
type: integer
overageCalculationOption:
description: |
Value specifies when to calculate overage charges.
Values:
- EndOfSmoothingPeriod
- PerBillingPeriod
type: string
overageUnusedUnitsCreditOption:
description: |
Determines whether to credit the customer with unused units of usage.
Values:
- NoCredit
- CreditBySpecificRate
type: string
prepaidOperationType:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nThe type of this charge. It is either a prepayment\
\ (topup) charge or a drawdown charge. \n"
enum:
- topup
- drawdown
type: string
prepaidQuantity:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).
type: number
prepaidTotalQuantity:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The total amount of units that end customers can use during a validity period when they subscribe to a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).
type: number
prepaidUom:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
Unit of measurement for a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).
type: string
prepayPeriods:
description: "The number of periods to which prepayment is set. \n\n**Note:**\
\ This field is only available if you already have the prepayment feature\
\ enabled. The prepayment feature is deprecated and available only for\
\ backward compatibility. Zuora does not support enabling this feature\
\ anymore.\n"
format: int64
type: integer
priceChangeOption:
description: |
Applies an automatic price change when a termed subscription is renewed and the following applies:
1. AutomatedPriceChange setting is on
2. Charge type is not one-time
3. Charge model is not discount fixed amount
Values:
- NoChange (default)
- SpecificPercentageValue
- UseLatestProductCatalogPricing
type: string
priceIncreasePercentage:
description: |
Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the `PriceChangeOption` value to `SpecificPercentageValue`.
1. AutomatedPriceChange setting is on
2. Charge type is not one-time
3. Charge model is not discount fixed amount
Values: a decimal between -100 and 100
format: decimal
type: string
pricing:
description: "One or more price charge models with attributes that further\
\ describe the model. \nSome attributes show as null values when not applicable.\n"
items:
$ref: '#/definitions/GETProductRatePlanChargePricingType'
type: array
pricingSummary:
description: |
A concise description of the charge model and pricing that is suitable to show to your customers. When the rate plan charge model is `Tiered` and multi-currency is enabled, this field includes an array of string of each currency, and each string of currency includes tier price description separated by comma.
For the following charge models, the value of this field is an empty string:
- Multi-Attribute Pricing
- High Water Mark Tiered Pricing
- High Water Mark Volume Pricing
- Pre-Rated Per Unit Pricing
- Pre-Rated Pricing
The charge models are available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
items:
type: string
type: array
productChargeDefinitions:
description: 'A link to retrieve product charge definitions of this charge.
'
type: string
productDiscountApplyDetails:
description: "Container for the application details about a discount product\
\ rate plan charge. \n\nOnly discount product rate plan charges have values\
\ in this field.\n"
items:
$ref: '#/definitions/GETProductDiscountApplyDetailsType'
type: array
productRatePlanChargeNumber:
description: 'The natural key of the product rate plan charge.
'
type: string
ratingGroup:
description: "Specifies a rating group based on which usage records are\
\ rated.\n\nPossible values:\n\n- `ByBillingPeriod` (default): The rating\
\ is based on all the usages in a billing period.\n- `ByUsageStartDate`:\
\ The rating is based on all the usages on the same usage start date.\
\ \n- `ByUsageRecord`: The rating is based on each usage record.\n- `ByUsageUpload`:\
\ The rating is based on all the usages in a uploaded usage file (`.xls`\
\ or `.csv`).\n- `ByGroupId`: The rating is based on all the usages in\
\ a custom group.\n\n**Note:** \n- The `ByBillingPeriod` value can be\
\ applied for all charge models. \n- The `ByUsageStartDate`, `ByUsageRecord`,\
\ and `ByUsageUpload` values can only be applied for per unit, volume\
\ pricing, and tiered pricing charge models. \n- The `ByGroupId` value\
\ is only available if you have the Active Rating feature enabled.\n-\
\ Use this field only for Usage charges. One-Time Charges and Recurring\
\ Charges return `NULL`.\n"
type: string
revRecCode:
description: 'Associates this product rate plan charge with a specific revenue
recognition code. The value is a valid revenue recognition code.
'
maxLength: 70
type: string
revRecTriggerCondition:
description: 'Specifies when revenue recognition begins.
'
enum:
- ContractEffectiveDate
- ServiceActivationDate
- CustomerAcceptanceDate
maxLength: 22
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the revenue
schedule.
'
type: string
rolloverApply:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
This field defines the priority of rollover, which is either first or last.
enum:
- ApplyFirst
- ApplyLast
type: string
rolloverPeriodLength:
default: null
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The period length of the rollover fund.
type: integer
rolloverPeriods:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
This field defines the number of rollover periods, it is restricted to 3.
type: number
smoothingModel:
description: |
Specifies the smoothing model for an overage smoothing charge model or an tiered with overage model, which is an advanced type of a usage model that avoids spikes in usage charges. If a customer's usage spikes in a single period, then an overage smoothing model eases overage charges by considering usage and multiple periods.
One of the following values shows which smoothing model will be applied to the charge when `Overage` or `Tiered with Overage` is used:
- `RollingWindow` considers a number of periods to smooth usage. The rolling window starts and increments forward based on billing frequency. When allowed usage is met, then period resets and a new window begins.
- `Rollover` considers a fixed number of periods before calculating usage. The net balance at the end of a period is unused usage, which is carried over to the next period's balance.
type: string
specificBillingPeriod:
description: 'When the billing period is set to `Specific` Months then this
positive integer reflects the number of months for billing period charges.
'
format: int64
type: integer
specificListPriceBase:
description: 'The number of months for the list price base of the charge.
The value of this field is `null` if you do not set the value of the `listPriceBase`
field to `Per_Specific_Months`.
'
taxCode:
description: 'Specifies the tax code for taxation rules; used by Zuora Tax.
'
type: string
taxMode:
description: 'Specifies how to define taxation for the charge; used by Zuora
Tax. Possible values are: `TaxExclusive`, `TaxInclusive`.
'
type: string
taxable:
description: 'Specifies whether the charge is taxable; used by Zuora Tax.
Possible values are:`true`, `false`.
'
type: boolean
triggerEvent:
description: "Specifies when to start billing the customer for the charge.\n\
\nValues: one of the following:\n- `ContractEffective` is the date when\
\ the subscription's contract goes into effect and the charge is ready\
\ to be billed.\n- `ServiceActivation` is the date when the services or\
\ products for a subscription have been activated and the customers have\
\ access.\n- `CustomerAcceptance` is when the customer accepts the services\
\ or products for a subscription. \n- `SpecificDate` is the date specified.\n"
type: string
type:
description: 'The type of charge. Possible values are: `OneTime`, `Recurring`,
`Usage`.
'
type: string
uom:
description: |
Describes the Units of Measure (uom) configured in **Settings > Billing** for the productRatePlanCharges.
Values: `Each`, `License`, `Seat`, or `null`
type: string
upToPeriods:
description: |
Specifies the length of the period during which the charge is active. If this period ends before the subscription ends, the charge ends when this period ends.
If the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge end date will change accordingly up to the original period end.
format: int64
type: integer
upToPeriodsType:
description: "The period type used to define when the charge ends.\n\nValues:\n\
- Billing_Periods\n- Days\n- Weeks\n- Months\n- Years\n \n"
type: string
usageRecordRatingOption:
description: "Determines how Zuora processes usage records for per-unit\
\ usage charges. \n"
type: string
useDiscountSpecificAccountingCode:
description: |
Determines whether to define a new accounting code for the new discount charge.
Values: `true`, `false`
type: boolean
useTenantDefaultForPriceChange:
description: |
Shows the tenant-level percentage uplift value for an automatic price change to a termed subscription's renewal. You set the tenant uplift value in the web-based UI: **Settings > Billing > Define Default Subscription Settings**.
Values: `true`, `false`
type: boolean
validityPeriodType:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).
enum:
- SUBSCRIPTION_TERM
- ANNUAL
- SEMI_ANNUAL
- QUARTER
- MONTH
type: string
type: object
- $ref: '#/definitions/ProductRatePlanChargeObjectNSFields'
- $ref: '#/definitions/ProductRatePlanChargeObjectCustomFields'
title: productRatePlanCharges
GETProductRatePlanDefinitionResponse:
properties:
id:
description: 'The unique ID of the product rate plan definition.
'
type: string
productRatePlanChargeId:
description: 'The unique ID of the product charge in this rate plan definition.
'
type: string
productRatePlanChargeName:
description: 'Th name of the product charge in this rate plan definition.
'
type: string
productRatePlanChargeNumber:
description: 'The unique number (natural key) of the product charge in this
rate plan definition.
'
type: string
productRatePlanId:
description: 'The unique ID of the product rate plan that uses this rate plan
definition.
'
type: string
productRatePlanName:
description: 'Th name of the product rate plan that uses this rate plan definition.
'
type: string
productRatePlanNumber:
description: 'The unique number (natural key) of the product rate plan that
uses this rate plan definition.
'
type: string
success:
description: 'Indicates whether the request succeeded.
'
type: boolean
type: object
GETProductRatePlanDefinitionsResponse:
properties:
productRatePlanDefinitions:
description: 'The list of the product rate plan definitions that are retrieved.
'
items:
properties:
id:
description: 'The unique ID of the product rate plan definition.
'
type: string
productRatePlanChargeId:
description: 'The unique ID of the product charge in this rate plan
definition.
'
type: string
productRatePlanChargeName:
description: 'Th name of the product charge in this rate plan definition.
'
type: string
productRatePlanChargeNumber:
description: 'The unique number (natural key) of the product charge
in this rate plan definition.
'
type: string
productRatePlanId:
description: 'The unique ID of the product rate plan that uses this
rate plan definition.
'
type: string
productRatePlanName:
description: 'Th name of the product rate plan that uses this rate plan
definition.
'
type: string
productRatePlanNumber:
description: 'The unique number (natural key) of the product rate plan
that uses this rate plan definition.
'
type: string
title: productRatePlanDefinitions
type: object
type: array
success:
description: 'Indicates whether the request succeeded.
'
type: boolean
type: object
GETProductRatePlanType:
allOf:
- properties:
description:
description: 'Rate plan description.
'
type: string
effectiveEndDate:
description: 'Final date the rate plan is active, as `yyyy-mm-dd`. After
this date, the rate plan status is `Expired`.
'
format: date
type: string
effectiveStartDate:
description: 'First date the rate plan is active (i.e., available to be
subscribed to), as `yyyy-mm-dd`. Before this date, the status is `NotStarted`.
'
format: date
type: string
grade:
description: |
The grade of the product rate plan.
**Note**: This field is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. If you want to join this early adopter program, submit a request at [Zuora Global Support](http://support.zuora.com/).
type: number
id:
description: 'Unique product rate-plan ID.
'
type: string
name:
description: 'Name of the product rate-plan charge. (Not required to be
unique.)
'
type: string
productRatePlanCharges:
description: 'Field attributes describing the product rate plan charges:
'
items:
$ref: '#/definitions/GETProductRatePlanChargeType'
type: array
productRatePlanNumber:
description: "The natural key of the product rate plan. \n"
type: string
status:
description: 'The status of the product rate plan.
'
enum:
- Active
- Expired
- NotStarted
type: string
type: object
- $ref: '#/definitions/ProductRatePlanObjectNSFields'
- $ref: '#/definitions/ProductRatePlanObjectCustomFields'
title: productRatePlans
GETProductRatePlanWithExternalIdMultiResponse:
items:
properties:
ExternalIdSourceSystem:
description: 'The combination of `externallyManagedPlanId` and `externalIdSourceSystem`
is the unique identifier for the rate plan purchased on a third-party
store. This field is used to represent a subscription rate plan created
through third-party stores.
'
type: string
description:
description: 'The short description of the product rate plan.
'
type: string
effectiveEndDate:
description: 'The end date of the product rate plan.
'
format: date
type: string
effectiveStartDate:
description: 'The start date of the product rate plan.
'
format: date
type: string
externallyManagedPlanIds:
description: 'The unique identifier for the product rate plan in a third-party
store. This field is used to represent a rate plan created through third-party
stores.
'
items:
type: string
type: array
grade:
description: |
The grade of the product rate plan.
**Note**: This field is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. If you want to join this early adopter program, submit a request at [Zuora Global Support](http://support.zuora.com/).
type: number
id:
description: 'The unique product rate plan ID.
'
type: string
name:
description: 'The name of the product rate plan.
'
type: string
organizationLabels:
description: "The organization(s) that the object belongs to. \n\nNote:\
\ This field is available only when the Multi-Org feature is enabled.\
\ \n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
status:
description: "The status of the product rate plan. \n"
enum:
- Active
- Expired
- NotStarted
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: array
GETProductRatePlanWithExternalIdResponse:
properties:
ExternalIdSourceSystem:
description: 'The combination of `externallyManagedPlanId` and `externalIdSourceSystem`
is the unique identifier for the rate plan purchased on a third-party store.
This field is used to represent a subscription rate plan created through
third-party stores.
'
type: string
description:
description: 'The short description of the product rate plan.
'
type: string
effectiveEndDate:
description: 'The end date of the product rate plan.
'
format: date
type: string
effectiveStartDate:
description: 'The start date of the product rate plan.
'
format: date
type: string
externallyManagedPlanIds:
description: 'The unique identifier for the product rate plan in a third-party
store. This field is used to represent a rate plan created through third-party
stores.
'
items:
type: string
type: array
grade:
description: |
The grade of the product rate plan.
**Note**: This field is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. If you want to join this early adopter program, submit a request at [Zuora Global Support](http://support.zuora.com/).
type: number
id:
description: 'The unique product rate plan ID.
'
type: string
name:
description: 'The name of the product rate plan.
'
type: string
organizationLabels:
description: "The organization(s) that the object belongs to. \n\nNote: This\
\ field is available only when the Multi-Org feature is enabled. \
\ \n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
productRatePlanNumber:
description: 'The natural key of the product rate plan.
'
type: string
status:
description: "The status of the product rate plan. \n"
enum:
- Active
- Expired
- NotStarted
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GETProductRatePlansResponse:
properties:
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
productRatePlans:
description: 'Container for one or more products.
'
items:
$ref: '#/definitions/GETProductRatePlanType'
type: array
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GETProductType:
allOf:
- properties:
category:
description: |
Category of the product. Used by Zuora Quotes Guided Product Selector.
Possible values are:
- Base Products
- Add On Services
- Miscellaneous Products
type: string
description:
description: 'Optional product description.
'
type: string
effectiveEndDate:
description: 'The date when the product expires and cannot be subscribed
to anymore, as `yyyy-mm-dd`.
'
format: date
type: string
effectiveStartDate:
description: 'The date when the product becomes available and can be subscribed
to, as `yyyy-mm-dd`.
'
format: date
type: string
id:
description: 'Product ID.
'
type: string
name:
description: 'Product name, up to 100 characters.
'
type: string
organizationLabels:
description: "The organization(s) that the object belongs to. \n\nNote:\
\ This field is available only when the Multi-Org feature is enabled.\
\ \n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
productFeatures:
description: |
Container for one or more product features. Only available when the following settings are enabled:
- The Entitlements feature in your tenant
- The Enable Feature Specification in Product and Subscriptions setting in Settings > Billing
items:
$ref: '#/definitions/GetProductFeatureType'
type: array
productNumber:
description: 'The natural key of the product.
'
type: string
productRatePlans:
description: "URL to retrieve information about all product rate plans of\
\ a specific product. For example, `/v1/rateplan/40289f466463d683016463ef8b7301a0/productRatePlan`.\
\ If you want to view the product rate plan details, call [List all product\
\ rate plans of a product](https://developer.zuora.com/api-references/api/operation/GET_ProductRatePlans)\
\ with the returned URL.\n\nThis field is in Zuora REST API version control.\
\ If you set the `zuora-version` request header to `230.0` or later [available\
\ versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version),\
\ the value of this field is a URL. Zuora recommends that you use the\
\ latest behavior to retrieve product information.\n\nIf you do not set\
\ the `zuora-version` request header or you set this header to `229.0`\
\ or earlier [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version),\
\ the value of this field is an array of product rate plan details. \n\
For more information about the array, see the response body of [List all\
\ product rate plans of a product](https://developer.zuora.com/api-references/api/operation/GET_ProductRatePlans).\
\ **Note**: The array contains a maximum of 300 product rate plans. Additionally,\
\ across all product rate plans, at most 300 product rate plan charges\
\ are returned.\n"
format: URL
type: string
sku:
description: 'Unique product SKU, up to 50 characters.
'
type: string
tags:
description: ''
type: string
type: object
- $ref: '#/definitions/ProductObjectNSFields'
- $ref: '#/definitions/ProductObjectCustomFields'
title: products
GETPublicEmailTemplateResponse:
properties:
active:
description: The status of the email template.
type: boolean
bccEmailAddress:
description: Email BCC address.
format: email
type: string
ccEmailAddress:
description: Email CC address.
type: string
ccEmailType:
default: SpecificEmails
description: Email cc type.
enum:
- BillToContact
- SoldToContact
- SpecificEmails
- TenantAdmin
- BillToAndSoldToContacts
- RunOwner
- AllContacts
- InvoiceOwnerBillToContact
- InvoiceOwnerSoldToContact
- InvoiceOwnerBillToAndSoldToContacts
- InvoiceOwnerAllContacts
type: string
createdBy:
description: The ID of the user who created the email template.
format: uuid
type: string
createdOn:
description: The time when the email template was created. Specified in the
UTC timezone in the ISO860 format (YYYY-MM-DDThh:mm:ss.sTZD). E.g. 1997-07-16T19:20:30.45+00:00
format: date-time
type: string
description:
description: The description of the email template.
maxLength: 255
type: string
emailBody:
description: "The email body. You can add merge fields in the email object\
\ using angle brackets. \nUser can also embed html tags if `isHtml` is `true`."
type: string
emailSubject:
description: The email subject. You can add merge fields in the email subject
using angle brackets.
type: string
encodingType:
description: The endcode type of the email body.
enum:
- UTF8
- Shift_JIS
- ISO_2022_JP
- EUC_JP
- X_SJIS_0213
type: string
eventCategory:
description: The event category code for a standard event. See [Standard Event
Categories](https://knowledgecenter.zuora.com/Central_Platform/Notifications/A_Standard_Events/Standard_Event_Category_Code_for_Notification_Histories_API)
for all event category codes.
type: number
eventTypeName:
description: The name of the custom event or custom scheduled event.
minLength: 1
type: string
eventTypeNamespace:
description: "The namespace of the `eventTypeName` field for custom events\
\ and custom scheduled events. \n"
type: string
fromEmailAddress:
description: If formEmailType is SpecificEmail, this field is required.
type: string
fromEmailType:
description: The from email type.
enum:
- TenantEmail
- RunOwner
- SpecificEmail
type: string
fromName:
description: The name of email sender.
maxLength: 50
type: string
id:
description: The email template ID.
format: uuid
type: string
isHtml:
description: Indicates whether the style of email body is HTML.
type: boolean
name:
description: The name of the email template.
maxLength: 255
type: string
replyToEmailAddress:
description: If replyToEmailType is SpecificEmail, this field is required
type: string
replyToEmailType:
description: The reply email type.
enum:
- TenantEmail
- RunOwner
- SpecificEmail
type: string
toEmailAddress:
description: If `toEmailType` is `SpecificEmail`, this field is required.
type: string
toEmailType:
description: Email receive type.
enum:
- BillToContact
- SoldToContact
- SpecificEmails
- TenantAdmin
- BillToAndSoldToContacts
- RunOwner
- AllContacts
- InvoiceOwnerBillToContact
- InvoiceOwnerSoldToContact
- InvoiceOwnerBillToAndSoldToContacts
- InvoiceOwnerAllContacts
type: string
updatedBy:
description: The ID of the user who updated the email template.
format: uuid
type: string
updatedOn:
description: The time when the email template was updated. Specified in the
UTC timezone in the ISO860 format (YYYY-MM-DDThh:mm:ss.sTZD). E.g. 1997-07-16T19:20:30.45+00:00
format: date-time
type: string
type: object
GETPublicNotificationDefinitionResponse:
example:
active: true
associatedAccount: ParentAccount.Id
callout:
active: true
calloutAuth:
domain: example_domain
password: example_password
preemptive: true
username: example_user
calloutBaseurl: https://www.example.com/callout/AccountEdit
calloutParams:
AccountName:
AccountNumber:
calloutRetry: true
description: Callout when an account is edited
eventTypeName: AccountEdit
httpMethod: POST
id: 6e569e1e05f040eda51a927b140c0ac7
name: Callout for Account Edited
requiredAuth: true
calloutActive: true
communicationProfileId: 6e569e1e05f040eda51a927b140c0ac5
createdBy: 6e569e1e05f040eda51a927b140c0ac3
createdOn: '2017-04-18T07:36:19.798Z'
description: Notification sent out when an account is edited
emailActive: true
emailTemplateId: 6e569e1e05f040eda51a927b140c0ac6
eventTypeName: AccountEdit
filterRule:
condition: Account.Balance >= _VIP_BALANCE_AMOUNT && Account.Status == _ACCOUNT_STATUS
description: Filter rule to test if an account is a VIP account
eventTypeName: null
id: 6e569e1e05f040eda51a927b140c0ac8
parameters:
_ACCOUNT_STATUS:
description: The status of the VIP Account
displayName: VIP Account Status
options:
- Draft
- Active
- Canceled
valueType: STRING
_VIP_BALANCE_AMOUNT:
description: The minimum account balance
displayName: VIP Account Balance
options: null
valueType: BIG_DECIMAL
filterRuleParams:
_ACCOUNT_STATUS: Active
_VIP_BALANCE_AMOUNT: '100000'
id: 6e569e1e05f040eda51a927b140c0ac2
name: Account Edit Notification
updatedBy: 6e569e1e05f040eda51a927b140c0ac4
updatedOn: '2017-04-18T07:36:19.798Z'
properties:
active:
description: The status of the notification definition. The default value
is `true`.
type: boolean
associatedAccount:
description: 'Indicates with which type of account this notification is associated.
'
type: string
callout:
properties:
active:
default: true
description: The status of the callout. The default value is `true`.
type: boolean
calloutAuth:
$ref: '#/definitions/CalloutAuth'
calloutBaseurl:
description: The callout URL. It must start with 'https://'
example: https://***
format: url
minLength: 10
type: string
calloutParams:
$ref: '#/definitions/CalloutMergeFields'
calloutRetry:
default: true
description: Specified whether to retry the callout when the callout fails.
The default value is `true`.
type: boolean
description:
description: Description for the callout.
maxLength: 255
type: string
eventTypeName:
description: The name of the custom event type.
minLength: 1
type: string
httpMethod:
description: The HTTP method of the callout.
enum:
- GET
- PUT
- POST
- DELETE
example: POST
type: string
id:
description: The ID of the callout. If `calloutActive` is `true`, a callout
is required. The eventTypeName of the callout MUST be the same as the
eventTypeName.
format: uuid
type: string
name:
description: The name of the created callout.
maxLength: 255
type: string
oauth2ProviderId:
description: The ID of the OAuth 2.0 provider in your tenant that provides
access tokens for the callout.
type: string
requiredAuth:
description: Indicates whether Basic authentication is enabled for the
callout.
type: boolean
requiredOauth2:
description: Indicates whether OAuth 2.0 authentication is enabled for
the callout.
type: boolean
type: object
calloutActive:
description: The status of the callout action. The default value is `false`.
type: boolean
communicationProfileId:
description: The profile that the notification definition belongs to.
format: uuid
type: string
createdBy:
description: The ID of the user who created the notification definition.
format: uuid
type: string
createdOn:
description: The time when the notification definition was created. Specified
in the UTC timezone in the ISO860 format (YYYY-MM-DDThh:mm:ss.sTZD). E.g.
1997-07-16T19:20:30.45+00:00
format: date-time
type: string
description:
description: Description of the notification definition
maxLength: 255
type: string
emailActive:
description: The status of the email action. The default value is `false`.
type: boolean
emailTemplateId:
description: The ID of the email template. In the request, there should be
at least one email template or callout.
format: uuid
type: string
eventTypeName:
description: The name of the event type.
minLength: 1
type: string
eventTypeNamespace:
description: "The namespace of the `eventTypeName` field. \n"
type: string
filterRule:
description: ''
properties:
condition:
description: "The filter rule conditions, written in [JEXL](http://commons.apache.org/proper/commons-jexl/).\n\
The rule might contain event context merge fields and data source merge\
\ fields. Data source merge fields must be from [the base object of\
\ the event or from the joined objects of the base object](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL#Data_Sources_and_Objects).\
\ Notifications with invalid merge fields will fail to evaluate, thus\
\ will not be invoked. For example, to trigger an event when an invoice\
\ is posted with the amount over 1000, you would define the following\
\ condition on the `Invoice` object:\n\n```changeType == 'UPDATE' &&\
\ Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted' && Invoice.Amount\
\ > 1000```\n\nThere are conventions and keywords you need to be aware\
\ of. For example:\n\n* `changeType` is a keyword to specify what kind\
\ of change happened to the object. Allowed values are `INSERT`, `UPDATE`\
\ or `DELETE`.\n\n* `Invoice.Status` refers to field `Status` of the\
\ Zuora object `Invoice`.\n\n* A variable with the `_old` suffix means\
\ it\u2019s a previous value of the corresponding object field. The\
\ \"_old\" fields are only available on the base objects.\n"
example: Account.Balance >= _VIP_BALANCE_AMOUNT && Account.Status == _ACCOUNT_STATUS
type: string
description:
description: The description of the filter rule.
maxLength: 255
type: string
eventTypeName:
description: The value is `null`.
minLength: 1
type: string
id:
description: The ID of the filter rule. If not specified or null, the
notification definition is always qualified to process events of "eventType".
format: uuid
type: string
parameters:
$ref: '#/definitions/FilterRuleParameterDefinitions'
type: object
filterRuleParams:
$ref: '#/definitions/FilterRuleParameterValues'
id:
description: The ID associated with this notification definition.
format: uuid
type: string
name:
description: The name of the notification definition.
maxLength: 255
type: string
updatedBy:
description: The ID of the user who updated the notification definition.
format: uuid
type: string
updatedOn:
description: The time when the notification was updated. Specified in the
UTC timezone in the ISO860 format (YYYY-MM-DDThh:mm:ss.sTZD). E.g. 1997-07-16T19:20:30.45+00:00
format: date-time
type: string
type: object
GETRampByRampNumberResponseType:
allOf:
- properties:
ramp:
$ref: '#/definitions/RampResponse'
type: object
- $ref: '#/definitions/CommonResponseType'
GETRampMetricsByOrderNumberResponseType:
allOf:
- properties:
rampMetrics:
items:
$ref: '#/definitions/OrderRampMetrics'
type: array
type: object
- $ref: '#/definitions/CommonResponseType'
GETRampMetricsByRampNumberResponseType:
allOf:
- properties:
rampMetrics:
$ref: '#/definitions/RampMetrics'
type: object
- $ref: '#/definitions/CommonResponseType'
GETRampMetricsBySubscriptionKeyResponseType:
allOf:
- properties:
rampMetrics:
$ref: '#/definitions/RampMetrics'
type: object
- $ref: '#/definitions/CommonResponseType'
GETRampsBySubscriptionKeyResponseType:
allOf:
- properties:
ramps:
items:
$ref: '#/definitions/RampResponse'
type: array
type: object
- $ref: '#/definitions/CommonResponseType'
GETRatePlanChargePricing:
properties:
currency:
description: 'The currency for the price.
'
type: string
discountAmount:
description: 'The specific amount for a fixed discount. This field is applicable
for charges based on the Discount-Fixed Amount charge model.
'
format: double
type: number
discountPercentage:
description: 'The percentage of discount for a percentage discount. This field
is applicable for charges based on the Discount-Percentage charge model.
'
format: double
type: number
includedUnits:
description: "The number of units included in this price item. \n\nThis field\
\ is only applicable for charges based on the Overage Pricing charge model.\n"
type: number
overagePrice:
description: "The overage price of the price item. \n\nThis field is only\
\ applicable for charges based on the Overage Pricing or Tiered with Overage\
\ Pricing charge model.\n"
type: number
price:
description: "The price. \n\nThis field is only applicable for charges based\
\ on the following charge models:\n - Flat Fee\n - Per Unit\n - Delivery\
\ Pricing\n"
type: number
tiers:
description: "Container for the tiers of the price item. \n\nThis field is\
\ only applicable for charges based on the following charge models:\n -\
\ Tiered Pricing\n - Volume Pricing\n - Tiered with Overage Pricing\n"
items:
$ref: '#/definitions/GETRatePlanChargePricingTier'
type: array
type: object
GETRatePlanChargePricingTier:
description: |
Array of product rate plan charge tiers.
You should specify all relevant fields of all tiers, including pricing information for each currency.
For each currency, ensure that the tiers appear in ascending order of `StartingUnit`.
For example:
```
[
{
"StartingUnit": "1",
"EndingUnit": "150",
"Currency": "USD",
"Price": 1.95,
"PriceFormat": "Per Unit"
},
{
"StartingUnit": "151",
"EndingUnit": "300",
"Currency": "USD",
"Price": 1.45,
"PriceFormat": "Per Unit"
},
{
"StartingUnit": "1",
"EndingUnit": "150",
"Currency": "EUR",
"Price": 1.75,
"PriceFormat": "Per Unit"
},
{
"StartingUnit": "151",
"EndingUnit": "300",
"Currency": "EUR",
"Price": 1.30,
"PriceFormat": "Per Unit"
}
]
```
items:
properties:
currency:
description: 'The code corresponding to the currency for the price tier.
'
type: string
discountAmount:
description: 'The specific amount for a fixed discount. This field is applicable
for charges based on the Discount-Fixed Amount charge model.
'
format: double
type: number
discountPercentage:
description: 'The percentage of discount for a percentage discount. This
field is applicable for charges based on the Discount-Percentage charge
model.
'
format: double
type: number
endingUnit:
description: 'The end number of a range of units for the tier. This field
is applicable for charges based on the Tiered Pricing or Tiered with Overage
Pricing charge model.
'
format: double
type: number
overagePrice:
description: 'Indicates whether the price is an overage price, which is
the price when usage surpasses the last defined tier.
'
format: double
type: number
price:
description: 'The price of the tier if the charge is a flat fee, or the
price of each unit in the tier if the charge model is tiered pricing.
'
format: double
type: number
startingUnit:
description: 'The starting number of a range of units for the tier. This
field is applicable for charges based on the Tiered Pricing or Tiered
with Overage Pricing charge model.
'
format: double
type: number
type: object
type: array
GETRefundCollectionType:
properties:
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
refunds:
description: 'Container for refunds.
'
items:
$ref: '#/definitions/GETRefundTypewithSuccess'
type: array
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETRefundCreditMemoType:
allOf:
- properties:
accountId:
description: 'The ID of the account associated with this refund. Zuora associates
the refund automatically with the account from the associated payment.
'
type: string
amount:
description: 'The total amount of the refund.
'
format: double
type: number
cancelledOn:
description: 'The date and time when the refund was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: 'Comments about the refund.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the refund.
'
type: string
createdDate:
description: 'The date and time when the refund was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-06 15:31:10.
'
format: date-time
type: string
creditMemoId:
description: 'The ID of the credit memo that is refunded.
'
type: string
financeInformation:
description: 'Container for the finance information related to the refund.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
type: string
bankAccountAccountingCodeType:
description: 'The type of the accounting code that maps to a bank account
in your accounting system.
'
type: string
transferredToAccounting:
description: "Whether the refund was transferred to an external accounting\
\ system. Use this field for integration with accounting systems,\
\ such as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
type: string
unappliedPaymentAccountingCodeType:
description: 'The type of the accounting code for the unapplied payment.
'
type: string
type: object
gatewayId:
description: 'The ID of the gateway instance that processes the refund.
'
type: string
gatewayResponse:
description: 'The message returned from the payment gateway for the refund.
This message is gateway-dependent.
'
type: string
gatewayResponseCode:
description: 'The response code returned from the payment gateway for the
refund. This code is gateway-dependent.
'
type: string
gatewayState:
description: 'The status of the refund in the gateway.
'
enum:
- MarkedForSubmission
- Submitted
- Settled
- NotSubmitted
- FailedToSettle
type: string
id:
description: 'The ID of the created refund.
'
type: string
markedForSubmissionOn:
description: 'The date and time when a refund was marked and waiting for
batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
methodType:
description: 'How an external refund was issued to a customer.
'
enum:
- ACH
- Cash
- Check
- CreditCard
- PayPal
- WireTransfer
- DebitCard
- CreditCardReferenceTransaction
- BankTransfer
- Other
type: string
number:
description: 'The unique identification number of the refund.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentId:
description: 'The ID of the payment associated with the refund.
'
type: string
paymentMethodId:
description: 'The unique ID of the payment method that the customer used
to make the refund.
'
type: string
paymentMethodSnapshotId:
description: 'The unique ID of the payment method snapshot, which is a copy
of the particular payment method used in a transaction.
'
type: string
reasonCode:
description: 'A code identifying the reason for the transaction.
'
type: string
referenceId:
description: 'The transaction ID returned by the payment gateway for an
electronic refund. Use this field to reconcile refunds between your gateway
and Zuora Payments.
'
type: string
refundDate:
description: 'The date when the refund takes effect, in yyyy-mm-dd format.
'
format: date
type: string
refundTransactionTime:
description: 'The date and time when the refund was issued, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
secondRefundReferenceId:
description: 'The transaction ID returned by the payment gateway if there
is an additional transaction for the refund. Use this field to reconcile
payments between your gateway and Zuora Payments.
'
type: string
settledOn:
description: 'The date and time when the refund was settled in the payment
processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the
Spectrum gateway only and not applicable to other gateways.
'
format: date-time
type: string
softDescriptor:
description: 'A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
'
type: string
softDescriptorPhone:
description: 'A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
'
type: string
status:
description: 'The status of the refund.
'
enum:
- Processed
- Canceled
- Error
- Processing
type: string
submittedOn:
description: 'The date and time when the refund was submitted, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type:
description: 'The type of the refund.
'
enum:
- External
- Electronic
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the refund.
'
type: string
updatedDate:
description: 'The date and time when the refund was last updated, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-07 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/RefundObjectNSFields'
- $ref: '#/definitions/RefundObjectCustomFields'
GETRefundItemPartCollectionType:
properties:
itemParts:
description: 'Container for refund part items.
'
items:
$ref: '#/definitions/GETRefundItemPartTypewithSuccess'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETRefundItemPartType:
properties:
amount:
description: 'The amount of the refund part item.
'
format: double
type: number
createdById:
description: 'The ID of the Zuora user who created the refund part item.
'
type: string
createdDate:
description: 'The date and time when the refund part item was created, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
creditMemoItemId:
description: 'The ID of the credit memo item associated with the refund part
item.
'
type: string
creditTaxItemId:
description: 'The ID of the credit memo taxation item associated with the
refund part item.
'
type: string
id:
description: 'The ID of the refund part item.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
updatedById:
description: 'The ID of the Zuora user who last updated the refund part item.
'
type: string
updatedDate:
description: 'The date and time when the refund part item was last updated,
in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
GETRefundItemPartTypewithSuccess:
properties:
amount:
description: 'The amount of the refund part item.
'
format: double
type: number
createdById:
description: 'The ID of the Zuora user who created the refund part item.
'
type: string
createdDate:
description: 'The date and time when the refund part item was created, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
creditMemoItemId:
description: 'The ID of the credit memo item associated with the refund part
item.
'
type: string
creditTaxItemId:
description: 'The ID of the credit memo taxation item associated with the
refund part item.
'
type: string
id:
description: 'The ID of the refund part item.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the refund part item.
'
type: string
updatedDate:
description: 'The date and time when the refund part item was last updated,
in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
title: itemParts
type: object
GETRefundPartCollectionType:
properties:
parts:
description: 'Container for refund parts.
'
items:
$ref: '#/definitions/RefundPartResponseTypewithSuccess'
type: array
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETRefundPaymentType:
allOf:
- properties:
accountId:
description: 'The ID of the account associated with this refund. Zuora associates
the refund automatically with the account from the associated payment.
'
type: string
amount:
description: 'The total amount of the refund.
'
format: double
type: number
cancelledOn:
description: "The date and time when the refund was cancelled, in `yyyy-mm-dd\
\ hh:mm:ss` format. \n"
format: date-time
type: string
comment:
description: 'Comments about the refund.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the refund.
'
type: string
createdDate:
description: "The date and time when the refund was created, in `yyyy-mm-dd\
\ hh:mm:ss` format. For example, 2017-03-01 15:31:10. \n"
format: date-time
type: string
creditMemoId:
description: 'The ID of the credit memo associated with the refund.
'
type: string
financeInformation:
description: 'Container for the finance information related to the refund.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
type: string
bankAccountAccountingCodeType:
description: 'The type of the accounting code that maps to a bank account
in your accounting system.
'
type: string
transferredToAccounting:
description: "Whether the refund was transferred to an external accounting\
\ system. Use this field for integration with accounting systems,\
\ such as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
type: string
unappliedPaymentAccountingCodeType:
description: 'The type of the accounting code for the unapplied payment.
'
type: string
type: object
gatewayId:
description: 'The ID of the gateway instance that processes the refund.
'
type: string
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
gatewayResponse:
description: 'The message returned from the payment gateway for the refund.
This message is gateway-dependent.
'
type: string
gatewayResponseCode:
description: 'The code returned from the payment gateway for the refund.
This code is gateway-dependent.
'
type: string
gatewayState:
description: 'The status of the refund in the gateway.
'
enum:
- MarkedForSubmission
- Submitted
- Settled
- NotSubmitted
- FailedToSettle
type: string
id:
description: 'The ID of the created refund.
'
type: string
markedForSubmissionOn:
description: 'The date and time when a refund was marked and waiting for
batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
methodType:
description: 'How an external refund was issued to a customer.
'
enum:
- ACH
- Cash
- Check
- CreditCard
- PayPal
- WireTransfer
- DebitCard
- CreditCardReferenceTransaction
- BankTransfer
- Other
type: string
number:
description: 'The unique identification number of the refund.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentGatewayNumber:
description: 'The natural key for the payment gateway.
'
type: string
paymentId:
description: 'The ID of the payment that is refunded.
'
type: string
paymentMethodId:
description: "The unique ID of the payment method that the customer used\
\ to make the refund. \n"
type: string
paymentMethodSnapshotId:
description: 'The unique ID of the payment method snapshot, which is a copy
of the particular payment method used in a transaction.
'
type: string
payoutId:
description: 'The payout ID of the refund from the gateway side.
'
type: string
reasonCode:
description: "A code identifying the reason for the transaction. \n"
type: string
referenceId:
description: 'The transaction ID returned by the payment gateway for an
electronic refund. Use this field to reconcile refunds between your gateway
and Zuora Payments.
'
type: string
refundDate:
description: 'The date when the refund takes effect, in `yyyy-mm-dd` format.
'
format: date
type: string
refundTransactionTime:
description: 'The date and time when the refund was issued, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
secondRefundReferenceId:
description: 'The transaction ID returned by the payment gateway if there
is an additional transaction for the refund. Use this field to reconcile
payments between your gateway and Zuora Payments.
'
type: string
settledOn:
description: 'The date and time when the refund was settled in the payment
processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the
Spectrum gateway only and not applicable to other gateways.
'
format: date-time
type: string
softDescriptor:
description: 'A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
'
type: string
softDescriptorPhone:
description: 'A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
'
type: string
status:
description: 'The status of the refund.
'
enum:
- Processed
- Canceled
- Error
- Processing
type: string
submittedOn:
description: 'The date and time when the refund was submitted, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type:
description: 'The type of the refund.
'
enum:
- External
- Electronic
type: string
updatedById:
description: 'The ID of the the Zuora user who last updated the refund.
'
type: string
updatedDate:
description: 'The date and time when the refund was last updated, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/RefundObjectNSFields'
- $ref: '#/definitions/RefundObjectCustomFields'
GETRefundPaymentTypeAutoUnapply:
allOf:
- properties:
accountId:
description: 'The ID of the account associated with this refund. Zuora associates
the refund automatically with the account from the associated payment.
'
type: string
amount:
description: 'The total amount of the refund.
'
format: double
type: number
cancelledOn:
description: "The date and time when the refund was cancelled, in `yyyy-mm-dd\
\ hh:mm:ss` format. \n"
format: date-time
type: string
comment:
description: 'Comments about the refund.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the refund.
'
type: string
createdDate:
description: "The date and time when the refund was created, in `yyyy-mm-dd\
\ hh:mm:ss` format. For example, 2017-03-01 15:31:10. \n"
format: date-time
type: string
creditMemoId:
description: 'The ID of the credit memo associated with the refund.
'
type: string
financeInformation:
description: 'Container for the finance information related to the refund.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
type: string
bankAccountAccountingCodeType:
description: 'The type of the accounting code that maps to a bank account
in your accounting system.
'
type: string
transferredToAccounting:
description: "Whether the refund was transferred to an external accounting\
\ system. Use this field for integration with accounting systems,\
\ such as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
type: string
unappliedPaymentAccountingCodeType:
description: 'The type of the accounting code for the unapplied payment.
'
type: string
type: object
gatewayId:
description: 'The ID of the gateway instance that processes the refund.
'
type: string
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
gatewayResponse:
description: 'The message returned from the payment gateway for the refund.
This message is gateway-dependent.
'
type: string
gatewayResponseCode:
description: 'The code returned from the payment gateway for the refund.
This code is gateway-dependent.
'
type: string
gatewayState:
description: 'The status of the refund in the gateway.
'
enum:
- MarkedForSubmission
- Submitted
- Settled
- NotSubmitted
- FailedToSettle
type: string
id:
description: 'The ID of the created refund.
'
type: string
markedForSubmissionOn:
description: 'The date and time when a refund was marked and waiting for
batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
methodType:
description: 'How an external refund was issued to a customer.
'
enum:
- ACH
- Cash
- Check
- CreditCard
- PayPal
- WireTransfer
- DebitCard
- CreditCardReferenceTransaction
- BankTransfer
- Other
type: string
number:
description: 'The unique identification number of the refund.
'
type: string
paymentGatewayNumber:
description: 'The natural key for the payment gateway.
'
type: string
paymentId:
description: 'The ID of the payment that is refunded.
'
type: string
paymentMethodId:
description: "The unique ID of the payment method that the customer used\
\ to make the refund. \n"
type: string
paymentMethodSnapshotId:
description: 'The unique ID of the payment method snapshot, which is a copy
of the particular payment method used in a transaction.
'
type: string
payoutId:
description: 'The payout ID of the refund from the gateway side.
'
type: string
reasonCode:
description: "A code identifying the reason for the transaction. \n"
type: string
referenceId:
description: 'The transaction ID returned by the payment gateway for an
electronic refund. Use this field to reconcile refunds between your gateway
and Zuora Payments.
'
type: string
refundDate:
description: 'The date when the refund takes effect, in `yyyy-mm-dd` format.
'
format: date
type: string
refundTransactionTime:
description: 'The date and time when the refund was issued, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
secondRefundReferenceId:
description: 'The transaction ID returned by the payment gateway if there
is an additional transaction for the refund. Use this field to reconcile
payments between your gateway and Zuora Payments.
'
type: string
settledOn:
description: 'The date and time when the refund was settled in the payment
processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the
Spectrum gateway only and not applicable to other gateways.
'
format: date-time
type: string
softDescriptor:
description: 'A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
'
type: string
softDescriptorPhone:
description: 'A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
'
type: string
status:
description: 'The status of the refund.
'
enum:
- Processed
- Canceled
- Error
- Processing
type: string
submittedOn:
description: 'The date and time when the refund was submitted, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type:
description: 'The type of the refund.
'
enum:
- External
- Electronic
type: string
updatedById:
description: 'The ID of the the Zuora user who last updated the refund.
'
type: string
updatedDate:
description: 'The date and time when the refund was last updated, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
writeOffResults:
description: |
Container for the write-off information of credit memo and apply information.
**Note:** If you want to have access to this feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
properties:
errorMessage:
description: 'The error message about write off failed.
'
type: string
transactions:
description: 'The credit memo apply information.
'
properties:
appliedAmount:
description: 'The credit memo applied amopunt.
'
format: double
type: number
creditMemoAmount:
description: 'The credit memo amount.
'
type: string
creditMemoNumber:
description: 'The unique identification number of the credit memo.
'
type: string
creditMemoStatus:
description: "The status of the credit memo. \n"
enum:
- Draft
- Posted
- Canceled
- Error
- PendingForTax
- Generating
- CancelInProgress
type: string
invoiceNumber:
description: 'The unique identification number of the invoice.
'
type: string
title: transactions
type: object
type: object
type: object
- $ref: '#/definitions/RefundObjectNSFields'
- $ref: '#/definitions/RefundObjectCustomFields'
GETRefundType:
allOf:
- properties:
accountId:
description: 'The ID of the account associated with this refund. Zuora associates
the refund automatically with the account from the associated payment
or credit memo.
'
type: string
amount:
description: 'The total amount of the refund.
'
format: double
type: number
cancelledOn:
description: 'The date and time when the refund was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: 'Comments about the refund.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the refund.
'
type: string
createdDate:
description: 'The date and time when the refund was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, `2017-03-01 15:31:10`.
'
format: date-time
type: string
creditMemoId:
description: 'The ID of the credit memo that is refunded.
'
type: string
financeInformation:
description: 'Container for the finance information related to the refund.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
type: string
bankAccountAccountingCodeType:
description: 'The type of the accounting code that maps to a bank account
in your accounting system.
'
type: string
transferredToAccounting:
description: "Whether the refund was transferred to an external accounting\
\ system. Use this field for integration with accounting systems,\
\ such as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
type: string
unappliedPaymentAccountingCodeType:
description: 'The type of the accounting code for the unapplied payment.
'
type: string
type: object
gatewayId:
description: 'The ID of the gateway instance that processes the refund.
'
type: string
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
gatewayResponse:
description: 'The message returned from the payment gateway for the refund.
This message is gateway-dependent.
'
type: string
gatewayResponseCode:
description: 'The code returned from the payment gateway for the refund.
This code is gateway-dependent.
'
type: string
gatewayState:
description: 'The status of the refund in the gateway.
'
enum:
- MarkedForSubmission
- Submitted
- Settled
- NotSubmitted
- FailedToSettle
type: string
id:
description: 'The ID of the refund.
'
type: string
markedForSubmissionOn:
description: "The date and time when a refund was marked and waiting for\
\ batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\
\ \n"
format: date-time
type: string
methodType:
description: "How an external refund was issued to a customer. \n"
enum:
- ACH
- Cash
- Check
- CreditCard
- PayPal
- WireTransfer
- DebitCard
- CreditCardReferenceTransaction
- BankTransfer
- Other
type: string
number:
description: 'The unique identification number of the refund.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentId:
description: 'The ID of the payment that is refunded.
'
type: string
paymentMethodId:
description: 'The unique ID of the payment method that the customer used
to make the refund.
'
type: string
paymentMethodSnapshotId:
description: 'The unique ID of the payment method snapshot, which is a copy
of the particular payment method used in a transaction.
'
type: string
payoutId:
description: 'The payout ID of the refund from the gateway side.
'
type: string
reasonCode:
description: 'A code identifying the reason for the transaction.
'
type: string
referenceId:
description: 'The transaction ID returned by the payment gateway for an
electronic refund. Use this field to reconcile refunds between your gateway
and Zuora Payments.
'
type: string
refundDate:
description: 'The date when the refund takes effect, in `yyyy-mm-dd` format.
For example, 2017-03-01.
'
format: date
type: string
refundTransactionTime:
description: 'The date and time when the refund was issued, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
secondRefundReferenceId:
description: 'The transaction ID returned by the payment gateway if there
is an additional transaction for the refund. Use this field to reconcile
payments between your gateway and Zuora Payments.
'
type: string
settledOn:
description: 'The date and time when the refund was settled in the payment
processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the
Spectrum gateway only and not applicable to other gateways.
'
format: date-time
type: string
softDescriptor:
description: 'A payment gateway-specific field that maps Zuora to other
gateways.
'
type: string
softDescriptorPhone:
description: 'A payment gateway-specific field that maps Zuora to other
gateways.
'
type: string
status:
description: "The status of the refund. \n"
enum:
- Processed
- Canceled
- Error
- Processing
type: string
submittedOn:
description: 'The date and time when the refund was submitted, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type:
description: "The type of the refund. \n"
enum:
- External
- Electronic
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the refund.
'
type: string
updatedDate:
description: 'The date and time when the refund was last updated, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/RefundObjectNSFields'
- $ref: '#/definitions/RefundObjectCustomFields'
GETRefundTypewithSuccess:
allOf:
- properties:
accountId:
description: 'The ID of the account associated with this refund. Zuora associates
the refund automatically with the account from the associated payment
or credit memo.
'
type: string
amount:
description: 'The total amount of the refund.
'
format: double
type: number
cancelledOn:
description: 'The date and time when the refund was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: 'Comments about the refund.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the refund.
'
type: string
createdDate:
description: 'The date and time when the refund was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
creditMemoId:
description: 'The ID of the credit memo that is refunded.
'
type: string
financeInformation:
description: 'Container for the finance information related to the refund.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
type: string
bankAccountAccountingCodeType:
description: 'The type of the accounting code that maps to a bank account
in your accounting system.
'
type: string
transferredToAccounting:
description: "Whether the refund was transferred to an external accounting\
\ system. Use this field for integration with accounting systems,\
\ such as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
type: string
unappliedPaymentAccountingCodeType:
description: 'The type of the accounting code for the unapplied payment.
'
type: string
type: object
gatewayId:
description: 'The ID of the gateway instance that processes the refund.
'
type: string
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
gatewayResponse:
description: 'The message returned from the payment gateway for the refund.
This message is gateway-dependent.
'
type: string
gatewayResponseCode:
description: 'The code returned from the payment gateway for the refund.
This code is gateway-dependent.
'
type: string
gatewayState:
description: "The status of the refund in the gateway. \n"
enum:
- MarkedForSubmission
- Submitted
- Settled
- NotSubmitted
- FailedToSettle
type: string
id:
description: 'The ID of the refund.
'
type: string
markedForSubmissionOn:
description: 'The date and time when a refund was marked and waiting for
batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
methodType:
description: "How an external refund was issued to a customer. \n"
enum:
- ACH
- Cash
- Check
- CreditCard
- PayPal
- WireTransfer
- DebitCard
- CreditCardReferenceTransaction
- BankTransfer
- Other
type: string
number:
description: 'The unique identification number of the refund.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentId:
description: 'The ID of the payment that is refunded.
'
type: string
paymentMethodId:
description: 'The unique ID of the payment method that the customer used
to make the refund.
'
type: string
paymentMethodSnapshotId:
description: 'The unique ID of the payment method snapshot, which is a copy
of the particular payment method used in a transaction.
'
type: string
payoutId:
description: 'The payout ID of the refund from the gateway side.
'
type: string
reasonCode:
description: 'A code identifying the reason for the transaction.
'
type: string
referenceId:
description: 'The transaction ID returned by the payment gateway for an
electronic refund. Use this field to reconcile refunds between your gateway
and Zuora Payments.
'
type: string
refundDate:
description: 'The date when the refund takes effect, in `yyyy-mm-dd` format.
For example, 2017-03-01.
'
format: date
type: string
refundTransactionTime:
description: 'The date and time when the refund was issued, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
secondRefundReferenceId:
description: 'The transaction ID returned by the payment gateway if there
is an additional transaction for the refund. Use this field to reconcile
payments between your gateway and Zuora Payments.
'
type: string
settledOn:
description: 'The date and time when the refund was settled in the payment
processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the
Spectrum gateway only and not applicable to other gateways.
'
format: date-time
type: string
softDescriptor:
description: 'A payment gateway-specific field that maps Zuora to other
gateways.
'
type: string
softDescriptorPhone:
description: 'A payment gateway-specific field that maps Zuora to other
gateways.
'
type: string
status:
description: "The status of the refund. \n"
enum:
- Processed
- Canceled
- Error
- Processing
type: string
submittedOn:
description: 'The date and time when the refund was submitted, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
type:
description: "The type of the refund. \n"
enum:
- External
- Electronic
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the refund.
'
type: string
updatedDate:
description: 'The date and time when the refund was last updated, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/RefundObjectNSFields'
- $ref: '#/definitions/RefundObjectCustomFields'
title: refunds
GETSequenceSetResponse:
description: ''
properties:
creditMemo:
$ref: '#/definitions/CreditMemoEntityPrefix'
debitMemo:
$ref: '#/definitions/DebitMemoEntityPrefix'
id:
description: 'The unique ID of the sequence set. For example, 402892c74c9193cd014c96bbe7c101f9.
'
type: string
invoice:
$ref: '#/definitions/InvoiceEntityPrefix'
name:
description: 'The name of the sequence set.
'
type: string
payment:
$ref: '#/definitions/PaymentEntityPrefix'
refund:
$ref: '#/definitions/RefundEntityPrefix'
title: sequenceSets
type: object
GETSequenceSetsResponse:
description: ''
properties:
sequenceSets:
description: 'Array of sequence sets configured for billing documents, payments,
and refunds.
'
items:
$ref: '#/definitions/GETSequenceSetResponse'
type: array
success:
description: 'Indicates whether the call succeeded.
'
type: boolean
type: object
GETSubscriptionOfferType:
allOf:
- properties:
description:
description: ''
type: string
id:
description: 'Subscription offer ID.
'
type: string
lastChangeType:
description: 'The last change amendment type.
'
type: string
originalSubscriptionId:
description: 'The ID of the subscription of version 1.
'
type: string
originalSubscriptionOfferId:
description: 'The subscription Offer ID when the offer is added to the subscription.
'
type: string
productOfferId:
description: 'Product offer ID.
'
type: string
productOfferName:
description: 'Product offer name.
'
type: string
productOfferNumber:
description: 'Product offer number.
'
type: string
ratePlans:
description: 'Container for rate plans.
'
items:
$ref: '#/definitions/GETSubscriptionRatePlanType'
subscriptionId:
description: 'Subscription ID.
'
type: string
subscriptionOfferNumber:
description: 'Subscription offer number.
'
type: string
type:
description: 'The offer type.
'
enum:
- Static
- Dynamic
type: string
type: object
- $ref: '#/definitions/SubscriptionOfferObjectCustomFields'
title: subscriptionOffers
GETSubscriptionProductFeatureType:
properties:
description:
description: 'Feature description.
'
type: string
featureCode:
description: 'Feature code, up to 255 characters long.
'
type: string
id:
description: 'SubscriptionProductFeature ID.
'
type: string
name:
description: 'Feature name, up to 255 characters long.
'
type: string
title: subscriptionProductFeatures
type: object
GETSubscriptionRatePlanChargesType:
allOf:
- properties:
amendedByOrderOn:
description: 'The date when the rate plan charge is amended through an order
or amendment. This field is to standardize the booking date information
to increase audit ability and traceability of data between Zuora Billing
and Zuora Revenue. It is mapped as the booking date for a sale order line
in Zuora Revenue.
'
type: string
applyDiscountTo:
description: "Specifies the type of charges a specific discount applies\
\ to. \n\nThis field is only used when applied to a discount charge model.\
\ If you are not using a discount charge model, the value is null.\n\n\
Possible values:\n\n* `RECURRING`\n* `USAGE`\n* `ONETIMERECURRING`\n*\
\ `ONETIMEUSAGE`\n* `RECURRINGUSAGE`\n* `ONETIMERECURRINGUSAGE`\n"
type: string
applyToBillingPeriodPartially:
description: |
Allow the discount duration to be aligned with the billing period partially.
**Note**: This field is only available if you have the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature enabled.
type: boolean
billingDay:
description: "Billing cycle day (BCD), which is when bill runs generate\
\ invoices\nfor charges associated with the product rate plan charge or\
\ the account. \n\nValues:\n\n* `DefaultFromCustomer`\n* `SpecificDayofMonth(#\
\ of the month)`\n* `SubscriptionStartDay`\n* `ChargeTriggerDay`\n* `SpecificDayofWeek/dayofweek`:\
\ in which dayofweek is the day in the week you define your billing periods\
\ to start.\n\nIn the response data, a day-of-the-month ordinal value\
\ (`first`-`31st`) appears in place of the hash sign above (\"#\"). If\
\ this value exceeds the number of days in a particular month, the last\
\ day of the month is used as the BCD.\n"
type: string
billingPeriod:
description: 'Allows billing period to be overridden on the rate plan charge.
'
type: string
billingPeriodAlignment:
description: |
Possible values:
* `AlignToCharge`
* `AlignToSubscriptionStart`
* `AlignToTermStart`
type: string
billingTiming:
description: |
The billing timing for the charge. This field is only used if the `ratePlanChargeType` value is `Recurring`.
Possible values are:
* `In Advance`
* `In Arrears`
**Note:** This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
type: string
chargeModelConfiguration:
$ref: '#/definitions/ChargeModelConfigurationType'
chargedThroughDate:
description: 'The date through which a customer has been billed for the
charge.
'
format: date
type: string
creditOption:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled. \nTo use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to 114 or higher. Otherwise, an error occurs. \nThe way\
\ to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option)\
\ for more information.\n"
enum:
- TimeBased
- ConsumptionBased
- FullCreditBack
type: string
currency:
description: 'Currency used by the account. For example, `USD` or `EUR`.
'
type: string
description:
description: 'Description of the rate plan charge.
'
type: string
discountAmount:
description: 'The amount of the discount.
'
type: number
discountApplyDetails:
description: "Container for the application details about a discount rate\
\ plan charge. \n\nOnly discount rate plan charges have values in this\
\ field.\n"
items:
$ref: '#/definitions/GETDiscountApplyDetailsType'
type: array
discountClass:
description: |
The class that the discount belongs to. The discount class defines the order in which discount rate plan charges are applied.
For more information, see [Manage Discount Classes](https://knowledgecenter.zuora.com/BC_Subscription_Management/Product_Catalog/B_Charge_Models/Manage_Discount_Classes).
type: string
discountLevel:
description: 'The level of the discount. Values: `RatePlan`, `Subscription`,
`Account`.
'
type: string
discountPercentage:
description: 'The amount of the discount as a percentage.
'
type: number
dmrc:
description: 'The change (delta) of monthly recurring charge exists when
the change in monthly recurring revenue caused by an amendment or a new
subscription.
'
type: number
done:
description: 'A value of `true` indicates that an invoice for a charge segment
has been completed. A value of `false` indicates that an invoice has not
been completed for the charge segment.
'
type: boolean
drawdownRate:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).
type: number
drawdownUom:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
Unit of measurement for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge).
type: string
dtcv:
description: 'After an amendment or an AutomatedPriceChange event, `dtcv`
displays the change (delta) for the total contract value (TCV) amount
for this charge, compared with its previous value with recurring charge
types.
'
type: number
effectiveEndDate:
description: 'The effective end date of the rate plan charge.
'
format: date
type: string
effectiveStartDate:
description: 'The effective start date of the rate plan charge.
'
format: date
type: string
endDateCondition:
description: |
Defines when the charge ends after the charge trigger date.
If the subscription ends before the charge end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the charge end date.
Values:
* `Subscription_End`
* `Fixed_Period`
* `Specific_End_Date`
* `One_Time`
type: string
excludeItemBillingFromRevenueAccounting:
description: "The flag to exclude rate plan charge related invoice items,\
\ invoice item adjustments, credit memo items, and debit memo items from\
\ revenue accounting.\n\n**Note**: This field is only available if you\
\ have the Billing - Revenue Integration feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
description: "The flag to exclude rate plan charges from revenue accounting.\n\
\n**Note**: This field is only available if you have the Billing - Revenue\
\ Integration feature enabled. \n"
type: boolean
id:
description: 'Rate plan charge ID.
'
type: string
includedUnits:
description: 'Specifies the number of units in the base set of units.
'
type: number
invoiceScheduleId:
description: |
The ID of the invoice schedule associated with the rate plan charge on the subscription.
**Note**: This field is available only if you have the Billing Schedule feature enabled.
type: string
isAllocationEligible:
description: |
This field is used to identify if the charge segment is allocation eligible in revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
isPrepaid:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
Indicates whether this charge is a prepayment (topup) charge or a drawdown charge. Values: `true` or `false`.
type: boolean
isRollover:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The value is either "True" or "False". It determines whether the rollover fields are needed.
type: boolean
isStackedDiscount:
description: |
**Note**: This field is only applicable to the Discount - Percentage charge model.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 130 or higher. Otherwise, an error occurs.
This field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:
- `True`: This is a stacked discount, which should be calculated by stacking with other discounts.
- `False`: This is not a stacked discount, which should be calculated in sequence with other discounts.
For more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).
type: boolean
isUnbilled:
description: |
This field is used to dictate how to perform the accounting during revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
listPriceBase:
description: |
List price base; possible values are:
* `Per_Billing_Period`
* `Per_Month`
* `Per_Week`
* `Per_Year`
* `Per_Specific_Months`
type: string
model:
description: |
Charge model; possible values are:
* `FlatFee`
* `PerUnit`
* `Overage`
* `Volume`
* `Tiered`
* `TieredWithOverage`
* `DiscountFixedAmount`
* `DiscountPercentage`
* `MultiAttributePricing`
* `PreratedPerUnit`
* `PreratedPricing`
* `HighWatermarkVolumePricing`
* `HighWatermarkTieredPricing`
* `Delivery`
type: string
mrr:
description: 'Monthly recurring revenue of the rate plan charge.
'
type: number
name:
description: 'Charge name.
'
type: string
number:
description: 'Charge number.
'
type: string
numberOfDeliveries:
description: "Number of deliveries in the billing period for the charge\
\ segment.\n\nThe `numberOfDeliveries` is used for the Delivery Pricing\
\ charge model only. \n\n**Note**: The Delivery Pricing charge model is\
\ in the **Early Adopter** phase. We are actively soliciting feedback\
\ from a small set of early adopters before releasing it as generally\
\ available. To manage and access this feature through the self-service\
\ interface, see [Enable billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features)\
\ in the Knowledge Center. You can check **Delivery Pricing** in **Billing\
\ Settings** > **Enable Charge Types / Models**.\n"
type: number
numberOfPeriods:
description: 'Specifies the number of periods to use when calculating charges
in an overage smoothing charge model.
'
format: int64
type: integer
originalChargeId:
description: 'The original ID of the rate plan charge.
'
type: string
originalOrderDate:
description: |
The date when the rate plan charge is created through an order or amendment.
This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sale order line in Zuora Revenue.
format: date
type: string
overageCalculationOption:
description: 'Determines when to calculate overage charges.
'
type: string
overagePrice:
description: 'The price for units over the allowed amount.
'
type: number
overageUnusedUnitsCreditOption:
description: 'Determines whether to credit the customer with unused units
of usage.
'
type: string
prepaidOperationType:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nThe type of this charge. It is either a prepayment\
\ (topup) charge or a drawdown charge. \n"
enum:
- topup
- drawdown
type: string
prepaidQuantity:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).
type: number
prepaidTotalQuantity:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The total amount of units that end customers can use during a validity period when they subscribe to a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).
type: number
prepaidUom:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
Unit of measurement for a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).
type: string
price:
description: 'The price associated with the rate plan charge expressed as
a decimal.
'
type: number
priceChangeOption:
description: "When the following is true:\n\n1. AutomatedPriceChange setting\
\ is on\n\n2. Charge type is not one-time\n\n3. Charge model is not discount\
\ percentage\n\nThen an automatic price change can have a value for when\
\ a termed subscription is renewed. \n\nValues (one of the following):\n\
\n* `NoChange` (default)\n* `SpecificPercentageValue`\n* `UseLatestProductCatalogPricing`\n"
type: string
priceIncreasePercentage:
description: 'A planned future price increase amount as a percentage.
'
type: number
pricingSummary:
description: 'Concise description of rate plan charge model.
'
type: string
processedThroughDate:
description: 'The date until when charges have been processed. When billing
in arrears, such as usage, this field value is the the same as the `ChargedThroughDate`
value. This date is the earliest date when a charge can be amended.
'
format: date
type: string
productCategory:
description: "This is used to maintain the product category. \n\n**Note**:\
\ This field is only available if you have the Additional Revenue Fields\
\ property enabled.\n"
type: string
productClass:
description: "This is used to maintain the product class. \n\n**Note**:\
\ This field is only available if you have the Additional Revenue Fields\
\ property enabled. \n"
type: string
productFamily:
description: "This is used to maintain the product family. \n\n**Note**:\
\ This field is only available if you have the Additional Revenue Fields\
\ property enabled.\n"
type: string
productLine:
description: "This is used to maintain the product line. \n\n**Note**: This\
\ field is only available if you have the Additional Revenue Fields property\
\ enabled.\n"
type: string
productRatePlanChargeId:
description: ''
type: string
quantity:
description: 'The quantity of units, such as the number of authors in a
hosted wiki service. Valid for all charge models except for Flat Fee pricing.
'
type: number
ratingGroup:
description: "Specifies a rating group based on which usage records are\
\ rated.\n\nPossible values:\n\n- `ByBillingPeriod` (default): The rating\
\ is based on all the usages in a billing period.\n- `ByUsageStartDate`:\
\ The rating is based on all the usages on the same usage start date.\
\ \n- `ByUsageRecord`: The rating is based on each usage record.\n- `ByUsageUpload`:\
\ The rating is based on all the usages in a uploaded usage file (`.xls`\
\ or `.csv`).\n- `ByGroupId`: The rating is based on all the usages in\
\ a custom group.\n\n**Note:** \n- The `ByBillingPeriod` value can be\
\ applied for all charge models. \n- The `ByUsageStartDate`, `ByUsageRecord`,\
\ and `ByUsageUpload` values can only be applied for per unit, volume\
\ pricing, and tiered pricing charge models. \n- The `ByGroupId` value\
\ is only available if you have the Active Rating feature enabled.\n-\
\ Use this field only for Usage charges. One-Time Charges and Recurring\
\ Charges return `NULL`.\n"
type: string
rolloverApply:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
This field defines the priority of rollover, which is either first or last.
enum:
- ApplyFirst
- ApplyLast
type: string
rolloverPeriodLength:
default: null
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The period length of the rollover fund.
type: integer
rolloverPeriods:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
This field defines the number of rollover periods, it is restricted to 3.
type: number
segment:
description: 'The identifying number of the subscription rate plan segment.
Segments are numbered sequentially, starting with 1.
'
format: int64
type: integer
smoothingModel:
description: |
Specifies when revenue recognition begins. When charge model is `Overage` or `TieredWithOverage`, `smoothingModel` will be one of the following values:
* `ContractEffectiveDate`
* `ServiceActivationDate`
* `CustomerAcceptanceDate`
type: string
specificBillingPeriod:
description: 'Customizes the number of month or week for the charges billing
period. This field is required if you set the value of the `BillingPeriod`
field to `Specific_Months` or `Specific_Weeks`.
'
format: int64
type: integer
specificEndDate:
description: 'The specific date on which the charge ends. If the subscription
ends before the specific end date, the charge ends when the subscription
ends. But if the subscription end date is subsequently changed through
a Renewal, or Terms and Conditions amendment, the charge will end on the
specific end date.
'
format: date
type: string
specificListPriceBase:
description: "The number of months for the list price base of the charge.\
\ \n\n**Note**: \n - This field is available only if you have the Annual List Price feature enabled.\n - The value\
\ of this field is `null` if you do not set the value of the `listPriceBase`\
\ field to `Per_Specific_Months`.\n"
subscriptionChargeDeliverySchedule:
$ref: '#/definitions/GETDeliveryScheduleType'
subscriptionChargeIntervalPricing:
description: 'Interval Pricing information. This field is available if the
Offers feature is enabled.
'
items:
$ref: '#/definitions/GETIntervalPriceType'
type: array
tcv:
description: 'The total contract value.
'
type: number
tiers:
description: 'One or many defined ranges with distinct pricing.
'
items:
$ref: '#/definitions/GETTierType'
type: array
triggerDate:
description: 'The date that the rate plan charge will be triggered.
'
format: date
type: string
triggerEvent:
description: "The event that will cause the rate plan charge to be triggered.\n\
\nPossible values: \n\n* `ContractEffective`\n* `ServiceActivation`\n\
* `CustomerAcceptance`\n* `SpecificDate`\n"
type: string
type:
description: 'Charge type. Possible values are: `OneTime`, `Recurring`,
`Usage`.
'
type: string
unusedUnitsCreditRates:
description: "Specifies the rate to credit a customer for unused units of\
\ usage. This field is applicable only for overage charge models when\
\ the \n`OverageUnusedUnitsCreditOption` field value is `CreditBySpecificRate`.\n"
type: number
uom:
description: "Specifies the units to measure usage. \n"
type: string
upToPeriods:
description: |
Specifies the length of the period during which the charge is active. If this period ends before the subscription ends, the charge ends when this period ends.
If the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge end date will change accordingly up to the original period end.
type: string
upToPeriodsType:
description: "The period type used to define when the charge ends. \n\n\
Values:\n\n* `Billing_Periods`\n* `Days`\n* `Weeks`\n* `Months`\n* `Years`\n"
type: string
usageRecordRatingOption:
description: "Determines how Zuora processes usage records for per-unit\
\ usage charges. \n"
type: string
validityPeriodType:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).
enum:
- SUBSCRIPTION_TERM
- ANNUAL
- SEMI_ANNUAL
- QUARTER
- MONTH
type: string
version:
description: 'Rate plan charge revision number.
'
format: int64
type: integer
type: object
- $ref: '#/definitions/RatePlanChargeObjectCustomFields'
title: ratePlanCharges
GETSubscriptionRatePlanType:
allOf:
- properties:
externallyManagedPlanId:
description: 'Indicates the unique identifier for the rate plan purchased
on a third-party store. This field is used to represent a subscription
rate plan created through third-party stores.
'
type: string
id:
description: 'Rate plan ID.
'
type: string
lastChangeType:
description: "The last amendment on the rate plan. \n\n\n**Note:** If a\
\ subscription is created through an order, this field is only available\
\ if multiple orders are created on the subscription.\n\n\nPossible Values:\n\
\ * `Add`\n * `Update`\n * `Remove`\n"
type: string
productId:
description: ''
type: string
productName:
description: ''
type: string
productRatePlanId:
description: ''
type: string
productSku:
description: 'The unique SKU for the product.
'
type: string
ratePlanCharges:
description: 'Container for one or more charges.
'
items:
$ref: '#/definitions/GETSubscriptionRatePlanChargesType'
type: array
ratePlanName:
description: 'Name of the rate plan.
'
type: string
subscriptionProductFeatures:
description: "Container for one or more features. \n\nOnly available when\
\ the following settings are enabled:\n\n* The Entitlements feature in\
\ your tenant.\n\n* The Enable Feature Specification in Product and Subscriptions\
\ setting in Zuora Billing Settings"
items:
$ref: '#/definitions/GETSubscriptionProductFeatureType'
type: array
type: object
- $ref: '#/definitions/RatePlanObjectCustomFields'
title: ratePlans
GETSubscriptionStatusHistoryType:
allOf:
- properties:
endDate:
description: The effective end date of the status history.
format: date
type: string
startDate:
description: The effective start date of the status history.
format: date
type: string
status:
description: |
The status of the subscription.
Values are:
* `Pending Activation`
* `Pending Acceptance`
* `Active`
* `Cancelled`
* `Suspended`
* `OutOfTerm`
type: string
type: object
title: statusHistory
GETSubscriptionType:
allOf:
- properties:
accountId:
description: ''
type: string
accountName:
description: ''
type: string
accountNumber:
description: ''
type: string
autoRenew:
description: 'If `true`, the subscription automatically renews at the end
of the term. Default is `false`.
'
type: boolean
billToContact:
$ref: '#/definitions/GETAccountSummaryTypeBillToContact'
cancelReason:
description: "The reason for a subscription cancellation copied from the\
\ `changeReason` field of a Cancel Subscription order action. \n\nThis\
\ field contains valid value only if a subscription is cancelled through\
\ the Orders UI or API. Otherwise, the value for this field will always\
\ be `null`.\n"
type: string
contractEffectiveDate:
description: 'Effective contract date for this subscription, as yyyy-mm-dd.
'
format: date
type: string
contractedMrr:
description: 'Monthly recurring revenue of the subscription.
'
type: number
currency:
description: |
The currency of the subscription.
**Note**: This field is available only if you have the Multiple Currencies feature in the **Early Adopter** phase enabled.
type: string
currentTerm:
description: 'The length of the period for the current subscription term.
'
format: int64
type: integer
currentTermPeriodType:
description: |
The period type for the current subscription term.
Values are:
* `Month` (default)
* `Year`
* `Day`
* `Week`
type: string
customerAcceptanceDate:
description: 'The date on which the services or products within a subscription
have been accepted by the customer, as yyyy-mm-dd.
'
format: date
type: string
externallyManagedBy:
description: 'An enum field on the Subscription object to indicate the name
of a third-party store. This field is used to represent subscriptions
created through third-party stores.
'
enum:
- Amazon
- Apple
- Google
- Roku
type: string
id:
description: 'Subscription ID.
'
type: string
initialTerm:
description: 'The length of the period for the first subscription term.
'
format: int64
type: integer
initialTermPeriodType:
description: |
The period type for the first subscription term.
Values are:
* `Month` (default)
* `Year`
* `Day`
* `Week`
type: string
invoiceOwnerAccountId:
description: ''
type: string
invoiceOwnerAccountName:
description: ''
type: string
invoiceOwnerAccountNumber:
description: ''
type: string
invoiceScheduleId:
description: |
The ID of the invoice schedule associated with the subscription.
If multiple invoice schedules are created for different terms of a subscription, this field stores the latest invoice schedule.
**Note**: This field is available only if you have the Billing Schedule feature in the **Early Adopter** phase enabled.
type: integer
invoiceSeparately:
description: "Separates a single subscription from other subscriptions and\
\ creates an invoice for the subscription. \n\nIf the value is `true`,\
\ the subscription is billed separately from other subscriptions. If the\
\ value is `false`, the subscription is included with other subscriptions\
\ in the account invoice.\n"
type: string
invoiceTemplateId:
description: "The ID of the invoice template associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled,\
\ this field is unavailable in the request body and the value of this\
\ field is `null` in the response body. \n - If you have the Flexible\
\ Billing Attributes feature enabled, and you do not specify this field\
\ in the request or you select **Default Template from Account** for this\
\ field during subscription creation, the value of this field is automatically\
\ set to `null` in the response body.\n"
type: string
invoiceTemplateName:
description: "The name of the invoice template associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled,\
\ the value of this field is `null` in the response body. \n - If you\
\ have the Flexible Billing Attributes feature enabled, and you do not\
\ specify the `invoiceTemplateId` field in the request or you select **Default\
\ Template from Account** for the `invoiceTemplateId` field during subscription\
\ creation, the value of the `invoiceTemplateName` field is automatically\
\ set to `null` in the response body.\n \n"
type: string
isLatestVersion:
description: If `true`, the current subscription object is the latest version.
type: boolean
lastBookingDate:
description: "The last booking date of the subscription object. This field\
\ is writable only when the subscription is newly created as a first version\
\ subscription. You can override the date value when creating a subscription\
\ through the Subscribe and Amend API or the subscription creation UI\
\ (non-Orders). Otherwise, the default value `today` is set per the user's\
\ timezone. The value of this field is as follows:\n* For a new subscription\
\ created by the [Subscribe and Amend APIs](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Migration_Guidance#Subscribe_and_Amend_APIs_to_Migrate),\
\ this field has the value of the subscription creation date.\n* For a\
\ subscription changed by an amendment, this field has the value of the\
\ amendment booking date.\n* For a subscription created or changed by\
\ an order, this field has the value of the order date. "
format: date
type: string
notes:
description: 'A string of up to 65,535 characters.
'
type: string
offers:
description: "Container for offers. \n\n**Note**\uFF1AThe Offers feature\
\ is only available in tenants with Orders enabled. To enable the Offers\
\ feature, submit a request at Zuora Global Support . \n"
items:
$ref: '#/definitions/GETSubscriptionOfferType'
type: array
orderNumber:
description: "The order number of the order in which the changes on the\
\ subscription are made. \n\n**Note:** This field is only available if\
\ you have the [Order Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics)\
\ feature enabled. If you wish to have access to the feature, submit a\
\ request at [Zuora Global Support](http://support.zuora.com/). We will\
\ investigate your use cases and data before enabling this feature for\
\ you.\n"
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentTerm:
description: "The name of the payment term associated with the subscription.\
\ For example, `Net 30`. The payment term determines the due dates of\
\ invoices.\n\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled,\
\ this field is unavailable in the request body and the value of this\
\ field is `null` in the response body. \n - If you have the Flexible\
\ Billing Attributes feature enabled, and you do not specify this field\
\ in the request or you select **Default Term from Account** for this\
\ field during subscription creation, the value of this field is automatically\
\ set to `null` in the response body.\n"
type: string
ratePlans:
description: 'Container for rate plans.
'
items:
$ref: '#/definitions/GETSubscriptionRatePlanType'
type: array
renewalSetting:
description: "Specifies whether a termed subscription will remain `TERMED`\
\ or change to `EVERGREEN` when it is renewed. \n\nValues are:\n\n* `RENEW_WITH_SPECIFIC_TERM`\
\ (default)\n* `RENEW_TO_EVERGREEN`\n"
type: string
renewalTerm:
description: 'The length of the period for the subscription renewal term.
'
format: int64
type: integer
renewalTermPeriodType:
description: |
The period type for the subscription renewal term.
Values are:
* `Month` (default)
* `Year`
* `Day`
* `Week`
type: string
revision:
description: 'An auto-generated decimal value uniquely tagged with a subscription.
The value always contains one decimal place, for example, the revision
of a new subscription is 1.0. If a further version of the subscription
is created, the revision value will be increased by 1. Also, the revision
value is always incremental regardless of deletion of subscription versions.
'
type: string
sequenceSetId:
description: "The ID of the sequence set associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled,\
\ this field is unavailable in the request body and the value of this\
\ field is `null` in the response body. \n - If you have the Flexible\
\ Billing Attributes feature enabled, and you do not specify this field\
\ in the request or you select **Default Set from Account** for this field\
\ during subscription creation, the value of this field is automatically\
\ set to `null` in the response body.\n"
type: string
sequenceSetName:
description: "The name of the sequence set associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled,\
\ the value of this field is `null` in the response body. \n - If you\
\ have the Flexible Billing Attributes feature enabled, and you do not\
\ specify the `sequenceSetId` field in the request or you select **Default\
\ Template from Account** for the `sequenceSetId` field during subscription\
\ creation, the value of the `sequenceSetName` field is automatically\
\ set to `null` in the response body.\n"
type: string
serviceActivationDate:
description: 'The date on which the services or products within a subscription
have been activated and access has been provided to the customer, as yyyy-mm-dd
'
format: date
type: string
soldToContact:
$ref: '#/definitions/GETAccountSummaryTypeSoldToContact'
status:
description: |
Subscription status; possible values are:
* `Draft`
* `Pending Activation`
* `Pending Acceptance`
* `Active`
* `Cancelled`
* `Suspended`
type: string
statusHistory:
description: 'Container for status history.
'
items:
$ref: '#/definitions/GETSubscriptionStatusHistoryType'
type: array
subscriptionEndDate:
description: |
The date when the subscription term ends, where the subscription ends at midnight the day before.
For example, if the `subscriptionEndDate` is 12/31/2016, the subscriptions ends at midnight (00:00:00 hours) on 12/30/2016.
This date is the same as the term end date or the cancelation date, as appropriate.
format: date
type: string
subscriptionNumber:
description: ''
type: string
subscriptionStartDate:
description: 'Date the subscription becomes effective.
'
format: date
type: string
termEndDate:
description: 'Date the subscription term ends. If the subscription is evergreen,
this is null or is the cancellation date (if one has been set).
'
format: date
type: string
termStartDate:
description: 'Date the subscription term begins. If this is a renewal subscription,
this date is different from the subscription start date.
'
format: date
type: string
termType:
description: 'Possible values are: `TERMED`, `EVERGREEN`.
'
type: string
totalContractedValue:
description: 'Total contracted value of the subscription.
'
type: number
version:
description: This is the subscription version automatically generated by
Zuora Billing. Each order or amendment creates a new version of the subscription,
which incorporates the changes made in the order or amendment.
format: int64
type: integer
type: object
- $ref: '#/definitions/SubscriptionObjectQTFields'
- $ref: '#/definitions/SubscriptionObjectNSFields'
- $ref: '#/definitions/SubscriptionObjectCustomFields'
title: subscriptions
GETSubscriptionTypeWithSuccess:
allOf:
- properties:
accountId:
description: The ID of the account associated with this subscription.
type: string
accountName:
description: The name of the account associated with this subscription.
type: string
accountNumber:
description: The number of the account associated with this subscription.
type: string
autoRenew:
description: 'If `true`, the subscription automatically renews at the end
of the term. Default is `false`.
'
type: boolean
billToContact:
$ref: '#/definitions/GETAccountSummaryTypeBillToContact'
cancelReason:
description: "The reason for a subscription cancellation copied from the\
\ `changeReason` field of a Cancel Subscription order action. \n\nThis\
\ field contains valid value only if a subscription is cancelled through\
\ the Orders UI or API. Otherwise, the value for this field will always\
\ be `null`.\n"
type: string
contractEffectiveDate:
description: 'Effective contract date for this subscription, as yyyy-mm-dd.
'
format: date
type: string
contractedMrr:
description: 'Monthly recurring revenue of the subscription.
'
type: number
currency:
description: |
The currency of the subscription.
**Note**: This field is available only if you have the Multiple Currencies feature in the **Early Adopter** phase enabled.
type: string
currentTerm:
description: 'The length of the period for the current subscription term.
'
format: int64
type: integer
currentTermPeriodType:
description: |
The period type for the current subscription term.
Values are:
* `Month` (default)
* `Year`
* `Day`
* `Week`
type: string
customerAcceptanceDate:
description: 'The date on which the services or products within a subscription
have been accepted by the customer, as yyyy-mm-dd.
'
format: date
type: string
externallyManagedBy:
description: 'An enum field on the Subscription object to indicate the name
of a third-party store. This field is used to represent subscriptions
created through third-party stores.
'
enum:
- Amazon
- Apple
- Google
- Roku
type: string
id:
description: 'Subscription ID.
'
type: string
initialTerm:
description: 'The length of the period for the first subscription term.
'
format: int64
type: integer
initialTermPeriodType:
description: |
The period type for the first subscription term.
Values are:
* `Month` (default)
* `Year`
* `Day`
* `Week`
type: string
invoiceOwnerAccountId:
description: ''
type: string
invoiceOwnerAccountName:
description: ''
type: string
invoiceOwnerAccountNumber:
description: ''
type: string
invoiceScheduleId:
description: |
The ID of the invoice schedule associated with the subscription.
If multiple invoice schedules are created for different terms of a subscription, this field stores the latest invoice schedule.
**Note**: This field is available only if you have the Billing Schedule feature in the **Early Adopter** phase enabled.
type: integer
invoiceSeparately:
description: "Separates a single subscription from other subscriptions and\
\ creates an invoice for the subscription. \n\nIf the value is `true`,\
\ the subscription is billed separately from other subscriptions. If the\
\ value is `false`, the subscription is included with other subscriptions\
\ in the account invoice.\n"
type: string
invoiceTemplateId:
description: "The ID of the invoice template associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled,\
\ this field is unavailable in the request body and the value of this\
\ field is `null` in the response body. \n - If you have the Flexible\
\ Billing Attributes feature enabled, and you do not specify this field\
\ in the request or you select **Default Template from Account** for this\
\ field during subscription creation, the value of this field is automatically\
\ set to `null` in the response body.\n"
type: string
invoiceTemplateName:
description: "The name of the invoice template associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled,\
\ the value of this field is `null` in the response body. \n - If you\
\ have the Flexible Billing Attributes feature enabled, and you do not\
\ specify the `invoiceTemplateId` field in the request or you select **Default\
\ Template from Account** for the `invoiceTemplateId` field during subscription\
\ creation, the value of the `invoiceTemplateName` field is automatically\
\ set to `null` in the response body.\n \n"
type: string
isLatestVersion:
description: If `true`, the current subscription object is the latest version.
type: boolean
lastBookingDate:
description: "The last booking date of the subscription object. This field\
\ is writable only when the subscription is newly created as a first version\
\ subscription. You can override the date value when creating a subscription\
\ through the Subscribe and Amend API or the subscription creation UI\
\ (non-Orders). Otherwise, the default value `today` is set per the user's\
\ timezone. The value of this field is as follows:\n* For a new subscription\
\ created by the [Subscribe and Amend APIs](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Migration_Guidance#Subscribe_and_Amend_APIs_to_Migrate),\
\ this field has the value of the subscription creation date.\n* For a\
\ subscription changed by an amendment, this field has the value of the\
\ amendment booking date.\n* For a subscription created or changed by\
\ an order, this field has the value of the order date. "
format: date
type: string
notes:
description: 'A string of up to 65,535 characters.
'
type: string
offers:
description: "Container for offers. \n**Note**\uFF1AThe Offers feature is\
\ only available in tenants with Orders enabled. To enable the Offers\
\ feature, submit a request at Zuora Global Support .\n"
items:
$ref: '#/definitions/GETSubscriptionOfferType'
type: array
orderNumber:
description: "The order number of the order in which the changes on the\
\ subscription are made. \n\n**Note:** This field is only available if\
\ you have the [Order Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics)\
\ feature enabled. If you wish to have access to the feature, submit a\
\ request at [Zuora Global Support](http://support.zuora.com/). We will\
\ investigate your use cases and data before enabling this feature for\
\ you.\n"
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentTerm:
description: "The name of the payment term associated with the subscription.\
\ For example, `Net 30`. The payment term determines the due dates of\
\ invoices.\n\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled,\
\ this field is unavailable in the request body and the value of this\
\ field is `null` in the response body. \n - If you have the Flexible\
\ Billing Attributes feature enabled, and you do not specify this field\
\ in the request or you select **Default Term from Account** for this\
\ field during subscription creation, the value of this field is automatically\
\ set to `null` in the response body.\n"
type: string
ratePlans:
description: 'Container for rate plans.
'
items:
$ref: '#/definitions/GETSubscriptionRatePlanType'
type: array
renewalSetting:
description: "Specifies whether a termed subscription will remain `TERMED`\
\ or change to `EVERGREEN` when it is renewed. \n\nValues are:\n\n* `RENEW_WITH_SPECIFIC_TERM`\
\ (default)\n* `RENEW_TO_EVERGREEN`\n"
type: string
renewalTerm:
description: 'The length of the period for the subscription renewal term.
'
format: int64
type: integer
renewalTermPeriodType:
description: |
The period type for the subscription renewal term.
Values are:
* `Month` (default)
* `Year`
* `Day`
* `Week`
type: string
revision:
description: 'An auto-generated decimal value uniquely tagged with a subscription.
The value always contains one decimal place, for example, the revision
of a new subscription is 1.0. If a further version of the subscription
is created, the revision value will be increased by 1. Also, the revision
value is always incremental regardless of deletion of subscription versions.
'
type: string
sequenceSetId:
description: "The ID of the sequence set associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled,\
\ this field is unavailable in the request body and the value of this\
\ field is `null` in the response body. \n - If you have the Flexible\
\ Billing Attributes feature enabled, and you do not specify this field\
\ in the request or you select **Default Set from Account** for this field\
\ during subscription creation, the value of this field is automatically\
\ set to `null` in the response body.\n"
type: string
sequenceSetName:
description: "The name of the sequence set associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled,\
\ the value of this field is `null` in the response body. \n - If you\
\ have the Flexible Billing Attributes feature enabled, and you do not\
\ specify the `sequenceSetId` field in the request or you select **Default\
\ Template from Account** for the `sequenceSetId` field during subscription\
\ creation, the value of the `sequenceSetName` field is automatically\
\ set to `null` in the response body.\n"
type: string
serviceActivationDate:
description: 'The date on which the services or products within a subscription
have been activated and access has been provided to the customer, as yyyy-mm-dd
'
format: date
type: string
soldToContact:
$ref: '#/definitions/GETAccountSummaryTypeSoldToContact'
status:
description: |
Subscription status; possible values are:
* `Draft`
* `Pending Activation`
* `Pending Acceptance`
* `Active`
* `Cancelled`
* `Suspended`
type: string
statusHistory:
description: 'Container for status history.
'
items:
$ref: '#/definitions/GETSubscriptionStatusHistoryType'
type: array
subscriptionEndDate:
description: |
The date when the subscription term ends, where the subscription ends at midnight the day before.
For example, if the `subscriptionEndDate` is 12/31/2016, the subscriptions ends at midnight (00:00:00 hours) on 12/30/2016.
This date is the same as the term end date or the cancelation date, as appropriate.
format: date
type: string
subscriptionNumber:
description: Subscription number.
type: string
subscriptionStartDate:
description: 'Date the subscription becomes effective.
'
format: date
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
termEndDate:
description: 'Date the subscription term ends. If the subscription is evergreen,
this is null or is the cancellation date (if one has been set).
'
format: date
type: string
termStartDate:
description: 'Date the subscription term begins. If this is a renewal subscription,
this date is different from the subscription start date.
'
format: date
type: string
termType:
description: 'Possible values are: `TERMED`, `EVERGREEN`.
'
type: string
totalContractedValue:
description: 'Total contracted value of the subscription.
'
type: number
version:
description: This is the subscription version automatically generated by
Zuora Billing. Each order or amendment creates a new version of the subscription,
which incorporates the changes made in the order or amendment.
format: int64
type: integer
type: object
- $ref: '#/definitions/SubscriptionObjectQTFields'
- $ref: '#/definitions/SubscriptionObjectNSFields'
- $ref: '#/definitions/SubscriptionObjectCustomFields'
GETSubscriptionWrapper:
properties:
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
subscriptions:
description: 'Array of subscriptions.
'
items:
$ref: '#/definitions/GETSubscriptionType'
type: array
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GETTaxationItemListType:
properties:
success:
description: Returns `true` if the request was processed successfully.
type: boolean
taxationItems:
description: 'Container for taxation items.
'
items:
$ref: '#/definitions/GETTaxationItemTypewithSuccess'
type: array
type: object
GETTaxationItemType:
allOf:
- properties:
createdById:
description: "The ID of the Zuora user who created the taxation item. \n"
type: string
createdDate:
description: 'The date and time when the taxation item was created in the
Zuora system, in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
exemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
financeInformation:
description: 'Container for the finance information related to the taxation
item.
'
properties:
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
type: string
onAccountAccountingCodeType:
description: 'The type of the accounting code that maps to an on account
in your accounting system.
'
type: string
salesTaxPayableAccountingCode:
description: 'The accounting code for the sales taxes payable.
'
type: string
salesTaxPayableAccountingCodeType:
description: 'The type of the accounting code for the sales taxes payable.
'
type: string
type: object
id:
description: 'The ID of the taxation item.
'
type: string
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: "The identifier for the location based on the value of the\
\ `taxCode` field. \n"
type: string
memoItemId:
description: 'The ID of the credit or debit memo associated with the taxation
item.
'
type: string
name:
description: 'The name of the taxation item.
'
type: string
sourceTaxItemId:
description: 'The ID of the taxation item of the invoice, which the credit
or debit memo is created from.
'
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
taxAmount:
description: 'The amount of the tax applied to the credit or debit memo.
'
format: double
type: number
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific credit or debit memo.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date when the tax is applied to the credit or debit memo.
'
format: date
type: string
taxRate:
description: 'The tax rate applied to the credit or debit memo.
'
format: double
type: number
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'The type of the tax rate applied to the credit or debit memo.
'
enum:
- Percentage
- FlatFee
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the taxation item.
'
type: string
updatedDate:
description: "The date and time when the taxation item was last updated,\
\ in `yyyy-mm-dd hh:mm:ss` format. \n"
format: date-time
type: string
type: object
- $ref: '#/definitions/TaxationItemObjectCustomFields'
GETTaxationItemTypewithSuccess:
allOf:
- properties:
createdById:
description: 'The ID of the Zuora user who created the taxation item.
'
type: string
createdDate:
description: 'The date and time when the taxation item was created in the
Zuora system, in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
exemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
financeInformation:
description: 'Container for the finance information related to the taxation
item.
'
properties:
accountsReceivableAccountingCode:
description: 'The accounting code for accounts receivable.
'
type: string
accountsReceivableAccountingCodeType:
description: 'The type of the accounting code for accounts receivable.
'
type: string
salesTaxPayableAccountingCode:
description: 'The accounting code for the sales taxes payable.
'
type: string
salesTaxPayableAccountingCodeType:
description: 'The type of the accounting code for the sales taxes payable.
'
type: string
type: object
id:
description: 'The ID of the taxation item.
'
type: string
invoiceItemId:
description: 'The ID of the invoice associated with the taxation item.
'
type: string
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of the
`taxCode` field.
'
type: string
name:
description: 'The name of the taxation item.
'
type: string
taxAmount:
description: 'The amount of the tax applied to the invoice.
'
format: double
type: number
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific invoice.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date when the tax is applied to the invoice.
'
format: date
type: string
taxMode:
description: 'The tax mode of the invoice item, indicating whether the amount
of the invoice item includes tax.
'
enum:
- TaxInclusive
- TaxExclusive
type: string
taxRate:
description: 'The tax rate applied to the invoice.
'
format: double
type: number
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'The type of the tax rate applied to the invoice.
'
enum:
- Percentage
- FlatFee
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the taxation item.
'
type: string
updatedDate:
description: 'The date and time when the taxation item was last updated,
in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/TaxationItemObjectCustomFields'
title: taxationItems
GETTaxationItemsOfCreditMemoItemType:
allOf:
- properties:
data:
description: 'Container for the taxation items of the credit memo item.
'
items:
$ref: '#/definitions/GETCMTaxItemTypeNew'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETTaxationItemsOfDebitMemoItemType:
allOf:
- properties:
data:
description: 'Container for the taxation items of the debit memo item.
'
items:
$ref: '#/definitions/GETDMTaxItemTypeNew'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GETTierType:
properties:
endingUnit:
description: 'Decimal defining end of tier range.
'
type: number
price:
description: 'The decimal value of the tiered charge model. If the charge
model is not a tiered type then this price field will be null and the `price`
field directly under the `productRatePlanCharges` applies.
'
type: number
priceFormat:
description: 'Tier price format. Allowed values: `flat fee`, `per unit`.
'
type: string
startingUnit:
description: 'Decimal defining start of tier range.
'
type: number
tier:
description: 'Unique number of the tier.
'
format: int64
type: integer
title: tiers
type: object
GETUsageRateDetailWrapper:
properties:
data:
description: 'Contains usage rate details for the invoice item as specified
in the request.
'
properties:
amountWithoutTax:
description: 'The amount of the invoice item without tax.
'
format: double
type: number
chargeNumber:
description: 'The unique number of the product rate plan charge associated
with the invoice item.
'
type: string
invoiceId:
description: 'The unique ID of the invoice.
'
type: string
invoiceItemId:
description: 'The unique ID of the invoice item.
'
type: string
invoiceNumber:
description: 'The unique number of the invoice.
'
type: string
listPrice:
description: "The list price of the product rate plan charge associated\
\ with the invoice item. For example, if the product rate plan charge\
\ uses the tiered charge model, its list price could be: \n\nTier /\
\ From / To / List Price / Price Format\\n1 / 0 / 9 / 0.00 / Per Unit\\\
n2 / 10 / 20 / 1.00 / Per Unit\\n3 / 21 / 30 / 2.00 / Flat Fee\\n4 /\
\ 31 / / 3.00 / Per Unit\\n\n"
type: string
quantity:
description: 'The quantity of the invoice item.
'
type: string
rateDetail:
description: "The rate detail of the invoice item. It shows how the total\
\ amount is calculated. For example, if the product rate plan charge\
\ uses the tiered charge model, the rate detail for the associated invoice\
\ item could be: \n\nTier 1: 0-9, 9 Each(s) x $0.00/Each = $0.00\\nTier\
\ 2: 10-20, 11 Each(s) x $1.00/Each = $11.00\\nTier 3: 21-30, $2.00\
\ Flat Fee\\nTier 4: >=31, 15 Each(s) x $3.00/Each = $45.00\\nTotal\
\ = $58.00. \n\nThe rate detail retrieved from this REST API operation\
\ is the same as the [Rate Detail presented on PDF invoices](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/IA_Invoices/Create_a_custom_invoice_template/DD_Display_Usage_Charge_Breakdown#How_UsageSummary.RateDetail_is_displayed_on_invoices).\
\ \n"
type: string
servicePeriod:
description: 'The service period of the invoice item.
'
type: string
uom:
description: 'The unit of measurement of the invoice item.
'
type: string
type: object
success:
description: "Returns `true` if the request was processed successfully. \n\
\n\nReturns `false` if the request was not processed successfully. \n"
type: boolean
type: object
GETUsageType:
allOf:
- properties:
accountId:
description: 'Customer account ID.
'
type: string
accountName:
description: 'Customer account name.
'
type: string
accountNumber:
description: 'Customer account number.
'
type: string
chargeNumber:
description: 'Number of the rate-plan charge that pays for this usage.
'
type: string
fileName:
description: 'The name of the import file when the usage record is imported
from the file.
'
type: string
id:
description: 'Unique ID for the usage item.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
quantity:
description: 'Number of units used.
'
format: decimal
type: string
sourceName:
description: 'Source of the usage data. Possible values are: `Import`, `API`.
'
type: string
startDateTime:
description: 'Start date of the time period in which usage is tracked. Zuora
uses this field value to determine the usage date.
'
format: date-time
type: string
status:
description: 'Possible values are: `Importing`, `Pending`, `Processed`.
'
type: string
submissionDateTime:
description: 'Date when usage was submitted.
'
format: date-time
type: string
subscriptionNumber:
description: 'Number of the subscription covering this usage.
'
type: string
uniqueKey:
description: |
a customer-defined specific identifier of a usage record.
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled. See [Upload usage record with unique key](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Prepaid_balance_transactions#Upload_usage_record_with_unique_key) for more information.
type: string
unitOfMeasure:
description: 'Unit used to measure consumption.
'
type: string
type: object
- $ref: '#/definitions/UsageObjectCustomFields'
title: usage
GETUsageWrapper:
properties:
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
usage:
description: 'Contains one or more usage items.
'
items:
$ref: '#/definitions/GETUsageType'
type: array
type: object
GenerateBillingDocumentResponseType:
properties:
creditMemos:
description: |
Container for generated credit memos.
**Note:** This container is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
items:
$ref: '#/definitions/CreditMemoResponseType'
type: array
invoices:
description: 'Container for generated invoics.
'
items:
$ref: '#/definitions/InvoiceResponseType'
type: array
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GetAccountEInvoiceProfile:
description: |
Container for e-invoicing profile information for this account.
**Note**: This field is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
properties:
businessName:
description: 'The full official name that the Buyer is registered with the
relevant legal authority.
'
maxLength: 255
type: string
businessNumber:
description: |
The unique identifier number of the legal entity or person that you do business with.
For example, you must use a GSTIN for India.
type: string
businessNumberSchemeId:
description: 'The identification scheme identifier that an official registrar
issues to identify the Buyer as a legal entity or person.
'
type: string
enabled:
description: "Whether the e-invoicing profile for the customer account is\
\ enabled. \n\nIf the following conditions are met, all billing documents\
\ for one account can be submitted to an e-invoicing service provider to\
\ be generated in electronic format:\n- The account must be configured to\
\ generate e-invoice files for billing documents.\n- The billing document\
\ must be in Posted status.\n- A business region must be created for the\
\ billing country contact, and be linked to an e-invoicing service provider.\n"
type: boolean
endpointId:
description: 'The Buyer''s electronic address, to which the application-level
response to the billing document might be delivered.
'
type: string
endpointSchemeId:
description: "The identification scheme identifier of the Buyer\u2019s electronic\
\ address.\n"
type: string
taxRegisterNumber:
description: "The Buyer's VAT identifier (also known as the Buyer's VAT identification\
\ number) or the local identification (defined by the Buyer\u2019s address)\
\ of the Buyer for tax purposes, or a reference that enables the Buyer to\
\ state the registered tax status.\n"
type: string
title: einvoiceProfile
type: object
GetAggregateQueryJobResponse:
properties:
batches:
description: 'A JSON array object that contains a list of batch objects.
'
items:
$ref: '#/definitions/BatchesQueriesById'
required:
- name
- query
- status
- batchId
- batchType
type: array
encrypted:
description: 'If enabled, you must supply the formatting (zip or unzip) first
and decrypt it to get the actual contents.
'
enum:
- pgp
- none
type: string
format:
description: 'The format of the query. The default value is `csv`.
'
enum:
- csv
- zip
- gzip
type: string
id:
description: "The job ID created for the AQuA API request. The job ID can\
\ be used for querying for the query status. \n\nThe ID exists only if the\
\ JSON request can be parsed and validated successfully. Otherwise, the\
\ job ID is null.\n"
type: string
name:
description: 'The name of the job. 32 character limit.
'
type: string
partner:
description: "The partner field indicates the unique ID of a data integration\
\ partner. The dropdown list of this field displays partner IDs for the\
\ past thirty days.\n\nIt must be used together with \"project\" field to\
\ uniquely identify a data integration target.\n\nFor example, if a continuous\
\ AQuA session is to retrieve data incrementally for a Salesforce.com Org\
\ 00170000011K3Ub, you can use partner as \"Salesforce\", and \"project\"\
\ as \"00170000011K3Ub.\" \n\nThis field is required only if you are using\
\ AQuA in stateful mode. Otherwise, if you are using AQuA in stateless mode,\
\ partner field can be null.\n\n**Note**: Zuora highly recommends you use\
\ the stateless mode instead of the stateful mode to extract bulk data.\
\ See Bulk data extraction from Zuora using AQuA for best\
\ practices.\n\n**Note**: Submit a request at Zuora Global Support to obtain a partner ID.\n"
type: string
project:
description: "The project field contains the unique ID of a data integration\
\ project for a particular partner. The dropdown list of this field displays\
\ project IDs for the past thirty days.\n\nThis field must be used together\
\ with partner field to uniquely identify a data integration target. \n\n\
This field is required only if you are using AQuA in stateful mode. Otherwise,\
\ if you are using AQuA in stateless mode, partner field can be null.\n"
type: string
sourceData:
description: |
Indicates the source this aggregate query runs against:
* `LIVE` represents the live transactional databases at Zuora (Data Query Live).
* `WAREHOUSE` represents Zuora Warehouse, which has better performance and fewer limitations than the live transactional database. For more information, see Zuora Warehouse .
type: string
startTime:
description: "The start time of the query. \n"
type: string
status:
description: |
The status of the AQuA job:
- submitted: The AQuA job was submitted to the query executor for processing.
- executing: The AQuA job is being processed.
- completed: The AQuA job was successfully executed.
- error: The AQuA job was not processed because of validation errors.
- aborted: The AQuA job execution failed because one or more queries of this job failed.
- cancelled: The AQuA job was cancelled.
enum:
- submitted
- executing
- completed
- error
- aborted
- cancelled
type: string
version:
description: "The API version you want to use. \n\nThe supported versions\
\ are as follows:\n - `1.1`. It supports both modes\n - `1.0`. Default.\
\ It supports stateless modes only.\n\nSee Stateless and stateful modes for more information.\n"
format: float
type: number
type: object
GetAllOrdersResponseType:
properties:
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
orders:
items:
$ref: '#/definitions/Order'
type: array
success:
description: 'Indicates whether the call succeeded.
'
type: boolean
type: object
GetApiVolumeSummaryResponse:
properties:
data:
description: "List of API volume summary records. The records are grouped\
\ and ordered by API path name and http method. \n"
items:
$ref: '#/definitions/ApiVolumeSummaryRecord'
type: array
type: object
GetBillRunResponseType:
allOf:
- properties:
autoEmail:
description: 'Whether to automatically send emails after Auto-Post is complete.
'
type: boolean
autoPost:
description: 'Whether to automatically post the bill run after the bill
run is created.
'
type: boolean
autoRenewal:
description: 'Whether to automatically renew auto-renew subscriptions that
are up for renewal.
'
type: boolean
batches:
description: |
The batch of accounts for this bill run, this field can not exist with `billRunFilters` together.
**Values:** `AllBatches` or an array of `Batch`*n* where *n* is a number between 1 and 50, for example, `Batch7`.
items:
type: string
type: array
billCycleDay:
description: "The day of the bill cycle, this field is only valid when `batches`\
\ is specified.\n\n**Values:** \n- `AllBillCycleDays` or one of numbers\
\ 1 - 31 for an ad-hoc bill run\n- `AllBillCycleDays`, one of numbers\
\ 1 - 31, or `AsRunDay` for a scheduled bill run\n"
type: string
billRunFilters:
description: 'The target account or subscriptions for this bill run.
'
items:
$ref: '#/definitions/BillRunFilterResponseType'
type: array
billRunNumber:
description: 'The number of the bill run.
'
type: string
chargeTypeToExclude:
description: 'The types of the charges to be excluded from the generation
of billing documents.
'
items:
enum:
- OneTime
- Recurring
- Usage
type: string
type: array
createdById:
description: 'The ID of the user who created the bill run.
'
type: string
createdDate:
description: 'The date and time when the bill run was created.
'
format: date-time
type: string
id:
description: 'The unqie ID of the bill run.
'
type: string
invoiceDate:
description: 'The invoice date for this bill run, only valid for ad-hoc
bill runs.
'
format: date
type: string
invoiceDateOffset:
description: 'The offset compared to bill run execution date, only valid
for scheduled bill runs.
'
type: integer
name:
description: 'The name of the bill run.
'
type: string
noEmailForZeroAmountInvoice:
description: "Whether to suppress emails for invoices with zero total amount\
\ generated in this bill run after the bill run is complete. \n"
type: boolean
organizationLabels:
description: "The organization(s) that the run is created for. \n\nNote:\
\ This field is available only when the Multi-Org feature is enabled.\n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
schedule:
$ref: '#/definitions/BillRunScheduleResponseType'
scheduledExecutionTime:
description: 'The scheduled execution time for a bill run.
'
format: date-time
type: string
status:
description: 'The status of the bill run.
'
enum:
- Pending
- Processing
- Completed
- Error
- Canceled
- Posted
- PostInProgress
- CancelInProgress
- RemoveInProgress
- Paused
type: string
targetDate:
description: 'The target date for this bill run, only valid for ad-hoc bill
runs.
'
format: date
type: string
targetDateOffset:
description: 'The offset compared to bill run execution date, only valid
for scheduled bill runs.
'
type: integer
updatedById:
description: 'The ID of the user who last updated the bill run.
'
type: string
updatedDate:
description: 'The date and time when the bill run was last updated.
'
format: date-time
type: string
type: object
example:
autoEmail: false
autoPost: false
autoRenewal: false
batches: null
billCycleDay: null
billRunFilters:
- accountId: 2c9081a03c63c94c013c66688a2c00bf
filterType: Subscription
subscriptionId: 402882297e387c51017e38a245c313db
billRunNumber: BR-00000016
chargeTypeToExclude:
- OneTime
- Usage
createdById: ff808081298c6e5401298c7274a40005
createdDate: '2022-01-24 19:58:27'
id: 2c9890077e8a8490017e8bf3a5171a43
invoiceDate: '2020-02-01'
invoiceDateOffset: null
name: test
noEmailForZeroAmountInvoice: false
schedule: null
scheduledExecutionTime: null
status: Pending
success: true
targetDate: '2020-02-01'
targetDateOffset: null
updatedById: ff808081298c6e5401298c7274a40005
updatedDate: '2022-01-24 19:58:27'
GetBillingDocVolumeSummaryResponse:
properties:
data:
description: 'List of billing documents summary, including total generated
invoices and credit memos, also a total number of accounts that failed to
process.
'
items:
$ref: '#/definitions/BillingDocVolumeSummaryRecord'
type: array
type: object
GetBillingPreviewRunResponse:
description: get billingPreviewRun response
properties:
assumeRenewal:
description: ''
type: string
batch:
description: "The customer batch included in the billing preview run. \
\ \n\n**Note**: This field is not available if you set the `zuora-version`\
\ request header to `314.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
type: string
batches:
description: "The customer batches included in the billing preview run. \n\
\n**Note**: This field is only available if you set the `zuora-version`\
\ request header to `314.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
type: string
chargeTypeToExclude:
description: 'The charge types excluded from the forecast run.
'
type: string
createdById:
description: 'The ID of the user who created the billing preview run.
'
type: string
createdDate:
description: 'The date and time when the billing preview run was created.
'
format: datetime
type: string
endDate:
description: 'The date and time when the billing preview run completes.
'
format: datetime
type: string
errorMessage:
description: 'The error message generated by a failed billing preview run.
'
type: string
includingDraftItems:
description: 'Whether draft document items are included in the billing preview
run. By default, draft document items are not included.
'
type: boolean
includingEvergreenSubscription:
description: 'Indicates if evergreen subscriptions are included in the billing
preview run.
'
type: boolean
organizationLabels:
description: "The organization(s) that the object belongs to. \n\nNote: This\
\ field is available only when the Multi-Org feature is enabled. \
\ \n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
resultFileUrl:
description: |
The URL of the zipped CSV result file generated by the billing preview run. This file contains the preview invoice item data and credit memo item data for the specified customers.
If the value of `storageOption` field is `Database`, the returned `resultFileUrl` field is null.
**Note:** The credit memo item data is only available if you have Invoice Settlement feature enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: string
runNumber:
description: 'The run number of the billing preview run.
'
type: string
startDate:
description: 'The date and time when the billing preview run starts.
'
format: datetime
type: string
status:
description: "The status of the >billing preview run.\n\n**Possible values:**\
\ \n\n* 0: Pending\n* 1: Processing\n* 2: Completed\n* 3: Error\n* 4: Canceled\n"
type: string
storageOption:
description: "The saving options. The default value is `Csv`. \n"
enum:
- Csv
- Database
type: string
succeededAccounts:
description: |
The number of accounts for which preview invoice item data and credit memo item data was successfully generated during the billing preview run.
**Note:** The credit memo item data is only available if you have Invoice Settlement feature enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: integer
success:
description: Returns `true` if the request was processed successfully.
type: boolean
targetDate:
description: "The target date for the billing preview run. \n"
format: date
type: string
totalAccounts:
description: 'The total number of accounts in the billing preview run.
'
format: int32
type: integer
updatedById:
description: 'The ID of the user who last updated the billing preview run.
'
type: string
updatedDate:
description: 'The date and time when the billing preview run was last updated.
'
format: date-time
type: string
type: object
GetDataLabelingJobResponse:
properties:
jobId:
description: 'Identifier of the data labeling job.
'
format: uuid
maxLength: 32
minLength: 32
type: string
jobStatus:
description: |
Status of the data labeling job.
* `Accepted` - The data labeling job has been accepted by the system.
* `Dispatched` - The data labeling job is dispatched to the data labeling service.
* `Completed` - The data labeling job has completed. Please note that `Completed` simply means the data labeling job has completed, but it does not mean the data labeling job has labeled all the data. You can check the `progress` field to see how many data have been `labeled`, `failed` or `timeout`.
enum:
- Accepted
- Dispatched
- Completed
type: string
objectType:
description: 'The object type of the data labeling job.
'
type: string
progress:
properties:
failed:
description: 'The number of objects that have failed to be labeled.
'
type: integer
labeled:
description: 'The number of objects that have been labeled.
'
type: integer
timeout:
description: "The number of objects that have timed out to be labeled.\
\ \n"
type: integer
type: object
success:
description: 'Indicates whether the job was submitted successfully.
'
type: boolean
totalObject:
description: 'The total number of objects to be labeled.
'
type: integer
type: object
GetDataQueryJobResponse:
properties:
data:
$ref: '#/definitions/DataQueryJob'
type: object
GetDataQueryJobsResponse:
properties:
data:
description: 'List of data query jobs. The query jobs are listed in reverse
order of creation.
'
items:
$ref: '#/definitions/DataQueryJob'
type: array
type: object
GetDebitMemoApplicationPartCollectionType:
properties:
applicationParts:
description: 'Container for application parts.
'
items:
$ref: '#/definitions/GetDebitMemoApplicationPartType'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GetDebitMemoApplicationPartType:
properties:
appliedAmount:
description: 'The amount that is applied to the debit memo.
'
format: double
type: number
createdById:
description: 'The ID of the Zuora user who created the payment or credit memo.
'
format: uuid
type: string
createdDate:
description: 'The date and time when the payment or credit memo was created,
in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-12-01 15:31:10.
'
format: date-time
type: string
creditMemoId:
description: 'The ID of credit memo that is applied to the specified debit
memo.
'
format: uuid
type: string
paymentId:
description: 'The ID of the payment that is applied to the specified debit
memo.
'
format: uuid
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the payment or credit
memo.
'
format: uuid
type: string
updatedDate:
description: 'The date and time when the payment or credit memo was last updated,
in `yyyy-mm-dd hh:mm:ss` format. For example, 2018-01-02 11:42:16.
'
format: date-time
type: string
title: applicationParts
type: object
GetEInvoiceFileTemplateResponse:
allOf:
- properties:
content:
description: 'The content of the e-invoice file template, which must be
encoded in Base64 format.
'
type: string
country:
description: 'The short name of a country or region where you must comply
with e-invoicing requirements. For example, `IN` for India. For the full
list of country names and codes, see ISO Standard Country Codes .
'
type: boolean
documentType:
description: 'The type of billing document for which the e-invoice file
template is intended.
'
enum:
- Invoice
- CreditMemo
- DebitMemo
type: string
id:
description: 'The unique ID of the e-invoice file template.
'
type: string
name:
description: 'The name of the e-invoice file template.
'
maxLength: 255
type: string
provider:
description: "The name of the e-invoicing service provider that assists\
\ in generating e-invoice files for billing documents. \n"
enum:
- Sovos
type: string
templateNumber:
description: 'The unique number of the e-invoice file template.
'
type: string
title: templates
type: object
GetEInvoicingBusinessRegionResponse:
allOf:
- properties:
addressLine1:
description: "The first line of the Seller\u2019s address, which is often\
\ a street address or business name.\n"
type: string
addressLine2:
description: "The second line of the Seller\u2019s address, which is often\
\ the name of a building.\n"
type: string
businessName:
description: 'The full official name that the Seller is registered with
the relevant legal authority.
'
maxLength: 255
type: string
businessNumber:
description: |
The specify the unique identifier number of the legal entity or person that you do business with.
For example, you must use a GSTIN for India and Tax Identification Number (TIN) for Saudi Arabia.
type: string
businessNumberSchemaId:
description: 'The identification scheme identifier that an official registrar
issues to identify the Seller as a legal entity or person.
'
type: string
businessRegionNumber:
description: 'The unique number of the e-invoicing business region.
'
type: string
city:
description: 'The the name of the city where the business is located.
'
type: string
contactName:
description: 'The name of the Seller contact to receive e-invoicing data.
'
maxLength: 255
type: string
country:
description: 'The short name of a country or region where you must comply
with e-invoicing requirements. For example, `IN` for India. For the full
list of country names and codes, see ISO Standard Country Codes .
'
type: string
email:
description: 'The email address of the Seller contact to receive e-invoicing
data.
'
type: string
endpointId:
description: 'The Seller''s electronic address, to which the application-level
response to the e-invoice file might be delivered.
'
type: string
endpointSchemeId:
description: "The identification scheme identifier of the Seller\u2019s\
\ electronic address.\n"
type: string
id:
description: 'The unique ID of the e-invoicing business region.
'
type: string
phoneNumber:
description: 'The business phone number of the Seller contact to receive
e-invoicing data.
'
type: string
postalCode:
description: 'The short code that can identify the business address.
'
type: string
serviceProviderId:
description: 'The unique ID of the e-invoicing service provider that is
associated to the business region.
'
type: string
state:
description: 'The name of the state or province where the business is located.
'
type: string
taxRegisterNumber:
description: "The Seller's VAT identifier (also known as Seller VAT identification\
\ number) or the local identification (defined by the Seller\u2019s address)\
\ of the Seller for tax purposes, or a reference that enables the Seller\
\ to state the registered tax status.\n"
type: string
tradeName:
description: 'The name that the Seller is known as, other than the legal
business name.
'
maxLength: 100
type: string
title: regions
type: object
GetEInvoicingServiceProviderResponse:
allOf:
- properties:
apiKey:
description: 'You must create authentication keys (API and Secret Keys)
from a third-party service provider. With hese keys, you can send requests
and interact with the third-party integration endpoints.
'
type: string
id:
description: 'The ID of the e-invoicing service provider.
'
type: string
name:
description: 'The name of the e-invoicing service provider.
'
maxLength: 100
type: string
provider:
description: 'The name of the e-invoicing service provider that can help
you generate e-invoice files for billing documents.
'
enum:
- Sovos
type: string
serviceProviderNumber:
description: 'The unique number of the e-invoicing service provider.
'
type: string
test:
description: "Whether the e-invoicing service provider's configuration is\
\ intended for testing. \n\n- If you set this field to `true`, requests\
\ are directed to the testing integration endpoints.\nIf you set this\
\ field to `false`, requests are directed to the production integration\
\ endpoints.\n"
type: boolean
title: serviceProviders
type: object
GetFulfillmentItemResponseType:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
fulfillmentItem:
$ref: '#/definitions/FulfillmentItemGet'
type: object
GetFulfillmentResponseType:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
fulfillment:
$ref: '#/definitions/FulfillmentGet'
type: object
GetHostedPageType:
properties:
pageId:
description: 'Page ID of the Payment Page that Zuora assigns when it is created.
'
type: string
pageName:
description: 'Name of the Payment Page that specified during the page configuration.
'
type: string
pageType:
description: 'Payment method type of this Payment Page, e.g. ''Credit Card'',
''ACH'', or ''Bank Transfer''.
'
type: string
pageVersion:
description: 'Version of the Payment Page. 2 for Payment Pages 2.0.
'
type: string
title: hostedpages
type: object
GetHostedPagesType:
properties:
hostedpages:
description: 'Container for the hosted page information.
'
items:
$ref: '#/definitions/GetHostedPageType'
type: array
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
GetInvoiceApplicationPartCollectionType:
properties:
applicationParts:
description: 'Container for application parts.
'
items:
$ref: '#/definitions/GetInvoiceApplicationPartType'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
GetInvoiceApplicationPartType:
properties:
appliedAmount:
description: 'The amount that is applied to the invoice.
'
format: double
type: number
createdById:
description: 'The ID of the Zuora user who created the payment or credit memo.
'
format: uuid
type: string
createdDate:
description: 'The date and time when the payment or credit memo was created,
in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-12-01 15:31:10.
'
format: date-time
type: string
creditMemoId:
description: 'The ID of credit memo that is applied to the specified invoice.
'
format: uuid
type: string
paymentId:
description: 'The ID of the payment that is applied to the specified invoice.
'
format: uuid
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the payment or credit
memo.
'
format: uuid
type: string
updatedDate:
description: 'The date and time when the payment or credit memo was last updated,
in `yyyy-mm-dd hh:mm:ss` format. For example, 2018-01-02 11:42:16.
'
format: date-time
type: string
title: applicationParts
type: object
GetOfferRatePlanOverride:
description: 'Rate plan associated with a subscription.
'
properties:
chargeOverrides:
description: 'List of charges associated with the rate plan.
'
items:
$ref: '#/definitions/ChargeOverride'
type: array
clearingExistingFeatures:
description: "Specifies whether all features in the rate plan will be cleared.\
\ \n"
type: boolean
customFields:
$ref: '#/definitions/OrdersRatePlanObjectCustomFields'
externallyManagedPlanId:
description: 'Indicates the unique identifier for the rate plan purchased
on a third-party store. This field is used to represent a subscription rate
plan created through third-party stores.
'
type: string
newRatePlanId:
description: 'Internal identifier of the rate plan.
'
type: string
productRatePlanId:
description: 'Internal identifier of the product rate plan that the rate plan
is based on.
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
sequence:
description: 'The sequence in offer rateplan override.
'
type: integer
subscriptionProductFeatures:
description: |
List of features associated with the rate plan.
The system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:
* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.
* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.
items:
$ref: '#/definitions/RatePlanFeatureOverride'
type: array
uniqueToken:
description: |
Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.
For instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.
maxLength: 50
type: string
required:
- productRatePlanId
title: ratePlan
type: object
GetOfferRatePlanUpdate:
description: 'Information about an order action of type `UpdateProduct`.
'
properties:
chargeUpdates:
items:
$ref: '#/definitions/ChargeUpdate'
type: array
clearingExistingFeatures:
description: 'Specifies whether all features in the rate plan will be cleared.
'
type: boolean
customFields:
$ref: '#/definitions/OrdersRatePlanObjectCustomFields'
externallyManagedPlanId:
description: 'Indicates the unique identifier for the rate plan purchased
on a third-party store. This field is used to represent a subscription rate
plan created through third-party stores.
'
type: string
newRatePlanId:
description: 'Internal identifier of the updated rate plan in the new subscription
version.
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
ratePlanId:
description: 'Internal identifier of the rate plan that was updated. It can
be the latest version or any history version id.
'
type: string
specificUpdateDate:
description: |2
The date when the Update Product order action takes effect. This field is only applicable if there is already a future-dated Update Product order action on the subscription. The format of the date is yyyy-mm-dd.
See [Update a Product on Subscription with Future-dated Updates](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Update_a_Product_in_a_Subscription/Update_a_Product_on_Subscription_with_Future-dated_Updates) for more information about this feature.
format: date
type: string
subscriptionProductFeatures:
description: |
List of features associated with the rate plan.
The system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:
* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.
* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.
items:
$ref: '#/definitions/RatePlanFeatureOverride'
type: array
subscriptionRatePlanNumber:
description: 'Number of a rate plan for this subscription.
'
type: string
uniqueToken:
description: 'A unique string to represent the rate plan in the order. The
unique token is used to perform multiple actions against a newly added rate
plan. For example, if you want to add and update a product in the same order,
assign a unique token to the newly added rate plan and use that token in
future order actions.
'
type: string
title: updateProduct
type: object
GetOperationJobResponseType:
properties:
id:
description: 'The ID of the operation job to retrieve information about.
'
type: string
objectId:
description: 'The ID of the business object which is being operated.
'
type: string
objectType:
description: "The object type of the job. \n"
enum:
- Invoice
type: string
operationType:
description: 'The operation type of the job.
'
enum:
- Delete
type: string
reasons:
items:
properties:
code:
description: 'The error code of the response.
'
type: string
message:
description: 'The detail information of the error response.
'
type: string
type: object
type: array
status:
description: "The status of the operation job. \n"
enum:
- Pending
- Processing
- Failed
- Completed
type: string
success:
description: 'Whether the call succeeded.
'
type: boolean
type: object
GetOrderActionRatePlanResponse:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
amendment:
$ref: '#/definitions/OrderActionRatePlanAmendment'
externallyManagedPlanId:
description: 'The unique identifier for the rate plan purchased on a third-party
store. This field is used to represent a subscription rate plan created
through third-party stores.
'
type: string
id:
description: Unique subscription rate-plan ID.
type: string
lastChangeType:
description: |
Latest change type. Possible values are:
- New
- Update
- Remove
type: string
order:
$ref: '#/definitions/OrderActionRatePlanOrder'
productId:
description: 'Product ID
'
type: string
productName:
description: 'The name of the product.
'
type: string
productRatePlanId:
description: 'Product rate plan ID
'
type: string
productSku:
description: 'The unique SKU for the product.
'
type: string
ratePlanName:
description: 'The name of the rate plan.
'
type: string
subscriptionId:
description: 'Subscription ID.
'
type: string
subscriptionVersion:
description: 'The version of the subscription.
'
type: object
GetOrderLineItemResponseType:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
orderLineItem:
$ref: '#/definitions/OrderLineItem'
type: object
GetOrderResponse:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
order:
$ref: '#/definitions/Order'
type: object
GetOrderResume:
description: 'Information about an order action of type `Resume`.
'
properties:
extendsTerm:
description: 'Specifies whether to extend the subscription term by the length
of time the suspension is in effect. Note this field is not applicable in
a Resume order action auto-created by the Order Metrics migration.
'
type: boolean
resumeDate:
description: 'The resume date when the resumption takes effect.
'
format: date
type: string
resumePeriods:
description: "This field is applicable only when the `resumePolicy` field\
\ is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`. It\
\ must be used together with the `resumePeriodsType` field. Note this field\
\ is not applicable in a Resume order action auto-created by the Order Metrics\
\ migration.\n\nThe total number of the periods used to specify when a subscription\
\ resumption takes effect. The subscription resumption will take place after\
\ the specified time frame (`suspendPeriods` multiplied by `suspendPeriodsType`)\
\ from today's date. \n"
type: integer
resumePeriodsType:
description: "This field is applicable only when the `resumePolicy` field\
\ is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`. It\
\ must be used together with the `resumePeriods` field. Note this field\
\ is not applicable in a Resume order action auto-created by the Order Metrics\
\ migration.\n\nThe period type used to specify when a subscription resumption\
\ takes effect. The subscription suspension will take place after the specified\
\ time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from\
\ today's date. \n"
enum:
- Day
- Week
- Month
- Year
type: string
resumePolicy:
description: "Resume methods. Specify a way to resume a subscription. See\
\ [Resume Date](https://knowledgecenter.zuora.com/BC_Subscription_Management/Subscriptions/Resume_a_Subscription#Resume_Date)\
\ for more information. Note this field is not applicable in a Resume order\
\ action auto-created by the Order Metrics migration.\n\nIf `SuspendDate`\
\ is specfied, the resumption will take place on the same day as the suspension.\
\ \n"
enum:
- Today
- FixedPeriodsFromSuspendDate
- FixedPeriodsFromToday
- SpecificDate
- SuspendDate
type: string
resumeSpecificDate:
description: |
This field is applicable only when the `resumePolicy` field is set to `SpecificDate`. Note this field is not applicable in a Resume order action auto-created by the Order Metrics migration.
A specific date when the subscription resumption takes effect, in YYYY-MM-DD format. The value should not be earlier than the subscription suspension date.
format: date
type: string
title: Resume
type: object
GetOrderSuspend:
description: 'Information about an order action of type `Suspend`.
'
properties:
suspendDate:
description: "The suspend date when the suspension takes effect. \n"
format: date
type: string
suspendPeriods:
description: "This field is applicable only when the `suspendPolicy` field\
\ is set to `FixedPeriodsFromToday`. It must be used together with the `suspendPeriodsType`\
\ field. Note this field is not applicable in a Suspend order action auto-created\
\ by the Order Metrics migration.\n\nThe total number of the periods used\
\ to specify when a subscription suspension takes effect. The subscription\
\ suspension will take place after the specified time frame (`suspendPeriods`\
\ multiplied by `suspendPeriodsType`) from today's date. \n"
type: integer
suspendPeriodsType:
description: "This field is applicable only when the `suspendPolicy` field\
\ is set to `FixedPeriodsFromToday`. It must be used together with the `suspendPeriods`\
\ field. Note this field is not applicable in a Suspend order action auto-created\
\ by the Order Metrics migration.\n\nThe period type used to specify when\
\ a subscription suspension takes effect. The subscription suspension will\
\ take place after the specified time frame (`suspendPeriods` multiplied\
\ by `suspendPeriodsType`) from today's date. \n"
enum:
- Day
- Week
- Month
- Year
type: string
suspendPolicy:
description: 'Suspend methods. Specify a way to suspend a subscription. See
[Suspend Date](https://knowledgecenter.zuora.com/BC_Subscription_Management/Subscriptions/Suspend_a_Subscription#Suspend_Date)
for more information. Note this field is not applicable in a Suspend order
action auto-created by the Order Metrics migration.
'
enum:
- Today
- EndOfLastInvoicePeriod
- FixedPeriodsFromToday
- SpecificDate
type: string
suspendSpecificDate:
description: |
This field is applicable only when the `suspendPolicy` field is set to `SpecificDate`. Note this field is not applicable in a Suspend order action auto-created by the Order Metrics migration.
A specific date when the subscription suspension takes effect, in YYYY-MM-DD format. The value should not be earlier than the subscription's contract effective date or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) than the subscription's term end date.
format: date
type: string
title: Suspend
type: object
GetOrdersResponse:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
orders:
items:
$ref: '#/definitions/Order'
type: array
type: object
GetPaymentVolumeSummaryResponse:
properties:
data:
description: 'List of electronic payments summary.
'
items:
$ref: '#/definitions/PaymentVolumeSummaryRecord'
type: array
type: object
GetProductFeatureType:
allOf:
- properties:
code:
description: 'Feature code, up to 255 characters long.
'
type: string
description:
description: 'Feature description.
'
type: string
id:
description: 'Feature ID.
'
type: string
name:
description: 'Feature name, up to 255 characters long.
'
type: string
status:
description: ''
type: string
type: object
- $ref: '#/definitions/ProductFeatureObjectCustomFields'
title: productFeatures
GetScheduledEventResponse:
example:
active: true
apiField: TermEndDate
apiObject: Subscription
condition: Subscription.Status == _SUBSCRIPTION_STATUS
cronExpression: 0 30 10 ? * *
description: Trigger a scheduled event at 10:30 AM based on TermEndDate of subscription
objects.
displayName: Term End Date Scheduled Event
id: d306545b74e445e4bffcf1c7609804be
name: TermEndDateScheduledEvent
namespace: user.notification
parameters:
_SUBSCRIPTION_STATUS:
description: The status of the subscription
displayName: Subscription Status
options:
- Draft
- Active
- Pending
- Expired
- Cancelled
valueType: STRING
properties:
active:
description: Indicate whether the scheduled event is active or inactive
type: boolean
apiField:
description: 'The base field of the base object in the `apiObject` field,
should be in date or timestamp format. The scheduled event notifications
are triggered based on this date and the event parameters (before or after
a specified number of days) from notification definitions. Should be specified
in the pattern: ^[A-Z][\\w\\-]*$'
type: string
apiObject:
description: 'The base object that the scheduled event is defined upon. The
base object should contain a date or timestamp format field. Should be specified
in the pattern: ^[A-Z][\\w\\-]*$'
type: string
condition:
description: |
The filter rule conditions, written in [JEXL](http://commons.apache.org/proper/commons-jexl/). The scheduled event is triggered only if the condition is evaluated as true.
The rule might contain event context merge fields and data source merge fields. Data source merge fields must be from [the base object of the event or from the joined objects of the base object](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL#Data_Sources_and_Objects).
Scheduled events with invalid merge fields will fail to evaluate, thus will not be triggered. For example, to trigger an invoice due date scheduled event to only invoices with an amount over 1000, you would define the following condition:
```Invoice.Amount > 1000```
`Invoice.Amount` refers to the `Amount` field of the Zuora object `Invoice`.
type: string
cronExpression:
description: The cron expression defines the time when scheduled event notifications
will be sent.
type: string
description:
description: The description of the scheduled event.
type: string
displayName:
description: The display name of the scheduled event.
type: string
id:
description: Scheduled event ID.
format: uuid
type: string
name:
description: The name of the scheduled event.
type: string
namespace:
description: The namespace of the scheduled event name in the `name` field.
type: string
parameters:
additionalProperties:
description: Definition of a filter rule parameter.
properties:
description:
description: The description of the parameter.
maxLength: 255
type: string
displayName:
description: The display name of the parameter.
maxLength: 255
type: string
options:
description: The option values of the parameter.
items:
type: string
type: array
valueType:
description: The type of the value.
type: string
type: object
description: The parameter definitions of the filter rule. The names of the
parameters must match with the filter rule and can't be duplicated. You
should specify all the parameters when creating scheduled event notifications.
type: object
title: ScheduledEvent
type: object
GetStoredCredentialProfilesResponse:
properties:
profiles:
description: 'Container for stored credential profiles.
'
items:
properties:
activatedOn:
description: 'The date when the stored credential profile was activated
(if applicable).
'
format: date-time
type: string
agreedOn:
description: 'The date when the stored credential profile was created.
'
format: date-time
type: string
brand:
description: 'The stored credential transaction framework. For example,
Visa.
'
type: string
cancelledOn:
description: 'The date when the stored credential profile was cancelled
(if applicable).
'
format: date-time
type: string
consentAgreementRef:
description: 'Your reference for the consent agreement that you have
established with the customer.
'
maxLength: 128
type: string
consentAgreementSrc:
enum:
- External
type: string
expiredOn:
description: 'The date when the stored credential profile was expired
(if applicable).
'
format: date-time
type: string
number:
description: 'The number that identifies the stored credential profile
within the payment method.
'
type: integer
paymentMethodId:
description: 'ID of the payment method.
'
type: string
status:
description: |
The status of the stored credential profile.
* `Agreed` - The stored credential profile has not been validated via an authorization transaction with the payment gateway.
* `Active` - The stored credential profile has been validated via an authorization transaction with the payment gateway.
* `Cancelled` - The stored credentials are no longer valid, per a customer request. Zuora cannot use the stored credentials in transactions.
* `Expired` - The stored credentials are no longer valid, per an expiration policy in the stored credential transaction framework. Zuora cannot use the stored credentials in transactions.
enum:
- Agreed
- Active
- Cancelled
- Expired
type: string
type:
enum:
- Recurring
- Unscheduled
type: string
type: array
success:
type: boolean
type: object
GetVersionsResponse:
properties:
data:
description: "The list of workflow versions retrieved. \n"
items:
$ref: '#/definitions/Workflow'
type: array
type: object
GetWorkflowResponse:
properties:
cpuTime:
description: 'The overall CPU time for the execution of the workflow.
'
format: time
type: string
createdAt:
description: 'The date and time when the workflow is created, in the `YYYY-MM-DD
HH:MM:SS` format..
'
format: datetime
type: string
finishedAt:
description: 'The date and time when the execution of the workflow completes,
in the `YYYY-MM-DD HH:MM:SS` format.
'
format: datetime
type: string
id:
description: 'The unique ID of the workflow.
'
type: integer
messages:
description: "Messages from tasks. \n\n**Note:** This field is only returned\
\ in Production.\n"
type: object
name:
description: 'The unique run number of the workflow.
'
type: string
originalWorkflowId:
description: 'The ID of the workflow setup.
'
type: string
runTime:
description: 'The execution time of the workflow including the waiting time,
in seconds.
'
format: double
type: number
status:
description: "The status of the workflow:\n - Queued: The workflow is in\
\ queue for being processed.\n - Processing: The workflow is in process.\n\
\ - Stopping: The workflow is being stopped through Zuora UI.\n - Stopped:\
\ The workflow is stopped through Zuora UI.\n - Finished: The workflow\
\ is finished. When a workflow is finished, it might have tasks pending\
\ for retry or delay. Pending tasks do not block the onfinish branch of\
\ the workflow, but they block the oncomplete branch of the iterate. \n"
enum:
- Queued
- Processing
- Stopping
- Stopped
- Finished
type: string
tasks:
description: 'An object containing task counts.
'
properties:
error:
description: 'The number of tasks in **Error** state.
'
type: integer
pending:
description: 'The number of tasks in **Pending** state.
'
type: integer
processing:
description: 'The number of tasks in **Processing** state.
'
type: integer
queued:
description: 'The number of tasks in **Queued** state.
'
type: integer
stopped:
description: 'The number of tasks in **Stopped** state.
'
type: integer
success:
description: 'The number of tasks in **Success** state.
'
type: integer
total:
description: 'The total number of tasks.
'
type: integer
type: object
type:
description: |
The type of the current workflow. Possible values:
- `Workflow::Setup`: The workflow is a setup and is used for creating workflow instances.
- `Workflow::Instance`: The workflow is an execution that has data.
type: string
updatedAt:
description: 'The date and time when the workflow is updated the last time,
in the `YYYY-MM-DD HH:MM:SS` format.
'
format: datetime
type: string
type: object
GetWorkflowsResponse:
properties:
data:
description: "The list of workflows retrieved. \n"
items:
$ref: '#/definitions/WorkflowDefinitionAndVersions'
type: array
pagination:
description: 'An object containing pagination information for the list of
workflows returned by the api
'
properties:
next_page:
description: 'A string containing the URL where the next page of data
can be retrieved.
'
type: string
page:
description: 'An integer denoting the current page number.
'
type: integer
page_length:
description: 'An integer denoting the number of workflows in this response.
The maximum value is 50.
'
type: integer
type: object
type: object
InitialTerm:
description: The length of the period for the current subscription term.
properties:
period:
description: Specify only when the termType is 'TERMED'.
minimum: 0
type: integer
periodType:
description: Specify only when the termType is 'TERMED'.
enum:
- Month
- Year
- Day
- Week
type: string
startDate:
description: 'The start date of the current term.
'
format: date
type: string
termType:
enum:
- TERMED
- EVERGREEN
type: string
required:
- termType
type: object
InvoiceEntityPrefix:
description: 'Container for the prefix and starting document number of invoices.
'
properties:
prefix:
description: 'The prefix of invoices.
'
example: INV
type: string
startNumber:
description: 'The starting document number of invoices.
'
example: 10
type: integer
title: Invoice
type: object
InvoiceFile:
properties:
id:
description: 'The ID of the invoice PDF file. This is the ID for the file
object and different from the file handle ID in the `pdfFileUrl` field.
To open a file, you have to use the file handle ID.
'
type: string
pdfFileUrl:
description: 'The REST URL for the invoice PDF file. Click the URL to open
the invoice PDF file.
'
type: string
versionNumber:
description: 'The version number of the invoice PDF file.
'
format: int64
type: integer
title: invoiceFiles
type: object
InvoiceItem:
allOf:
- properties:
accountingCode:
description: The accounting code associated with the invoice item.
type: string
adjustmentLiabilityAccountingCode:
description: "The accounting code for adjustment liability. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
adjustmentRevenueAccountingCode:
description: "The accounting code for adjustment revenue. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
appliedToItemId:
description: The unique ID of the invoice item that the discount charge
is applied to.
type: string
availableToCreditAmount:
description: "The amount of the invoice item that is available to credit.\
\ \n"
format: decimal
type: number
balance:
description: "The balance of the invoice item.\n\n**Note**: This field is\
\ only available if you have the Invoice Settlement feature enabled. \n"
format: decimal
type: string
bookingReference:
description: 'The booking reference of the invoice item.
'
type: string
chargeAmount:
description: "The amount of the charge. \n\nThis amount does not include\
\ taxes regardless if the charge's tax mode is inclusive or exclusive.\n"
format: decimal
type: string
chargeDate:
description: 'The date when the invoice item is charged, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
chargeDescription:
description: The description of the charge.
type: string
chargeId:
description: The unique ID of the charge.
type: string
chargeName:
description: The name of the charge.
type: string
chargeType:
description: "The type of the charge. \n"
enum:
- OneTime
- Recurring
- Usage
type: string
contractAssetAccountingCode:
description: "The accounting code for contract asset. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
contractLiabilityAccountingCode:
description: "The accounting code for contract liability. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
contractRecognizedRevenueAccountingCode:
description: "The accounting code for contract recognized revenue. \n \
\ \n**Note**: This field is only available if you have the Billing\
\ - Revenue Integration feature enabled. \n"
type: string
deferredRevenueAccountingCode:
description: |
The deferred revenue accounting code associated with the invoice item.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
description:
description: The description of the invoice item.
type: string
excludeItemBillingFromRevenueAccounting:
description: "The flag to exclude the invoice item from revenue accounting.\n\
\n**Note**: This field is only available if you have the Billing - Revenue\
\ Integration feature enabled. \n"
type: boolean
id:
description: Item ID.
type: string
invoiceScheduleId:
description: |
The ID of the invoice schedule item by which Invoice Schedule Item the invoice item is generated by when the Invoice Schedule Item is executed.
**Note**: This field is available only if you have the Billing Schedule feature in the **Early Adopter** phase enabled.
type: string
invoiceScheduleItemId:
description: |
The ID of the invoice schedule item associated with the invoice item.
**Note**: This field is available only if you have the Billing Schedule feature in the **Early Adopter** phase enabled.
type: string
itemType:
description: 'The type of the invoice item.
'
type: string
numberOfDeliveries:
description: |
The number of deliveries dedicated to the Delivery Pricing charges. The value might be different, as follows:
**Note**: This field is available only if you have the Delivery Pricing feature enabled.
processingType:
description: "The kind of the charge for the invoice item. \n"
enum:
- Charge
- Discount
- Prepayment
- Tax
- Rounding
type: string
productName:
description: Name of the product associated with this item.
type: string
productRatePlanChargeId:
description: 'The ID of the product rate plan charge that the invoice item
is created from.
'
type: string
purchaseOrderNumber:
description: 'The purchase order number associated with the invoice item.
'
type: string
quantity:
description: The quantity of this item, in the configured unit of measure
for the charge.
format: decimal
type: string
recognizedRevenueAccountingCode:
description: |
The recognized revenue accounting code associated with the invoice item.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
revRecCode:
description: 'The revenue recognition code.
'
type: string
revRecTriggerCondition:
description: 'The date when revenue recognition is triggered.
'
enum:
- ContractEffectiveDate
- ServiceActivationDate
- CustomerAcceptanceDate
type: string
revenueRecognitionRuleName:
description: |
The tevenue recognition rule of the invoice item.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
serviceEndDate:
description: The end date of the service period for this item, i.e., the
last day of the service period, as _yyyy-mm-dd_.
format: date
type: string
serviceStartDate:
description: The start date of the service period for this item, as _yyyy-mm-dd_.
For a one-time fee item, the date of the charge.
format: date
type: string
sku:
description: 'The SKU of the invoice item.
'
type: string
soldToContactId:
description: |
The ID of the sold-to contact associated with the invoice item.
**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.
type: string
soldToContactSnapshotId:
description: |
The ID of the sold-to contact snapshot associated with the invoice item.
**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.
type: string
sourceItemType:
description: 'The type of the source item.
'
enum:
- SubscriptionComponent
- Rounding
- ProductRatePlanCharge
- None
- OrderLineItem
type: string
subscriptionId:
description: The ID of the subscription for this item.
type: string
subscriptionName:
description: The name of the subscription for this item.
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
taxAmount:
description: Tax applied to the charge.
format: decimal
type: string
taxCode:
description: |
The tax code of the invoice item.
**Note** Only when taxation feature is enabled, this field can be presented.
type: string
taxMode:
description: |
The tax mode of the invoice item.
**Note** Only when taxation feature is enabled, this field can be presented.
type: string
taxationItems:
description: "Container for the taxation items of the invoice item. \n"
properties:
data:
description: 'List of taxation items.
'
items:
$ref: '#/definitions/GETInvoiceTaxItemType'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
type: object
unbilledReceivablesAccountingCode:
description: "The accounting code for unbilled receivables. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
unitOfMeasure:
description: Unit used to measure consumption.
type: string
unitPrice:
description: The per-unit price of the invoice item.
format: double
type: number
type: object
- $ref: '#/definitions/InvoiceItemObjectNSFields'
- $ref: '#/definitions/InvoiceItemObjectCustomFields'
title: invoiceItems
InvoiceItemObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Invoice Item object. The name of each custom
field has the form *customField*__c
. Custom field names are case
sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of an Invoice Item object.
'
title: invoiceItemFieldsCustom
type: object
InvoiceItemObjectNSFields:
description: 'Container for Invoice Item fields provided by the [Zuora Connector
for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
properties:
IntegrationId__NS:
description: 'ID of the corresponding object in NetSuite. Only available if
you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IntegrationStatus__NS:
description: 'Status of the invoice item''s synchronization with NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
SyncDate__NS:
description: 'Date when the invoice item was synchronized with NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
title: invoiceItemFieldsNS
type: object
InvoiceItemPreviewResult:
properties:
additionalInfo:
properties:
numberOfDeliveries:
description: "The number of deliveries dedicated to the Delivery Pricing\
\ charges. \n\n**Note**: This field is available only if you have the\
\ Delivery Pricing feature enabled.\n"
quantity:
type: number
unitOfMeasure:
type: string
type: object
amountWithoutTax:
type: number
appliedToChargeNumber:
description: Available when the chargeNumber of the charge that discount applies
to was specified in the request or when the order is amending an existing
subscription.
type: string
chargeDescription:
type: string
chargeName:
type: string
chargeNumber:
description: Available when the chargeNumber was specified in the request
or when the order is amending an existing subscription.
type: string
orderLineItemNumber:
description: A sequential number auto-assigned for each of order line items
in a order, used as an index, for example, "1".
type: string
processingType:
enum:
- Charge
- Discount
- Tax
type: string
productName:
type: string
productRatePlanChargeId:
type: string
serviceEndDate:
format: date
type: string
serviceStartDate:
format: date
type: string
subscriptionNumber:
type: string
taxAmount:
type: number
taxationItems:
description: |
List of taxation items.
**Note**: This field is only available if you set the `zuora-version` request header to `309.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
items:
properties:
exemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
type: number
id:
description: 'The ID of the taxation item.
'
type: string
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value
is typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of
the taxCode field.
'
type: string
name:
description: 'The name of the taxation item.
'
type: string
taxAmount:
description: 'The amount of the tax applied to the invoice.
'
type: number
taxCode:
description: 'The tax code identifies which tax rules and tax rates
to apply to a specific invoice.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date when the tax is applied to the invoice.
'
type: string
taxRate:
description: 'The tax rate applied to the invoice.
'
type: number
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'Enum:"Percentage" "FlatFee". The type of the tax rate
applied to the invoice.
'
enum:
- Percentage
- FlatFee
type: string
type: object
type: array
unitPrice:
description: 'The per-unit price of the invoice item.
'
type: number
type: object
InvoiceObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Invoice object. The name of each custom field
has the form *customField*__c
. Custom field names are case sensitive.
See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of an Invoice object.
'
title: invoiceFieldsCustom
type: object
InvoiceObjectNSFields:
description: 'Container for Invoice fields provided by the [Zuora Connector for
NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
properties:
IntegrationId__NS:
description: 'ID of the corresponding object in NetSuite. Only available if
you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IntegrationStatus__NS:
description: 'Status of the invoice''s synchronization with NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
SyncDate__NS:
description: 'Date when the invoice was synchronized with NetSuite. Only available
if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
title: invoiceFieldsNS
type: object
InvoicePostResponseType:
allOf:
- properties:
id:
description: 'The ID of the invoice that was posted.
'
type: string
success:
description: 'Returns `true` if the invoice was posted successfully.
'
type: boolean
type: object
InvoicePostType:
allOf:
- properties:
id:
description: 'The ID of the invoice to be posted.
'
type: string
invoiceDate:
description: 'The date that appears on the invoice being created, in `yyyy-mm-dd`
format. The value cannot fall in a closed accounting period.
'
format: date
type: string
type: object
- $ref: '#/definitions/InvoiceObjectCustomFields'
InvoiceResponseType:
properties:
id:
description: 'The ID of the generated invoice.
'
type: string
title: invoices
type: object
InvoiceScheduleCustomFields:
additionalProperties:
description: 'Custom fields of the Invoice Schedule object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of an Invoice Schedule object.
'
title: invoiceScheduleCustomFields
type: object
InvoiceScheduleItemCustomFields:
additionalProperties:
description: 'Custom fields of the Invoice Schedule Item object. The name of
each custom field has the form *customField*__c
. Custom field
names are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of an Invoice Schedule Item object.
'
title: invoiceScheduleItemCustomFields
type: object
InvoiceScheduleResponses:
allOf:
- properties:
accountId:
description: 'The ID of the customer account that the invoice schedule belongs
to.
'
type: string
actualAmount:
description: |
The actual amount that needs to be billed during the processing of the invoice schedule.
By default, the actual amount is the same as the total amount. Even if order changes occur like Remove Product or Cancel Subscription, the value of the `totalAmount` field keeps unchanged. The value of the `actualAmount` field reflects the actual amount to be billed.
format: number
type: string
additionalSubscriptionsToBill:
description: "A list of the numbers of the subscriptions that need to be\
\ billed together with the invoice schedule. \n\nOne invoice schedule\
\ can have at most 600 additional subscriptions.\n"
items:
type: string
type: array
billedAmount:
description: 'The amount that has been billed during the processing of the
invoice schedule.
'
format: number
type: string
currency:
description: "The currency of the billing documents generated during the\
\ processing of the invoice schedule.\n\n**Note**: \n- This field is available\
\ only if you have the Multiple Currencies feature in the **Early Adopter**\
\ phase enabled.\n- If you have the Multiple Currencies feature disabled,\
\ the corresponding account's default currency is always used.\n"
type: string
id:
description: 'The unique ID of the invoice schedule.
'
type: string
invoiceSeparately:
description: 'Whether the invoice items created from the invoice schedule
appears on a separate invoice when Zuora generates invoices.
'
type: boolean
nextRunDate:
description: 'The run date of the next execution of invoice schedule. By
default, the next run date is the same as run date of next pending invoice
schedule item. It can be overwritten with a different date other than
the default value. When the invoice schedule has completed the execution,
the next run date is null.
'
format: date
type: string
notes:
description: 'Comments on the invoice schedule.
'
maxLength: 255
type: string
number:
description: 'The sequence number of the invoice schedule.
'
type: string
orders:
description: 'A list of the IDs or numbers of the orders associated with
the invoice schedule. One invoice schedule can be associated with at most
10 orders.
'
items:
type: string
type: array
scheduleItems:
description: 'Container for schedule items. One invoice schedule can have
at most 50 invoice schedule items.
'
items:
$ref: '#/definitions/ScheduleItemsResponse'
type: array
specificSubscriptions:
description: 'A list of the numbers of specific subscriptions associated
with the invoice schedule.
'
items:
$ref: '#/definitions/InvoiceScheduleSpecificSubscriptions'
type: array
status:
description: 'The status of the invoice schedule.
'
enum:
- Pending
- PartiallyProcessed
- Paused
- FullyProcessed
type: string
totalAmount:
description: "The total amount that needs to be billed during the processing\
\ of the invoice schedule. \n\nThe value of this field keeps unchanged\
\ once invoice schedule items are created.\n"
format: number
type: string
unbilledAmount:
description: 'The amount that is waiting to be billed during the processing
of the invoice schedule.
'
format: number
type: string
type: object
- $ref: '#/definitions/InvoiceScheduleCustomFields'
- {}
InvoiceScheduleSpecificSubscriptions:
properties:
chargeNumbers:
description: 'A list of charges in the subscription that are chosen to be
included in the invoice schedule.
'
type: string
orderKey:
description: 'The unique ID or number of the order associated with the invoice
schedule.
'
type: string
subscriptionKey:
description: 'The unique number of the subscription contained in the order
associated with the invoice schedule.
'
type: string
title: specificSubscriptions
type: object
InvoiceWithCustomRatesType:
allOf:
- properties:
currency:
description: |
The currency code for either Reporting or Home currency.
**Note**: This field is only available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
customFxRate:
description: |
The Custom FX conversion rate between Home/Reporting and Transactional currency items.
**Note**: This field is only available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: decimal
type: number
rateDate:
description: |
The date on which a particular currency rate is fixed or obtained on.
**Note**: This field is only available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: date
type: string
required:
- currency
- customFxRate
type: object
title: customRates
InvoicesBatchPostResponseType:
allOf:
- properties:
invoices:
description: 'The container for a list of posted invoices.
'
items:
$ref: '#/definitions/InvoicePostResponseType'
title: invoices
type: array
success:
description: 'Returns `true` if the request has one of invoices was posted
successfully.
'
type: boolean
type: object
JobResult:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
accountId:
description: The account ID for the order. This field is returned only when
the `returnIds` query parameter in the "Create an order asynchronously"
operation is set to `true`.
type: string
accountNumber:
description: The account number for the order.
type: string
creditMemoIds:
description: An array of the credit memo IDs that are generated in the "Create
an order asynchronously" operation. This field is returned only when the
`returnIds` query parameter in the "Create an order asynchronously" operation
is set to `true`.
items:
type: string
type: array
creditMemoNumbers:
description: An array of the credit memo numbers generated in this order
request. The credit memo is only available if you have the Invoice Settlement
feature enabled.
items:
type: string
type: array
invoiceId:
description: An array of the invoice IDs that are generated in the "Create
an order asynchronously" operation. This field is returned only when the
`returnIds` query parameter in the "Create an order asynchronously" operation
is set to `true`.
items:
type: string
type: string
invoiceNumbers:
description: An array of the invoice numbers generated in this order request.
Normally it includes one invoice number only, but can include multiple
items when a subscription was tagged as invoice separately.
items:
type: string
type: array
orderId:
description: The ID of the order created. This field is returned only when
the `returnIds` query parameter in the "Create an order asynchronously"
operation is set to `true`.
type: string
orderLineItems:
items:
properties:
id:
description: The sytem generated Id for the Order Line Item.
format: UUID
type: string
itemNumber:
description: The number for the Order Line Item.
format: UUID
type: string
type: object
type: array
orderNumber:
description: The order number of the order created.
type: string
paidAmount:
description: The total amount collected in this order request.
type: string
paymentId:
description: The ID of the payment that is collected in the "Create an order
asynchronously" operation. This field is returned only when the `returnIds`
query parameter in the "Create an order asynchronously" operation is set
to `true`.
type: string
paymentNumber:
description: The payment number that collected in this order request.
type: string
ramps:
description: |
**Note**: This field is only available if you have the Ramps feature enabled. The [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders) feature must be enabled before you can access the [Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics) feature. The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information coming October 2020.
The ramp definitions created by this order request.
items:
properties:
rampNumber:
description: The number of the ramp definition.
type: string
subscriptionNumber:
description: The number of the subscription that this ramp deal definition
is applied to.
type: string
type: object
type: array
status:
description: Status of the order. `Pending` is only applicable for an order
that contains a `CreateSubscription` order action.
enum:
- Draft
- Pending
- Completed
type: string
subscriptionIds:
description: Container for the IDs of the subscriptions in the order. This
field is returned only when the `returnIds` query parameter in the "Create
an order asynchronously" operation is set to `true`.
items:
type: string
type: array
subscriptionNumbers:
description: "**Note:** This field is in Zuora REST API version control.\
\ Supported minor versions are 222.0 or earlier [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ To use this field in the method, you must set the\_`zuora-version` parameter\
\ to the minor version number in the request header.\n\nContainer for\
\ the subscription numbers of the subscriptions in an order.\n"
items:
type: string
type: array
subscriptions:
description: "**Note:** This field is in Zuora REST API version control.\
\ Supported minor versions are 223.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ To use this field in the method, you must set the\_`zuora-version` parameter\
\ to the minor version number in the request header.\n\nContainer for\
\ the subscription numbers and statuses in an order.\n"
items:
properties:
status:
description: Status of the subscription. `Pending Activation` and
`Pending Acceptance` are only applicable for an order that contains
a `CreateSubscription` order action.
enum:
- Active
- Pending Activation
- Pending Acceptance
- Cancelled
type: string
subscriptionNumber:
description: Subscription number of the subscription included in this
order.
type: string
type: object
type: array
type: object
description: "**Note:** The schema of the `result` nested field is the same as\
\ the response body schema of either the [\"Create an order\"](https://developer.zuora.com/api-references/api/operation/POST_Order)\
\ or the [\"Preview an order\"](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder)\
\ operation, depending on the purpose of the job.\n\nThe following schema for\
\ the nested `result` field is defined as the response body schema of \"Create\
\ an order\". See [Preview an Order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder)\
\ for the response body schema of \"Preview an order\". \n"
JournalEntryItemObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Journal Entry Item object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Journal Entry Item object.
'
title: journalEntryItemFieldsCustom
type: object
JournalEntryObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Journal Entry object. The name of each custom
field has the form *customField*__c
. Custom field names are case
sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Journal Entry object.
'
title: journalEntryFieldsCustom
type: object
JsonNode:
description: Json node object contains metadata.
title: JsonNode
type: object
LastTerm:
description: The length of the period for the current subscription term.
properties:
period:
description: Specify only when the termType is 'TERMED'.
minimum: 0
type: integer
periodType:
description: Specify only when the termType is 'TERMED'.
enum:
- Month
- Year
- Day
- Week
type: string
startDate:
description: 'The start date of the current term. You can change the term
start date of a renewed subscription through a T&Cs order action. However,
when changing it to an earlier date, this date must not be earlier than
the term start date of the current term before this T&Cs.
'
format: date
type: string
termType:
enum:
- TERMED
- EVERGREEN
type: string
required:
- termType
type: object
Linkage:
description: Used to represent the relationship between workflow tasks
properties:
linkage_type:
enum:
- Start
- Success
- Failure
- Iterate
- 'True'
- 'False'
- Approve
- Reject
type: string
source_task_id:
description: the task that spawned the target task
type: integer
source_workflow_id:
description: the workflow the target task is associated with
type: integer
target_task_id:
description: the task that the source task is linked to.
type: integer
type: object
LinkedPaymentID:
properties:
paymentId:
description: 'ID of the payment.
'
type: string
title: PaymentID
type: object
ListAllCatalogGroupsResponse:
properties:
catalogGroups:
description: 'The list of catalog groups that are retrieved..
'
items:
$ref: '#/definitions/CatalogGroupResponse'
type: array
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
type: object
ListAllOffersResponse:
properties:
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
offers:
description: 'The list of the offers that are retrieved.
'
items:
$ref: '#/definitions/GETOfferResponse'
type: array
success:
description: 'Whether the call succeeded.
'
type: boolean
type: object
ListAllPriceBookItemsResponse:
properties:
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
priceBookItems:
description: 'The list of price book items that are retrieved..
'
items:
$ref: '#/definitions/GETPriceBookItemResponse'
type: array
success:
description: 'Whether the call succeeded.
'
type: boolean
type: object
ListAllSettingsResponse:
properties:
settings:
items:
$ref: '#/definitions/SettingItemWithOperationsInformation'
type: array
title: allSettings
type: object
ListEInvoiceFileTemplatesResponse:
properties:
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
templates:
description: 'Container for e-invoice file emplates.
'
items:
$ref: '#/definitions/GetEInvoiceFileTemplateResponse'
type: array
type: object
ListEInvoicingBusinessRegionsResponse:
properties:
regions:
description: 'Container for e-invoicing business regions.
'
items:
$ref: '#/definitions/GetEInvoicingBusinessRegionResponse'
type: array
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
ListEInvoicingServiceProvidersResponse:
properties:
serviceProviders:
description: 'Container for e-invoicing service providers.
'
items:
$ref: '#/definitions/GetEInvoicingServiceProviderResponse'
type: array
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
MigrationClientResponse:
description: Response after migration is added.
properties:
emailIds:
description: 'List of Emails with comma separator '
type: string
environment:
description: Environment information
type: string
id:
description: Variable to hold the job ID.
type: string
migratedBy:
description: User responsible for migration.
example: Jane Cooper
type: string
migrationDescription:
description: Description of the migration.
example: Migration from/to Sandbox
type: string
migrationEnd:
description: Timestamp when migration ended.
example: '2020-11-01 18:00:00'
type: string
migrationName:
description: Name of the migration.
example: Job A
type: string
migrationStart:
description: Timestamp when migration started.
example: '2020-11-01 18:00:00'
type: string
response:
items:
$ref: '#/definitions/MigrationComponentContent'
type: array
sourceTenantDescription:
description: Source Tenant Description.
example: Duno
type: string
sourceTenantName:
description: Source Tenant Name.
example: Duno
type: string
status:
description: Status of the Migration Job.
example: IN PROGRESS
type: string
type:
type: string
required:
- id
- migratedBy
- migrationDescription
- migrationEnd
- migrationName
- migrationStart
- sourceTenantDescription
- sourceTenantName
- status
title: MigrationClientResponse
type: object
MigrationComponentContent:
description: When a comparison is made between a source and target tenant, it
sends a response to the user interface.
properties:
attribute:
type: string
componentType:
description: Type of selected components to be migrated.
type: string
currentTargetResponse:
$ref: '#/definitions/JsonNode'
description: Current Target Response to be migrated.
description:
type: string
disabled:
type: string
errorMessage:
description: Error information.
type: string
httpMethods:
type: string
id:
type: string
key:
type: string
migratedOn:
description: It is the time when migration is triggered.
format: date-time
type: string
migrationId:
description: Migration ID. It is generated at the time of triggering deployment.
type: string
pathPattern:
description: PathPattern of component.
type: string
previousTargetResponse:
$ref: '#/definitions/JsonNode'
description: It caches the previous target response, which can be helpful
if you want to revert the migration.
result:
description: Returns the result details of Components.
type: string
segregationKey:
description: Displays the differences between components.
type: string
sourceResponse:
$ref: '#/definitions/JsonNode'
status:
description: Returns the status of each component.
type: string
updateStatus:
description: Updated Status.
type: string
title: MigrationComponentContent
type: object
MigrationUpdateCustomObjectDefinitionsRequest:
additionalProperties: false
properties:
actions:
description: The actions of updating custom object definitions, to be performed
as parts of the migration. Currently only one action per migration is supported.
items:
$ref: '#/definitions/CustomObjectDefinitionUpdateActionRequest'
maxItems: 1
minItems: 1
type: array
required:
- actions
type: object
MigrationUpdateCustomObjectDefinitionsResponse:
additionalProperties: false
properties:
actions:
description: The actions of updating custom object definitions, to be performed
as parts of the migration. Currently only one action per migration is supported.
items:
$ref: '#/definitions/CustomObjectDefinitionUpdateActionResponse'
maxItems: 1
minItems: 1
type: array
type: object
ModifiedStoredCredentialProfileResponse:
properties:
number:
description: 'The number that identifies the stored credential profile within
the payment method.
'
type: integer
paymentMethodId:
description: 'ID of the payment method.
'
type: string
success:
type: boolean
type: object
NextRunResponseType:
allOf:
- description: 'Container about information about the next bill run to be executed.
'
properties:
autoEmail:
description: 'Whether to automatically send emails after Auto-Post is complete.
'
type: boolean
autoPost:
description: 'Whether to automatically post the bill run after the bill
run is created.
'
type: boolean
autoRenewal:
description: 'Whether to automatically renew auto-renew subscriptions that
are up for renewal.
'
type: boolean
batches:
description: "The batch of accounts for this bill run. \n\n**Values:** `AllBatches`\
\ or an array of `Batch`*n* where *n* is one of numbers 1 - 50, for example,\
\ `Batch7`.\n"
items:
type: string
type: array
billCycleDay:
description: "The day of the bill cycle. This field is only valid if the\
\ `batches` field is specified.\n\n**Values:** \n- `AllBillCycleDays`\
\ or one of numbers 1 - 31 for an ad-hoc bill run\n- `AllBillCycleDays`,\
\ one of numbers 1 - 31, or `AsRunDay` for a scheduled bill run\n"
type: string
billRunFilters:
description: "The target account or subscriptions for this bill run. \n"
items:
$ref: '#/definitions/BillRunFilterResponseType'
type: array
billRunNumber:
description: 'The number of the bill run.
'
type: string
chargeTypeToExclude:
description: 'The types of the charges to be excluded from the generation
of billing documents.
'
items:
enum:
- OneTime
- Recurring
- Usage
type: string
type: array
createdById:
description: 'The ID of the user who created the bill run.
'
type: string
createdDate:
description: 'The date and time when the bill run was created.
'
format: date-time
type: string
id:
description: 'The ID of the bill run.
'
type: string
invoiceDate:
description: 'The invoice date for this bill run, only valid for ad-hoc
bill runs.
'
format: date
type: string
invoiceDateOffset:
description: 'The offset compared to the bill run execution date, only valid
for scheduled bill runs.
'
type: integer
noEmailForZeroAmountInvoice:
description: "Whether to suppress emails for invoices with zero total amount\
\ generated in this bill run after the bill run is complete. \n"
type: boolean
schedule:
$ref: '#/definitions/BillRunScheduleResponseType'
scheduledExecutionTime:
description: 'The scheduled execution time for the bill run.
'
format: date-time
type: string
status:
description: 'The status of the bill run.
'
enum:
- Pending
- Processing
- Completed
- Error
- Canceled
- Posted
- PostInProgress
- CancelInProgress
- RemoveInProgress
- Paused
type: string
targetDate:
description: 'The target date for this bill run, only valid for ad-hoc bill
runs.
'
format: date
type: string
targetDateOffset:
description: 'The offset compared to the bill run execution date, only valid
for scheduled bill runs.
'
type: integer
updatedById:
description: 'The ID of the user who last updated the bill run.
'
type: string
updatedDate:
description: 'The date and time when the bill run was last updated.
'
format: date-time
type: string
type: object
example:
autoEmail: false
autoPost: false
autoRenewal: false
batches: null
billCycleDay: null
billRunFilters:
- accountId: 2c9081a03c63c94c013c66688a2c00bf
filterType: Subscription
subscriptionId: 402882297e387c51017e38a245c313db
billRunNumber: BR-00000016
chargeTypeToExclude:
- OneTime
- Usage
createdById: ff808081298c6e5401298c7274a40005
createdDate: '2022-01-24 19:58:27'
id: 2c9890077e8a8490017e8bf3a5171a43
invoiceDate: '2020-02-01'
invoiceDateOffset: null
noEmailForZeroAmountInvoice: false
schedule: null
scheduledExecutionTime: null
status: Pending
success: true
targetDate: '2020-02-01'
targetDateOffset: null
updatedById: ff808081298c6e5401298c7274a40005
updatedDate: '2022-01-24 19:58:27'
title: nextRun
NotificationsHistoryDeletionTaskResponse:
description: The notification history deletion task information.
properties:
accountId:
description: The ID of the account whose notification histories are deleted
by the current deletion task.
format: uuid
type: string
createdBy:
description: The ID of the user who submits the notification history deletion
task.
format: uuid
type: string
createdOn:
description: The timestamp when the notification history deletion task is
created.
type: integer
id:
description: The ID of the notification history deletion task.
format: uuid
type: string
status:
description: The status of the notification history deletion task.
enum:
- RUNNING
- FINISHED
- FAILED
type: string
tenantId:
description: The ID of the tenant where the notification history deletion
task runs.
type: string
type: object
OfferOverride:
description: "Offer associated with a subscription. \n\n**Note**: You must enable\
\ the Offers feature to access this field. The Offers 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"
properties:
newSubscriptionOfferId:
description: |
Internal identifier of the subscription offer.
**Note**: You must enable the Offers feature to access this field. The Offers 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 .
type: string
newSubscriptionOfferNumber:
description: |
Number of the subscription offer.
**Note**: You must enable the Offers feature to access this field. The Offers 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 .
type: string
productOfferId:
description: |
Internal identifier of the offer that the subscription offer is based on.
**Note**: You must enable the Offers feature to access this field. The Offers 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 .
type: string
productOfferNumber:
description: |
Number of the offer that the subscription offer is based on.
**Note**: You must enable the Offers feature to access this field. The Offers 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 .
type: string
ratePlanOverrides:
description: |
List of rateplans associated with the offer.
**Note**: You must enable the Offers feature to access this field. The Offers 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 .
items:
$ref: '#/definitions/GetOfferRatePlanOverride'
type: array
subscriptionOfferUniqueToken:
description: |
Unique of the subscription offer.
**Note**: You must enable the Offers feature to access this field. The Offers 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 .
type: string
title: offer
type: object
OfferUpdate:
description: 'Information about an order action of type `UpdateProduct`.
'
properties:
ratePlanUpdates:
items:
$ref: '#/definitions/GetOfferRatePlanUpdate'
type: array
subscriptionOfferId:
description: "Internal identifier of the subscription offer. \n\n**Note**:\
\ You must enable the Offers feature to access this field. The Offers 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"
type: string
subscriptionOfferNumber:
description: "Number of the subscription offer. \n\n**Note**: You must enable\
\ the Offers feature to access this field. The Offers 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"
type: string
subscriptionOfferUniqueToken:
description: "Unique identifier of the subscription offer. \n\n**Note**: You\
\ must enable the Offers feature to access this field. The Offers 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"
type: string
title: updateOffer
type: object
OneTimeFlatFeePricingOverride:
description: 'Pricing information about a one-time charge that uses the "flat
fee" charge model. In this charge model, the charge has a fixed price.
'
properties:
listPrice:
description: 'Price of the charge.
'
type: number
originalListPrice:
description: 'The original list price is the price of a product or service
at which it is listed for sale by a manufacturer or retailer.
'
type: number
required:
- listPrice
title: oneTimeFlatFee
type: object
OneTimePerUnitPricingOverride:
description: 'Pricing information about a one-time charge that uses the "per unit"
charge model. In this charge model, the charge has a fixed price per unit purchased.
'
properties:
listPrice:
description: 'Per-unit price of the charge.
'
type: number
originalListPrice:
description: 'The original list price is the price of a product or service
at which it is listed for sale by a manufacturer or retailer.
'
type: number
quantity:
description: 'Number of units purchased.
'
minimum: 0
type: number
uom:
description: |
Unit of measure of the standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: number
title: oneTimePerUnit
type: object
OneTimeTieredPricingOverride:
description: 'Pricing information about a one-time charge that uses the "tiered
pricing" charge model. In this charge model, the charge has cumulative pricing
tiers that become effective as units are purchased.
'
properties:
quantity:
description: 'Number of units purchased.
'
minimum: 0
type: number
tiers:
description: 'List of cumulative pricing tiers in the charge.
'
items:
$ref: '#/definitions/ChargeTier'
type: array
title: oneTimeTiered
type: object
OneTimeVolumePricingOverride:
description: 'Pricing information about a one-time charge that uses the "volume
pricing" charge model. In this charge model, the charge has a variable price
per unit, depending on how many units are purchased.
'
properties:
quantity:
description: 'Number of units purchased.
'
minimum: 0
type: number
tiers:
description: 'List of variable pricing tiers in the charge.
'
items:
$ref: '#/definitions/ChargeTier'
type: array
uom:
description: |
Unit of measure of the standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: number
title: oneTimeVolume
type: object
OpenPaymentMethodTypeRequestFields:
properties:
checksum:
description: "The checksum value of a payment method is used to identify if\
\ this payment method is the same as another one, or if this payment method\
\ is altered to another new payment method.\n\nSet this flag to `true` for\
\ the following scenarios:\n - The field should be part of checksum calculation.\n\
\ - The field is a critical differentiator for this type. \n \nFor example,\
\ if you select the credit card number and expiration date as the checksum\
\ fields for the CreditCard payment method type, when you modified the expiration\
\ date, Zuora considers this payment method as a different payment method\
\ compared to the original one.\n\nThis field cannot be `null` or empty.\n\
\nThis field cannot be updated after the creation of the custom payment\
\ method type.\n"
type: boolean
defaultValue:
description: |
The default value of the field. `null` is supported.
If a required field is added after the custom payment method type is published, `defaultValue` is required.
This field cannot be updated after the creation of the custom payment method type.
maxLength: 255
type: string
description:
description: 'An explanation of this field. It can be an empty string.
'
maxLength: 70
type: string
editable:
description: |
Specify `true` if this field can be updated through PUT API or UI.
This field cannot be `null` or empty.
Note: If `editable` is set to `false`, you can specify the value of this field in the UI and POST API when creating a payment method. However, after you created the payment method, you cannot edit this field through PUT API or UI.
type: boolean
index:
description: |
The order of the field in this type, starting from 1. It must be unique.
This field cannot be `null` or empty.
This field cannot be updated after the creation of the custom payment method type.
type: integer
label:
description: "The label that is used to refer to this field in the Zuora UI.\n\
\nAn alphanumeric string, excluding JSON preserved characters e.g. * \\\
\ \u2019 \u201D\n\nThis field cannot be `null` or empty or any reserved\
\ field name.\n"
maxLength: 30
type: string
maxLength:
description: |
A maximum length limitation of the field value. The specified value must be in the range of [1,8000]. `maxLength` must be greater than or equal to `minLength`.
After the custom payment method type is created, you can only increase the value of `maxLength`. Decreasing the value is not supported.
type: integer
minLength:
description: "A minimal length limitation of the field value.\n \n0 <=\
\ `minLength` <= `maxLength`\n\nThe value of this metadata does not determine\
\ whether the field is a required field. It only defines the minimal length\
\ of the field value.\n\nAfter the custom payment method type is created,\
\ you can only decrease the value of `minLength`. Increasing the value is\
\ not supported.\n"
type: integer
name:
description: "The API name of this field. It must be uinique.\n\nAn alphanumeric\
\ string starting with a capital letter, excluding JSON preserved characters\
\ e.g. * \\ \u2019 \u201D\n\nThough this field must be defined with a string\
\ starting with a capital letter, use this string with the first letter\
\ in lowercase when you specify it in other API operations. For example,\
\ `AmazonPayToken` is the defined value for `name`. In the request of the\
\ \"Create a payment method\" API operation, use `amazonPayToken`.\n\nThis\
\ field cannot be `null` or empty or any reserved field name.\n\nThis field\
\ cannot be updated after the creation of the custom payment method type.\n"
maxLength: 30
type: string
representer:
description: |
This flag determines whether this field will be used for identifying this payment method in the Zuora UI. The field will be shown in the Payment Method field in the UI.
This field cannot be `null` or empty.
Notes:
- In one custom payment method type, set `representer` to `true` for at least one field .
- In one custom payment method type, you can set `representer` to `true` for multiple fields.
type: boolean
required:
description: |
Specify whether this field is required.
This field cannot be `null` or empty.
This field cannot be updated after the creation of the custom payment method type.
type: boolean
type:
description: |
The type of this field.
For the `date` type, ISO_LOCAL_DATE format is supported, such as `2011-12-03`. The timezone is not expected for the `date` type. For example, `2011-12-03+01:00` will be rejected.
For the `datetime` type, only ISO_OFFSET_DATE_TIME format is supported, such as `2011-12-03T10:15:30+01:00`. Timezone must be included. A string like `2011-12-03T10:15:30` or `2011-12-03T10:15:30+01:00[Europe/Paris]` will be rejected.
If you need to define a `date` type with timezone or a `datetime` type without timezone, use the `string` type for now.
This field cannot be `null` or empty.
This field cannot be updated after the creation of the custom payment method type.
enum:
- string
- date
- datetime
- number
- boolean
type: string
visible:
description: "Specify `true` if this field can be retrieved through GET API\
\ or UI for displaying payment method details.\n\nThis field cannot be `null`\
\ or empty.\n\nNotes: \n - If `visible` is set to `false`, you can still\
\ specify the value of this field in the UI and POST API when creating the\
\ payment method.\n - If `visible` is set to `false` and `editable` is\
\ set to `true`, this field is not accessible through GET API or UI for\
\ displaying details, but you can still see it and edit the value in the\
\ UI and PUT API when updating this payment method.\n"
type: boolean
title: fields
OpenPaymentMethodTypeResponseFields:
properties:
checksum:
description: |
The checksum value of a payment method is used to identify if this payment method is the same as another one, or if this payment method is altered to another new payment method.
For example, if you select the credit card number and expiration date as the checksum fields for the CreditCard payment method type, when you modified the expiration date, Zuora considers this payment method as a different payment method compared to the original one.
type: boolean
defaultValue:
description: 'The default value of the field.
'
type: string
description:
description: 'An explanation of this field.
'
type: string
editable:
description: |
Specify `true` if this field can be updated through PUT API or UI.
Note: If `editable` is set to `false`, you can specify the value of this field in the UI and POST API when creating a payment method. However, after you created the payment method, you cannot edit this field through PUT API or UI.
type: boolean
index:
description: 'The order of the field in this type, starting from 1.
'
type: integer
label:
description: 'The label that is used to refer to this field in the Zuora UI.
'
type: string
maxLength:
description: 'A maximum length limitation of the field value.
'
type: integer
minLength:
description: 'A minimal length limitation of the field value.
'
type: integer
name:
description: 'The API name of this field. It must be uinique.
'
type: string
representer:
description: 'This flag determines whether this field will be used for identifying
this payment method in the Zuora UI. The field will be shown in the Payment
Method field in the UI.
'
type: boolean
required:
description: 'Specify whether this field is required.
'
type: boolean
type:
description: 'The type of this field.
'
enum:
- string
- date
- datetime
- number
- boolean
type: string
visible:
description: "Specify `true` if this field can be retrieved through GET API\
\ or UI for displaying payment method details.\n\nNotes: \n - If `visible`\
\ is set to `false`, you can still specify the value of this field in the\
\ UI and POST API when creating the payment method.\n - If `visible` is\
\ set to `false` and `editable` is set to `true`, this field is not accessible\
\ through GET API or UI for displaying details, but you can still see it\
\ and edit the value in the UI and PUT API when updating this payment method.\n"
type: boolean
title: fields
Options:
description: Invoice or Payment.
properties:
billingTargetDate:
description: Date through which to calculate charges if an invoice is generated.
See [What is a Target Date?](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/G_Bill_Runs/Creating_Bill_Runs#What_is_a_Target_Date.3F).
format: date
type: string
collectPayment:
description: Indicates if the current request needs to collect payments. This
value can not be 'true' when 'runBilling' flag is 'false'.
type: boolean
maxSubscriptionsPerAccount:
type: number
runBilling:
description: Indicates if the current request needs to generate an invoice.
The invoice will be generated against all subscriptions included in this
order.
type: boolean
type: object
Order:
description: Represents the order information that will be returned in the GET
call.
properties:
category:
default: NewSales
description: 'Category of the order to indicate a product sale or return.
Default value is `NewSales`.
'
enum:
- NewSales
- Return
type: string
createdBy:
description: The ID of the user who created this order.
type: string
createdDate:
description: The time that the order gets created in the system, in the `YYYY-MM-DD
HH:MM:SS` format.
format: datetime
type: string
currency:
description: Currency code.
type: string
customFields:
$ref: '#/definitions/OrderObjectCustomFields'
description:
description: A description of the order.
maxLength: 500
type: string
existingAccountNumber:
description: The account number that this order has been created under. This
is also the invoice owner of the subscriptions included in this order.
type: string
invoiceScheduleId:
description: |
The ID of the invoice schedule associated with the order.
**Note**: This field is available only if you have the Billing Schedule feature in the **Early Adopter** phase enabled.
type: integer
orderDate:
description: The date when the order is signed. All the order actions under
this order will use this order date as the contract effective date if no
additinal contractEffectiveDate is provided.
format: date
type: string
orderLineItems:
description: "[Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ are non subscription based items created by an Order, representing transactional\
\ charges such as one-time fees, physical goods, or professional service\
\ charges that are not sold as subscription services. \n\nWith the Order\
\ Line Items feature enabled, you can now launch non-subscription and unified\
\ monetization business models in Zuora, in addition to subscription business\
\ models. \n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to\
\ enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n"
items:
$ref: '#/definitions/OrderLineItemRetrieveOrder'
type: array
orderNumber:
description: The order number of the order.
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
reasonCode:
description: 'Values of reason code configured in **Billing Settings** > **Configure
Reason Codes** through Zuora UI. Indicates the reason when a return order
line item occurs.
'
maxLength: 255
type: string
schedulingOptions:
description: |
Information of scheduled order.
**Note**: The Scheduled Orders feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access features from the self-service interface, see Enable billing features by yourself .
properties:
scheduledDate:
description: 'The date for the order scheduled.
'
format: date
type: string
scheduledDatePolicy:
description: Date policy of the scheduled order.
enum:
- SpecificDate
type: string
type: object
status:
description: |
The status of the order. If the order contains any `Pending Activation` or `Pending Acceptance` subscription, the order status will be `Pending`; If the order is in draft status, the order status will be `Draft`; otherwise the order status is `Completed`.
The available order statuses are as follow:
- `Draft`: The order is in draft status.
- `Pending`: The order is in pending status.
- `Completed`: The order is in completed status.
- `Cancelled`: The draft or scheduled order is cancelled.
- `Scheduled`: The order is in scheduled status and it is only valid if the Scheduled Orders feature is enabled.
- `Executing`: The scheduled order is executed by a scheduler and it is only valid if the Scheduled Orders feature is enabled.
- `Failed`: The scheduled order has failed.
**Note**: The Scheduled Orders feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access features from the self-service interface, see Enable billing features by yourself .
enum:
- Draft
- Pending
- Completed
- Cancelled
- Scheduled
- Executing
- Failed
type: string
subscriptions:
description: Represents a processed subscription, including the origin request
(order actions) that create this version of subscription and the processing
result (order metrics). The reference part in the request will be overridden
with the info in the new subscription version.
items:
properties:
baseVersion:
description: The base version of the subscription.
type: integer
customFields:
$ref: '#/definitions/SubscriptionObjectCustomFields'
externallyManagedBy:
description: 'An enum field on the Subscription object to indicate the
name of a third-party store. This field is used to represent subscriptions
created through third-party stores.
'
enum:
- Amazon
- Apple
- Google
- Roku
type: string
newVersion:
description: The latest version of the subscription.
type: integer
orderActions:
items:
$ref: '#/definitions/OrderAction'
type: array
quote:
$ref: '#/definitions/QuoteObjectFields'
ramp:
description: |
**Note**: This field is only available if you have the Ramps feature enabled. The [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders) feature must be enabled before you can access the [Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics) feature. The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information coming October 2020.
The ramp definition.
items:
$ref: '#/definitions/RampResponse'
type: object
sequence:
description: The sequence number of a certain subscription processed
by the order.
type: integer
subscriptionNumber:
description: The new subscription number for a new subscription created,
or the existing subscription number. Unlike the order request, the
subscription number here always has a value.
type: string
subscriptionOwnerAccountNumber:
description: The number of the account that owns the subscription.
type: string
type: object
type: array
updatedBy:
description: The ID of the user who updated this order.
type: string
updatedDate:
description: The time that the order gets updated in the system(for example,
an order description update), in the `YYYY-MM-DD HH:MM:SS` format.
format: datetime
type: string
type: object
OrderAction:
description: Represents the processed order action.
properties:
addProduct:
allOf:
- $ref: '#/definitions/RatePlanOverride'
- $ref: '#/definitions/OfferOverride'
description: "Either a rate plan or offer can be added to a subscription through\
\ one order action, but not both; otherwise, an error occurs.\n - For a\
\ rate plan, the following fields are available:\n - `chargeOverrides`\n\
\ - `clearingExistingFeatures`\n - `customFields`\n - `externallyManagedPlanId`\n\
\ - `newRatePlanId` \n - `productRatePlanId`\n - `subscriptionProductFeatures`\n\
\ - `uniqueToken`\n - For an offer, the following fields are available:\n\
\ - `customFields`\n - `newSubscriptionOfferId`\n - `newSubscriptionOfferNumber`\n\
\ - `productOfferId`\n - `productOfferNumber`\n - `ratePlanOverrides`\n\
\ - `subscriptionOfferUniqueToken`\n"
cancelSubscription:
$ref: '#/definitions/CancelSubscription'
changePlan:
$ref: '#/definitions/ChangePlan'
changeReason:
description: 'The change reason set for an order action when an order is created.
'
type: string
createSubscription:
$ref: '#/definitions/CreateSubscription'
customFields:
$ref: '#/definitions/OrderActionObjectCustomFields'
id:
description: The Id of the order action processed in the order.
type: string
orderItems:
description: "The `orderItems` nested field is only available to existing\
\ Orders customers who already have access to the field.\n\n**Note:** The\
\ following Order Metrics have been deprecated. Any new customers who onboard\
\ on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization)\
\ will not get these metrics.\n* The Order ELP and Order Item objects \n\
* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR,\
\ Order TCB, Order TCV, and Order Quantity objects\n\nExisting Orders customers\
\ who have these metrics will continue to be supported.\n"
items:
$ref: '#/definitions/OrderItem'
type: array
orderMetrics:
description: "The container for order metrics.\n\n**Note:** The following\
\ Order Metrics have been deprecated. Any new customers who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization)\
\ will not get these metrics.\n* The Order ELP and Order Item objects \n\
* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR,\
\ Order TCB, Order TCV, and Order Quantity objects\n\nExisting Orders customers\
\ who have these metrics will continue to be supported.\n\n**Note:** As\
\ of Zuora Billing Release 306, Zuora has upgraded the methodologies for\
\ calculating metrics in [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders).\
\ The new methodologies are reflected in the following Order Delta Metrics\
\ objects. \n* [Order Delta Mrr](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Mrr)\n\
* [Order Delta Tcv](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcv)\n\
* [Order Delta Tcb](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcb)\n\
\nIt is recommended that all customers use the new [Order Delta Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/AA_Overview_of_Order_Delta_Metrics).\
\ If you are an existing [Order Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders/Key_Metrics_for_Orders)\
\ customer and want to migrate to Order Delta Metrics, submit a request\
\ at [Zuora Global Support](https://support.zuora.com/).\n\nWhereas new\
\ customers, and existing customers not currently on [Order Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders/Key_Metrics_for_Orders),\
\ will no longer have access to Order Metrics, existing customers currently\
\ using Order Metrics will continue to be supported.\n"
items:
$ref: '#/definitions/orderMetric'
type: array
ownerTransfer:
$ref: '#/definitions/OwnerTransfer'
removeProduct:
$ref: '#/definitions/RemoveProduct'
renewSubscription:
$ref: '#/definitions/RenewSubscription'
resume:
$ref: '#/definitions/GetOrderResume'
sequence:
description: The sequence of the order actions processed in the order.
type: integer
suspend:
$ref: '#/definitions/GetOrderSuspend'
termsAndConditions:
$ref: '#/definitions/TermsAndConditions'
triggerDates:
description: "Container for the contract effective, service activation, and\
\ customer acceptance dates of the order action. \n\nIf [Zuora is configured\
\ to require service activation](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Service_Activation_of_Orders.3F)\
\ and the `ServiceActivation` field is not set for a `CreateSubscription`\
\ order action, a `Pending` order and a `Pending Activation` subscription\
\ are created.\n\nIf [Zuora is configured to require customer acceptance](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Customer_Acceptance_of_Orders.3F)\
\ and the `CustomerAcceptance` field is not set for a `CreateSubscription`\
\ order action, a `Pending` order and a `Pending Acceptance` subscription\
\ are created. At the same time, if the service activation date field is\
\ also required and not set, a `Pending` order and a `Pending Activation`\
\ subscription are created instead.\n\nIf [Zuora is configured to require\
\ service activation](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Service_Activation_of_Orders.3F)\
\ and the `ServiceActivation` field is not set for either of the following\
\ order actions, a `Pending` order is created. The subscription status is\
\ not impacted. **Note:** This feature is in **Limited Availability**. If\
\ you want to have access to the feature, submit a request at [Zuora Global\
\ Support](http://support.zuora.com/).\n * AddProduct\n * UpdateProduct\n\
\ * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n\nIf [Zuora\
\ is configured to require customer acceptance](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Customer_Acceptance_of_Orders.3F)\
\ and the `CustomerAcceptance` field is not set for either of the following\
\ order actions, a `Pending` order is created. The subscription status is\
\ not impacted. **Note:** This feature is in **Limited Availability**. If\
\ you want to have access to the feature, submit a request at [Zuora Global\
\ Support](http://support.zuora.com/).\n * AddProduct\n * UpdateProduct\n\
\ * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n"
items:
$ref: '#/definitions/TriggerDate'
type: array
type:
description: |
Type of the order action.
**Note**: The change plan type of order action is currently not supported for Billing - Revenue Integration. When Billing - Revenue Integration is enabled, the change plan type of order action will no longer be applicable in Zuora Billing.
enum:
- CreateSubscription
- TermsAndConditions
- AddProduct
- UpdateProduct
- RemoveProduct
- RenewSubscription
- CancelSubscription
- OwnerTransfer
- Suspend
- Resume
- ChangePlan
type: string
updateProduct:
allOf:
- $ref: '#/definitions/RatePlanUpdate'
- $ref: '#/definitions/OfferUpdate'
description: |
Either a rate plan or offer can be updated in a subscription through one order action, but not both; otherwise, an error occurs.
- For a rate plan, the following fields are available:
- `chargeUpdates`
- `clearingExistingFeatures`
- `customFields`
- `externallyManagedPlanId`
- `newRatePlanId`
- `ratePlanId`
- `specificUpdateDate`
- `subscriptionProductFeatures`
- `uniqueToken`
- For an offer, the following fields are available:
- `customFields`
- `ratePlanUpdates`
- `subscriptionOfferId`
- `subscriptionOfferNumber`
- `subscriptionOfferUniqueToken`
type: object
OrderActionCommon:
properties:
changeReason:
description: 'The change reason set for an order action when the order action
is updated.
'
type: string
customFields:
$ref: '#/definitions/OrderActionCustomFields'
title: OrderAction
type: object
OrderActionCustomFields:
additionalProperties:
description: 'Custom fields of the Order Action object. The name of each custom
field has the form *customField*__c
. Custom field names are case
sensitive. See Manage Custom Fields for more information.
'
description: 'Container for custom fields of an Order Action object.
'
title: OrderActionCustomFields
type: object
OrderActionObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Order Action object. The name of each custom
field has the form *customField*__c
. Custom field names are case
sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of an Order Action object.
'
title: orderActionFieldsCustom
type: object
OrderActionPut:
allOf:
- $ref: '#/definitions/OrderActionCommon'
OrderActionRatePlanAmendment:
description: 'The amendment that is related to the subscription rate plan.
'
properties:
code:
description: 'The amendment code.
'
type: string
contractEffectiveDate:
description: 'The date when the amendment becomes effective for billing purposes,
as `yyyy-mm-dd`.
'
format: date
type: string
createdBy:
description: 'The ID of the user who created this amendment.
'
type: string
createdDate:
description: The time that the amendment gets created in the system, in the
`YYYY-MM-DD HH:MM:SS` format.
format: datetime
type: string
customerAcceptanceDate:
description: 'The date when the customer accepts the amendment changes to
the subscription, as `yyyy-mm-dd`.
'
format: date
type: string
description:
description: 'Description of the amendment.
'
type: string
effectiveDate:
description: "The date when the amendment changes take effective. \n"
format: date
type: string
id:
description: 'The amendment ID.
'
type: string
name:
description: 'The name of the amendment.
'
type: string
serviceActivationDate:
description: 'The date when service is activated, as `yyyy-mm-dd`.
'
format: date
type: string
type:
description: |
Type of the amendment.
Possible values are:
- NewProduct
- RemoveProduct
- UpdateProduct
type: string
updatedBy:
description: The ID of the user who updated this amendment.
type: string
updatedDate:
description: The time that the amendment gets updated in the system, in the
`YYYY-MM-DD HH:MM:SS` format.
format: datetime
type: string
type: object
OrderActionRatePlanBillingUpdate:
properties:
billingPeriodAlignment:
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
type: string
type: object
OrderActionRatePlanChargeModelDataOverride:
description: |
Container for charge model configuration data.
**Note**: This field is only available if you have the High Water Mark, Pre-Rated Pricing, or Multi-Attribute Pricing charge models enabled. The charge models are available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
properties:
chargeModelConfiguration:
properties:
customFieldPerUnitRate:
description: |
The custom field that carries the per-unit rate for each usage record. For example, `perUnitAmount__c`.
This field is only available for the usage-based charges that use the Pre-Rated Per Unit Pricing charge model. The charge model is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
type: string
customFieldTotalAmount:
description: |
The custom field that carries the total amount to charge for a usage record. For example, `totalAmount__c`.
This field is only available for the usage-based charges that use the Pre-Rated Pricing charge model. The charge model is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
type: string
formula:
description: |
The pricing formula to calculate actual rating amount for each usage record.
This field is only available for the usage-based charges that use the Multi-Attribute Pricing charge model. The charge model is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
type: string
type: object
tiers:
description: |
List of cumulative pricing tiers in the charge.
**Note**: When you override tiers of the charge with a High Water Mark Pricing charge model, you have to provide all of the tiers, including the ones you do not want to change. The new tiers will completely override the previous ones. The High Water Mark Pricing charge models are available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
items:
$ref: '#/definitions/OrderActionRatePlanChargeTier'
type: array
title: chargeModelData
type: object
OrderActionRatePlanChargeOverride:
description: 'Charge associated with a rate plan.
'
properties:
billing:
description: 'Billing information about the charge.
'
properties:
billCycleDay:
description: 'Day of the month that each billing period begins on. Only
applicable if the value of the `billCycleType` field is `SpecificDayofMonth`.
'
maximum: 31
minimum: 0
type: integer
billCycleType:
description: |
Specifies how Zuora determines the day that each billing period begins on.
* `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.
* `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.
* `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.
* `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.
* `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.
enum:
- DefaultFromCustomer
- SpecificDayofMonth
- SubscriptionStartDay
- ChargeTriggerDay
- SpecificDayofWeek
type: string
billingPeriod:
description: |
Billing frequency of the charge. The value of this field controls the duration of each billing period.
If the value of this field is `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.
enum:
- Month
- Quarter
- Semi_Annual
- Annual
- Eighteen_Months
- Two_Years
- Three_Years
- Five_Years
- Specific_Months
- Subscription_Term
- Week
- Specific_Weeks
type: string
billingPeriodAlignment:
description: |
Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.
* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.
* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.
* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.
See the `billCycleType` field for information about how Zuora determines the billing day.
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
type: string
billingTiming:
description: 'Specifies whether to invoice for a billing period on the
first day of the billing period (billing in advance) or the first day
of the next billing period (billing in arrears).
'
enum:
- IN_ADVANCE
- IN_ARREARS
type: string
specificBillingPeriod:
description: 'Duration of each billing period in months or weeks, depending
on the value of the `billingPeriod` field. Only applicable if the value
of the `billingPeriod` field is `Specific_Months` or `Specific_Weeks`.
'
type: integer
weeklyBillCycleDay:
description: 'Day of the week that each billing period begins on. Only
applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.
'
enum:
- Sunday
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
type: string
type: object
chargeNumber:
description: |
Charge number of the charge. For example, C-00000307.
If you do not set this field, Zuora will generate the charge number.
maxLength: 50
type: string
customFields:
$ref: '#/definitions/OrderActionRatePlanRatePlanChargeObjectCustomFields'
description:
description: 'Description of the charge.
'
maxLength: 500
type: string
endDate:
$ref: '#/definitions/OrderActionRatePlanEndConditions'
pricing:
description: 'Pricing information about the charge.
'
properties:
chargeModelData:
$ref: '#/definitions/OrderActionRatePlanChargeModelDataOverride'
discount:
$ref: '#/definitions/OrderActionRatePlanDiscountPricingOverride'
oneTimeFlatFee:
$ref: '#/definitions/OrderActionRatePlanOneTimeFlatFeePricingOverride'
oneTimePerUnit:
$ref: '#/definitions/OrderActionRatePlanOneTimePerUnitPricingOverride'
oneTimeTiered:
$ref: '#/definitions/OrderActionRatePlanOneTimeTieredPricingOverride'
oneTimeVolume:
$ref: '#/definitions/OrderActionRatePlanOneTimeVolumePricingOverride'
recurringDelivery:
$ref: '#/definitions/OrderActionRatePlanRecurringDeliveryPricingOverride'
recurringFlatFee:
$ref: '#/definitions/OrderActionRatePlanRecurringFlatFeePricingOverride'
recurringPerUnit:
$ref: '#/definitions/OrderActionRatePlanRecurringPerUnitPricingOverride'
recurringTiered:
$ref: '#/definitions/OrderActionRatePlanRecurringTieredPricingOverride'
recurringVolume:
$ref: '#/definitions/OrderActionRatePlanRecurringVolumePricingOverride'
usageFlatFee:
$ref: '#/definitions/OrderActionRatePlanUsageFlatFeePricingOverride'
usageOverage:
$ref: '#/definitions/OrderActionRatePlanUsageOveragePricingOverride'
usagePerUnit:
$ref: '#/definitions/OrderActionRatePlanUsagePerUnitPricingOverride'
usageTiered:
$ref: '#/definitions/OrderActionRatePlanUsageTieredPricingOverride'
usageTieredWithOverage:
$ref: '#/definitions/OrderActionRatePlanUsageTieredWithOveragePricingOverride'
usageVolume:
$ref: '#/definitions/OrderActionRatePlanUsageVolumePricingOverride'
type: object
productRatePlanChargeId:
description: 'Internal identifier of the product rate plan charge that the
charge is based on.
'
type: string
revRecCode:
description: 'Revenue Recognition Code
'
maxLength: 70
type: string
revRecTriggerCondition:
description: |
Specifies the revenue recognition trigger condition.
* `Contract Effective Date`
* `Service Activation Date`
* `Customer Acceptance Date`
enum:
- Contract Effective Date
- Service Activation Date
- Customer Acceptance Date
type: string
revenueRecognitionRuleName:
description: |
Specifies the revenue recognition rule.
* `Recognize upon invoicing`
* `Recognize daily over time`
enum:
- Recognize upon invoicing
- Recognize daily over time
type: string
startDate:
$ref: '#/definitions/OrderActionRatePlanTriggerParams'
uniqueToken:
description: |
Unique identifier for the charge. This identifier enables you to refer to the charge before the charge has an internal identifier in Zuora.
For instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the charge. Then when you update the product, you can use the same unique identifier to specify which charge to modify.
maxLength: 50
type: string
required:
- productRatePlanChargeId
title: charge
type: object
OrderActionRatePlanChargeTier:
properties:
endingUnit:
description: 'Limit on the number of units for which the tier is effective.
'
type: number
price:
description: 'Price or per-unit price of the tier, depending on the value
of the `priceFormat` field.
'
type: number
priceFormat:
description: 'Specifies whether the tier has a fixed price or a per-unit price.
'
enum:
- FlatFee
- PerUnit
type: string
startingUnit:
description: 'Number of units at which the tier becomes effective.
'
type: number
tier:
description: 'Index of the tier in the charge.
'
minimum: 1
type: integer
required:
- tier
- startingUnit
- price
- priceFormat
title: chargeTier
type: object
OrderActionRatePlanChargeUpdate:
description: The JSON object containing the information for a charge update in
the 'UpdateProduct' type order action.
properties:
billing:
allOf:
- $ref: '#/definitions/OrderActionRatePlanBillingUpdate'
description: 'Billing information about the charge.
'
chargeNumber:
description: 'Read only. Identifies the charge to be updated.
'
type: string
customFields:
$ref: '#/definitions/OrderActionRatePlanRatePlanChargeObjectCustomFields'
description:
description: 'Description of the charge.
'
type: string
effectiveDate:
$ref: '#/definitions/OrderActionRatePlanTriggerParams'
pricing:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPricingUpdate'
description: 'Pricing information about the charge.
'
uniqueToken:
description: 'A unique string to represent the rate plan charge in the order.
The unique token is used to perform multiple actions against a newly added
rate plan. For example, if you want to add and update a product in the same
order, you would assign a unique token to the product rate plan when added
and use that token in future order actions.
'
type: string
type: object
OrderActionRatePlanDiscountPricingOverride:
description: 'Pricing information about a discount charge.
'
properties:
applyDiscountTo:
description: 'Specifies which type of charge the discount charge applies to.
'
enum:
- ONETIME
- RECURRING
- USAGE
- ONETIMERECURRING
- ONETIMEUSAGE
- RECURRINGUSAGE
- ONETIMERECURRINGUSAGE
type: string
discountAmount:
description: 'Only applicable if the discount charge is a fixed-amount discount.
'
type: number
discountLevel:
description: 'Application scope of the discount charge. For example, if the
value of this field is `subscription` and the value of the `applyDiscountTo`
field is `RECURRING`, the discount charge applies to all recurring charges
in the same subscription as the discount charge.
'
enum:
- rateplan
- subscription
- account
type: string
discountPercentage:
description: 'Only applicable if the discount charge is a percentage discount.
'
type: number
priceChangeOption:
description: 'Specifies how Zuora changes the price of the charge each time
the subscription renews.
'
enum:
- NoChange
- UseLatestProductCatalogPricing
type: string
title: discount
type: object
OrderActionRatePlanDiscountPricingUpdate:
properties:
applyDiscountTo:
description: 'Specifies which type of charge the discount charge applies to.
'
enum:
- ONETIME
- RECURRING
- USAGE
- ONETIMERECURRING
- ONETIMEUSAGE
- RECURRINGUSAGE
- ONETIMERECURRINGUSAGE
type: string
discountLevel:
description: 'Application scope of the discount charge. For example, if the
value of this field is `subscription` and the value of the `applyDiscountTo`
field is `RECURRING`, the discount charge applies to all recurring charges
in the same subscription as the discount charge.
'
enum:
- rateplan
- subscription
- account
type: string
discountPercentage:
description: 'The amount of the discount as a percentage. This field is only
used for percentage discounts.
'
type: number
priceChangeOption:
description: 'Specifies how Zuora changes the price of the charge each time
the subscription renews.
'
enum:
- NoChange
- UseLatestProductCatalogPricing
type: string
type: object
OrderActionRatePlanEndConditions:
description: 'Specifies when a charge becomes inactive.
'
properties:
endDateCondition:
description: |
Condition for the charge to become inactive.
If the value of this field is `Fixed_Period`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.
If the value of this field is `Specific_End_Date`, use the `specificEndDate` field to specify the date when then charge becomes inactive.
enum:
- Subscription_End
- Fixed_Period
- Specific_End_Date
type: string
specificEndDate:
description: 'Date in YYYY-MM-DD format. Only applicable if the value of the
`endDateCondition` field is `Specific_End_Date`.
'
format: date
type: string
upToPeriods:
description: 'Duration of the charge in billing periods, days, weeks, months,
or years, depending on the value of the `upToPeriodsType` field. Only applicable
if the value of the `endDateCondition` field is `Fixed_Period`.
'
type: integer
upToPeriodsType:
description: 'Unit of time that the charge duration is measured in. Only applicable
if the value of the `endDateCondition` field is `Fixed_Period`.
'
enum:
- Billing_Periods
- Days
- Weeks
- Months
- Years
type: string
title: endDate
type: object
OrderActionRatePlanOneTimeFlatFeePricingOverride:
description: 'Pricing information about a one-time charge that uses the "flat
fee" charge model. In this charge model, the charge has a fixed price.
'
properties:
listPrice:
description: 'Price of the charge.
'
type: number
required:
- listPrice
title: oneTimeFlatFee
type: object
OrderActionRatePlanOneTimePerUnitPricingOverride:
description: 'Pricing information about a one-time charge that uses the "per unit"
charge model. In this charge model, the charge has a fixed price per unit purchased.
'
properties:
listPrice:
description: 'Per-unit price of the charge.
'
type: number
quantity:
description: 'Number of units purchased.
'
minimum: 0
type: number
title: oneTimePerUnit
type: object
OrderActionRatePlanOneTimeTieredPricingOverride:
description: 'Pricing information about a one-time charge that uses the "tiered
pricing" charge model. In this charge model, the charge has cumulative pricing
tiers that become effective as units are purchased.
'
properties:
quantity:
description: 'Number of units purchased.
'
minimum: 0
type: number
tiers:
description: 'List of cumulative pricing tiers in the charge.
'
items:
$ref: '#/definitions/OrderActionRatePlanChargeTier'
type: array
title: oneTimeTiered
type: object
OrderActionRatePlanOneTimeVolumePricingOverride:
description: 'Pricing information about a one-time charge that uses the "volume
pricing" charge model. In this charge model, the charge has a variable price
per unit, depending on how many units are purchased.
'
properties:
quantity:
description: 'Number of units purchased.
'
minimum: 0
type: number
tiers:
description: 'List of variable pricing tiers in the charge.
'
items:
$ref: '#/definitions/OrderActionRatePlanChargeTier'
type: array
title: oneTimeVolume
type: object
OrderActionRatePlanOrder:
description: 'The order that is related to the subscription rate plan.
'
properties:
id:
description: The order ID.
type: string
orderActions:
items:
$ref: '#/definitions/OrderActionRatePlanOrderAction'
type: array
orderNumber:
description: The order number of the order.
type: string
type: object
OrderActionRatePlanOrderAction:
description: Represents the processed order action.
properties:
addProduct:
$ref: '#/definitions/OrderActionRatePlanRatePlanOverride'
customFields:
$ref: '#/definitions/OrderActionRatePlanOrderActionObjectCustomFields'
id:
description: The Id of the order action processed in the order.
type: string
removeProduct:
$ref: '#/definitions/OrderActionRatePlanRemoveProduct'
type:
description: Type of the order action.
enum:
- AddProduct
- UpdateProduct
- RemoveProduct
type: string
updateProduct:
$ref: '#/definitions/OrderActionRatePlanRatePlanUpdate'
type: object
OrderActionRatePlanOrderActionObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Order Action object. The name of each custom
field has the form *customField*__c
. Custom field names are case
sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of an Order Action object.
'
title: orderActionFieldsCustom
type: object
OrderActionRatePlanPriceChangeParams:
properties:
priceChangeOption:
description: |
Specifies how Zuora changes the price of the charge each time the subscription renews.
If the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.
enum:
- NoChange
- SpecificPercentageValue
- UseLatestProductCatalogPricing
type: string
priceIncreasePercentage:
description: 'Specifies the percentage by which the price of the charge should
change each time the subscription renews. Only applicable if the value of
the `priceChangeOption` field is `SpecificPercentageValue`.
'
minimum: -100
type: number
type: object
OrderActionRatePlanPricingUpdate:
properties:
chargeModelData:
allOf:
- $ref: '#/definitions/OrderActionRatePlanChargeModelDataOverride'
description: 'Container for charge model configuration data.
'
discount:
allOf:
- $ref: '#/definitions/OrderActionRatePlanDiscountPricingUpdate'
description: 'Pricing information about a discount charge.
'
recurringDelivery:
allOf:
- $ref: '#/definitions/OrderActionRatePlanRecurringDeliveryPricingUpdate'
description: |
Pricing information about a recurring charge that uses the Delivery Pricing charge model. In this charge model, the charge has a fixed price. This field is only available if you have the Delivery Pricing charge model enabled.
**Note**: The Delivery Pricing charge model is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. If you want to join this early adopter program, submit a request at Zuora Global Support .
recurringFlatFee:
allOf:
- $ref: '#/definitions/OrderActionRatePlanRecurringFlatFeePricingUpdate'
description: 'Pricing information about a recurring charge that uses the "flat
fee" charge model. In this charge model, the charge has a fixed price.
'
recurringPerUnit:
allOf:
- $ref: '#/definitions/OrderActionRatePlanRecurringPerUnitPricingUpdate'
description: 'Pricing information about a recurring charge that uses the "per
unit" charge model. In this charge model, the charge has a fixed price per
unit purchased.
'
recurringTiered:
allOf:
- $ref: '#/definitions/OrderActionRatePlanRecurringTieredPricingUpdate'
description: 'Pricing information about a recurring charge that uses the "tiered
pricing" charge model. In this charge model, the charge has cumulative pricing
tiers that become effective as units are purchased.
'
recurringVolume:
allOf:
- $ref: '#/definitions/OrderActionRatePlanRecurringVolumePricingUpdate'
description: 'Pricing information about a recurring charge that uses the "volume
pricing" charge model. In this charge model, the charge has a variable price
per unit, depending on how many units are purchased.
'
usageFlatFee:
allOf:
- $ref: '#/definitions/OrderActionRatePlanUsageFlatFeePricingUpdate'
description: 'Pricing information about a usage charge that uses the "flat
fee" charge model. In this charge model, the charge has a fixed price.
'
usageOverage:
allOf:
- $ref: '#/definitions/OrderActionRatePlanUsageOveragePricingUpdate'
description: 'Pricing information about a usage charge that uses the "overage"
charge model. In this charge model, the charge has an allowance of free
units and a fixed price per additional unit consumed.
'
usagePerUnit:
allOf:
- $ref: '#/definitions/OrderActionRatePlanUsagePerUnitPricingUpdate'
description: 'Pricing information about a usage charge that uses the "per
unit" charge model. In this charge model, the charge has a fixed price per
unit consumed.
'
usageTiered:
allOf:
- $ref: '#/definitions/OrderActionRatePlanUsageTieredPricingUpdate'
description: 'Pricing information about a usage charge that uses the "tiered
pricing" charge model. In this charge model, the charge has cumulative pricing
tiers that become effective as units are consumed.
'
usageTieredWithOverage:
allOf:
- $ref: '#/definitions/OrderActionRatePlanUsageTieredWithOveragePricingUpdate'
description: 'Pricing information about a usage charge that uses the "tiered
with overage" charge model. In this charge model, the charge has cumulative
pricing tiers that become effective as units are consumed. The charge also
has a fixed price per unit consumed beyond the limit of the final tier.
'
usageVolume:
allOf:
- $ref: '#/definitions/OrderActionRatePlanUsageVolumePricingUpdate'
description: 'Pricing information about a usage charge that uses the "volume
pricing" charge model. In this charge model, the charge has a variable price
per unit, depending on how many units are consumed.
'
type: object
OrderActionRatePlanRatePlanChargeObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Rate Plan Charge object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Rate Plan Charge object.
'
title: ratePlanChargeFieldsCustom
type: object
OrderActionRatePlanRatePlanObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Rate Plan object. The name of each custom
field has the form *customField*__c
. Custom field names are case
sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Rate Plan object.
'
title: ratePlanFieldsCustom
type: object
OrderActionRatePlanRatePlanOverride:
description: 'Rate plan associated with a subscription.
'
properties:
chargeOverrides:
description: 'List of charges associated with the rate plan.
'
items:
$ref: '#/definitions/OrderActionRatePlanChargeOverride'
type: array
customFields:
$ref: '#/definitions/OrderActionRatePlanRatePlanObjectCustomFields'
newRatePlanId:
description: 'Internal identifier of the rate plan.
'
type: string
productRatePlanId:
description: 'Internal identifier of the product rate plan that the rate plan
is based on.
'
type: string
uniqueToken:
description: |
Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.
For instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.
maxLength: 50
type: string
required:
- productRatePlanId
title: ratePlan
type: object
OrderActionRatePlanRatePlanUpdate:
description: 'Information about an order action of type `UpdateProduct`.
'
properties:
chargeUpdates:
items:
$ref: '#/definitions/OrderActionRatePlanChargeUpdate'
type: array
customFields:
$ref: '#/definitions/OrderActionRatePlanRatePlanObjectCustomFields'
newRatePlanId:
description: 'Internal identifier of the updated rate plan in the new subscription
version.
'
type: string
ratePlanId:
description: 'Internal identifier of the rate plan that was updated.
'
type: string
specificUpdateDate:
description: |2
The date when the Update Product order action takes effect. This field is only applicable if there is already a future-dated Update Product order action on the subscription. The format of the date is yyyy-mm-dd.
See [Update a Product on Subscription with Future-dated Updates](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Update_a_Product_in_a_Subscription/Update_a_Product_on_Subscription_with_Future-dated_Updates) for more information about this feature.
format: date
type: string
uniqueToken:
description: 'A unique string to represent the rate plan charge in the order.
The unique token is used to perform multiple actions against a newly added
rate plan. For example, if you want to add and update a product in the same
order, you would assign a unique token to the product rate plan when added
and use that token in future order actions.
'
type: string
title: updateProduct
type: object
OrderActionRatePlanRecurringDeliveryPricingOverride:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
deliverySchedule:
$ref: '#/definitions/DeliveryScheduleParams'
listPrice:
description: 'Price of the charge in each recurring period.
'
type: number
type: object
description: |
Pricing information about a recurring charge that uses the Delivery Pricing charge model. In this charge model, the charge has a fixed price. This field is only available if you have the Delivery Pricing charge model enabled.
**Note**: The Delivery Pricing charge model is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. If you want to join this early adopter program, submit a request at Zuora Global Support .
title: recurringDelivery
OrderActionRatePlanRecurringDeliveryPricingUpdate:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
deliverySchedule:
$ref: '#/definitions/DeliveryScheduleParams'
listPrice:
type: number
type: object
OrderActionRatePlanRecurringFlatFeePricingOverride:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
listPrice:
description: 'Price of the charge in each recurring period.
'
type: number
listPriceBase:
description: 'Specifies the duration of each recurring period.
'
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
- Per_Specific_Months
type: string
specificListPriceBase:
description: 'The number of months for the list price base of the charge.
The value of this field is `null` if you do not set the value of the `listPriceBase`
field to `Per_Specific_Months`.
'
format: int32
maximum: 200
minimum: 1
type: integer
type: object
description: 'Pricing information about a recurring charge that uses the "flat
fee" charge model. In this charge model, the charge has a fixed price.
'
title: recurringFlatFee
OrderActionRatePlanRecurringFlatFeePricingUpdate:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
listPrice:
type: number
type: object
OrderActionRatePlanRecurringPerUnitPricingOverride:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
listPrice:
description: 'Per-unit price of the charge in each recurring period.
'
type: number
listPriceBase:
description: "Specifies the duration of each recurring period.\n\n**Note**:\
\ The `Per_Year` and `Per_Specific_Months` enum values are available only\
\ if you have the Annual List Price feature enabled. \
\ \n"
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
- Per_Specific_Months
type: string
quantity:
description: 'Number of units purchased.
'
minimum: 0
type: number
specificListPriceBase:
description: 'The number of months for the list price base of the charge.
This field is required if you set the value of the `listPriceBase` field
to `Per_Specific_Months`.
'
format: int32
maximum: 200
minimum: 1
type: integer
type: object
description: 'Pricing information about a recurring charge that uses the "per
unit" charge model. In this charge model, the charge has a fixed price per unit
purchased.
'
title: recurringPerUnit
OrderActionRatePlanRecurringPerUnitPricingUpdate:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
listPrice:
type: number
quantity:
minimum: 0
type: number
type: object
OrderActionRatePlanRecurringTieredPricingOverride:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
listPriceBase:
description: 'Specifies the duration of each recurring period.
'
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
- Per_Specific_Months
type: string
quantity:
description: 'Number of units purchased.
'
minimum: 0
type: number
specificListPriceBase:
description: 'The number of months for the list price base of the charge.
This field is required if you set the value of the `listPriceBase` field
to `Per_Specific_Months`.
'
format: int32
maximum: 200
minimum: 1
type: integer
tiers:
description: 'List of cumulative pricing tiers in the charge.
'
items:
$ref: '#/definitions/OrderActionRatePlanChargeTier'
type: array
type: object
description: 'Pricing information about a recurring charge that uses the "tiered
pricing" charge model. In this charge model, the charge has cumulative pricing
tiers that become effective as units are purchased.
'
title: recurringTiered
OrderActionRatePlanRecurringTieredPricingUpdate:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
quantity:
minimum: 0
type: number
tiers:
items:
$ref: '#/definitions/OrderActionRatePlanChargeTier'
type: array
type: object
OrderActionRatePlanRecurringVolumePricingOverride:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
listPriceBase:
description: |
Specifies the duration of each recurring period.
**Note**: The `Per_Year` and `Per_Specific_Months` enum values are available only if you have the Annual List Price feature enabled.
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
- Per_Specific_Months
type: string
quantity:
description: 'Number of units purchased.
'
minimum: 0
type: number
specificListPriceBase:
description: 'The number of months for the list price base of the charge.
This field is required if you set the value of the `listPriceBase` field
to `Per_Specific_Months`.
'
format: int32
maximum: 200
minimum: 1
type: integer
tiers:
description: 'List of variable pricing tiers in the charge.
'
items:
$ref: '#/definitions/OrderActionRatePlanChargeTier'
type: array
type: object
description: 'Pricing information about a recurring charge that uses the "volume
pricing" charge model. In this charge model, the charge has a variable price
per unit, depending on how many units are purchased.
'
title: recurringVolume
OrderActionRatePlanRecurringVolumePricingUpdate:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
quantity:
minimum: 0
type: number
tiers:
items:
$ref: '#/definitions/OrderActionRatePlanChargeTier'
type: array
type: object
OrderActionRatePlanRemoveProduct:
description: 'Information about an order action of type `RemoveProduct`.
'
properties:
ratePlanId:
description: 'Internal identifier of the rate plan to remove.
'
type: string
uniqueToken:
description: A unique string to represent the rate plan charge in the order.
The unique token is used to perform multiple actions against a newly added
rate plan. For example, if you want to add and update a product in the same
order, you would assign a unique token to the product rate plan when added
and use that token in future order actions.A unique string in the order
to represent the rate plan.
type: string
title: removeProduct
type: object
OrderActionRatePlanTriggerParams:
description: 'Specifies when a charge becomes active.
'
properties:
specificTriggerDate:
description: |
Date in YYYY-MM-DD format. Only applicable if the value of the `triggerEvent` field is `SpecificDate`.
While this field is applicable, if this field is not set, your `CreateSubscription` order action creates a `Pending` order and a `Pending Acceptance` subscription. If at the same time the service activation date is required and not set, a `Pending Activation` subscription is created.
While this field is applicable, if this field is not set, the following order actions create a `Pending` order but do not impact the subscription status. **Note**: This feature is in **Limited Availability**. If you want to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
* AddProduct
* UpdateProduct
* RemoveProduct
* RenewSubscription
* TermsAndConditions
format: date
type: string
triggerEvent:
description: |
Condition for the charge to become active.
If the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.
enum:
- ContractEffective
- ServiceActivation
- CustomerAcceptance
type: string
title: startDate
type: object
OrderActionRatePlanUsageFlatFeePricingOverride:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
listPrice:
description: 'Price of the charge.
'
type: number
type: object
description: 'Pricing information about a usage charge that uses the "flat fee"
charge model. In this charge model, the charge has a fixed price.
'
title: usageFlatFee
OrderActionRatePlanUsageFlatFeePricingUpdate:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
listPrice:
type: number
type: object
OrderActionRatePlanUsageOveragePricingOverride:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
includedUnits:
description: 'Number of free units that may be consumed.
'
minimum: 0
type: number
numberOfPeriods:
description: 'Number of periods that Zuora considers when calculating overage
charges with overage smoothing.
'
minimum: 1
type: integer
overagePrice:
description: 'Price per overage unit consumed.
'
type: number
overageUnusedUnitsCreditOption:
description: |
Specifies whether to credit the customer for unused units.
If the value of this field is `CreditBySpecificRate`, use the `unusedUnitsCreditRates` field to specify the rate at which to credit the customer for unused units.
enum:
- NoCredit
- CreditBySpecificRate
type: string
unusedUnitsCreditRates:
description: 'Per-unit rate at which to credit the customer for unused units.
Only applicable if the value of the `overageUnusedUnitsCreditOption` field
is `CreditBySpecificRate`.
'
type: number
type: object
description: 'Pricing information about a usage charge that uses the "overage"
charge model. In this charge model, the charge has an allowance of free units
and a fixed price per additional unit consumed.
'
title: usageOverage
OrderActionRatePlanUsageOveragePricingUpdate:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
includedUnits:
description: 'A certain quantity of units for free in the overage charge
model. It cannot be negative. It must be 0 and above. Decimals are allowed.
'
type: number
overagePrice:
type: number
type: object
OrderActionRatePlanUsagePerUnitPricingOverride:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
listPrice:
description: 'Per-unit price of the charge.
'
type: number
ratingGroup:
description: |
Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.
* ByBillingPeriod (default): The rating is based on all the usages in a billing period.
* ByUsageStartDate: The rating is based on all the usages on the same usage start date.
* ByUsageRecord: The rating is based on each usage record.
* ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.
enum:
- ByBillingPeriod
- ByUsageStartDate
- ByUsageRecord
- ByUsageUpload
type: string
type: object
description: 'Pricing information about a usage charge that uses the "per unit"
charge model. In this charge model, the charge has a fixed price per unit consumed.
'
title: usagePerUnit
OrderActionRatePlanUsagePerUnitPricingUpdate:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
listPrice:
type: number
type: object
OrderActionRatePlanUsageTieredPricingOverride:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
ratingGroup:
description: |
Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.
* ByBillingPeriod (default): The rating is based on all the usages in a billing period.
* ByUsageStartDate: The rating is based on all the usages on the same usage start date.
* ByUsageRecord: The rating is based on each usage record.
* ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.
enum:
- ByBillingPeriod
- ByUsageStartDate
- ByUsageRecord
- ByUsageUpload
type: string
tiers:
description: 'List of cumulative pricing tiers in the charge.
'
items:
$ref: '#/definitions/OrderActionRatePlanChargeTier'
type: array
type: object
description: 'Pricing information about a usage charge that uses the "tiered pricing"
charge model. In this charge model, the charge has cumulative pricing tiers
that become effective as units are consumed.
'
title: usageTiered
OrderActionRatePlanUsageTieredPricingUpdate:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
tiers:
items:
$ref: '#/definitions/OrderActionRatePlanChargeTier'
type: array
type: object
OrderActionRatePlanUsageTieredWithOveragePricingOverride:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
numberOfPeriods:
description: 'Number of periods that Zuora considers when calculating overage
charges with overage smoothing.
'
minimum: 1
type: integer
overagePrice:
description: 'Price per overage unit consumed.
'
type: number
overageUnusedUnitsCreditOption:
description: |
Specifies whether to credit the customer for unused units.
If the value of this field is `CreditBySpecificRate`, use the `unusedUnitsCreditRates` field to specify the rate at which to credit the customer for unused units.
enum:
- NoCredit
- CreditBySpecificRate
type: string
tiers:
description: 'List of cumulative pricing tiers in the charge.
'
items:
$ref: '#/definitions/OrderActionRatePlanChargeTier'
type: array
unusedUnitsCreditRates:
description: 'Per-unit rate at which to credit the customer for unused units.
Only applicable if the value of the `overageUnusedUnitsCreditOption` field
is `CreditBySpecificRate`.
'
type: number
type: object
description: 'Pricing information about a usage charge that uses the "tiered with
overage" charge model. In this charge model, the charge has cumulative pricing
tiers that become effective as units are consumed. The charge also has a fixed
price per unit consumed beyond the limit of the final tier.
'
title: usageTieredWithOverage
OrderActionRatePlanUsageTieredWithOveragePricingUpdate:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
overagePrice:
type: number
tiers:
items:
$ref: '#/definitions/OrderActionRatePlanChargeTier'
type: array
type: object
OrderActionRatePlanUsageVolumePricingOverride:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
ratingGroup:
description: |
Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.
* ByBillingPeriod (default): The rating is based on all the usages in a billing period.
* ByUsageStartDate: The rating is based on all the usages on the same usage start date.
* ByUsageRecord: The rating is based on each usage record.
* ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.
enum:
- ByBillingPeriod
- ByUsageStartDate
- ByUsageRecord
- ByUsageUpload
type: string
tiers:
description: 'List of variable pricing tiers in the charge.
'
items:
$ref: '#/definitions/OrderActionRatePlanChargeTier'
type: array
type: object
description: 'Pricing information about a usage charge that uses the "volume pricing"
charge model. In this charge model, the charge has a variable price per unit,
depending on how many units are consumed.
'
title: usageVolume
OrderActionRatePlanUsageVolumePricingUpdate:
allOf:
- $ref: '#/definitions/OrderActionRatePlanPriceChangeParams'
- properties:
tiers:
items:
$ref: '#/definitions/OrderActionRatePlanChargeTier'
type: array
type: object
OrderDeltaMetric:
properties:
chargeNumber:
description: 'The charge number for the associated Rate Plan Charge. This
field can be null if the metric is generated for an Order Line Item.
'
type: string
currency:
description: 'ISO 3-letter currency code (uppercase). For example, USD.
'
type: string
endDate:
description: 'The end date for the order delta metric.
'
format: date
type: string
grossAmount:
description: 'The gross amount for the metric. The is the amount excluding
applied discount.
'
type: number
netAmount:
description: 'The net amount for the metric. The is the amount with discounts
applied
'
type: number
orderActionId:
description: 'The Id for the related Order Action. This field can be null
if the metric is generated for an Order Line Item.
'
type: string
orderActionSequence:
description: 'The sequence for the related Order Action. This field can be
null if the metric is generated for an Order Line Item.
'
type: string
orderActionType:
description: 'The type for the related Order Action. This field can be null
if the metric is generated for an Order Line Item.
'
type: string
orderLineItemNumber:
description: 'A sequential number auto-assigned for each of order line items
in a order, used as an index, for example, "1".
'
type: string
productRatePlanChargeId:
description: 'The Id for the associated Product Rate Plan Charge. This field
can be null if the Order Line Item is not associated with a Product Rate
Plan Charge.
'
type: string
ratePlanChargeId:
description: 'The id for the associated Rate Plan Charge. This field can be
null if the metric is generated for an Order Line Item.
'
type: string
startDate:
description: 'The start date for the order delta metric.
'
format: date
type: string
subscriptionNumber:
description: 'The number of the subscription. This field can be null if the
metric is generated for an Order Line Item.
'
type: string
type: object
OrderDeltaMrr:
allOf:
- $ref: '#/definitions/OrderDeltaMetric'
description: 'Order Delta Mrr. This is a metric that reflects the change to the
TCV on rate plan charge object as the result of the order.
'
type: object
OrderDeltaTcb:
allOf:
- $ref: '#/definitions/OrderDeltaMetric'
- properties:
orderLineItemId:
description: 'The sytem generated Id for the Order Line Item. This field
can be null if the metric is generated for a Rate Plan Charge.
'
format: UUID
type: string
type: object
description: 'Order Delta Tcb. This is a metric that reflects the change to the
estimated billing on Rate Plan Charge object, or the estimated billing for an
Order Line Item as the result of the order
'
type: object
OrderDeltaTcv:
allOf:
- $ref: '#/definitions/OrderDeltaMetric'
- properties:
orderLineItemId:
description: 'The sytem generated Id for the Order Line Item. This field
can be null if the metric is generated for subscriptions.
'
format: UUID
type: string
type: object
description: 'Order Delta Tcv. This is a metric that reflects the change to the
TCV on Rate Plan Charge object, or the Total Contracted Value for an Order Line
Item as the result of the order
'
type: object
OrderItem:
description: "Represents an order item. An order item is a sales item within an\
\ order in the context of the recurring subscription business model. It can\
\ be a unit of products or a service, but defined by both quantity and term\
\ (the start and end dates).\_\n\nFor the one time and the recurring charge\
\ types, if an order action causes a quantity metric creation (when the delta\
\ quantity equals to or is greater than zero), an order item is created.\n\n\
The following order actions will create an order item for the one time and recurring\
\ charges. The other order actions will refer to an existing order item. Also,\
\ the Owner Transfer order action always creates an order item whose quantity\
\ field is zero.\n\n * Create Subscription\n * Terms and Conditions - Extend\
\ Term\n * Renewal\n * Update Product - Increase Quantity\n * Add product\n\
\ * Owner Transfer\n\nFor the usage charge type, if the order action causes\
\ a usage increase, an order item is created, and the quantity field of the\
\ order item is always zero.\n\nThe following order actions will create an order\
\ item for for the usage charges.\n\n * Create Subscription\n * Terms and\
\ Conditions - Extend Term\n * Renewal\n * Add product\n * Owner Transfer\n"
properties:
endDate:
description: The order item's effective end date, aligned with the end date
of an increased quantity order metrics.
format: date
type: string
id:
description: The ID of the order item.
type: string
orderActionId:
description: Specify the order action that creates this order item.
type: string
quantity:
description: The order item quantity. For the usage charge type, the value
of this field is always zero. Also, the Owner Transfer order action always
creates an order item whose Quantity field is zero.
type: number
scId:
description: The ID of the charge segment that gets newly generated when the
order item is created.
type: string
startDate:
description: The order item's effective start date, aligned with the start
date of an increased quantity order metrics.
format: date
type: string
type: object
OrderLineItem:
allOf:
- properties:
amount:
description: 'The calculated gross amount for the Order Line Item.
'
type: number
amountWithoutTax:
description: |
The calculated gross amount for an order line item excluding tax. If the tax mode is tax exclusive, the value of this field equals that of the `amount` field.
If the tax mode of an order line item is not set, the system treats it as tax exclusive by default. The value of the `amountWithoutTax` field equals that of the `amount` field.
If you create an order line item from the product catalog, the tax mode and tax code of the product rate plan charge are used for the order line item by default. You can still overwrite this default set-up by setting the tax mode and tax code of the order line item.
type: number
id:
description: 'The sytem generated Id for the Order Line Item.
'
format: UUID
type: string
quantityFulfilled:
description: 'The quantity that has been fulfilled by fulfillments for the
order line item. This field will be updated automatically when related
fulfillments become ''SentToBilling'' or ''Complete'' state.
'
type: number
quantityPendingFulfillment:
description: 'The quantity that needs to be fulfilled by fulfillments for
the order line item. This field will be updated automatically when related
fulfillments become ''SentToBilling'' or ''Complete'' state.
'
type: number
type: object
- $ref: '#/definitions/OrderLineItemCommonRetrieveOrderLineItem'
- properties:
fulfillments:
description: 'Container for the fulfillments attached to an order line item.
'
items:
$ref: '#/definitions/FulfillmentGet'
type: array
type: object
OrderLineItemCommon:
properties:
UOM:
description: |
Specifies the units to measure usage.
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
accountingCode:
description: |
The accountingCode for the Order Line Item (OLI).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
adjustmentLiabilityAccountingCode:
description: |
The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
adjustmentRevenueAccountingCode:
description: |
The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
amountPerUnit:
description: |
The actual charged amount per unit for the Order Line Item (OLI).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: number
billTargetDate:
description: |
The target date for the Order Line Item (OLI) to be picked up by bill run for generating billing documents.
To generate billing documents for an OLI, you must set this field and set the `itemState` field to `SentToBilling`.
You can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
format: date
type: string
billTo:
description: |
The ID of a contact that belongs to the billing account of the order line item. Use this field to assign an existing account as the bill-to contact of an order line item.
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
billingRule:
default: TriggerWithoutFulfillment
description: |
The rule for billing of the Order Line Item (OLI).
You can update this field for a sales or return OLI only when it is in the `Executing` state (when the `itemState` field is set as `Executing`).
enum:
- TriggerWithoutFulfillment
- TriggerAsFulfillmentOccurs
type: string
contractAssetAccountingCode:
description: |
The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
contractLiabilityAccountingCode:
description: |
The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
contractRecognizedRevenueAccountingCode:
description: |
The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
customFields:
$ref: '#/definitions/OrderLineItemCustomFields'
deferredRevenueAccountingCode:
description: |
The deferred revenue accounting code for the Order Line Item (OLI).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
description:
description: |
The description of the Order Line Item (OLI).
You can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
inlineDiscountPerUnit:
description: |
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
Use this field in accordance with the `inlineDiscountType` field, in the following manner:
* If the `inlineDiscountType` field is set as `Percentage`, this field specifies the discount percentage for each unit of the order line item. For exmaple, if you specify `5` in this field, the discount percentage is 5%.
* If the `inlineDiscountType` field is set as `FixedAmount`, this field specifies the discount amount on each unit of the order line item. For exmaple, if you specify `10` in this field, the discount amount on each unit of the order line item is 10.
Once you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.
type: number
inlineDiscountType:
description: "You can update this field only for a sales OLI and only when\
\ the sales OLI is in the `Executing` state (when the `itemState` field\
\ is set as `Executing`).\n\nUse this field to specify the inline discount\
\ type, which can be `Percentage`, `FixedAmount`, or `None`. The default\
\ value is `Percentage`.\n\nUse this field together with the `inlineDiscountPerUnit`\
\ field to specify inline discounts for order line items. The inline discount\
\ is applied to the list price of an order line item. \n\nOnce you set the\
\ `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit`\
\ fields, the system will automatically generate the `amountPerUnit` field.\
\ You shall not set the `amountPerUnit` field by yourself.\n"
enum:
- Percentage
- FixedAmount
- None
type: string
isAllocationEligible:
description: |
This field is used to identify if the charge segment is allocation eligible in revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
isUnbilled:
description: |
This field is used to dictate how to perform the accounting during revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
itemName:
description: |
The name of the Order Line Item (OLI).
You can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
itemNumber:
description: |
The number for the Order Line Item (OLI).
You can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
itemState:
description: |
The state of the Order Line Item (OLI). See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.
To generate invoice for an OLI, you must set this field to `SentToBilling` and set the `billTargetDate` field .
You can update this field for a sales or return OLI only when the OLI is in the `Executing` or 'Booked' or `SentToBilling`state (when the `itemState` field is set as `Executing` or `SentToBilling`).
enum:
- Executing
- Booked
- SentToBilling
- Complete
- Cancelled
type: string
itemType:
description: "The type of the Order Line Item (OLI). \n\nYou can update this\
\ field only for a sales OLI and only when the sales OLI is in the `Executing`\
\ state (when the `itemState` field is set as `Executing`).\n"
enum:
- Product
- Fee
- Services
type: string
listPricePerUnit:
description: |
The list price per unit for the Order Line Item (OLI).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: number
ownerAccountNumber:
description: |
Use this field to assign an existing account as the owner of an order line item.
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
productCode:
description: |
The product code for the Order Line Item (OLI).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
purchaseOrderNumber:
description: |
Used by customers to specify the Purchase Order Number provided by the buyer.
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
quantity:
description: |
The quantity of units, such as the number of authors in a hosted wiki service.
You can update this field for a sales or return OLI only when the OLI in the `Executing` state (when the `itemState` field is set as `Executing`).
type: number
recognizedRevenueAccountingCode:
description: |
The recognized revenue accounting code for the Order Line Item (OLI).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
relatedSubscriptionNumber:
description: |
Use this field to relate an order line item to an subscription. Specify this field to the subscription number of the subscription to relate.
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
revenueRecognitionRule:
description: |
The Revenue Recognition rule for the Order Line Item (OLI).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
sequenceSetId:
description: 'The ID of the sequence set associated with the orderLineItem.
'
type: string
soldTo:
description: "Use this field to assign an existing account as the sold-to\
\ contact of an order line item, by the following rules:\n\n* If the `ownerAccountNumber`\
\ field is set, then this field must be the ID of a contact that belongs\
\ to the owner account of the order line item. \n* If the `ownerAccountNumber`\
\ field is not set, then this field must be the ID of a contact that belongs\
\ to the billing account of the order line item.\n\nYou can update this\
\ field only for a sales OLI and only when the sales OLI is in the `Executing`\
\ state (when the `itemState` field is set as `Executing`).\n"
type: string
taxCode:
description: |
The tax code for the Order Line Item (OLI).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
taxMode:
description: |
The tax mode for the Order Line Item (OLI).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
enum:
- TaxInclusive
- TaxExclusive
type: string
transactionEndDate:
description: |
The date a transaction is completed. The default value of this field is the transaction start date. Also, the value of this field should always equal or be later than the value of the `transactionStartDate` field.
You can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
format: date
type: string
transactionStartDate:
description: |
The date a transaction starts. The default value of this field is the order date.
You can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
format: date
type: string
unbilledReceivablesAccountingCode:
description: |
The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).
type: string
title: OrderLineItem
type: object
OrderLineItemCommonPostOrder:
properties:
UOM:
description: 'Specifies the units to measure usage.
'
type: string
accountingCode:
description: 'The accounting code for the Order Line Item.
'
type: string
adjustmentLiabilityAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
adjustmentRevenueAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
amountPerUnit:
description: |
The actual charged amount per unit for the Order Line Item.
If you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.
type: number
billTargetDate:
description: 'The target date for the Order Line Item to be picked up by bill
run for billing.
'
format: date
type: string
billTo:
description: 'The ID of a contact that belongs to the billing account of the
order line item. Use this field to assign an existing account as the bill-to
contact of an order line item.
'
type: string
billingRule:
default: TriggerWithoutFulfillment
description: 'The billing rule for the Order Line Item.
'
enum:
- TriggerWithoutFulfillment
- TriggerAsFulfillmentOccurs
type: string
contractAssetAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
contractLiabilityAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
contractRecognizedRevenueAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
customFields:
$ref: '#/definitions/OrderLineItemCustomFields'
deferredRevenueAccountingCode:
description: 'The deferred revenue accounting code for the Order Line Item.
'
type: string
description:
description: 'The description of the Order Line Item.
'
type: string
excludeItemBillingFromRevenueAccounting:
default: false
description: "The flag to exclude Order Line Item related invoice items, invoice\
\ item adjustments, credit memo items, and debit memo items from revenue\
\ accounting.\n\n**Note**: This field is only available if you have the\
\ Order to Revenue or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration)\
\ feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
default: false
description: |
The flag to exclude Order Line Item from revenue accounting.
**Note**: This field is only available if you have the Order to Revenue or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled.
type: boolean
inlineDiscountPerUnit:
description: |
Use this field in accordance with the `inlineDiscountType` field, in the following manner:
* If the `inlineDiscountType` field is set as `Percentage`, this field specifies the discount percentage for each unit of the order line item. For exmaple, if you specify `5` in this field, the discount percentage is 5%.
* If the `inlineDiscountType` field is set as `FixedAmount`, this field specifies the discount amount on each unit of the order line item. For exmaple, if you specify `10` in this field, the discount amount on each unit of the order line item is 10.
Once you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.
type: number
inlineDiscountType:
description: "Use this field to specify the inline discount type, which can\
\ be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\
\nUse this field together with the `inlineDiscountPerUnit` field to specify\
\ inline discounts for order line items. The inline discount is applied\
\ to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`,\
\ `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will\
\ automatically generate the `amountPerUnit` field. You shall not set the\
\ `amountPerUnit` field by yourself.\n"
enum:
- Percentage
- FixedAmount
- None
type: string
isAllocationEligible:
description: |
This field is used to identify if the charge segment is allocation eligible in revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
isUnbilled:
description: |
This field is used to dictate how to perform the accounting during revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
itemCategory:
default: Sales
description: 'The category for the Order Line Item, to indicate a product
sale or return.
'
enum:
- Sales
- Return
type: string
itemName:
description: 'The name of the Order Line Item.
'
type: string
itemNumber:
description: 'The number of the Order Line Item. Use this field to specify
a custom item number for your Order Line Item. If you are to use this field, you
must set all the item numbers in an order when there are several order line
items in the order.
'
type: string
itemState:
description: |
The state of an Order Line Item. If you want to generate billing documents for order line items, you must set this field to `SentToBilling`. For invoice preview, you do not need to set this field.
See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.
enum:
- Executing
- Booked
- SentToBilling
- Complete
- Cancelled
type: string
itemType:
description: "The type of the Order Line Item. \n"
enum:
- Product
- Fee
- Services
type: string
listPricePerUnit:
description: 'The list price per unit for the Order Line Item.
'
type: number
originalOrderLineItemNumber:
description: "The number of the original sale order line item for a return\
\ order line item. \n"
type: string
originalOrderNumber:
description: "The number of the original sale order for a return order line\
\ item. \n"
type: string
ownerAccountNumber:
description: 'Use this field to assign an existing account as the owner of
an order line item.
'
type: string
productCode:
description: 'The product code for the Order Line Item.
'
type: string
productRatePlanChargeId:
description: 'Id of a Product Rate Plan Charge. Only one-time charges are
supported.
'
type: string
purchaseOrderNumber:
description: 'Used by customers to specify the Purchase Order Number provided
by the buyer.
'
type: string
quantity:
description: 'The quantity of units, such as the number of authors in a hosted
wiki service.
'
type: number
recognizedRevenueAccountingCode:
description: 'The recognized revenue accounting code for the Order Line Item.
'
type: string
relatedSubscriptionNumber:
description: |
Use this field to relate an order line item to a subscription when you create the order line item.
* To relate an order line item to a new subscription which is yet to create in the same "Create an order" call, use this field in combination with the `subscriptions` > `subscriptionNumber` field in the "Create an order" operation. Specify this field to the same value as that of the `subscriptions` > `subscriptionNumber` field when you make the "Create an order" call.
* To relate an order line item to an existing subscription, specify this field to the subscription number of the existing subscription.
type: string
revenueRecognitionRule:
description: 'The Revenue Recognition rule for the Order Line Item.
'
type: string
sequenceSetId:
description: 'The ID of the sequence set associated with the OrderLineItem.
'
type: string
soldTo:
description: "Use this field to assign an existing account as the sold-to\
\ contact of an order line item, by the following rules:\n\n* If the `ownerAccountNumber`\
\ field is set, then this field must be the ID of a contact that belongs\
\ to the owner account of the order line item. \n* If the `ownerAccountNumber`\
\ field is not set, then this field must be the ID of a contact that belongs\
\ to the billing account of the order line item.\n"
type: string
taxCode:
description: 'The tax code for the Order Line Item.
'
type: string
taxMode:
description: 'The tax mode for the Order Line Item.
'
enum:
- TaxInclusive
- TaxExclusive
type: string
transactionEndDate:
description: 'The date a transaction is completed. The default value of this
field is the transaction start date. Also, the value of this field should
always equal or be later than the value of the `transactionStartDate` field.
'
format: date
type: string
transactionStartDate:
description: 'The date a transaction starts. The default value of this field
is the order date.
'
format: date
type: string
unbilledReceivablesAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
title: OrderLineItem
type: object
OrderLineItemCommonRetrieveOrder:
properties:
UOM:
description: 'Specifies the units to measure usage.
'
type: string
accountingCode:
description: 'The accounting code for the Order Line Item.
'
type: string
adjustmentLiabilityAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
adjustmentRevenueAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
amountPerUnit:
description: 'The actual charged amount per unit for the Order Line Item.
'
type: number
billTargetDate:
description: 'The target date for the Order Line Item to be picked up by bill
run for billing.
'
format: date
type: string
billTo:
description: 'The ID of a contact that belongs to the billing account of the
order line item. Use this field to assign an existing account as the bill-to
contact of an order line item.
'
type: string
billToSnapshotId:
description: 'The snapshot of the ID for an account used as the sold-to contact
of an order line item. This field is used to store the original information
about the account, in case the information about the account is changed
after the creation of the order line item. The `billToSnapshotId` field
is exposed while retrieving the order line item details.
'
type: string
billingRule:
description: 'The billing rule of the Order Line Item.
'
enum:
- TriggerWithoutFulfillment
- TriggerAsFulfillmentOccurs
type: string
contractAssetAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
contractLiabilityAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
contractRecognizedRevenueAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
customFields:
$ref: '#/definitions/OrderLineItemCustomFields'
deferredRevenueAccountingCode:
description: 'The deferred revenue accounting code for the Order Line Item.
'
type: string
description:
description: 'The description of the Order Line Item.
'
type: string
discount:
description: |
This field shows the total discount amount that is applied to an order line item after the `inlineDiscountType`, `inlineDiscountPerUnit` and `quantity` fields are set.
The inline discount is applied to the list price of an order line item (see the `listPrice` field).
type: number
excludeItemBillingFromRevenueAccounting:
description: "The flag to exclude Order Line Item related invoice items, invoice\
\ item adjustments, credit memo items, and debit memo items from revenue\
\ accounting.\n\n**Note**: This field is only available if you have the\
\ Order to Revenue or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration)\
\ feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
description: "The flag to exclude Order Line Item from revenue accounting.\n\
\n**Note**: This field is only available if you have the Order to Revenue or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration)\
\ feature enabled. \n"
type: boolean
inlineDiscountPerUnit:
description: |
This field is used in accordance with the `inlineDiscountType` field, in the following manner:
* If the `inlineDiscountType` field is set as `Percentage`, this field specifies the discount percentage for each unit of the order line item. For exmaple, if you specify `5` in this field, the discount percentage is 5%.
* If the `inlineDiscountType` field is set as `FixedAmount`, this field specifies the discount amount on each unit of the order line item. For exmaple, if you specify `10` in this field, the discount amount on each unit of the order line item is 10.
Once you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.
type: number
inlineDiscountType:
description: "This field is used to specify the inline discount type, which\
\ can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\
\nThis field is used together with the `inlineDiscountPerUnit` field to\
\ specify inline discounts for order line items. The inline discount is\
\ applied to the list price of an order line item. \n\nOnce you set the\
\ `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit`\
\ fields, the system will automatically generate the `amountPerUnit` field.\
\ You shall not set the `amountPerUnit` field by yourself.\n"
enum:
- Percentage
- FixedAmount
- None
type: string
invoiceOwnerAccountId:
description: 'The account ID of the invoice owner of the order line item.
'
type: string
invoiceOwnerAccountName:
description: 'The account name of the invoice owner of the order line item.
'
type: string
invoiceOwnerAccountNumber:
description: 'The account number of the invoice owner of the order line item.
'
type: string
isAllocationEligible:
description: |
This field is used to identify if the charge segment is allocation eligible in revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
isUnbilled:
description: |
This field is used to dictate how to perform the accounting during revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
itemCategory:
default: Sales
description: 'The category of the Order Line Item, to indicate a product sale
or return.
'
enum:
- Sales
- Return
type: string
itemName:
description: 'The name of the Order Line Item.
'
type: string
itemState:
description: 'The state of an Order Line Item. See [State transitions for
an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States)
for more information.
'
enum:
- Executing
- Booked
- SentToBilling
- Complete
- Cancelled
type: string
itemType:
description: "The type of the Order Line Item. \n"
enum:
- Product
- Fee
- Services
type: string
listPrice:
description: 'The extended list price for an order line item, calculated by
the formula: listPrice = listPricePerUnit * quantity
'
type: number
listPricePerUnit:
description: 'The list price per unit for the Order Line Item.
'
type: number
originalOrderId:
description: "The ID of the original sale order for a return order line item.\
\ \n"
type: string
originalOrderLineItemId:
description: "The ID of the original sale order line item for a return order\
\ line item. \n"
type: string
originalOrderLineItemNumber:
description: "The number of the original sale order line item for a return\
\ order line item. \n"
type: string
originalOrderNumber:
description: "The number of the original sale order for a return order line\
\ item. \n"
type: string
ownerAccountId:
description: 'The account ID of the owner of the order line item.
'
type: string
ownerAccountName:
description: 'The account name of the owner of the order line item.
'
type: string
ownerAccountNumber:
description: 'The account number of the owner of the order line item.
'
type: string
productCode:
description: 'The product code for the Order Line Item.
'
type: string
productRatePlanChargeId:
description: 'Id of a Product Rate Plan Charge. Only one-time charges are
supported.
'
type: string
purchaseOrderNumber:
description: 'Used by customers to specify the Purchase Order Number provided
by the buyer.
'
type: string
quantity:
description: 'The quantity of units, such as the number of authors in a hosted
wiki service.
'
type: number
quantityAvailableForReturn:
description: "The quantity that can be returned for an order line item. \n"
type: number
quantityFulfilled:
description: 'The fulfilled quantity for an order line item.
'
type: number
quantityPendingFulfillment:
description: "The quantity to fulfill for an order line item. \n"
type: number
recognizedRevenueAccountingCode:
description: 'The recognized revenue accounting code for the Order Line Item.
'
type: string
relatedSubscriptionNumber:
description: |
Use this field to relate an order line item to a subscription when you create the order line item.
* To relate an order line item to a new subscription which is yet to create in the same "Create an order" call, use this field in combination with the `subscriptions` > `subscriptionNumber` field in the "Create order" operation. Specify this field to the same value as that of the 'subscriptions' > `subscriptionNumber` field when you make the "Create order" call.
* To relate an order line item to an existing subscription, specify this field to the subscription number of the existing subscription.
type: string
requiresFulfillment:
description: 'The flag to show whether fulfillment is needed or not. It''s
derived from billing rule of the Order Line Item.
'
type: boolean
revenueRecognitionRule:
description: 'The Revenue Recognition rule for the Order Line Item.
'
type: string
sequenceSetId:
description: 'The ID of the sequence set associated with the OrderLineItem.
'
type: string
soldTo:
description: 'The ID of a contact that belongs to the owner acount or billing
account of the order line item. Use this field to assign an existing account
as the sold-to contact of an order line item.
'
type: string
soldToSnapshotId:
description: 'The snapshot of the ID for an account used as the sold-to contact
of an order line item. This field is used to store the original information
about the account, in case the information about the account is changed
after the creation of the order line item. The `soldToSnapshotId` field
is exposed while retrieving the order line item details.
'
type: string
taxCode:
description: 'The tax code for the Order Line Item.
'
type: string
taxMode:
description: 'The tax mode for the Order Line Item.
'
enum:
- TaxInclusive
- TaxExclusive
type: string
transactionEndDate:
description: 'The date a transaction is completed. The default value of this
field is the transaction start date. Also, the value of this field should
always equal or be later than the value of the `transactionStartDate` field.
'
format: date
type: string
transactionStartDate:
description: 'The date a transaction starts. The default value of this field
is the order date.
'
format: date
type: string
unbilledReceivablesAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
title: OrderLineItem
type: object
OrderLineItemCommonRetrieveOrderLineItem:
properties:
UOM:
description: 'Specifies the units to measure usage.
'
type: string
accountingCode:
description: 'The accountingCode for the Order Line Item.
'
type: string
adjustmentLiabilityAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
adjustmentRevenueAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
amendedByOrderOn:
description: 'The date when the rate plan charge is amended through an order
or amendment. This field is to standardize the booking date information
to increase audit ability and traceability of data between Zuora Billing
and Zuora Revenue. It is mapped as the booking date for a sales order line
in Zuora Revenue.
'
format: date
type: string
amountPerUnit:
description: 'The actual charged amount per unit for the Order Line Item.
'
type: number
billTargetDate:
description: 'The target date for the Order Line Item to be picked up by bill
run for billing.
'
format: date
type: string
billTo:
description: 'The ID of a contact that belongs to the billing account of the
order line item. Use this field to assign an existing account as the bill-to
contact of an order line item.
'
type: string
billToSnapshotId:
description: 'The snapshot of the ID for an account used as the bill-to contact
of an order line item. This field is used to store the original information
about the account, in case the information about the account is changed
after the creation of the order line item. The `billToSnapshotId` field
is exposed while retrieving the order line item details.
'
type: string
billingRule:
description: 'The billing rule for the Order Line Item.
'
enum:
- TriggerWithoutFulfillment
- TriggerAsFulfillmentOccurs
type: string
contractAssetAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
contractLiabilityAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
contractRecognizedRevenueAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
customFields:
$ref: '#/definitions/OrderLineItemCustomFieldsRetrieveOrderLineItem'
deferredRevenueAccountingCode:
description: 'The deferred revenue accounting code for the Order Line Item.
'
type: string
description:
description: 'The description of the Order Line Item.
'
type: string
discount:
description: |
This field shows the total discount amount that is applied to an order line item after the `inlineDiscountType`, `inlineDiscountPerUnit` and `quantity` fields are set.
The inline discount is applied to the list price of an order line item (see the `listPrice` field).
type: number
excludeItemBillingFromRevenueAccounting:
description: "The flag to exclude Order Line Item related invoice items, invoice\
\ item adjustments, credit memo items, and debit memo items from revenue\
\ accounting.\n\n**Note**: This field is only available if you have the\
\ [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration)\
\ feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
description: "The flag to exclude Order Line Item from revenue accounting.\n\
\n**Note**: This field is only available if you have the [Zuora Billing\
\ - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration)\
\ feature enabled. \n"
type: boolean
inlineDiscountPerUnit:
description: |
This field is used in accordance with the `inlineDiscountType` field, in the following manner:
* If the `inlineDiscountType` field is set as `Percentage`, this field specifies the discount percentage for each unit of the order line item. For exmaple, if you specify `5` in this field, the discount percentage is 5%.
* If the `inlineDiscountType` field is set as `FixedAmount`, this field specifies the discount amount on each unit of the order line item. For exmaple, if you specify `10` in this field, the discount amount on each unit of the order line item is 10.
Once you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.
type: number
inlineDiscountType:
description: "This field is used to specify the inline discount type, which\
\ can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\
\nThis field is used together with the `inlineDiscountPerUnit` field to\
\ specify inline discounts for order line items. The inline discount is\
\ applied to the list price of an order line item. \n\nOnce you set the\
\ `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit`\
\ fields, the system will automatically generate the `amountPerUnit` field.\
\ You shall not set the `amountPerUnit` field by yourself.\n"
enum:
- Percentage
- FixedAmount
- None
type: string
invoiceOwnerAccountId:
description: 'The account ID of the invoice owner of the order line item.
'
type: string
invoiceOwnerAccountName:
description: 'The account name of the invoice owner of the order line item.
'
type: string
invoiceOwnerAccountNumber:
description: 'The account number of the invoice owner of the order line item.
'
type: string
isAllocationEligible:
description: |
This field is used to identify if the charge segment is allocation eligible in revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
isUnbilled:
description: |
This field is used to dictate how to perform the accounting during revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
itemCategory:
default: Sales
description: 'The category for the Order Line Item, to indicate a product
sales or return.
'
enum:
- Sales
- Return
type: string
itemName:
description: 'The name of the Order Line Item.
'
type: string
itemNumber:
description: 'The number for the Order Line Item.
'
type: string
itemState:
description: 'The state of the Order Line Item. See [State transitions for
an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States)
for more information.
'
enum:
- Executing
- Booked
- SentToBilling
- Complete
- Cancelled
type: string
itemType:
description: "The type of the Order Line Item. \n"
enum:
- Product
- Fee
- Services
type: string
listPrice:
description: 'The extended list price for an order line item, calculated by
the formula: listPrice = listPricePerUnit * quantity
'
type: number
listPricePerUnit:
description: 'The list price per unit for the Order Line Item.
'
type: number
originalOrderDate:
description: 'The date when the rate plan charge is created through an order
or amendment. This field is to standardize the booking date information
to increase audit ability and traceability of data between Zuora Billing
and Zuora Revenue. It is mapped as the booking date for a sales order line
in Zuora Revenue.
'
format: date
type: string
originalOrderId:
description: 'The ID of the original sales order for a return order line item.
'
type: string
originalOrderLineItemId:
description: 'The ID of the original sales order line item for a return order
line item.
'
type: string
originalOrderLineItemNumber:
description: 'The number of the original sales order line item for a return
order line item.
'
type: string
originalOrderNumber:
description: 'The number of the original sales order for a return order line
item.
'
type: string
ownerAccountId:
description: 'The account ID of the owner of the order line item.
'
type: string
ownerAccountName:
description: 'The account name of the owner of the order line item.
'
type: string
ownerAccountNumber:
description: 'The account number of the owner of the order line item.
'
type: string
productCode:
description: 'The product code for the Order Line Item.
'
type: string
productRatePlanChargeId:
description: 'Id of a Product Rate Plan Charge. Only one-time charges are
supported.
'
type: string
purchaseOrderNumber:
description: 'Used by customers to specify the Purchase Order Number provided
by the buyer.
'
type: string
quantity:
description: 'The quantity of units, such as the number of authors in a hosted
wiki service.
'
type: number
quantityAvailableForReturn:
description: "The quantity that can be returned for an order line item. \n"
type: number
quantityFulfilled:
description: "The fulfilled quantity for an order line item. \n"
type: number
quantityPendingFulfillment:
description: "The quantity to fulfill for an order line item. \n"
type: number
recognizedRevenueAccountingCode:
description: 'The recognized revenue accounting code for the Order Line Item.
'
type: string
relatedSubscriptionNumber:
description: 'Use this field to relate an order line item to an subscription.
Specify this field to the subscription number of the subscription to relate.
'
type: string
requiresFulfillment:
description: 'The flag to show whether fulfillment is needed or not. It''s
derived from billing rule of the Order Line Item.
'
type: boolean
revenueRecognitionRule:
description: 'The Revenue Recognition rule for the Order Line Item.
'
type: string
sequenceSetId:
description: 'The ID of the sequence set associated with the OrderLineItem.
'
type: string
soldTo:
description: 'The ID of a contact that belongs to the owner account or billing
account of the order line item. Use this field to assign an existing account
as the sold-to contact of an order line item.
'
type: string
soldToSnapshotId:
description: 'The snapshot of the ID for an account used as the sold-to contact
of an order line item. This field is used to store the original information
about the account, in case the information about the account is changed
after the creation of the order line item. The `soldToSnapshotId` field
is exposed while retrieving the order line item details.
'
type: string
taxCode:
description: 'The tax code for the Order Line Item.
'
type: string
taxMode:
description: 'The tax mode for the Order Line Item.
'
enum:
- TaxInclusive
- TaxExclusive
type: string
transactionEndDate:
description: 'The date a transaction is completed. The default value of this
field is the transaction start date. Also, the value of this field should
always equal or be later than the value of the `transactionStartDate` field.
'
format: date
type: string
transactionStartDate:
description: 'The date a transaction starts. The default value of this field
is the order date.
'
format: date
type: string
unbilledReceivablesAccountingCode:
description: 'The accounting code on the Order Line Item object for customers
using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).
'
type: string
title: OrderLineItem
type: object
OrderLineItemCustomFields:
additionalProperties:
description: 'Custom fields of the Order Line Item object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of an Order Line Item object.
'
title: OrderLineItemCustomFields
type: object
OrderLineItemCustomFieldsRetrieveOrderLineItem:
additionalProperties:
description: 'Custom fields of the Order Line Item object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of an Order Line Item object.
'
title: OrderLineItemCustomFields
type: object
OrderLineItemRetrieveOrder:
allOf:
- properties:
amendedByOrderOn:
description: 'The date when the rate plan charge is amended through an order
or amendment. This field is to standardize the booking date information
to increase audit ability and traceability of data between Zuora Billing
and Zuora Revenue. It is mapped as the booking date for a sale order line
in Zuora Revenue.
'
type: string
amount:
description: 'The calculated gross amount for the Order Line Item.
'
type: number
amountWithoutTax:
description: |
The calculated gross amount for an order line item excluding tax. If the tax mode is tax exclusive, the value of this field equals that of the `amount` field.
If the tax mode of an order line item is not set, the system treats it as tax exclusive by default. The value of the `amountWithoutTax` field equals that of the `amount` field.
If you create an order line item from the product catalog, the tax mode and tax code of the product rate plan charge are used for the order line item by default. You can still overwrite this default set-up by setting the tax mode and tax code of the order line item.
type: number
id:
description: 'The sytem generated Id for the Order Line Item.
'
format: UUID
type: string
itemNumber:
description: 'The number for the Order Line Item.
'
type: string
originalOrderDate:
description: 'The date when the rate plan charge is created through an order
or amendment. This field is to standardize the booking date information
to increase audit ability and traceability of data between Zuora Billing
and Zuora Revenue. It is mapped as the booking date for a sale order line
in Zuora Revenue.
'
format: date
type: string
quantityFulfilled:
description: 'The quantity that has been fulfilled by fulfillments for the
order line item. This field will be updated automatically when related
fulfillments become ''SentToBilling'' or ''Complete'' state.
'
type: number
quantityPendingFulfillment:
description: 'The quantity that''s need to be fulfilled by fulfillments
for the order line item. This field will be updated automatically when
related fulfillments become ''SentToBilling'' or ''Complete'' state.
'
type: number
type: object
- $ref: '#/definitions/OrderLineItemCommonRetrieveOrder'
OrderObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Order object. The name of each custom field
has the form *customField*__c
. Custom field names are case sensitive.
See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of an Order object.
'
title: orderFieldsCustom
type: object
OrderRampIntervalMetrics:
properties:
description:
description: The short description of the interval.
type: string
discountTcb:
description: The discount amount for the TCB.
type: number
discountTcv:
description: The discount amount for the TCV.
type: number
endDate:
description: The end date of the interval.
format: date
type: string
grossTcb:
description: The gross TCB value before discount charges are applied.
type: number
grossTcv:
description: The gross TCV value before discount charges are applied.
type: number
intervalDeltaMetrics:
description: Container for the delta metrics for each rate plan charge in
each ramp interval. The delta is the difference of the subscription metrics
between before and after the order.
items:
$ref: '#/definitions/RampIntervalChargeDeltaMetrics'
type: array
intervalMetrics:
description: Container for the detailed metrics for each rate plan charge
in each ramp interval.
items:
$ref: '#/definitions/RampIntervalChargeMetrics'
type: array
name:
description: The name of the interval.
type: string
netTcb:
description: The net TCB value after discount charges are applied.
type: number
netTcv:
description: The net TCV value after discount charges are applied.
type: number
startDate:
description: The start date of the interval.
format: date
type: string
title: RampIntervalMetrics
type: object
OrderRampMetrics:
properties:
description:
description: The short description of the ramp.
type: string
discountTcb:
description: The discount amount for the TCB.
type: number
discountTcv:
description: The discount amount for the TCV.
type: number
grossTcb:
description: The gross TCB value before discount charges are applied.
type: number
grossTcv:
description: The gross TCV value before discount charges are applied.
type: number
intervals:
description: The ramp metrics for each ramp intervals in its timeline.
items:
$ref: '#/definitions/OrderRampIntervalMetrics'
type: array
name:
description: The name of the ramp.
type: string
netTcb:
description: The net TCB value after discount charges are applied.
type: number
netTcv:
description: The net TCV value after discount charges are applied.
type: number
number:
description: The number of the ramp. It is automaticcally generated by the
billing system.
type: string
title: RampMetrics
type: object
OrdersRatePlanObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Rate Plan or Subscription Offer object. The
name of each custom field has the form *customField*__c
. Custom
field names are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of the Rate Plan or Subscription Offer
object. The custom fields of the Rate Plan object are used when rate plans are
subscribed, and the custom fields of the Subscription Offer object are used
when product offers are subscribed.
'
title: ratePlanFieldsCustom
type: object
OwnerTransfer:
description: |
Information about an order action of type `OwnerTransfer`.
**Note:** The Owner Transfer feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
properties:
billToContactId:
description: "The contact id of the bill to contact that the subscription\
\ is being transferred to.\n\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Contact from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
clearingExistingBillToContact:
default: false
description: |
Whether to clear the existing bill-to contact ID at the subscription level. This field is mutually exclusive with the `billToContactId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingInvoiceTemplate:
default: false
description: |
Whether to clear the existing invoice template ID at the subscription level. This field is mutually exclusive with the `invoiceTemplateId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingPaymentTerm:
default: false
description: |
Whether to clear the existing payment term at the subscription level. This field is mutually exclusive with the `paymentTerm` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingSequenceSet:
default: false
description: |
Whether to clear the existing sequence set ID at the subscription level. This field is mutually exclusive with the `sequenceSetId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingSoldToContact:
default: false
description: |
Whether to clear the existing sold-to contact ID at the subscription level. This field is mutually exclusive with the `soldToContactId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
destinationAccountNumber:
description: 'The account number of the account that the subscription is being
transferred to.
'
type: string
destinationInvoiceAccountNumber:
description: 'The account number of the invoice owner account that the subscription
is being transferred to.
'
type: string
invoiceTemplateId:
description: "The ID of the invoice template associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Template from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
paymentTerm:
description: "Name of the payment term associated with the account. For example,\
\ \"Net 30\". The payment term determines the due dates of invoices.\n\n\
**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Term from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
sequenceSetId:
description: "The ID of the sequence set associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Set from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
soldToContactId:
description: "The ID of the sold-to contact associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Contact from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
title: ownerTransfer
type: object
POSTAccountPMMandateInfo:
description: |
The mandate information for the Credit Card, Apple Pay, Google Pay, Credit Card Reference Transaction, ACH, or Bank Transfer payment method.
The following mandate fields are common to all supported payment methods:
* `mandateId`
* `mandateReason`
* `mandateStatus`
The following mandate fields are specific to the ACH and Bank Transfer payment methods:
* `mandateReceivedStatus`
* `existingMandateStatus`
* `mandateCreationDate`
* `mandateUpdateDate`
The following mandate fields are specific to the Credit Card, Apple Pay, and Google Pay payment methods:
* `mitTransactionId`
* `mitProfileAgreedOn`
* `mitConsentAgreementRef`
* `mitConsentAgreementSrc`
* `mitProfileType`
* `mitProfileAction`
properties:
existingMandateStatus:
description: 'Indicates whether the mandate is an existing mandate.
'
enum:
- 'Yes'
- 'No'
type: string
mandateCreationDate:
description: 'The date on which the mandate was created.
'
format: date
type: string
mandateId:
description: 'The mandate ID.
'
type: string
mandateReason:
description: 'The reason of the mandate from the gateway side.
'
type: string
mandateReceivedStatus:
description: 'Indicates whether the mandate is received from the gateway
'
enum:
- 'Yes'
- 'No'
type: string
mandateStatus:
description: 'The status of the mandate from the gateway side.
'
type: string
mandateUpdateDate:
description: 'The date on which the mandate was updated.
'
format: date
type: string
mitConsentAgreementRef:
description: "Reference for the consent agreement that you have established\
\ with the customer. \n"
type: string
mitConsentAgreementSrc:
description: 'Required if you set the `mitProfileAction` field. Specify how
the consent agreement has been established with the customer. The allowed
value is `External`. If you do not specify the `mitProfileAction` field,
Zuora will automatically create a stored credential profile for the payment
method, with the default value `External` set to this field.
'
enum:
- External
type: string
mitProfileAction:
description: "Specifies how Zuora creates and activates the stored credential\
\ profile. Only applicable if you set the `status` field to `Active`.\n\n\
* `Activate` (default) - Use this value if you are creating the stored credential\
\ profile after receiving the customer's consent.\n\n Zuora will create\
\ the stored credential profile then send a cardholder-initiated transaction\
\ (CIT) to the payment gateway to validate the stored credential profile.\
\ If the CIT succeeds, the status of the stored credential profile will\
\ be `Active`. If the CIT does not succeed, Zuora will not create a stored\
\ credential profile.\n \n If the payment gateway does not support the\
\ stored credential transaction framework, the status of the stored credential\
\ profile will be `Agreed`.\n\n\n* `Persist` - Use this value if the stored\
\ credential profile represents a stored credential profile in an external\
\ system. The status of the payment method's stored credential profile will\
\ be `Active`.\n\nIf you do not specify this field, Zuora will automatically\
\ create a stored credential profile for the payment method, with the default\
\ value `Activate` set to this field.\n"
enum:
- Activate
- Persist
type: string
mitProfileAgreedOn:
description: 'The date on which the stored credential profile is agreed. The
date format is `yyyy-mm-dd`.
'
format: date
type: string
mitProfileType:
description: 'Indicates the type of the stored credential profile. If you
do not specify the `mitProfileAction` field, Zuora will automatically create
a stored credential profile for the payment method, with the default value
`Recurring` set to this field.
'
type: string
mitTransactionId:
description: 'Specifies the ID of the transaction. Only applicable if you
set the `mitProfileAction` field to `Persist`.
'
maxLength: 128
type: string
title: mandateInfo
type: object
POSTAccountResponseType:
properties:
accountId:
description: 'Auto-generated account ID.
'
type: string
accountNumber:
description: 'Account number.
'
type: string
billToContactId:
description: 'The ID of the bill-to contact.
'
type: string
contractedMrr:
description: 'Contracted monthly recurring revenue of the subscription.
'
format: decimal
type: string
creditMemoId:
description: |
The credit memo ID, if a credit memo is generated during the subscription process.
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: string
invoiceId:
description: 'ID of the invoice generated at account creation, if applicable.
'
type: string
paidAmount:
description: 'Amount collected on the invoice generated at account creation,
if applicable.
'
format: decimal
type: string
paymentId:
description: 'ID of the payment collected on the invoice generated at account
creation, if applicable.
'
type: string
paymentMethodId:
description: 'ID of the payment method that was set up at account creation,
which automatically becomes the default payment method for this account.
'
type: string
soldToContactId:
description: 'The ID of the sold-to contact.
'
type: string
subscriptionId:
description: 'ID of the subscription that was set up at account creation,
if applicable.
'
type: string
subscriptionNumber:
description: 'Number of the subscription that was set up at account creation,
if applicable.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
totalContractedValue:
description: 'Total contracted value of the subscription.
'
format: decimal
type: string
type: object
POSTAccountType:
allOf:
- properties:
accountNumber:
description: 'A unique account number, up to 50 characters that do not begin
with the default account number prefix. If no account number is specified,
one is generated.
'
type: string
additionalEmailAddresses:
description: 'A list of additional email addresses to receive email notifications.
Use commas to separate email addresses.
'
items:
type: string
type: array
applicationOrder:
description: |
The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.
**Note:**
- This field is valid only if the `applyCredit` field is set to `true`.
- If no value is specified for this field, the default priority order is used, ["CreditMemo", "UnappliedPayment"], to apply credit memos first and then apply unapplied payments.
- If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `["CreditMemo"]`, only credit memos are used to apply to invoices.
items:
type: string
type: array
applyCredit:
description: |
Whether to automatically apply credit memos or unapplied payments, or both to an invoice.
If the value is `true`, the credit memo or unapplied payment, or both will be automatically applied to the invoice. If no value is specified or the value is `false`, no action is taken.
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: boolean
applyCreditBalance:
description: "Applies a credit balance to an invoice.\n\nIf the value is\
\ `true`, the credit balance is applied to the invoice. If the value is\
\ `false`, no action is taken.\n\nPrerequisite: `invoice` must be `true`.\n\
\nTo view the credit balance adjustment, retrieve the details of the invoice\
\ using the Get Invoices method.\n\n\n**Note:** \n - If you are using\
\ the field `invoiceCollect` rather than the field `invoice`, the `invoiceCollect`\
\ value must be `true`.\n - This field is deprecated if you have the\
\ Invoice Settlement feature enabled. \n"
type: boolean
autoPay:
description: "Whether future payments are to be automatically billed when\
\ they are due. \n\n- If this field is set to `true`, you must specify\
\ either the `creditCard` field or the `hpmCreditCardPaymentMethodId`\
\ field, but not both.\n- If this field is set to `false`, you can specify\
\ neither the `creditCard` field nor the `hpmCreditCardPaymentMethodId`\
\ field.\n"
type: boolean
batch:
description: |
The alias name given to a batch. A string of 50 characters or
less.
**Note**: By default, you have 50 configurable account batches. To increase the limit to 200 batches, you must have the Performance Booster Elite package.
type: string
billCycleDay:
description: "The account's bill cycle day (BCD), when bill runs generate\
\ invoices for the account. Specify any day of the month (1-31, where\
\ 31 = end-of-month), or 0 for auto-set.\n\nRequired if no subscription\
\ will be created. \n\nOptional if a subscription is created and defaults\
\ to the day-of-the-month of the subscription's `contractEffectiveDate`.\n"
format: int64
type: integer
billToContact:
$ref: '#/definitions/POSTAccountTypeBillToContact'
collect:
default: true
description: "Collects an automatic payment for a subscription. The collection\
\ generated in this operation is only for this subscription, not for the\
\ entire customer account.\n\nIf the value is `true`, the automatic payment\
\ is collected. If the value is `false`, no action is taken.\n\nPrerequisite:\
\ The `invoice` or `runBilling` field must be `true`. \n\n**Note**: This\
\ field is only available if you set the `zuora-version` request header\
\ to `196.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
type: boolean
communicationProfileId:
description: |
The ID of the communication profile that this account is linked to.
You can provide either or both of the `communicationProfileId` and `profileNumber` fields.
If both are provided, the request will fail if they do not refer to the same communication profile.
type: string
creditCard:
$ref: '#/definitions/POSTAccountTypeCreditCard'
creditMemoReasonCode:
description: A code identifying the reason for the credit memo transaction
that is generated by the request. The value must be an existing reason
code. If you do not pass the field or pass the field with empty value,
Zuora uses the default reason code.
type: string
creditMemoTemplateId:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
The unique ID of the credit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08a6246fdf101626b1b3fe0144b.
type: string
crmId:
description: 'CRM account ID for the account, up to 100 characters.
'
type: string
currency:
description: |
A currency as defined in Billing Settings in the Zuora UI.
For payment method authorization, if the `paymentMethod` > `currencyCode` field is specified, `currencyCode` is used. Otherwise, this `currency` field is used for payment method authorization. If no currency is specified for the account, the default currency of the account is then used.
type: string
debitMemoTemplateId:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
The unique ID of the debit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08d62470a8501626b19d24f19e2.
type: string
documentDate:
description: "The date of the billing document, in `yyyy-mm-dd` format.\
\ It represents the invoice date for invoices, credit memo date for credit\
\ memos, and debit memo date for debit memos.\n\n- If this field is specified,\
\ the specified date is used as the billing document date. \n- If this\
\ field is not specified, the date specified in the `targetDate` is used\
\ as the billing document date.\n"
format: date
type: string
einvoiceProfile:
$ref: '#/definitions/PostAccountEInvoiceProfile'
hpmCreditCardPaymentMethodId:
description: |
The ID of the payment method associated with this account. The payment method specified for this field will be set as the default payment method of the account.
If the `autoPay` field is set to `true`, you must provide the credit card payment method ID for either this field or the `creditCard` field, but not both.
For the Credit Card Reference Transaction payment method, you can specify the payment method ID in this field or use the `paymentMethod` field to create a CC Reference Transaction payment method for an account.
type: string
invoice:
default: true
description: "**Note:** This field has been replaced by the `runBilling`\
\ field. The\n`invoice` field is only available for backward compatibility.\
\ \n\nCreates an invoice for a subscription. The invoice generated in\
\ this\noperation is only for this subscription, not for the entire customer\n\
account.\n\nIf the value is `true`, an invoice is created. If the value\
\ is\n`false`, no action is taken.\n\n**Note**: This field is only available\
\ if you set the `zuora-version` request header to `196.0` or `207.0`.\n"
type: boolean
invoiceCollect:
description: |
**Note:** This field has been replaced by the `invoice` field
and the `collect` field. `invoiceCollect` is available only for backward
compatibility.
If this field is set to `true`, and a subscription is created, an invoice is generated at account creation time and payment is immediately collected using the account's default payment method.
**Note**: This field is only available if you set the `zuora-version` request header to `186.0`, `187.0`, `188.0`, or `189.0`. The default field value is `true`.
type: boolean
invoiceDeliveryPrefsEmail:
default: false
description: "Whether the customer wants to receive invoices through email.\
\ \n"
type: boolean
invoiceDeliveryPrefsPrint:
default: false
description: 'Whether the customer wants to receive printed invoices, such
as through postal mail.
'
type: boolean
invoiceTargetDate:
description: "**Note:** This field has been replaced by the `targetDate`\
\ field. The\n`invoiceTargetDate` field is only available for backward\n\
compatibility. \n\n\nDate through which to calculate charges if an invoice\
\ is generated, as yyyy-mm-dd. Default is current date.\n\n\nThis field\
\ is in REST API minor version control. To use this field in\nthe method,\
\ you can set the `zuora-version` parameter to the minor\nversion number\
\ in the request header. Supported minor versions are\n`207.0` and earlier\
\ [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ \n"
format: date
type: string
invoiceTemplateId:
description: 'Invoice template ID, configured in Billing Settings in the
Zuora UI.
'
type: string
name:
description: 'Account name, up to 255 characters.
'
type: string
notes:
description: A string of up to 65,535 characters.
type: string
organizationLabel:
description: "Name of the organization that the account belongs to. \n\n\
This field is only required when you have already turned on Multi-Org\
\ feature. \n"
type: string
parentId:
description: Identifier of the parent customer account for this Account
object. The length is 32 characters. Use this field if you have Customer Hierarchy enabled.
type: string
partnerAccount:
default: false
description: "Whether the customer account is a partner, distributor, or\
\ reseller. \n\n\nYou can set this field to `true` if you have business\
\ with distributors or resellers, or operating in B2B model to manage\
\ numerous subscriptions through concurrent API requests. After this field\
\ is set to `true`, the calculation of account metrics is performed asynchronously\
\ during operations such as subscription creation, order changes, invoice\
\ generation, and payments.\n\n \n**Note**: This field is available only\
\ if you have the Reseller Account feature enabled.\n"
type: boolean
paymentGateway:
description: 'The name of the payment gateway instance. If null or left
unassigned, the Account will use the Default Gateway.
'
type: string
paymentMethod:
$ref: '#/definitions/POSTAccountTypePaymentMethod'
paymentTerm:
description: |
Payment terms for this account. Possible values are: `Due Upon Receipt`, `Net 30`, `Net 60`, `Net 90`.
**Note**: If you want to specify a payment term when creating a new account, you must set a value in this field. If you do not set a value in this field, Zuora will use `Due Upon Receipt` as the value instead of the default value set in **Billing Settings** > **Payment Terms** from Zuora UI.
type: string
profileNumber:
description: |
The number of the communication profile that this account is linked to.
You can provide either or both of the `communicationProfileId` and `profileNumber` fields.
If both are provided, the request will fail if they do not refer to the same communication profile.
type: string
runBilling:
default: true
description: "Creates an invoice for a subscription. If you have the Invoice\
\ Settlement feature enabled, a credit memo might also be created based\
\ on the [invoice and credit memo generation rule](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/B_Credit_and_Debit_Memos/Rules_for_generating_invoices_and_credit_memos).\
\ \n\n\nThe billing documents generated\nin this operation is only for\
\ this subscription, not for the entire\ncustomer account.\n\n\nPossible\
\ values:\n\n- `true`: An invoice is created. If you have the Invoice\
\ Settlement feature enabled, a credit memo might also be created.\n\n\
\n- `false`: No invoice is created.\n\n\n**Note:** This field is in Zuora\
\ REST API version control. Supported\nminor versions are `211.0` and\
\ later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ To use this field in the method,\nyou must set the `zuora-version` parameter\
\ to the minor version number\nin the request header.\n"
enum:
- true
- false
type: boolean
salesRep:
description: The name of the sales representative associated with this account,
if applicable. Maximum of 50 characters.
type: string
sequenceSetId:
description: "The ID of the billing document sequence set to assign to the\
\ customer account. \n\nThe billing documents to generate for this account\
\ will adopt the prefix and starting document number configured in the\
\ sequence set.\n\nIf a customer account has no assigned billing document\
\ sequence set, billing documents generated for this account adopt the\
\ prefix and starting document number from the default sequence set.\n"
type: string
soldToContact:
$ref: '#/definitions/POSTAccountTypeSoldToContact'
soldToSameAsBillTo:
description: "Whether the sold-to contact and bill-to contact are the same\
\ entity. \n\nThe created account has the same bill-to contact and sold-to\
\ contact entity only when all the following conditions are met in the\
\ request body:\n\n- This field is set to `true`. \n- A bill-to contact\
\ is specified.\n- No sold-to contact is specified.\n"
type: boolean
subscription:
$ref: '#/definitions/POSTAccountTypeSubscription'
tagging:
description: ''
type: string
targetDate:
description: |
Date through which to calculate charges if an invoice or a credit memo is generated, as yyyy-mm-dd. Default is current date.
**Note:** The credit memo is only available only if you have the Invoice Settlement feature enabled.
This field is in Zuora REST API version control. Supported minor versions are `211.0` and later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version). To use this field in the method, you must set the `zuora-version` parameter to the minor version number in the request header.
format: date
type: string
taxInfo:
description: 'Container for tax exempt information, used to establish the
tax exempt status of a customer account.
'
properties:
VATId:
description: "EU Value Added Tax ID. \n\n**Note:** This feature is in\
\ Limited Availability. If you wish to have access to the feature,\
\ submit a request at [Zuora Global Support](https://support.zuora.com).\n"
type: string
companyCode:
description: "Unique code that identifies a company account in Avalara.\
\ Use this field to calculate taxes based on origin and sold-to addresses\
\ in Avalara.\n\n**Note:** This feature is in Limited Availability.\
\ If you wish to have access to the feature, submit a request at [Zuora\
\ Global Support](https://support.zuora.com). \n"
type: string
exemptCertificateId:
description: 'ID of the customer tax exemption certificate. Requires
Zuora Tax.
'
type: string
exemptCertificateType:
description: 'Type of tax exemption certificate that the customer holds.
Requires Zuora Tax.
'
type: string
exemptDescription:
description: 'Description of the tax exemption certificate that the
customer holds. Requires Zuora Tax.
'
type: string
exemptEffectiveDate:
description: |
Date when the customer tax exemption starts. Requires Zuora Tax.
Format: `yyyy-mm-dd`. Defaults to the current date.
format: date
type: string
exemptEntityUseCode:
description: |
A unique entity use code to apply exemptions in Avalara AvaTax.
This account-level field is required only when you choose Avalara as your tax engine. See [Exempt Transactions](https://developer.avalara.com/avatax/handling-tax-exempt-customers/)for more details.
maxLength: 64
type: string
exemptExpirationDate:
description: |
Date when the customer tax exemption expires. Requires Zuora Tax.
Format: `yyyy-mm-dd`. Defaults to the current date.
format: date
type: string
exemptIssuingJurisdiction:
description: 'Jurisdiction in which the customer tax exemption certificate
was issued.
'
type: string
exemptStatus:
description: |
Status of the account tax exemption. Requires Zuora Tax.
Required if you use Zuora Tax. This field is unavailable if Zuora Tax is not used.
Values: `Yes`, `No`(default), `pendingVerification`. Note that the value will be set to `No` if no input.
type: string
type: object
required:
- name
- currency
- billToContact
type: object
- $ref: '#/definitions/AccountObjectNSFields'
- $ref: '#/definitions/AccountObjectCustomFields'
example:
additionalEmailAddresses:
- contact1@example.com
- contact2@example.com
autoPay: false
billCycleDay: 0
billToContact:
address1: 1051 E Hillsdale Blvd
city: Foster City
country: United States
firstName: John
lastName: Smith
state: CA
workEmail: smith@example.com
zipCode: '94404'
creditMemoReasonCode: Unsatisfactory service
currency: USD
einvoiceProfile:
businessName: legal business name
businessNumber: 20002039
businessNumberSchemeId: 088
enabled: true
endpointId: 08992
endpointSchemeId: 088
taxRegisterNumber: TAX393999
hpmCreditCardPaymentMethodId: 2c92c0f93cf64d94013cfe2d20db61a7
invoiceDeliveryPrefsEmail: true
invoiceDeliveryPrefsPrint: false
name: Zuora Test Account
notes: This account is for demo purposes.
partnerAccount: true
paymentTerm: Due Upon Receipt
subscription:
autoRenew: true
contractEffectiveDate: '2016-01-01'
initialTerm: 12
notes: This is a trial subscription for POST account demo.
renewalTerm: 12
subscribeToRatePlans:
- chargeOverrides:
- price: 1000
productRatePlanChargeId: 2c92c0f94ac8307f014ae5d4a5156b28
- price: 1000
productRatePlanChargeId: 2c92c0f94ac8307f014ae5dbe2947851
productRatePlanId: 2c92c0f94ac8307f014ae5d3d1d469e2
- chargeOverrides:
- price: 1000
productRatePlanChargeId: 2c92c0f83cf64298013d027725a67b7b
productRatePlanId: 2c92c0f93cf64d94013d027681560341
termType: TERMED
POSTAccountTypeBillToContact:
allOf:
- properties:
address1:
description: 'First address line, 255 characters or less.
'
type: string
address2:
description: 'Second address line, 255 characters or less.
'
type: string
city:
description: 'City, 40 characters or less.
'
type: string
country:
description: 'Country; must be a valid country name or abbreviation. If
using Zuora Tax, you must specify a country in the sold-to contact to
calculate tax. A bill-to contact may be used if no sold-to contact is
provided.
'
type: string
county:
description: 'County; 32 characters or less. May optionally be used by Zuora
Tax to calculate county tax.
'
type: string
fax:
description: 'Fax phone number, 40 characters or less.
'
type: string
firstName:
description: 'First name, 100 characters or less.
'
type: string
homePhone:
description: 'Home phone number, 40 characters or less.
'
type: string
lastName:
description: 'Last name, 100 characters or less.
'
type: string
mobilePhone:
description: 'Mobile phone number, 40 characters or less.
'
type: string
nickname:
description: 'Nickname for this contact
'
type: string
otherPhone:
description: 'Other phone number, 40 characters or less.
'
type: string
otherPhoneType:
description: 'Possible values are: `Work`, `Mobile`, `Home`, `Other`.
'
type: string
personalEmail:
description: 'Personal email address, 80 characters or less.
'
type: string
state:
description: 'State; must be a valid state or province name or 2-character
abbreviation. If using Zuora Tax, be aware that Zuora tax requires a state
(in the US) or province (in Canada) in this field for the sold-to contact
to calculate tax, and that a bill-to contact may be used if no sold-to
contact is provided.
'
type: string
taxRegion:
description: 'If using Zuora Tax, a region string as optionally defined
in your tax rules. Not required.
'
type: string
workEmail:
description: 'Work email address, 80 characters or less.
'
type: string
workPhone:
description: 'Work phone number, 40 characters or less.
'
type: string
zipCode:
description: 'Zip code, 20 characters or less.
'
type: string
required:
- firstName
- lastName
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
description: 'Container for bill-to contact information for this account. If you
do not provide a sold-to contact, the bill-to contact is copied to sold-to contact.
Once the sold-to contact is created, changes to billToContact will not affect
soldToContact and vice versa.
'
title: Contact
POSTAccountTypeCreditCard:
allOf:
- properties:
cardHolderInfo:
description: 'Container for cardholder information.
'
properties:
addressLine1:
description: 'First address line, 255 characters or less.
'
type: string
addressLine2:
description: 'Second address line, 255 characters or less.
'
type: string
cardHolderName:
description: 'The card holder''s full name as it appears on the card,
e.g., "John J Smith", 50 characters or less.
'
type: string
city:
description: |
City, 40 characters or less.
It is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.
type: string
country:
description: |
Country; must be a valid country name or abbreviation.
It is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.
type: string
email:
description: 'Card holder''s email address, 80 characters or less.
'
type: string
phone:
description: 'Phone number, 40 characters or less.
'
type: string
state:
description: 'State; must be a valid state name or 2-character abbreviation.
'
type: string
zipCode:
description: 'Zip code, 20 characters or less.
'
type: string
required:
- addressLine1
- cardHolderName
- city
- country
- state
- zipCode
cardNumber:
description: 'Card number, up to 16 characters. Once created, this field
can''t be updated or queried, and is only available in masked format (e.g.,
XXXX-XXXX-XXXX-1234).
'
type: string
cardType:
description: |
The type of the credit card.
Possible values include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Gateways](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways).
type: string
expirationMonth:
description: 'Two-digit expiration month (01-12).
'
type: string
expirationYear:
description: 'Four-digit expiration year.
'
type: string
securityCode:
description: 'The CVV or CVV2 security code of the card. To ensure PCI compliance,
this value is not stored and cannot be queried.
'
type: string
required:
- cardHolderInfo
- cardNumber
- cardType
- expirationMonth
- expirationYear
type: object
- $ref: '#/definitions/PaymentMethodObjectCustomFields'
description: "**Note:** This field has been deprecated, and is currently available\
\ only for backward compatibility. Use the `paymentMethod` field instead to\
\ create a payment method associated with this account.\n\nContainer for information\
\ on a credit card to associate with this account. \nIf the `autoPay` field\
\ is set to `true`, you must provide one of the `paymentMethod`, `creditCard`,\
\ or `hpmCreditCardPaymentMethodId` field, but not multiple.\n"
title: creditCard
POSTAccountTypePaymentMethod:
allOf:
- properties:
type:
description: |
Type of payment method. Possible values include:
* `CreditCard` - Credit card payment method.
* `CreditCardReferenceTransaction` - Credit Card Reference Transaction. See [Supported payment methods](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Supported_Payment_Methods) for payment gateways that support this type of payment method.
* `ACH` - ACH payment method.
* `SEPA` - Single Euro Payments Area.
* `Betalingsservice` - Direct Debit DK.
* `Autogiro` - Direct Debit SE.
* `Bacs` - Direct Debit UK.
* `Becs` - Direct Entry AU.
* `Becsnz` - Direct Debit NZ.
* `PAD` - Pre-Authorized Debit.
* `PayPalCP` - PayPal Commerce Platform payment method. Use this type if you are using a [PayPal Commerce Platform Gateway](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Commerce_Platform_Gateway) instance.
* `PayPalEC` - PayPal Express Checkout payment method. Use this type if you are using a [PayPal Payflow Pro Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Payflow_Pro%2C_Website_Payments_Payflow_Edition%2C_Website_Pro_Payment_Gateway) instance.
* `PayPalNativeEC` - PayPal Native Express Checkout payment method. Use this type if you are using a [PayPal Express Checkout Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Express_Checkout_Gateway) instance.
* `PayPalAdaptive` - PayPal Adaptive payment method. Use this type if you are using a [PayPal Adaptive Payment Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Adaptive_Payments_Gateway) instance.
* `AdyenApplePay` - Apple Pay on Adyen Integration v2.0. See [Set up Adyen Apple Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Apple_Pay_on_Web/Set_up_Adyen_Apple_Pay) for details.
* `AdyenGooglePay` - Google Pay on Adyen Integration v2.0. See [Set up Adyen Google Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Adyen_Google_Pay) for details.
* `GooglePay` - Google Pay on Chase Paymentech Orbital gateway integration. See [Set up Google Pay on Chase](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Google_Pay_on_Chase) for details.
* You can also specify a custom payment method type. 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 details.
type: string
required:
- type
type: object
- $ref: '#/definitions/CreatePMPayPalECPayPalNativeECPayPalCP'
- $ref: '#/definitions/CreatePaymentMethodPayPalAdaptive'
- $ref: '#/definitions/CreatePaymentMethodCreditCard'
- $ref: '#/definitions/CreatePaymentMethodACH'
- $ref: '#/definitions/CreatePaymentMethodCommon'
- $ref: '#/definitions/PaymentMethodObjectCustomFields'
- $ref: '#/definitions/CreatePaymentMethodBankTransfer'
- $ref: '#/definitions/CreatePaymentMethodCCReferenceTransaction'
- $ref: '#/definitions/CreatePaymentMethodApplePayAdyen'
- $ref: '#/definitions/CreatePaymentMethodGooglePayAdyenChase'
description: |
Container for information on payment methods to associate with this account. To associate a credit card payment method when creating an account, Zuora recommends that you use this field instead of the `creditCard` field.
Note that you can not use this field together with `creditCard` or `hpmCreditCardPaymentMethodId` to associate a payment method to an account.
title: paymentMethod
POSTAccountTypeSoldToContact:
allOf:
- properties:
address1:
description: 'First address line, 255 characters or less.
'
type: string
address2:
description: 'Second address line, 255 characters or less.
'
type: string
city:
description: 'City, 40 characters or less.
'
type: string
country:
description: 'Country; must be a valid country name or abbreviation. If
using Zuora Tax, you must specify a country in the sold-to contact to
calculate tax. A bill-to contact may be used if no sold-to contact is
provided.
'
type: string
county:
description: 'County; 32 characters or less. May optionally be used by Zuora
Tax to calculate county tax.
'
type: string
fax:
description: 'Fax phone number, 40 characters or less.
'
type: string
firstName:
description: 'First name, 100 characters or less.
'
type: string
homePhone:
description: 'Home phone number, 40 characters or less.
'
type: string
lastName:
description: 'Last name, 100 characters or less.
'
type: string
mobilePhone:
description: 'Mobile phone number, 40 characters or less.
'
type: string
nickname:
description: 'Nickname for this contact
'
type: string
otherPhone:
description: 'Other phone number, 40 characters or less.
'
type: string
otherPhoneType:
description: 'Possible values are: `Work`, `Mobile`, `Home`, `Other`.
'
type: string
personalEmail:
description: 'Personal email address, 80 characters or less.
'
type: string
state:
description: 'State; must be a valid state or province name or 2-character
abbreviation. If using Zuora Tax, be aware that Zuora Tax requires a state
(in the US) or province (in Canada) in this field for the sold-to contact
to calculate tax, and that a bill-to contact may be used if no sold-to
contact is provided.
'
type: string
taxRegion:
description: 'If using Zuora Tax, a region string as optionally defined
in your tax rules. Not required.
'
type: string
workEmail:
description: 'Work email address, 80 characters or less.
'
type: string
workPhone:
description: 'Work phone number, 40 characters or less.
'
type: string
zipCode:
description: 'Zip code, 20 characters or less.
'
type: string
required:
- firstName
- lastName
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
description: 'Container for optional sold-to contact; uses the same field structure
as the bill-to contact (above). If a sold-to contact is not specified, one is
created from the bill-to contact. Once created, these are two separate data
entities, and future changes to one do not affect the other.
'
title: soldToContact
POSTAccountTypeSubscription:
allOf:
- properties:
autoRenew:
description: 'If `true`, auto-renew is enabled. Default is `false`.
'
type: boolean
contractEffectiveDate:
description: 'Effective contract date for this subscription, as `yyyy-mm-dd`.
'
format: date
type: string
customerAcceptanceDate:
description: |
The date on which the services or products within a subscription have been accepted by the customer, as `yyyy-mm-dd`.
Default value is dependent on the value of other fields. See Notes section for more details.
format: date
type: string
initialTerm:
description: "Duration of the initial subscription term in whole months.\
\ Default is 0. \n"
format: int64
type: integer
invoiceOwnerAccountKey:
description: "Invoice owner account number or ID.\n\n**Note:** This feature\
\ is in Limited Availability. If you wish to have access to the feature,\
\ submit a request at [Zuora Global Support](https://support.zuora.com).\
\ \n"
type: string
invoiceSeparately:
description: "Separates a single subscription from other subscriptions and\
\ invoices the charge independently. \n\nIf the value is `true`, the subscription\
\ is billed separately from other subscriptions. If the value is `false`,\
\ the subscription is included with other subscriptions in the account\
\ invoice.\nThe default value is `false`.\n\nPrerequisite: The default\
\ subscription setting `Enable Subscriptions to be Invoiced Separately`\
\ must be set to `Yes`.\n"
type: boolean
notes:
description: ''
type: string
renewalTerm:
description: 'Duration of the renewal term in whole months. Default is 0.
'
format: int64
type: integer
serviceActivationDate:
description: |
The date on which the services or products within a subscription have been activated and access has been provided to the customer, as `yyyy-mm-dd`.
Default value is dependent on the value of other fields. See Notes section for more details.
format: date
type: string
subscribeToRatePlans:
description: 'Container for one or more rate plans for this subscription.
'
items:
$ref: '#/definitions/POSTSrpCreateType'
type: array
subscriptionNumber:
description: |
Subscription Number. The value can be up to 1000 characters.
If you do not specify a subscription number when creating a subscription for the new account, Zuora will generate a subscription number automatically.
If the account is created successfully, the subscription number is returned in the `subscriptionNumber` response field.
type: string
termStartDate:
description: 'The date on which the subscription term begins, as `yyyy-mm-dd`.
If this is a renewal subscription, this date is different from the subscription
start date.
'
format: date
type: string
termType:
description: 'Possible values are: `TERMED`, `EVERGREEN`.
'
type: string
required:
- contractEffectiveDate
- termType
type: object
- $ref: '#/definitions/SubscriptionObjectQTFields'
- $ref: '#/definitions/SubscriptionObjectNSFields'
- $ref: '#/definitions/SubscriptionObjectCustomFields'
description: 'Container for subscription information, used if creating a subscription
for the new account at the time of account creation.
'
title: subscription
POSTAccountingCodeResponseType:
properties:
id:
description: 'ID of the newly created accounting code.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
POSTAccountingCodeType:
allOf:
- properties:
glAccountName:
description: |
Name of the account in your general ledger.
Field only available if you have Zuora Finance enabled. Maximum of 255 characters.
type: string
glAccountNumber:
description: |
Account number in your general ledger.
Field only available if you have Zuora Finance enabled. Maximum of 255 characters.
type: string
name:
description: |
Name of the accounting code.
Accounting code name must be unique. Maximum of 100 characters.
type: string
notes:
description: 'Maximum of 2,000 characters.
'
type: string
type:
description: "If you want to create multiple accounting codes of the type\
\ `AccountsReceivable`, you need to have [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement)\
\ enabled and contact [Zuora Global Support](http://support.zuora.com)\
\ to access the Multiple AR Accounting Codes feature. \n\nNote that `On-Account\
\ Receivable` is only available if you enable the Invoice Settlement feature.\
\ \n"
enum:
- AccountsReceivable
- On-Account Receivable
- Cash
- OtherAssets
- CustomerCashOnAccount
- DeferredRevenue
- SalesTaxPayable
- OtherLiabilities
- SalesRevenue
- SalesDiscounts
- OtherRevenue
- OtherEquity
- BadDebt
- OtherExpenses
type: string
required:
- name
- type
type: object
- $ref: '#/definitions/AccountingCodeObjectCustomFields'
example:
name: CASH
type: Cash
POSTAccountingPeriodResponseType:
properties:
id:
description: 'ID of the newly-created accounting period.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
POSTAccountingPeriodType:
allOf:
- properties:
endDate:
description: 'The end date of the accounting period in yyyy-mm-dd format,
for example, "2016-02-19".
'
format: date
type: string
fiscalYear:
description: 'Fiscal year of the accounting period in yyyy format, for example,
"2016".
'
type: string
fiscal_quarter:
description: ''
format: int64
type: integer
name:
description: |
Name of the accounting period.
Accounting period name must be unique. Maximum of 100 characters.
type: string
notes:
description: |
Notes about the accounting period.
Maximum of 255 characters.
type: string
organizationLabels:
description: "The organization that the accounting period belongs to. \n\
\nFor each item in the array, either the `organizationId` or the `organizationName`\
\ field is required.\n\nThis field is only required when you have already\
\ turned on Multi-Org feature.\n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
startDate:
description: 'The start date of the accounting period in yyyy-mm-dd format,
for example, "2016-02-19".
'
format: date
type: string
required:
- name
- startDate
- endDate
- fiscalYear
type: object
- $ref: '#/definitions/AccountingPeriodObjectCustomFields'
example:
endDate: '2016-06-30'
fiscalYear: 2016
name: Jun 2016
notes: optional notes here
startDate: '2016-06-01'
POSTAddItemsToPaymentScheduleRequest:
description: 'Container for the payment schedule items to be added to the payment
schedule.
'
properties:
items:
items:
$ref: '#/definitions/PaymentScheduleItemCommon'
title: paymentScheduleItem
type: array
type: object
POSTAdjustmentResponseType:
allOf:
- properties:
adjustmentId:
description: 'The system generated delivery adjustment ID.
'
format: UUID
type: string
adjustmentNumber:
description: 'The system generated delivery adjustment number.
'
format: string
type: string
amount:
description: 'The amount of the delivery adjustment.
'
format: number
type: string
billingDate:
description: 'The billing date is same as the delivery date of the delivery
adjustment, in `yyyy-mm-dd` format.
'
format: date
type: string
chargeNumber:
description: 'The charge number in the subscription for which the delivery
adjustment is created.
'
type: string
creditMemoNumber:
description: 'The Credit Memo generated for the delivery adjustment.
'
type: string
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as Monthly
Recurring Liability.
'
type: string
deliveryDate:
description: 'The delivery adjustment date, in `yyyy-mm-dd` format.
'
format: date
type: string
deliveryDay:
description: 'The delivery adjustment day of the week.
'
format: string
type: string
eligible:
description: 'The eligible flag is set as true for a successfully created
delivery adjustment.
'
type: boolean
reason:
description: 'The reason for the delivery adjustment.
'
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as Monthly
Recurring Charges or Overage Charges.
'
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the revenue
schedule.
'
type: string
status:
description: 'The status of the delivery adjustment will be `Billed` or
`Cancelled`.
'
type: string
subscriptionNumber:
description: 'The subscription number for which the delivery adjustment
is created.
'
type: string
type: object
POSTAttachmentResponseType:
properties:
fileId:
description: 'ID to identify the attached file. Use this file ID with [Get
files](https://developer.zuora.com/api-references/api/operation/GET_Files)
to download the file.
'
type: string
id:
description: 'Attachment id.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
POSTAuthorizeResponse:
example:
gatewayOrderId: A001
resultCode: 0
resultMessage: 'Request ID: 5231719060426316203012'
success: true
transactionId: '5231719060426316203012'
properties:
gatewayOrderId:
description: |
The order ID for the specific gateway.
The specified order ID will be used in transaction authorization. If you specify an empty value for this field, Zuora will generate an ID and you will have to associate this ID with your order ID by yourself if needed. It is recommended to specify an ID for this field.
type: string
paymentGatewayResponse:
description: 'The response data returned from the gateway. This field is available
only if the `success` field is `false` and the support for returning additional
error information from the gateway is enabled.
'
properties:
additionalInfo:
description: |
The additional information returned from the gateway. The returned fields vary for gateways. Here is an example.
```
"additionalInfo": {
"ProcessorName": "MasterCard Saferpay Test",
"ProcessorResult": "51",
"ProcessorMessage": "Insufficient funds",
"ErrorName": "TRANSACTION_DECLINED"
}
```
type: object
gatewayResponseCode:
description: 'The HTTP response code.
'
type: string
gatewayResponseMessage:
description: 'The error message returned from the gateway.
'
type: string
gatewayType:
description: 'The gateway type.
'
type: string
gatewayVersion:
description: 'The gateway version.
'
type: string
type: object
processId:
description: 'The ID of the running process when the exception occurs. This
field is available only if the `success` field is `false`.
'
type: string
reasons:
description: 'The container of the error code and message. This field is available
only if the `success` field is `false`.
'
items:
properties:
code:
description: 'Error code.
'
type: string
message:
description: 'Error message. It usually contains a combination of gateway
response code and response message.
'
type: string
type: object
type: array
requestId:
description: 'The ID of the request. This field is available only if the `success`
field is `false`
'
type: string
resultCode:
description: "The result code of the request. \n\n0 indicates that the request\
\ succeeded, and the following values indicate that the request failed:\n\
\ - 1: The request is declined.\n - 7: The field format is not correct.\n\
\ - 10: Client connection has timed out.\n - 11: Host connection has timed\
\ out.\n - 12: Processor connection has timed out.\n - 13: Gateway server\
\ is busy.\n - 20: The card type is not supported.\n - 21: The merchant\
\ account information is invalid.\n - 22: A generic error occurred on the\
\ processor.\n - 40: The card type has not been set up yet.\n - 41: The\
\ limit for a single transaction is exceeded.\n - 42: Address checking\
\ failed.\n - 43: Card security code checking failed.\n - 44: Failed due\
\ to the gateway security setting.\n - 45: Fraud protection is declined.\n\
\ - 46: Address checking or card security code checking failed (for Authorize.net\
\ gateway only).\n - 47: The maximum amount is exceeded (for Authorize.net\
\ gateway only).\n - 48: The IP address is blocked by the gateway (for\
\ Authorize.net gateway only).\n - 49: Card security code checking failed\
\ (for Authorize.net gateway only).\n - 60: User authentication failed.\n\
\ - 61: The currency code is invalid.\n - 62: The transaction ID is invalid.\n\
\ - 63: The credit card number is invalid.\n - 64: The card expiration\
\ date is invalid.\n - 65: The transaction is duplicated.\n - 66: Credit\
\ transaction error.\n - 67: Void transaction error.\n - 90: A valid amount\
\ is required.\n - 91: The BA code is invalid.\n - 92: The account number\
\ is invalid.\n - 93: The ACH transaction is not accepted by the merchant.\n\
\ - 94: An error occurred for the ACH transaction.\n - 95: The version\
\ parameter is invalid.\n - 96: The transaction type is invalid.\n - 97:\
\ The transaction method is invalid.\n - 98: The bank account type is invalid.\n\
\ - 99: The authorization code is invalid.\n - 200: General transaction\
\ error.\n - 500: The transaction is queued for submission.\n - 999: Unknown\
\ error.\n - -1: An error occurred in gateway communication.\n - -2: Idempotency\
\ is not supported.\n - -3: Inquiry call is not supported.\n"
type: string
resultMessage:
description: The corresponding request ID.
type: string
success:
description: Indicates whether the call succeeded.
type: boolean
transactionId:
description: The ID of the transaction.
type: string
type: object
POSTBillingDocumentFilesDeletionJobRequest:
example:
accountIds:
- 4028905558b483220158b48983dd0015
- 6028905558b483220158b68983dd0016
accountKeys:
- 4028905558b483220158b48983dd0015
- A00000001
properties:
accountIds:
description: |
Container for the IDs of the accounts that you want to create the billing document files deletion job for.
**Note**: When creating jobs to delete billing document PDF files, you must specify either set of `accountIds` or `accountKeys` in the request body.
items:
type: string
type: array
accountKeys:
description: |
Container for the IDs and/or numbers of the accounts that you want to create the billing document files deletion job for.
**Note**: When creating jobs to delete billing document PDF files, you must specify either set of `accountIds` or `accountKeys` in the request body.
items:
type: string
type: array
type: object
POSTBillingDocumentFilesDeletionJobResponse:
properties:
id:
description: 'The unique ID of the billing document file deletion job.
'
type: string
status:
description: 'The status of the billing document file deletion job.
'
enum:
- Pending
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
POSTBillingPreviewCreditMemoItem:
properties:
amount:
description: 'The amount of the credit memo item. For tax-inclusive credit
memo items, the amount indicates the credit memo item amount including tax.
For tax-exclusive credit memo items, the amount indicates the credit memo
item amount excluding tax
'
format: double
type: number
amountWithoutTax:
description: 'The credit memo item amount excluding tax.
'
format: double
type: number
appliedToItemId:
description: 'The unique ID of the credit memo item that the discount charge
is applied to.
'
type: string
chargeDate:
description: 'The date when the credit memo item is created.
'
format: date-time
type: string
chargeNumber:
description: 'Number of the charge.
'
type: string
chargeType:
description: "The type of charge. \n\nPossible values are `OneTime`, `Recurring`,\
\ and `Usage`.\n"
type: string
comment:
description: 'Comment of the credit memo item.
'
type: string
id:
description: 'Credit memo item id.
'
type: string
numberOfDeliveries:
description: "The number of deliveries dedicated to the Delivery Pricing charges.\
\ The value might be different, as follows:\n\n**Note**: This field is available\
\ only if you have the Delivery Pricing feature enabled. \n"
processingType:
description: "Identifies the kind of charge. \n\nPossible values:\n* charge\n\
* discount\n* prepayment\n* tax\n"
type: string
quantity:
description: 'Quantity of this item, in the configured unit of measure for
the charge.
'
format: decimal
type: string
ratePlanChargeId:
description: 'Id of the rate plan charge associated with this item.
'
type: string
serviceEndDate:
description: 'End date of the service period for this item, i.e., the last
day of the service period, in yyyy-mm-dd format.
'
format: date
type: string
serviceStartDate:
description: 'Start date of the service period for this item, in yyyy-mm-dd
format. If the charge is a one-time fee, this is the date of that charge.
'
format: date
type: string
sku:
description: 'Unique SKU for the product associated with this item.
'
type: string
skuName:
description: 'Name of the unique SKU for the product associated with this
item.
'
type: string
subscriptionId:
description: 'ID of the subscription associated with this item.
'
type: string
subscriptionNumber:
description: 'Name of the subscription associated with this item.
'
type: string
unitOfMeasure:
description: 'Unit used to measure consumption.
'
type: string
title: creditMemoItems
type: object
POSTBillingPreviewInvoiceItem:
properties:
appliedToItemId:
description: 'The unique ID of the invoice item that the discount charge is
applied to.
'
type: string
chargeAmount:
description: 'The amount of the charge. This amount doesn''t include taxes
regardless if the charge''s tax mode is inclusive or exclusive.
'
format: decimal
type: string
chargeDate:
description: 'The date when the invoice item was created.
'
format: date-time
type: string
chargeDescription:
description: 'Description of the charge.
'
type: string
chargeId:
description: 'Id of the charge.
'
type: string
chargeName:
description: 'Name of the charge.
'
type: string
chargeNumber:
description: 'Number of the charge.
'
type: string
chargeType:
description: "The type of charge. \n\nPossible values are `OneTime`, `Recurring`,\
\ and `Usage`.\n"
type: string
id:
description: 'Invoice item ID.
'
type: string
numberOfDeliveries:
description: "The number of deliveries dedicated to the Delivery Pricing charges.\
\ The value might be different, as follows:\n\n**Note**: This field is available\
\ only if you have the Delivery Pricing feature enabled. \n"
processingType:
description: "Identifies the kind of charge. \n\nPossible values:\n* charge\n\
* discount\n* prepayment\n* tax\n"
type: string
productName:
description: 'Name of the product associated with this item.
'
type: string
quantity:
description: 'Quantity of this item, in the configured unit of measure for
the charge.
'
format: decimal
type: string
serviceEndDate:
description: 'End date of the service period for this item, i.e., the last
day of the service period, in `yyyy-mm-dd` format.
'
format: date
type: string
serviceStartDate:
description: 'Start date of the service period for this item, in `yyyy-mm-dd`
format. If the charge is a one-time fee, this is the date of that charge.
'
format: date
type: string
subscriptionId:
description: 'ID of the subscription associated with this item.
'
type: string
subscriptionName:
description: 'Name of the subscription associated with this item.
'
type: string
subscriptionNumber:
description: 'Number of the subscription associated with this item.
'
type: string
taxAmount:
description: "If you use [Zuora Tax](https://knowledgecenter.zuora.com/Billing/Taxes/A_Zuora_Tax)\
\ and the product rate plan charge associated with the invoice item is of\
\ [tax inclusive mode](https://knowledgecenter.zuora.com/Billing/Taxes/A_Zuora_Tax/D_Associate_tax_codes_with_product_charges_and_set_the_tax_mode),\
\ the value of this field is the amount of tax applied to the charge. Otherwise,\
\ the value of this field is `0`. \n"
format: decimal
type: string
unitOfMeasure:
description: 'Unit used to measure consumption.
'
type: string
title: invoiceItems
type: object
POSTBulkCreditMemoFromInvoiceType:
allOf:
- properties:
invoiceId:
description: 'The ID of the invoice that the credit memo is created from.
'
type: string
type: object
- $ref: '#/definitions/CreditMemoFromInvoiceType'
title: memos
POSTBulkCreditMemosRequestType:
discriminator: sourceType
properties:
sourceType:
description: "The type of the source where credit memos are created. \n\n\
This enum field has the following values:\n- `Invoice`: By setting this\
\ field to `Invoice`, you can create multiple credit memos from invoices.\n\
- `Standalone`: By setting this field to `Standalone`, you can create multiple\
\ credit memos from product rate plan charges.\n\nThe specific schema of\
\ the `memos` object field in the request body depends on the value of the\
\ `sourceType` field.\n- To view the `memos` schema if you set the `sourceType`\
\ field to `Invoice`, select `CreditMemosFromInvoices` from the following\
\ drop-down list.\n- To view the `memos` schema if you set the `sourceType`\
\ field to `Standalone`, select `CreditMemosFromCharges` from the following\
\ drop-down list.\n"
enum:
- Invoice
- Standalone
type: string
required:
- sourceType
type: object
POSTBulkDebitMemoFromInvoiceType:
allOf:
- properties:
invoiceId:
description: 'The ID of the invoice that the debit memo is created from.
'
type: string
type: object
- $ref: '#/definitions/DebitMemoFromInvoiceType'
title: memos
POSTBulkDebitMemosRequestType:
discriminator: sourceType
properties:
sourceType:
description: "The type of the source where debit memos are created. \n\nThis\
\ enum field has the following values:\n- `Invoice`: By setting this field\
\ to `Invoice`, you can create multiple debit memos from invoices.\n- `Standalone`:\
\ By setting this field to `Standalone`, you can create multiple debit memos\
\ from product rate plan charges.\n\nThe specific schema of the `memos`\
\ object field in the request body depends on the value of the `sourceType`\
\ field.\n- To view the `memos` schema if you set the `sourceType` field\
\ to `Invoice`, select `DebitMemosFromInvoices` from the following drop-down\
\ list.\n- To view the `memos` schema if you set the `sourceType` field\
\ to `Standalone`, select `DebitMemosFromCharges` from the following drop-down\
\ list.\n"
enum:
- Invoice
- Standalone
type: string
required:
- sourceType
type: object
POSTCatalogGroupRequest:
allOf:
- properties:
description:
description: 'The description of the catalog group.
'
type: string
name:
description: 'The unique name of the catalog group.
'
type: string
productRatePlans:
description: 'The list of product rate plans to be added to the catalog
group.
'
items:
$ref: '#/definitions/POSTorPUTCatalogGroupAddProductRatePlan'
type: array
type:
default: Grading
description: "The type of the catalog group. \n"
enum:
- Grading
- Display
type: string
type: object
example:
description: description
name: Example
productRatePlans:
- grade: 3
id: 4028e5ab7f1b600c017f1b787d5d01cf
- grade: 2
id: 4028e5ab7f1b600c017f1b787d5d01ac
type: Grading
POSTChargeDefinitionBulkResponse:
properties:
productChargeDefinitions:
description: 'The list of created product charge definitions.
'
items:
$ref: '#/definitions/POSTChargeDefinitionResponse'
type: array
type: object
POSTChargeDefinitionPricingTier:
description: 'An array of charge pricing tier.
'
items:
properties:
currency:
description: 'The code corresponding to the currency for the tier''s price.
'
type: string
endingUnit:
description: 'The end number of a range of units for the tier. This field
is required for charges based on the Tiered Pricing or Tiered with Overage
Pricing charge model.
'
format: double
type: number
price:
description: 'The price of the tier if the price format is flat fee, or
the price of each unit in the tier if the price format is per unit.
'
format: double
type: number
priceFormat:
description: 'The price format of the tier.
'
enum:
- Flat Fee
- Per Unit
type: string
startingUnit:
description: 'The starting number of a range of units for the tier. This
field is required for charges based on the Tiered Pricing or Tiered with
Overage Pricing charge model.
'
format: double
type: number
type: object
title: pricingTiers
type: array
POSTChargeDefinitionRequest:
example:
billingPeriod: Specific_Months
chargeModel: FlatFee
defaultQuantity: 10
effectiveEndDate: '2025-01-01 00:00:00'
effectiveStartDate: '2024-01-01 00:00:00'
listPriceBase: Per_Billing_Period
prices:
- currency: USD
price: 10
productRatePlanChargeId: 2c9890e489f227bd0189f22f3482001f
productRatePlanChargeNumber: PRPC-00000015
productRatePlanId: 2c9890e489f227bd0189f22c3c730002
productRatePlanNumber: PRP-NEW-00000242
specificBillingPeriod: 10
specificListPriceBase: 101
taxCode: a valid tax code
taxMode: TaxExclusive
taxable: false
term: 24
termPeriodType: Month
termType: TERMED
uom: Each
properties:
billingPeriod:
description: 'The billing period for the product charge definition.
'
type: string
billingTiming:
description: 'The billing timing setting for the product charge definition.
'
enum:
- IN_ADVANCE
- IN_ARREARS
type: string
chargeModel:
description: 'Determines how to calculate charges. Charge models must be individually
activated in Zuora Billing administration.
'
enum:
- DiscountFixedAmount
- DiscountPercentage
- FlatFee
- PerUnit
- Tiered
- Volume
- Delivery
type: string
defaultQuantity:
description: "The default quantity. \n\nThis field is applicable only for\
\ one-time and recurring charges.\n"
type: number
effectiveEndDate:
description: 'The effective end date of the product charge definition.
'
format: date-time
type: string
effectiveStartDate:
description: 'The effective start date of the product charge definition.
'
format: date-time
type: string
excludeItemBillingFromRevenueAccounting:
description: "Indicates whether to exclude the related invoice items, invoice\
\ item adjustments, credit memo items, and debit memo items from revenue\
\ accounting.\n\n**Note**: This field is only available if you have the\
\ Order to Revenue or Billing - Revenue Integration feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
description: |
Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.
**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.
type: boolean
isAllocationEligible:
description: |
Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `false`.
**Values**: `true`, `false`
**Note**: This field is available only if you have the Additional Revenue Fields property enabled.
type: boolean
isUnbilled:
description: "Specifies how to perform the accounting during revenue recognition.\
\ The default value is `false`.\n\n**Values**: `true`, `false`\n\n**Note**:\
\ This field is available only if you have the Additional Revenue Fields\
\ property enabled. \n"
type: boolean
listPriceBase:
description: "The list price base. \n\nThis field is applicable only for recurring\
\ charges.\n\n**Note**: The `Per_Year` enum value is available only if you\
\ have the Annual List Price feature enabled.\n"
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
type: string
prices:
description: 'Container for the prices of the product charge definition.
'
items:
$ref: '#/definitions/POSTProductChargeDefinitionPricing'
type: array
productCategory:
description: "This field is used to maintain the product category for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
productClass:
description: "This field is used to maintain the product class for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
productFamily:
description: "This field is used to maintain the product family for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled.\n"
type: string
productLine:
description: "This field is used to maintain the product line for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled.\n"
type: string
productRatePlanChargeId:
description: 'The unique ID of the charge of the charge definition.
'
type: string
productRatePlanChargeNumber:
description: 'The unique number (natural key) of the charge of the charge
definition.
'
type: string
productRatePlanId:
description: 'The unique ID of the product rate plan that uses this charge
definition.
'
type: string
productRatePlanNumber:
description: 'The unique number (natural key) of the product rate plan that
uses this charge definition.
'
type: string
specificBillingPeriod:
description: 'The specific number of billing periods for the product charge
definition.
'
type: number
specificListPriceBase:
description: "The number of months for the list price base of the charge definition.\
\ \nThis field is `null` if the `listPriceBase` field is not set to `Per_Specific_Months`.\n"
format: int32
maximum: 200
minimum: 1
type: integer
taxCode:
description: |
Specifies the tax code for taxation rules. This field is required when the `Taxable` field is set to `True`.
**Note**: This value affects the tax calculation of the charge.
maxLength: 64
type: string
taxMode:
description: |
Determines how to define taxation for the charge. This field is required when the `Taxable` field is set to `True`.
**Note**: This value affects the tax calculation of the charge.
enum:
- TaxExclusive
- TaxInclusive
type: string
taxable:
description: |
Determines whether the charge definition is taxable. When this field is set to `True`, the `TaxMode` and `TaxCode` fields are required.
**Character limit**: 5
**Values**: `True`, `False`
**Note**: This value affects the tax calculation of the charge.
type: boolean
term:
description: "The number of periods of a termed subscription that is eligible\
\ for this charge definition. This field is applicable when the `termType`\
\ field is set to `TERMED`, \nand is to be used together with the `termPeriodType`\
\ field.\n"
type: number
termPeriodType:
description: 'Specifies the period type for the subscription term that is
eligible for this charge definition.
'
enum:
- Month
- Year
- Day
- Week
type: string
termType:
description: 'The type of the subscription that is eligible for this charge
definition.
'
enum:
- TERMED
- EVERGREEN
type: string
uom:
description: 'Describes the unit of measure (UOM) configured in **Settings
> Billing** for the charge.
'
type: string
title: productChargeDefinitions
type: object
POSTChargeDefinitionRequestBulk:
example:
productChargeDefinitions:
- billingPeriod: Specific_Months
chargeModel: FlatFee
defaultQuantity: 10
effectiveEndDate: '2025-01-01 00:00:00'
effectiveStartDate: '2024-01-01 00:00:00'
listPriceBase: Per_Billing_Period
prices:
- currency: USD
price: 10
productRatePlanChargeId: 2c9890e489f227bd0189f22f3482001f
productRatePlanChargeNumber: PRPC-00000015
productRatePlanId: 2c9890e489f227bd0189f22c3c730002
productRatePlanNumber: PRP-NEW-00000242
specificBillingPeriod: 10
specificListPriceBase: 101
taxCode: a valid tax code
taxMode: TaxExclusive
taxable: false
term: 24
termPeriodType: Month
termType: TERMED
uom: Each
properties:
productChargeDefinitions:
description: 'Container for the array of product charge definition.
'
items:
$ref: '#/definitions/POSTChargeDefinitionRequest'
type: array
type: object
POSTChargeDefinitionResponse:
properties:
chargeDefinitionId:
description: 'The unique ID of the product charge definition.
'
type: string
chargeDefinitionNumber:
description: 'The unique number (natural key) of the product charge definition.
'
type: string
success:
description: 'Indicates whether the request succeeded.
'
type: boolean
type: object
POSTContactType:
allOf:
- properties:
accountId:
description: "The ID of the account associated with the contact. \n\n**Note**:\
\ When creating a contact, you must specify `accountNumber`, `accountId`,\
\ or both in the request body. If both fields are specified, they must\
\ correspond to the same account.\n"
type: string
accountNumber:
description: "The number of the customer account associated with the contact.\
\ \n\n**Note**: When creating a contact, you must specify `accountNumber`,\
\ `accountId`, or both in the request body. If both fields are specified,\
\ they must correspond to the same account.\n"
type: string
address1:
description: 'The first line of the contact''s address, which is often a
street address or business name.
'
maxLength: 255
type: string
address2:
description: 'The second line of the contact''s address.
'
maxLength: 255
type: string
city:
description: 'The city of the contact''s address.
'
maxLength: 40
type: string
contactDescription:
description: 'A description for the contact.
'
maxLength: 100
type: string
country:
description: 'The country of the contact''s address.
'
maxLength: 64
type: string
county:
description: 'The county. May optionally be used by Zuora Tax to calculate
county tax.
'
maxLength: 32
type: string
fax:
description: 'The contact''s fax number.
'
maxLength: 40
type: string
firstName:
description: 'The contact''s first name.
'
maxLength: 100
type: string
homePhone:
description: 'The contact''s home phone number.
'
maxLength: 40
type: string
lastName:
description: 'The contact''s last name.
'
maxLength: 100
type: string
mobilePhone:
description: 'The mobile phone number of the contact.
'
maxLength: 100
type: string
nickname:
description: 'A nickname for the contact.
'
maxLength: 100
type: string
otherPhone:
description: 'An additional phone number for the contact.
'
maxLength: 40
type: string
otherPhoneType:
description: 'The type of the additional phone number.
'
enum:
- Work
- Mobile
- Home
- Other
type: string
personalEmail:
description: 'The contact''s personal email address.
'
maxLength: 74
type: string
state:
description: 'The state or province of the contact''s address.
'
maxLength: 40
type: string
taxRegion:
description: 'If using Zuora Tax, a region string as optionally defined
in your tax rules. Not required.
'
maxLength: 32
type: string
workEmail:
description: 'The contact''s business email address.
'
maxLength: 74
type: string
workPhone:
description: 'The contact''s business phone number.
'
maxLength: 40
type: string
zipCode:
description: 'The zip code for the contact''s address.
'
maxLength: 20
type: string
required:
- firstName
- lastName
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
example:
accountId: 6e767220676e6e61206776652075207570
accountNumber: A00000001
address1: 314, Bongora
address2: near Tech City
city: GHY
contactDescription: This is a description for the contact
country: India
fax: '6174'
firstName: Kuhi
homePhone: '1234123'
lastName: Das
mobilePhone: '123213'
nickname: Dorimi
otherPhone: '2314213'
otherPhoneType: Work
personalEmail: kuhiroll@example.com
state: Assam
zipCode: '123456'
POSTCreateBillRunRequestType:
allOf:
- properties:
autoEmail:
default: false
description: |
Whether to automatically send emails after Auto-Post is complete.
**Note:** To use this field, you must first set the Support Bill Run Auto-Post? billing rule to **Yes** through the Zuora UI.
type: boolean
autoPost:
default: false
description: |
Whether to automatically post the bill run after the bill run is created.
**Note:** To use this field, you must first set the Support Bill Run Auto-Post? billing rule to **Yes** through the Zuora UI.
type: boolean
autoRenewal:
default: false
description: 'Whether to automatically renew auto-renew subscriptions that
are up for renewal.
'
type: boolean
batches:
description: "The batch of accounts for this bill run. \n\nYou can only\
\ specify either this field or the `billRunFilters` field.\n\n**Values:**\
\ `AllBatches` or an array of `Batch*n*` where *n* is one of numbers 1\
\ - 50, for example, `Batch7`.\n\n**Note**: By default, you have 50 configurable\
\ account batches. To increase the limit to 200 batches, you must have\
\ the Performance Booster Elite package.\n"
items:
type: string
type: array
billCycleDay:
description: "The day of the bill cycle. This field is only valid if the\
\ `batches` field is specified.\n\n**Values:** \n- `AllBillCycleDays`\
\ or one of numbers 1 - 31 for an ad-hoc bill run\n- `AllBillCycleDays`,\
\ one of numbers 1 - 31, or `AsRunDay` for a scheduled bill run\n"
type: string
billRunFilters:
description: 'The target account or subscriptions for this bill run. You
can only specify either this field or the `batches` field.
'
items:
$ref: '#/definitions/BillRunFilterRequestType'
type: array
billRunType:
description: "The type of the bill run. If you do not specify any value\
\ for this field, the default value is `Regular`.\n\n- You can use this\
\ field only if the \"Catch-Up Bill Run\" feature is enabled. \n- You\
\ must specify this field to create a catch up bill run.\n\n**Values:**\
\ \n- `Regular`\n- `CatchUp`\n"
type: string
chargeTypeToExclude:
description: 'The types of the charges to be excluded from the generation
of billing documents. You can specify at most two charge types in the
array.
'
items:
enum:
- OneTime
- Recurring
- Usage
type: string
type: array
invoiceDate:
description: "The invoice date for the bill run.\n\n- When creating an ad-hoc\
\ bill run, if you do not specify any value for this field, the default\
\ value is the current date.\n- When creating a scheduled bill run, if\
\ you do not specify any value for this field, the invoice date is the\
\ value of the `repeatFrom` field. \n"
format: date
type: string
name:
description: 'The name of the bill run.
'
type: string
noEmailForZeroAmountInvoice:
default: false
description: "Whether to suppress emails for invoices with zero total amount\
\ generated in this bill run after the bill run is complete. \n\nIt is\
\ best practice to not send emails for invoices with zero amount.\n"
type: boolean
organizationLabels:
description: "The organization(s) that the bill run is created for. \n\n\
For each item in the array, either the `organizationId` or the `organizationName`\
\ field is required.\n\nThis field is only required when you have already\
\ turned on Multi-Org feature.\n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
schedule:
$ref: '#/definitions/BillRunScheduleRequestType'
targetDate:
description: "The target date for this bill run. \n\n- You must specify\
\ this field when creating an ad-hoc bill run.\n- For scheduled bill runs,\
\ if you do not specify any value for this field, the target date is the\
\ value of the `repeatFrom` field.\n"
format: date
type: string
type: object
example:
autoEmail: false
autoPost: false
autoRenewal: false
billRunFilters:
- accountId: 2c9081a03c63c94c013c66688a2c00bf
filterType: Subscription
subscriptionId: 402882297e387c51017e38a245c313db
chargeTypeToExclude:
- OneTime
- Usage
invoiceDate: '2020-02-01'
name: test
noEmailForZeroAmountInvoice: false
targetDate: '2020-02-01'
POSTCreateBillingAdjustmentRequestType:
example:
chargeNumbers:
- string
- string
deferredRevenueAccountingCode: string
endDate: '2023-02-27'
exclusion:
- chargeNumbers:
- string
- string
deliveryDate: '2023-02-26'
- chargeNumbers:
- string
- string
deliveryDate: '2023-05-27'
reason: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
startDate: '2023-02-26'
subscriptionNumber: string
type: DeliveryCredit
properties:
accountNumber:
description: "The account number for which the delivery adjustment is created.\
\ \n\n**Note**: \n - The account number should be of the subscription\
\ owner.\n - Only one of accountNumber or subscriptionNumber should be\
\ provided.\n"
type: string
chargeNumbers:
description: 'An optional container to specify charge numbers in the subscription
for which the delivery adjustment needs to be created.
'
items:
type: string
type: array
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as Monthly
Recurring Liability.
'
type: string
endDate:
description: 'The end date of the delivery adjustment, in `yyyy-mm-dd` format.
This is inclusive.
'
format: date
type: string
exclusion:
description: 'The charge numbers and the corresponding dates for exclusion
of delivery adjustment.
'
items:
properties:
chargeNumbers:
description: 'The charge numbers to be excluded from delivery adjustment
on the specified delivery date.
'
items:
type: string
type: array
deliveryDate:
description: 'The date on which the delivery adjustment has to be excluded,
in `yyyy-mm-dd` format.
'
format: date
type: string
type: object
type: array
reason:
description: 'The reason for the delivery adjustment.
'
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as Monthly
Recurring Charges or Overage Charges.
'
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the revenue
schedule.
'
type: string
startDate:
description: 'The start date of the delivery adjustment, in `yyyy-mm-dd` format.
This is inclusive.
'
format: date
type: string
subscriptionNumber:
description: |
The subscription number for which the delivery adjustment is created.
**Note**: Only one of accountNumber or subscriptionNumber should be provided.
type: string
type:
description: 'The type of delivery adjustment.
'
enum:
- DeliveryCredit
type: string
required:
- startDate
- endDate
type: object
POSTCreateInvoiceScheduleRequest:
allOf:
- properties:
accountKey:
description: 'The ID or number of the account associated with the invoice
schedule.
'
type: string
additionalSubscriptionsToBill:
description: "A list of the numbers of the subscriptions that need to be\
\ billed together with the invoice schedule. \n\nOne invoice schedule\
\ can have at most 600 additional subscriptions.\n"
items:
type: string
type: array
invoiceSeparately:
description: 'Whether the invoice items created from the invoice schedule
appears on a separate invoice when Zuora generates invoices.
'
type: boolean
notes:
description: 'Comments on the invoice schedule.
'
maxLength: 255
type: string
orders:
description: 'A list of the IDs or numbers of the orders associated with
the invoice schedule. One invoice schedule can be associated with at most
10 orders.
'
items:
type: string
type: array
scheduleItems:
description: 'Container for invoice schedule items. One invoice schedule
can have at most 50 invoice schedule items.
'
items:
$ref: '#/definitions/POSTScheduleItemType'
type: array
specificSubscriptions:
description: "A list of the numbers of specific subscriptions associated\
\ with the invoice schedule.\n\n- If the subscriptions specified in this\
\ field belong to the orders specified in the `orders` field, only the\
\ specific subscriptions instead of the orders are associated with the\
\ invoice schedule. \n- If only the `orders` field is specified, all the\
\ subscriptions from the order are associated with the invoice schedule.\n\
\nExample:\n```\n{\n \"orders\": [\n \"O-00000001\", \"O-00000002\"\
\n ],\n \"specificSubscriptions\": [\n {\n \"orderKey\": \"\
O-00000001\",\n \"subscriptionKey\": \"S-00000001\"\n }\n ]\n\
}\n```\n- For the order with number O-00000001, only subscription S-00000001\
\ contained in the order is associated with the invoice schedule.\n- For\
\ the order with number O-00000002, all subscriptions contained in the\
\ order are associated with the invoice schedule.\n"
items:
$ref: '#/definitions/InvoiceScheduleSpecificSubscriptions'
type: array
type: object
- $ref: '#/definitions/InvoiceScheduleCustomFields'
- {}
example:
accountKey: A00000007
additionalSubscriptionsToBill:
- S-00000001
- S-00000002
invoiceSeparately: false
notes: 2022 Billing Schedule
orders:
- O-00000007
- O-00000008
scheduleItems:
- amount: 50000
runDate: '2022-02-24'
targetDateForAdditionalSubscriptions: '2022-02-24'
- amount: 14000
runDate: '2022-10-17'
targetDateForAdditionalSubscriptions: '2022-10-17'
- amount: 6200
runDate: '2022-11-14'
targetDateForAdditionalSubscriptions: '2022-11-14'
specificSubscriptions:
- orderKey: O-00000008
subscriptionKey: S-00000008
POSTCreateOpenPaymentMethodTypeRequest:
example:
entityId: ''
fields:
- checksum: true
defaultValue: null
description: The Token value
editable: true
index: 1
label: AmazonToken
maxLength: 100
minLength: 1
name: AmazonToken
representer: true
required: true
type: string
visible: true
- checksum: true
defaultValue: null
description: The Type of Token, e.g. GoCardlessToken
editable: true
index: 2
label: Amazon TokenType
maxLength: 100
minLength: 1
name: AmazonTokenType
representer: true
required: true
type: string
visible: true
internalName: AmazonPay
label: ZuoraQA Amazon Pay
methodReferenceIdField: AmazonToken
subTypeField: AmazonTokenType
tenantId: '9'
userReferenceIdField: ''
properties:
entityId:
description: |
If this custom payment method type is specific to one entity only, provide the entity ID in this field in UUID format, such as `123e4567-e89b-12d3-a456-426614174000`. If no entity UUID is provided, the custom payment method type is available to the global entity and all the sub entities in the tenant.
You can get the entity ID through the [Multi-entity: List entities](https://developer.zuora.com/api-references/older-api/operation/GET_Entities/) API operation or the **Manage Entity Profile** administration setting in the UI. To convert the format of the entity ID to UUID, separate the entity ID string in five groups with hyphens, in the form `<8-characters>-<4-characters>-<4-characters>-<4-characters>-<12-characters>` for a total of 36 characters.
Note: After the custom payment method type is created, you can only update this field to be empty.
type: string
fields:
description: "An array containing field metadata of the custom payment method\
\ type.\n\nNotes:\n - All the following nested metadata must be provided\
\ in the request to define a field. \n - At least one field must be defined\
\ in the fields array for a custom payment method type. \n - Up to 20 fields\
\ can be defined in the fields array for a custom payment method type.\n"
items:
$ref: '#/definitions/OpenPaymentMethodTypeRequestFields'
type: array
internalName:
description: "A string to identify the custom payment method type in the API\
\ name of the payment method type.\n\nThis field must be alphanumeric, starting\
\ with a capital letter, excluding JSON preserved characters such as *\
\ \\ \u2019 \u201D. Additionally, '_' or '-' is not allowed.\n\nThis field\
\ must be unique in a tenant.\n\nThis field is used along with the `tenantId`\
\ field by the system to construct and generate the API name of the custom\
\ payment method type in the following way:\n\n`__c_`\n\
\nFor example, if `internalName` is `AmazonPay`, and `tenantId` is `12368`,\
\ the API name of the custom payment method type will be `AmazonPay__c_12368`.\n\
\nThis field cannot be updated after the creation of the custom payment\
\ method type.\n"
maxLength: 19
type: string
label:
description: "The label that is used to refer to this type in the Zuora UI.\n\
\nThis value must be alphanumeric, excluding JSON preserved characters such\
\ as * \\ \u2019 \u201D \n"
maxLength: 40
type: string
methodReferenceIdField:
description: |
The identification reference of the custom payment method.
This field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Payment Method Data Source Exports and Data Query.
This field cannot be updated after the creation of the custom payment method type.
type: string
subTypeField:
description: |
The identification reference indicating the subtype of the custom payment method.
This field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.
This field cannot be updated after the creation of the custom payment method type.
type: string
tenantId:
description: |
Zuora tenant ID. If multi-entity is enabled in your tenant, this is the ID of the parent tenant of all the sub entities.
This field cannot be updated after the creation of the custom payment method type.
type: string
userReferenceIdField:
description: |
The identification reference of the user or customer account.
This field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.
This field cannot be updated after the creation of the custom payment method type.
type: string
required:
- internalName
- tenantId
- label
- methodReferenceIdField
- fields
POSTCreateOpenPaymentMethodTypeResponse:
properties:
paymentMethodType:
description: 'The API name of the custom payment method type.
'
type: string
publishDate:
description: 'The date when the custom payment method type was published.
It is empty if the custom payment method type has not been published yet.
'
type: string
revision:
description: 'The revision number of the custom payment method type, which
starts from 1 and increases by 1 when you update a published revision for
the first time.
'
type: integer
status:
description: 'The status of the custom payment method type.
'
type: string
POSTCreateOrUpdateEmailTemplateRequest:
example:
allowPartialSuccess: true
emailTemplates:
- active: true
bccEmailAddress: user@example.com
ccEmailAddress: user@example.com
ccEmailType: SpecificEmails
description: Email when an account is edited
emailBody: Dear user,the account has been edited.
Example
Co. Ltd.
emailSubject: Account has been edited
encodingType: UTF8
eventTypeName: AccountEdit
fromEmailType: TenantEmail
fromName: Example Co. Ltd.
id: 8500105b9a1045019474652bd81c7ce5
isHtml: true
name: Account Edit Email
replyToEmailType: TenantEmail
toEmailAddress: DummyEmailAddress@example.com
toEmailType: SpecificEmails
- active: true
bccEmailAddress: ''
ccEmailAddress: user@example.com
ccEmailType: SpecificEmails
description: Updated Description
emailBody: "Dear ,\r\n\r\
\nA refund of was processed against your\
\ credit memo on .\r\n\r\nYour new account unapplied credit\
\ memo amount is \
\ and your account balance is .\r\n\r\
\nThank you for your business!"
emailSubject: Your credit memo refund was successfully processed
encodingType: UTF8
eventCategory: 2830
fromEmailAddress: support@zuora.com
fromEmailType: SpecificEmail
fromName: Admin
isHtml: true
name: Credit Memo Refund Processed Default Email Template
replyToEmailAddress: support@zuora.com
replyToEmailType: SpecificEmail
toEmailAddress: ''
toEmailType: BillToContact
properties:
allowPartialSuccess:
description: |
When set to `false`, the call will fail if one or multiple instances fail to import, and a `200` response is returned if all email templates have been successfully updated.
When set to `true`, a success (`200`) response is returned if one or more instances have imported successfully. All failed instances are also returned in the response.
type: boolean
emailTemplates:
description: 'A container for email templates.
'
items:
$ref: '#/definitions/POSTCreateOrUpdateEmailTemplateRequestFormat'
type: array
type: object
POSTCreateOrUpdateEmailTemplateRequestFormat:
properties:
active:
default: true
description: The status of the email template. The default value is `true`.
type: boolean
bccEmailAddress:
description: The email bcc address.
format: email
type: string
ccEmailAddress:
description: The email CC address.
type: string
ccEmailType:
default: SpecificEmails
description: "Email CC type.\n* When the base object for the event is associated\
\ with `Account`, `ccEmailType` can be any values in the enum list. \n*\
\ When the base object for the event is not associated with `Account`, `ccEmailType`\
\ must be `TenantAdmin`, `RunOwner`, or `SpecificEmail`. "
enum:
- BillToContact
- SoldToContact
- SpecificEmails
- TenantAdmin
- BillToAndSoldToContacts
- RunOwner
- AllContacts
- InvoiceOwnerBillToContact
- InvoiceOwnerSoldToContact
- InvoiceOwnerBillToAndSoldToContacts
- InvoiceOwnerAllContacts
type: string
description:
description: The description of the email template.
maxLength: 255
type: string
emailBody:
description: "The email body. You can add merge fields in the email object\
\ using angle brackets. \nYou can also embed HTML tags if `isHtml` is `true`."
type: string
emailSubject:
description: The email subject. Users can add merge fields in the email subject
using angle brackets.
type: string
encodingType:
default: UTF8
description: The endcode type of the email body.
enum:
- UTF8
- Shift_JIS
- ISO_2022_JP
- EUC_JP
- X_SJIS_0213
type: string
eventCategory:
description: "If you specify this field, the email template is created based\
\ on a standard event. See [Standard Event Categories](https://knowledgecenter.zuora.com/Central_Platform/Notifications/A_Standard_Events/Standard_Event_Category_Code_for_Notification_Histories_API)\
\ for all standard event category codes. \n"
type: number
eventTypeName:
description: 'The name of the custom event or custom scheduled event. If you
specify this field, the email template is created based on the corresponding
custom event or custom scheduled event.
'
type: string
eventTypeNamespace:
description: "The namespace of the `eventTypeName` field. The `eventTypeName`\
\ has the `user.notification` namespace by default. \n\nNote that if the\
\ `eventTypeName` is a standard event type, you must specify the `com.zuora.notification`\
\ namespace; otherwise, you will get an error.\n\nFor example, if you want\
\ to create an email template on the `OrderActionProcessed` event, you must\
\ specify `com.zuora.notification` for this field. \n"
type: string
fromEmailAddress:
description: If fromEmailType is SpecificEmail, this field is required.
type: string
fromEmailType:
description: The type of the email.
enum:
- TenantEmail
- RunOwner
- SpecificEmail
type: string
fromName:
description: The name of the email sender.
type: string
id:
description: 'ID of an existing email template. Specify this field if you
want to update an existing email template.
'
type: string
isHtml:
default: false
description: Indicates whether the style of email body is HTML. The default
value is `false`.
type: boolean
name:
description: The name of the email template, a unique name in a tenant.
maxLength: 255
type: string
replyToEmailAddress:
description: If `replyToEmailType` is `SpecificEmail`, this field is required.
type: string
replyToEmailType:
description: Type of the replyTo email.
enum:
- TenantEmail
- RunOwner
- SpecificEmail
type: string
toEmailAddress:
description: If toEmailType is SpecificEmail, this field is required.
type: string
toEmailType:
description: "Email receive type.\n* When the base object for the event is\
\ associated with `Account`, `toEmailType` can be any values in the enum\
\ list. \n* When the base object for the event is not associated with `Account`,\
\ `toEmailType` must be `TenantAdmin`, `RunOwner`, or `SpecificEmail`. "
enum:
- BillToContact
- SoldToContact
- SpecificEmails
- TenantAdmin
- BillToAndSoldToContacts
- RunOwner
- AllContacts
- InvoiceOwnerBillToContact
- InvoiceOwnerSoldToContact
- InvoiceOwnerBillToAndSoldToContacts
- InvoiceOwnerAllContacts
type: string
required:
- name
- fromEmailType
- emailSubject
- emailBody
- toEmailType
type: object
POSTCreatePaymentSessionRequest:
example:
accountId: 402880de8779e14f018779e82905000f
amount: '100'
currency: USD
paymentGateway: e884322ab8c711edab030242ac120004
processPayment: true
properties:
accountId:
description: 'The ID of the customer account in Zuora that is associated with
this payment method.
'
type: string
amount:
description: |
The amount of the payment.
This field is required if `processPayment` is `true`.
type: number
authAmount:
description: |
The authorization amount for the payment method. Specify a value greater than 0.
This field is required if `processPayment` is false.
type: number
currency:
description: 'The currency of the payment in the format of the three-character
ISO currency code.
'
type: string
paymentGateway:
description: 'The ID of the payment gateway instance configured in Zuora that
will process the payment, such as `e884322ab8c711edab030242ac120004`.
'
type: string
processPayment:
description: |
Indicate whether a payment should be processed after creating the payment method.
If this field is set to `true`, you must specify the `amount` field.
If this field is set to `false`, you must specify the `authAmount` field. The payment method will be verified through the payment gateway instance specified in the `paymentGateway` field.
type: boolean
required:
- accountId
- currency
- paymentGateway
- processPayment
type: object
POSTCreatePaymentSessionResponse:
properties:
token:
description: |
The token for the payment session data. Send the token back to your client side for identifying your website to Zuora.
For more information, see [Set up Apple Pay through the JavaScript SDK approach](https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B_Define_Payment_Methods/Set_up_Apple_Pay_for_gateway_integrations_other_than_Adyen_Integration_v2.0).
type: string
type: object
POSTDecryptResponseType:
properties:
decryptedSignature:
description: |
The string of a list of the following items: Payment Pages 2.0 URL, tenant ID, timestamp,the Payment Page ID
The items are separated by '#', e.g., "/apps/publichostedpagelite.do#12271#rvBp1AxBJwk6FrT7aqFuABIINiRbwJCc
#1418848373103#2c92c0f948f899"
type: string
publicKey:
description: 'The public key passed in as a request parameter.
'
type: string
signature:
description: 'The signature passed in as a request parameter.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
POSTDecryptionType:
example:
method: POST
publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmWRFTwxQOqaG4JDZSQF/NJWvCDoSXm3TYilNzoN8nBbuvhKa7SZBBS+VP6rFqcbIU38Fu+Rf09vqyYOxuasPJe7yhqeOiStWB/aCPLhwXBeKt37L/qkwpNOKb1FETtUgrc+UjbtT0pnl55wCfi+Ik//X5SQi0B+c0ei1DQv99qmPJJErrhnBtdxeaWAT0EYAo42AOQ5cp0UWDY6OdOYL6+RyFOUFIs1yEgtfg4VMMSpSOKBOhYclQYuSC7nBF5Cc18ydtzsBpf7l49gCLTFzG45NCDAocada8KihFNpGXbauV9V4EPRD4lofaXdsXJ5Tw8/+KCsrUlvIQI3vcEv9LQIDAQAB
signature: BeNYuHFkp/sbfm3clYyCkKEqd7XVTRDOJ1/5rL0tpkqxiSq+maqYkDz5kA+lN64ipoefQuJ7Rdm5TpICErufeJfa2sfTmGARDJ0hr+StXfLsIxHmDoNH5dqcXv3W6MR4kaljEqPVuhzGQ0We98DG52JcHWqqN53oHwTyuZuXocQqnmiE23IPm8UrU3g4hX/OLat0R81wDQ1SslZ+4pnqlncpTpopCK4FxeG3B0gYMhZcYd17Cmf0N3tEHVXHDlJIm4rOx0OVT+YBnjbKYLM0jxYu7PRKRis+yzN1BoappOEB0gmPjznIeiYF0u/fJdZWoEwK7d9mrfJeOBbpFyRoHA==
properties:
method:
description: 'The type of the request. Set it to POST.
'
type: string
publicKey:
description: 'The public key generated by Zuora.
'
type: string
signature:
description: 'The signature generated by Zuora.
'
type: string
required:
- method
- publicKey
- signature
type: object
POSTDelayAuthorizeCapture:
example:
accountId: 402881e861bd8a7e0161c6a453750026
accountNumber: A00000004
amount: 1.99
gatewayOrderId: A001
softDescriptor: Service fee
softDescriptorPhone: 400-000-1234
properties:
accountId:
description: The ID of the customer account. Either `accountId` or `accountNumber`
is required.
type: string
accountNumber:
description: The number of the customer account. Either `accountNumber` or
`accountId` is required.
type: string
amount:
description: The amount of the trasaction.
type: number
gatewayOptions:
description: |
The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).
Zuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.
properties:
key:
description: 'The name of a gateway-specific parameter.
'
type: string
value:
description: 'The value of the gateway-specific parameter.
'
type: string
type: object
gatewayOrderId:
description: |
The order ID for the specific gateway.
The specified order ID will be used in transaction authorization. If you specify an empty value for this field, Zuora will generate an ID and you will have to associate this ID with your order ID by yourself if needed. It is recommended to specify an ID for this field.
type: string
mitTransactionSource:
description: |
Payment transaction source used to differentiate the transaction source in Stored Credential Transaction framework.
- `C_Unscheduled`: Cardholder-initiated transaction (CIT) that does not occur on scheduled or regularly occurring dates.
- `M_Recurring`: Merchant-initiated transaction (MIT) that occurs at regular intervals.
- `M_Unscheduled`: Merchant-initiated transaction (MIT) that does not occur on scheduled or regularly occurring dates.
- `M_MOTO`: Mail Order Telephone Order (MOTO) payment transaction. This option is only available for credit card payments on Stripe v2. See [Overview of Stripe payment gateway integration](https://knowledgecenter.zuora.com/Zuora_Collect/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration) for more information.
enum:
- C_Unscheduled
- M_Recurring
- M_Unscheduled
- M_MOTO
type: string
paymentGatewayId:
description: The ID of the payment gateway instance.
type: string
softDescriptor:
description: "A text, rendered on a cardholder\u2019s statement, describing\
\ a particular product or service purchased by the cardholder."
type: string
softDescriptorPhone:
description: The phone number that relates to the soft descriptor, usually
the phone number of customer service.
type: string
required:
- amount
- gatewayOrderId
type: object
POSTEmailBillingDocfromBillRunType:
example:
resend: 'true'
properties:
resend:
default: false
description: 'Whether to send out emails for all the billing documents that
are associated with the bill run. If the value is `false`, emails are sent
out only for the billing documents that never have emails sent out.
'
type: boolean
type: object
POSTExecuteInvoiceScheduleRequest:
allOf:
- properties:
scheduleItemId:
description: |
The ID of the invoice schedule item to be executed.
The item must be the earliest pending schedule item. If all the invoice schedule items have been processed and credit is needed to be generated, do not specify this field in the request.
type: string
type: object
- {}
example:
scheduleItemId: 8ad09b7d82b5c62f0182c5cd16944f73
POSTIneligibleAdjustmentResponseType:
allOf:
- properties:
adjustmentId:
description: 'The system generated delivery adjustment ID.
'
format: UUID
type: string
adjustmentNumber:
description: 'The system generated delivery adjustment number.
'
format: string
type: string
amount:
description: 'The amount of the delivery adjustment.
'
format: number
type: string
billingDate:
description: 'The billing date of the delivery adjustment.
'
format: date
type: string
chargeNumber:
description: 'The charge number in the subscription for which the delivery
adjustment is created.
'
type: string
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as Monthly
Recurring Liability.
'
type: string
deliveryDate:
description: 'The delivery adjustment date, in `yyyy-mm-dd` format.
'
format: date
type: string
deliveryDay:
description: 'The delivery adjustment day of the week.
'
format: string
type: string
eligible:
description: 'The eligible flag is set as false for an unsuccessful delivery
adjustment.
'
type: boolean
errorMessage:
description: "The reason due to which a delivery adjustment is not eligible\
\ on the given date. \n"
type: string
reason:
description: 'The reason for the delivery adjustment.
'
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as Monthly
Recurring Charges or Overage Charges.
'
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the revenue
schedule.
'
type: string
status:
description: 'The status of the delivery adjustment.
'
type: string
subscriptionNumber:
description: 'The subscription number for which the delivery adjustment
is created.
'
type: string
type: object
POSTInvoiceCollectCreditMemosType:
properties:
id:
description: 'The ID of the credit memo.
'
type: string
memoAmount:
description: 'The amount of the credit memo.
'
format: decimal
type: string
memoNumber:
description: 'The unique identification number of the credit memo.
'
type: string
title: creditMemos
type: object
POSTInvoiceCollectInvoicesType:
properties:
invoiceAmount:
description: 'The amount of the invoice.
'
format: decimal
type: string
invoiceId:
description: 'The ID of the invoice.
'
type: string
invoiceNumber:
description: 'The unique identification number of the invoice.
'
type: string
title: invoices
type: object
POSTInvoiceCollectResponseType:
properties:
amountCollected:
description: 'Payment amount applied.
'
format: decimal
type: string
creditMemos:
description: 'Information on one or more credit memos associated with this
operation.
'
items:
$ref: '#/definitions/POSTInvoiceCollectCreditMemosType'
type: array
invoices:
description: 'Information on one or more invoices associated with this operation.
'
items:
$ref: '#/definitions/POSTInvoiceCollectInvoicesType'
type: array
paymentId:
description: 'Payment ID.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
POSTInvoiceCollectType:
example:
accountKey: 4028925a4cb74ec9014cb7520fc00005
invoiceId: 4028925a4cb74ec9014cb7540988002e
paymentGateway: TestGateway
properties:
accountKey:
description: 'Customer account ID or account number.
'
type: string
documentDate:
description: "The date that should appear on the invoice and credit memo being\
\ generated,\nin `yyyy-mm-dd` format. If this field is omitted\nand `invoiceId`\
\ is not specified, the current date is used by default. \n\n\n**Note:**\
\ The credit memo is only available if you have the Invoice Settlement feature\
\ enabled.\n\n\nThis field is in Zuora REST API version control. Supported\
\ minor\nversions are `215.0` and later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ To use this field in the method, you\nmust set the `zuora-version` parameter\
\ to the minor version number in\nthe request header.\n"
format: date
type: string
invoiceDate:
description: "**Note:** This field has been replaced by the `documentDate`\
\ field in Zuora REST API version `215.0` and later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ The\n`invoiceDate` field is only available for backward\ncompatibility.\n\
\nThe date that should appear on the invoice being generated,\nin `yyyy-mm-dd`\
\ format. If this field is omitted\nand `invoiceId` is not specified, the\
\ current date is used by default. \n\nThis field is in Zuora REST API version\
\ control. Supported minor\nversions are `214.0` and earlier [available\
\ versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
format: date
type: string
invoiceId:
description: |
The ID of an existing invoice for which to collect payment using
the account's default payment method. If this value is specified, no new
invoice is generated, and the following fields are ignored:
- `invoiceDate` and `invoiceTargetDate` (if the Zuora REST API version is 214.0 or earlier)
- `documentDate` and `targetDate` (if the Zuora REST API version is 215.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version))
type: string
invoiceNumber:
description: |
The number of an existing invoice for which to collect payment using
the account's default payment method. If this value is specified, no new
invoice is generated, and the following fields are ignored:
- `invoiceDate` and `invoiceTargetDate` (if the Zuora REST API version is 214.0 or earlier)
- `documentDate` and `targetDate` (if the Zuora REST API version is 215.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version))
type: string
invoiceTargetDate:
description: "**Note:** This field has been replaced by the `targetDate` field\
\ in Zuora REST API version `215.0` and later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ The\n`invoiceTargetDate` field is only available for backward\ncompatibility.\n\
\n\nThe date through which to calculate charges on this account if an invoice\
\ is generated, in `yyyy-mm-dd` format. If this field is omitted\nand `invoiceId`\
\ is not specified, the current date is used by default. \n\n\nThis field\
\ is in Zuora REST API version control. Supported minor\nversions are `214.0`\
\ and earlier [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ \n"
format: date
type: string
paymentGateway:
description: 'The name of the gateway that will be used for the payment. Must
be a valid gateway name and the gateway must support the specific payment
method. If a value is not specified, the default gateway on the Account
will be used.
'
type: string
targetDate:
description: "The date through which to calculate charges on this account\
\ if an invoice or a credit memo is generated, \nin `yyyy-mm-dd` format.\
\ If this field is omitted\nand `invoiceId` is not specified, the current\
\ date is used by default. \n\n\n**Note:** The credit memo is only available\
\ if you have the Invoice Settlement feature enabled.\n\n\nThis field is\
\ in Zuora REST API version control. Supported minor\nversions are `215.0`\
\ and later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ To use this field in the method, you\nmust set the `zuora-version` parameter\
\ to the minor version number in\nthe request header.\n"
format: date
type: string
required:
- accountKey
type: object
POSTInvoicesBatchPostType:
allOf:
- properties:
invoices:
description: 'The container for invoices to be posted. The maximum number
of invoices to be posted is 50 in one request.
'
items:
$ref: '#/definitions/InvoicePostType'
title: invoices
type: array
type: object
example:
invoices:
- complexity__c: Middle
description__c: description
id: 402890555a7e9791015a7f15fe440123
invoiceDate: '2022-10-12'
- complexity__c: Middle
description__c: description
id: 402890555a7e9791015a7f15fe44013a
invoiceDate: '2022-10-12'
- complexity__c: Middle
description__c: description
id: 402890555a7e9791015a7f15fe44012b
invoiceDate: '2022-10-12'
POSTJournalEntryItemType:
allOf:
- properties:
accountingCodeName:
description: 'Name of the accounting code.
'
type: string
accountingCodeType:
description: "Accounting code type. This field is required if `accountingCodeName`\
\ is not unique.\n\nNote that `On-Account Receivable` is only available\
\ if you enable the Invoice Settlement feature. \n"
enum:
- AccountsReceivable
- On-Account Receivable
- Cash
- OtherAssets
- CustomerCashOnAccount
- DeferredRevenue
- SalesTaxPayable
- OtherLiabilities
- SalesRevenue
- SalesDiscounts
- OtherRevenue
- OtherEquity
- BadDebt
- OtherExpenses
type: string
amount:
description: 'Journal entry item amount in transaction currency.
'
format: decimal
type: string
homeCurrencyAmount:
description: |
Journal entry item amount in home currency.
This field is required if you have set your home currency for foreign currency conversion. Otherwise, do not pass this field.
format: decimal
type: string
type:
description: 'Type of journal entry item. '
enum:
- Credit
- Debit
type: string
required:
- accountingCodeName
- type
- amount
type: object
- $ref: '#/definitions/JournalEntryItemObjectCustomFields'
title: journalEntryItems
POSTJournalEntryResponseType:
properties:
journalEntryNumber:
description: 'Journal entry number in the format JE-00000001.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
POSTJournalEntrySegmentType:
properties:
segmentName:
description: 'Name of segment. You must use the segment name that has already
been specified in the default segment rule. In addition, segments need to
be passed in the order where they were defined in the segmentation rule.
If multiple segments are configured in the default rule, you need to specify
all of them in order. '
type: string
segmentValue:
description: 'Value of segment in this summary journal entry.
'
type: string
required:
- segmentName
- segmentValue
title: segments
type: object
POSTJournalEntryType:
allOf:
- properties:
accountingPeriodName:
description: 'Name of the accounting period. The open-ended accounting period
is named `Open-Ended`.
'
type: string
currency:
description: 'The type of currency used. Currency must be active.
'
type: string
journalEntryDate:
description: 'Date of the journal entry.
'
format: date
type: string
journalEntryItems:
description: 'Key name that represents the list of journal entry items.
'
items:
$ref: '#/definitions/POSTJournalEntryItemType'
type: array
notes:
description: |
The number associated with the revenue event.
Character limit: 2,000
type: string
organizationLabel:
description: "Name of the organization that the journal entry belongs to.\
\ \n\nThis field is only required when you have already turned on Multi-Org\
\ feature. \n"
type: string
segments:
description: 'List of segments that apply to the summary journal entry.
'
items:
$ref: '#/definitions/POSTJournalEntrySegmentType'
type: array
transferredToAccounting:
description: 'Status shows whether the journal entry has been transferred
to an accounting system.
'
enum:
- 'No'
- Processing
- 'Yes'
- Error
- Ignore
type: string
required:
- journalEntryDate
- accountingPeriodName
- currency
- journalEntryItems
type: object
- $ref: '#/definitions/JournalEntryObjectCustomFields'
example:
accountingPeriodName: Nov-2014
currency: USD
journalEntryDate: '2014-09-09'
journalEntryItems:
- accountingCodeName: Accounts Receivable
accountingCodeType: Deferred Revenue
amount: '400.9'
homeCurrencyAmount: '801.8'
type: Credit
- accountingCodeName: Subscription Revenue
accountingCodeType: Sales Revenue
amount: '400.9'
homeCurrencyAmount: '801.8'
type: Debit
notes: my account
segments:
- segmentName: billToCountry
segmentValue: United States
- segmentName: billToState
segmentValue: California
transferredToAccounting: 'No'
POSTJournalRunResponseType:
properties:
journalRunNumber:
description: 'Journal run number.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
POSTJournalRunTransactionType:
properties:
type:
description: "Transaction type. Invoice Adjustment is deprecated on Production.\
\ Zuora recommends that you use the Invoice Item Adjustment instead.\n\n\
If you enable the Invoice Settlement feature, Debit Memo Item, Credit Memo\
\ Item, and Credit Memo Application Item are available, Payment and Refund\
\ will be replaced by Payment Application and Refund Application. \n\nIf\
\ you enable both the Invoice Settlement feature and the Invoice Item Settlement\
\ feature, Payment and Refund will be replaced by Payment Application Item\
\ and Refund Application Item. \n"
enum:
- Invoice Item
- Taxation Item
- Invoice Item Adjustment (Invoice)
- Invoice Item Adjustment (Tax)
- Invoice Adjustment
- Electronic Payment
- External Payment
- Electronic Refund
- External Refund
- Electronic Credit Balance Payment
- External Credit Balance Payment
- Electronic Credit Balance Refund
- External Credit Balance Refund
- Credit Balance Adjustment (Applied from Credit Balance)
- Credit Balance Adjustment (Transferred to Credit Balance)
- Revenue Event Item
- Debit Memo Item (Charge)
- Debit Memo Item (Tax)
- Credit Memo Item (Charge)
- Credit Memo Item (Tax)
- Credit Memo Application Item
- Electronic Payment Application
- External Payment Application
- Electronic Refund Application
- External Refund Application
- Electronic Payment Application Item
- External Payment Application Item
- Electronic Refund Application Item
- External Refund Application Item
type: string
required:
- type
title: transactionTypes
type: object
POSTJournalRunType:
example:
accountingPeriodName: Nov-2014
journalEntryDate: '2014-11-04'
transactionTypes:
- type: Invoice Item
- type: Revenue Event Item
properties:
accountingPeriodName:
description: |
Name of the accounting period.
This field determines the target start and end dates of the journal run.
Required if you do not include `targetStartDate` and `targetEndDate`.
type: string
journalEntryDate:
description: 'Date of the journal entry.
'
format: date
type: string
organizationLabels:
description: "The organizations that this run is created for. \n\nFor each\
\ item in the array, either the `organizationId` or the `organizationName`\
\ field is required.\n\nThis field is only required when you have already\
\ turned on Multi-Org feature.\n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
targetEndDate:
description: |
The target end date of the journal run.
If you include `accountingPeriodName`, the `targetEndDate` must be empty or the same as the end date of the accounting period specified in `accountingPeriodName`.
format: date
type: string
targetStartDate:
description: |
The target start date of the journal run.
Required if you include targetEndDate.
If you include `accountingPeriodName`, the `targetStartDate` must be empty or the same as the start date of the accounting period specified in `accountingPeriodName`.
format: date
type: string
transactionTypes:
description: |
Transaction types included in the journal run.
You can include one or more transaction types.
items:
$ref: '#/definitions/POSTJournalRunTransactionType'
type: array
required:
- transactionTypes
- journalEntryDate
type: object
POSTMassUpdateResponseType:
properties:
bulkKey:
description: 'String of 32 characters that identifies the mass action. The
bulkKey is generated before the mass action is processed. You can use the
bulkKey to Get the Mass Action Result.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
POSTMemoPdfResponse:
properties:
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
POSTOfferChargeConfiguration:
description: 'Container for the configurations of the product rate plan charge.
'
properties:
billCycleDay:
description: |
The day of the month when a bill run generates invoices for the account.
The bill cycle day (BCD) determines which day of the month customer is billed. The BCD value in the account can override the BCD in this object.
maximum: 31
minimum: 1
type: number
billCycleType:
description: "How to determine the billing day for the charge. \n\n- If you\
\ set this field to `SpecificDayofMonth`, you must also specify the `billCycleDay`\
\ field. \n- If you set this field to to `SpecificDayofWeek`, you must also\
\ specify the `weeklyBillCycleDay` field.\n"
enum:
- DefaultFromCustomer
- SpecificDayofMonth
- SubscriptionStartDay
- ChargeTriggerDay
- SpecificDayofWeek
- TermStartDay
- TermEndDay
type: string
billingPeriod:
description: 'The billing period for this product rate plan charge. The start
day of the billing period is also called the bill cycle day (BCD).
'
enum:
- Month
- Quarter
- Semi_Annual
- Annual
- Eighteen_Months
- Two_Years
- Three_Years
- Five_Years
- Specific_Months
- Subscription_Term
- Week
- Specific_Weeks
type: string
billingPeriodAlignment:
description: |
How to align charges within the same subscription if multiple charges begin on different dates.
**Note:** `AlignToTermEnd` is only available for prepayment charges by default. To enable this value for non-prepaid recurring charges, contact Zuora Global Support .
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
- AlignToTermEnd
type: string
billingTiming:
description: |
The billing timing for this product rate plan charge.
You can choose to bill in advance or in arrears for recurring charge types. This field is not used in one-time or usage based charge types.
enum:
- IN_ADVANCE
- IN_ARREARS
type: string
endDateCondition:
default: Subscription_End
description: "When the product rate plan charge ends after the charge trigger\
\ date.\n\n- `Subscription_End`: The charge ends on the subscription end\
\ date after a specified period based on the trigger date of the charge.\
\ This is the default value. \n- `Fixed_Period`: The charge ends after a\
\ specified period based on the trigger date of the charge. If you set this\
\ field to `Fixed_Period`, you must specify the length of the period and\
\ a period type by defining the `upToPeriods` and `upToPeriodsType` fields.\
\ \n\n**Note**: If the subscription ends before the charge end date, the\
\ charge ends when the subscription ends. However, if the subscription end\
\ date is subsequently changed through a Renewal, or Terms and Conditions\
\ amendment, the charge will end on the charge end date.\n"
enum:
- Subscription_End
- One_Time
- Fixed_Period
- Specific_End_Date
type: string
specificBillingPeriod:
description: "The number of months or weeks for the billing period of this\
\ product rate plan charge. \n\nThis field is required if you set the `billingPeriod`\
\ field to `Specific_Months` or `Specific_Weeks`.\n"
type: number
triggerEvent:
description: |
When to start billing the customer for the product rate plan charge.
- `ContractEffective` indicates the date when the subscription's contract goes into effect and the charge is ready to be billed.
- `ServiceActivation` indicates the date when the services or products for a subscription have been activated and the customers have access.
- `CustomerAcceptance` indicates the date when the customer accepts the services or products for a subscription.
enum:
- ContractEffective
- ServiceActivation
- CustomerAcceptance
- SpecificDate
type: string
upToPeriods:
description: "The length of the period during which the charge is active.\
\ If this period ends before the subscription ends, the charge ends when\
\ this period ends.\n\n**Note**:\n- You must use this field together with\
\ the `upToPeriodsType` field to specify the time period. This field is\
\ applicable only if you set the `EndDateCondition` field to `Fixed_Period`.\
\ \n\n- If the subscription end date is subsequently changed through a Renewal,\
\ or Terms and Conditions amendment, the charge end date will change accordingly\
\ up to the original period end.\n"
type: number
upToPeriodsType:
description: "The period type used to define when the charge ends.\n\n**Note**:\
\ \n- You must use this field together with the `upToPeriods` field to specify\
\ the time period.\n- This field is applicable only if you set the `endDateCondition`\
\ field to `Fixed_Period`. \n \n"
enum:
- Billing_Periods
- Days
- Weeks
- Months
- Years
type: string
weeklyBillCycleDay:
description: 'The day of the week when a bill run generates invoices for the
account.
'
enum:
- Sunday
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
type: string
title: configuration
type: object
POSTOfferChargeOverride:
properties:
configuration:
$ref: '#/definitions/POSTOfferChargeConfiguration'
prices:
description: 'Container for the new prices to override the existing prices
of the product rate plan charges.
'
items:
$ref: '#/definitions/POSTOfferPriceBookItem'
type: array
productRatePlanChargeId:
description: 'The unique ID of the product rate plan charge.
'
type: string
required:
- productRatePlanChargeId
- prices
title: chargeOverrides
type: object
POSTOfferIntervalPrice:
properties:
duration:
description: "The duration of the interval. \n\nIf you set the `type` field\
\ to `Infinity`, do not specify the `duration` field in the request.\n"
type: number
overagePrice:
description: "The overage price. \n\nThis field is only applicable for charges\
\ with the Overage or Tiered with Overage pricing charge model.\n"
type: number
price:
description: "The price for the interval. \n\nThis field is only applicable\
\ for charges with the Flat Fee, Per Unit, or Delivery Pricing charge model.\n"
type: number
sequence:
description: |
The sequence of the interval.
The value must be a consecutive positive integer starting from `1`.
minimum: 1
type: number
tiers:
description: "Container for the tiers. \n\nThis field is only applicable for\
\ charges with the Tiered, Volume, or Tiered with Overage pricing charge\
\ model.\n"
items:
$ref: '#/definitions/POSTOfferTier'
type: array
type:
description: 'The type of the interval.
'
enum:
- Infinity
- Day
- Month
type: string
required:
- type
- sequence
title: intervalPrices
type: object
POSTOfferPriceBookItem:
properties:
currency:
description: 'The currency for the price.
'
type: string
defaultQuantity:
description: "The default quantity of the price book item. \n\nThis field\
\ is only applicable for one-time and recurring charges.\n"
type: number
includedUnits:
description: "The number of units included in the price book item. \n\nThis\
\ field is only applicable for charges with the Overage pricing charge model.\n"
type: number
intervalPrices:
description: "Container for the interval prices of the product rate plan charge.\
\ \n\nThis field is applicable only if you want to use interval prices for\
\ different periods.\n"
items:
$ref: '#/definitions/POSTOfferIntervalPrice'
type: array
listPriceBase:
description: "The list price base of the price book item. \n\nThis field is\
\ only applicable for recurring charges.\n"
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
type: string
overagePrice:
description: "The overage price of the price book item. \n\nThis field is\
\ only applicable for charges with the Overage or Tiered with Overage pricing\
\ charge model.\n"
type: number
price:
description: "The price of the price book item. \n\nThis field is only applicable\
\ for charges with the Flat Fee, Per Unit, or Delivery Pricing charge model.\n"
type: number
tiers:
description: "Container for the tiers of the price book item. \n\nThis field\
\ is only applicable for charges with the Tiered, Volume, or Tiered with\
\ Overage pricing charge model.\n"
items:
$ref: '#/definitions/POSTOfferTier'
type: array
required:
- currency
title: priceBookItems
type: object
POSTOfferProductRatePlan:
allOf:
- properties:
chargeOverrides:
description: 'Container for the charges to override each charge within the
product rate plan.
'
items:
$ref: '#/definitions/POSTOfferChargeOverride'
type: array
productRatePlanId:
description: 'The unique ID of the product rate plan to add to the offer.
'
type: string
type: object
required:
- productRatePlanId
- chargeOverrides
title: productRatePlans
POSTOfferRequest:
allOf:
- properties:
description:
description: 'The description of the offer.
'
type: string
effectiveEndTime:
description: 'The effective end time of the offer.
'
format: dateTime
type: string
effectiveStartTime:
description: 'The effective start time of the offer.
'
format: dateTime
type: string
name:
description: 'The name of the offer.
'
type: string
pricingLevel:
default: Component
description: "The pricing level of the offer. \n"
enum:
- Component
type: string
productRatePlans:
description: 'Container for the product rate plans to be added to the offer.
'
items:
$ref: '#/definitions/POSTOfferProductRatePlan'
type: array
type:
default: Static
description: "The type of the offer. \n"
enum:
- Static
type: string
required:
- name
- effectiveStartTime
- effectiveEndTime
- productRatePlans
type: object
example:
description: save money
effectiveEndTime: '2023-02-25 12:05:00'
effectiveStartTime: '2023-02-20 12:00:00'
name: greatOffer
pricingLevel: Component
productRatePlans:
- chargeOverrides:
- configuration:
billCycleDay: 1
billCycleType: DefaultFromCustomer
billingPeriod: Month
billingPeriodAlignment: AlignToCharge
billingTiming: IN_ADVANCE
endDateCondition: Fixed_Period
specificBillingPeriod: 2
triggerEvent: ContractEffective
upToPeriods: 1
upToPeriodsType: Billing_Periods
weeklyBillCycleDay: Monday
prices:
- currency: USD
defaultQuantity: 10
listPriceBase: Billing_Period
tiers:
- endingUnit: 10
price: 5
priceFormat: FlatFee
startingUnit: 0
tier: 1
productRatePlanChargeId: 402880e680d15aa50180d16238820020
productRatePlanId: 402880e680d15aa50180d161d1910013
type: Static
POSTOfferResponse:
properties:
id:
description: 'The unique ID of the offer.
'
type: string
number:
description: 'The unique number of the offer.
'
type: string
success:
description: 'Whether the call succeeded.
'
type: boolean
type: object
POSTOfferTier:
properties:
endingUnit:
description: 'The ending unit of the tier.
'
type: number
price:
description: 'The price of the tier.
'
type: number
priceFormat:
description: 'The price format of the tier.
'
enum:
- FlatFee
- PerUnit
type: string
startingUnit:
description: 'The starting unit of the tier.
'
type: number
tier:
description: 'The number of the tier.
'
type: number
required:
- tier
- startingUnit
- price
title: tiers
type: object
POSTOrderAsyncRequestType:
example:
description: This is a description for the Order.
existingAccountNumber: A00000001
orderDate: '2017-01-01'
orderLineItems:
- billingTrigger: BillImmediately
chargeAmountPerUnit: 50
customFields:
someField__c: some string
deferredRevenueAccountingCode: Unearned Revenues
description: With Dual Stereo Microphones, HD 1080p, Black
itemName: webcam
itemType: Product
listPricePerUnit: 59
ownerAccountNumber: AN_1683614809986
productCode: C9201
purchaseOrderNumber: 960-000764
quantity: 2
recognizedRevenueAccountingCode: Earned Revenues
revenueRecognitionRule: recognized upon invoice
soldTo: 4028fc828244a0ac018244dfc9a90bee
taxCode: '8018'
taxMode: TaxInclusive
transactionEndDate: '2021-02-01'
transactionStartDate: '2021-02-01'
orderNumber: OM-00001
processingOptions:
applyCreditBalance: true
billingOptions:
creditMemoReasonCode: Unsatisfactory service
targetDate: '2017-08-01'
collectPayment: true
electronicPaymentOptions:
paymentGatewayId: 2c9890186cb7c157016cd18c72370999
paymentMethodId: 2c9890186cb7c157016cd18c6f690999
runBilling: true
subscriptions:
- orderActions:
- createSubscription:
billToContactId: efbff07e6290dfb8016291003bd00dda
invoiceTemplateId: 2c9081a03c638994013c63978baf002b
paymentTerm: Net 30
sequenceSetId: 6abcc30846de11e990900242ac1f0003
soldToContactId: efbff07e6290dfb8016291003bd00ddb
subscribeToRatePlans:
- productRatePlanId: efbff07e6290dfb8016291003bd00dda
subscriptionNumber: SM-00001
terms:
autoRenew: true
initialTerm:
period: 12
periodType: Month
startDate: '2017-01-01'
termType: TERMED
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerms:
- period: 12
periodType: Month
triggerDates:
- name: ContractEffective
triggerDate: '2017-01-01'
type: CreateSubscription
- orderActions:
- createSubscription:
subscribeToRatePlans:
- productRatePlanId: efbff07e6290dfb8016291003bd00dda
subscriptionNumber: SM-00002
terms:
autoRenew: true
initialTerm:
period: 12
periodType: Month
startDate: '2017-02-01'
termType: TERMED
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerms:
- period: 12
periodType: Month
triggerDates:
- name: ServiceActivation
triggerDate: '2017-02-01'
type: CreateSubscription
- orderActions:
- createSubscription:
subscribeToRatePlans:
- productRatePlanId: efbff07e6290dfb80162910024c80dd5
subscriptionNumber: SM-00003
terms:
autoRenew: true
initialTerm:
period: 12
periodType: Month
startDate: '2017-01-01'
termType: TERMED
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerms:
- period: 12
periodType: Month
triggerDates:
- name: ServiceActivation
triggerDate: '2017-03-01'
- name: CustomerAcceptance
triggerDate: '2017-04-01'
type: CreateSubscription
- orderActions:
- createSubscription:
subscribeToRatePlans:
- chargeOverrides:
- productRatePlanChargeId: efbff07e6290dfb80162910024d80dd7
startDate:
triggerEvent: SpecificDate
productRatePlanId: efbff07e6290dfb80162910024c80dd5
uniqueToken: Sugar-free Monthly
subscriptionNumber: SM-00004
terms:
autoRenew: true
initialTerm:
period: 12
periodType: Month
startDate: '2017-01-01'
termType: TERMED
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerms:
- period: 12
periodType: Month
triggerDates:
- name: ServiceActivation
triggerDate: '2017-03-01'
- name: CustomerAcceptance
triggerDate: '2017-04-01'
type: CreateSubscription
- orderActions:
- suspend:
suspendPeriods: 2
suspendPeriodsType: Week
suspendPolicy: FixedPeriodsFromToday
triggerDates:
- name: ContractEffective
triggerDate: '2018-01-01'
- name: ServiceActivation
triggerDate: '2018-01-01'
- name: CustomerAcceptance
triggerDate: '2018-01-01'
type: Suspend
subscriptionNumber: SM-00005
- orderActions:
- resume:
extendsTerm: true
resumePolicy: SpecificDate
resumeSpecificDate: '2018-10-01'
triggerDates:
- name: ContractEffective
triggerDate: '2018-01-01'
- name: ServiceActivation
triggerDate: '2018-01-01'
- name: CustomerAcceptance
triggerDate: '2018-01-01'
type: Resume
subscriptionNumber: SM-00006
properties:
category:
default: NewSales
description: 'Category of the order to indicate a product sale or return.
Default value is `NewSales`.
'
enum:
- NewSales
- Return
type: string
customFields:
$ref: '#/definitions/OrderObjectCustomFields'
description:
description: A description of the order.
maxLength: 500
type: string
existingAccountNumber:
description: |
The account number that this order will be created under.
Note that this actually specifies the invoice owner account of the subscriptions included in this order.
maxLength: 70
type: string
externallyManagedBy:
description: 'An enum field on the Subscription object to indicate the name
of a third-party store. This field is used to represent subscriptions created
through third-party stores.
'
enum:
- Amazon
- Apple
- Google
- Roku
type: string
newAccount:
$ref: '#/definitions/Account'
orderDate:
description: The date when the order is signed. All the order actions under
this order will use this order date as the contract effective date if the
contract effective date field is skipped or its value is left as null.
format: date
type: string
orderLineItems:
description: "[Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ are non subscription based items created by an Order, representing transactional\
\ charges such as one-time fees, physical goods, or professional service\
\ charges that are not sold as subscription services. \n\nWith the Order\
\ Line Items feature enabled, you can now launch non-subscription and unified\
\ monetization business models in Zuora, in addition to subscription business\
\ models.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to\
\ enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n"
items:
$ref: '#/definitions/CreateOrderOrderLineItem'
type: array
orderNumber:
description: "The order number of the new order. If not provided, system will\
\ auto-generate a number for this order. \n**Note:** Make sure the order\
\ number does not contain a slash.\n"
maxLength: 100
type: string
processingOptions:
$ref: '#/definitions/processingOptionsOrdersAsync'
reasonCode:
description: 'Values of reason code configured in **Billing Settings** > **Configure
Reason Codes** through Zuora UI. Indicates the reason when a return order
line item occurs.
'
maxLength: 255
type: string
subscriptions:
description: Each item includes a set of order actions, which will be applied
to the same base subscription.
items:
properties:
customFields:
$ref: '#/definitions/SubscriptionObjectCustomFields'
orderActions:
description: The actions to be applied to the subscription. Order actions
will be stored with the sequence when it was provided in the request.
items:
$ref: '#/definitions/CreateOrderOrderAction'
type: array
quote:
$ref: '#/definitions/QuoteObjectFields'
ramp:
$ref: '#/definitions/RampRequest'
subscriptionNumber:
description: 'Leave this empty to represent new subscription creation.
Specify a subscription number to update an existing subscription.
'
type: string
type: object
type: array
required:
- orderDate
type: object
POSTOrderPreviewAsyncRequestType:
example:
customFields: {}
description: This is a description for the Order.
existingAccountNumber: A00000101
orderDate: '2018-10-01'
orderLineItems:
- amountPerUnit: 50
billingTrigger: BillImmediately
customFields:
someField__c: some string
deferredRevenueAccountingCode: Unearned Revenues
description: With Dual Stereo Microphones, HD 1080p, Black
itemName: webcam
itemType: Product
listPricePerUnit: 59
productCode: C9201
purchaseOrderNumber: 960-000764
quantity: 2
recognizedRevenueAccountingCode: Earned Revenues
revenueRecognitionRule: recognized upon invoice
taxCode: '8018'
taxMode: TaxInclusive
transactionEndDate: '2021-02-01'
transactionStartDate: '2021-02-01'
previewOptions:
previewThruType: SpecificDate
previewTypes:
- OrderMetrics
- BillingDocs
- ChargeMetrics
specificPreviewThruDate: '2019-01-01'
subscriptions:
- orderActions:
- triggerDates:
- name: ContractEffective
triggerDate: '2018-12-01'
- name: ServiceActivation
triggerDate: '2018-12-01'
- name: CustomerAcceptance
triggerDate: '2018-12-01'
type: UpdateProduct
updateProduct:
chargeUpdates:
- chargeNumber: C-00000210
pricing:
recurringPerUnit:
listPrice: 20
ratePlanId: 2c98919c67a5ae9d0167a68f8eb20262
subscriptionNumber: A-S00000100
- orderActions:
- suspend:
suspendPolicy: Today
triggerDates:
- name: ContractEffective
triggerDate: '2018-12-01'
- name: ServiceActivation
triggerDate: '2018-12-01'
- name: CustomerAcceptance
triggerDate: '2018-12-01'
type: Suspend
subscriptionNumber: A-S00000101
- orderActions:
- resume:
extendsTerm: true
resumePeriods: 10
resumePeriodsType: Day
resumePolicy: FixedPeriodsFromSuspendDate
triggerDates:
- name: ContractEffective
triggerDate: '2018-12-12'
- name: ServiceActivation
triggerDate: '2018-12-12'
- name: CustomerAcceptance
triggerDate: '2018-12-12'
type: Resume
subscriptionNumber: A-S00000102
properties:
category:
default: NewSales
description: 'Category of the order to indicate a product sale or return.
Default value is `NewSales`.
'
enum:
- NewSales
- Return
type: string
customFields:
$ref: '#/definitions/OrderObjectCustomFields'
description:
description: A description of the order.
maxLength: 500
type: string
existingAccountNumber:
description: "The account number that this order will be created under. \n\
\nNote that invoice owner account of the subscriptions included in this\
\ order should be the same with the account of the order.\n"
maxLength: 70
type: string
orderDate:
description: The date when the order is signed. All of the order actions under
this order will use this order date as the contract effective date.
format: date
type: string
orderLineItems:
description: "[Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ are non subscription based items created by an Order, representing transactional\
\ charges such as one-time fees, physical goods, or professional service\
\ charges that are not sold as subscription services. \n\nWith the Order\
\ Line Items feature enabled, you can now launch non-subscription and unified\
\ monetization business models in Zuora, in addition to subscription business\
\ models. \n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to\
\ enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n"
items:
$ref: '#/definitions/CreateOrderOrderLineItem'
type: array
orderNumber:
description: "The order number of this order. \n**Note:** Make sure the\
\ order number does not contain a slash.\n"
maxLength: 100
type: string
previewAccountInfo:
$ref: '#/definitions/PreviewAccountInfo'
previewOptions:
$ref: '#/definitions/PreviewOptions'
reasonCode:
description: 'Values of reason code configured in **Billing Settings** > **Configure
Reason Codes** through Zuora UI. Indicates the reason when a return order
line item occurs.
'
maxLength: 255
type: string
subscriptions:
description: Each item includes a set of order actions, which will be applied
to the same base subscription.
items:
properties:
customFields:
$ref: '#/definitions/SubscriptionObjectCustomFields'
orderActions:
description: The actions to be applied to the subscription. Order actions
will be stored with the sequence when it was provided in the request.
items:
$ref: '#/definitions/PreviewOrderOrderAction'
type: array
quote:
$ref: '#/definitions/QuoteObjectFields'
ramp:
$ref: '#/definitions/RampRequest'
subscriptionNumber:
description: 'Leave this field empty to represent new subscription creation,
or specify a subscription number to update an existing subscription.
'
type: string
type: object
type: array
required:
- orderDate
- previewOptions
type: object
POSTOrderPreviewRequestType:
example:
customFields: {}
description: This is a description for the Order.
existingAccountNumber: A00000101
orderDate: '2018-10-01'
orderLineItems:
- amountPerUnit: 50
billTo: 2c9081a03c6d7b51013c6d7e2dfc09fa
billingTrigger: BillImmediately
customFields:
someField__c: some string
deferredRevenueAccountingCode: Unearned Revenues
description: With Dual Stereo Microphones, HD 1080p, Black
itemName: webcam
itemType: Product
listPricePerUnit: 59
productCode: C9201
purchaseOrderNumber: 960-000764
quantity: 2
recognizedRevenueAccountingCode: Earned Revenues
revenueRecognitionRule: recognized upon invoice
soldTo: 4028fc828244a0ac018244dfc9a90bee
taxCode: '8018'
taxMode: TaxInclusive
transactionEndDate: '2021-02-01'
transactionStartDate: '2021-02-01'
previewOptions:
previewThruType: SpecificDate
previewTypes:
- OrderMetrics
- BillingDocs
- ChargeMetrics
specificPreviewThruDate: '2019-01-01'
subscriptions:
- orderActions:
- triggerDates:
- name: ContractEffective
triggerDate: '2018-12-01'
- name: ServiceActivation
triggerDate: '2018-12-01'
- name: CustomerAcceptance
triggerDate: '2018-12-01'
type: UpdateProduct
updateProduct:
chargeUpdates:
- chargeNumber: C-00000210
pricing:
recurringPerUnit:
listPrice: 20
ratePlanId: 2c98919c67a5ae9d0167a68f8eb20262
subscriptionNumber: A-S00000100
- orderActions:
- suspend:
suspendPolicy: Today
triggerDates:
- name: ContractEffective
triggerDate: '2018-12-01'
- name: ServiceActivation
triggerDate: '2018-12-01'
- name: CustomerAcceptance
triggerDate: '2018-12-01'
type: Suspend
subscriptionNumber: A-S00000101
- orderActions:
- resume:
extendsTerm: true
resumePeriods: 10
resumePeriodsType: Day
resumePolicy: FixedPeriodsFromSuspendDate
triggerDates:
- name: ContractEffective
triggerDate: '2018-12-12'
- name: ServiceActivation
triggerDate: '2018-12-12'
- name: CustomerAcceptance
triggerDate: '2018-12-12'
type: Resume
subscriptionNumber: A-S00000102
properties:
category:
default: NewSales
description: 'Category of the order to indicate a product sale or return.
Default value is `NewSales`.
'
enum:
- NewSales
- Return
type: string
customFields:
$ref: '#/definitions/OrderObjectCustomFields'
description:
description: A description of the order.
maxLength: 500
type: string
existingAccountNumber:
description: "The account number that this order will be created under. \n\
\nNote that invoice owner account of the subscriptions included in this\
\ order should be the same with the account of the order.\n"
maxLength: 70
type: string
orderDate:
description: The date when the order is signed. All of the order actions under
this order will use this order date as the contract effective date.
format: date
type: string
orderLineItems:
description: "[Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ are non subscription based items created by an Order, representing transactional\
\ charges such as one-time fees, physical goods, or professional service\
\ charges that are not sold as subscription services. \n\nWith the Order\
\ Line Items feature enabled, you can now launch non-subscription and unified\
\ monetization business models in Zuora, in addition to subscription business\
\ models. \n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to\
\ enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n"
items:
$ref: '#/definitions/CreateOrderOrderLineItem'
type: array
orderNumber:
description: "The order number of this order. \n**Note:** Make sure the\
\ order number does not contain a slash.\n"
maxLength: 100
type: string
previewAccountInfo:
$ref: '#/definitions/PreviewAccountInfo'
previewOptions:
$ref: '#/definitions/PreviewOptions'
reasonCode:
description: 'Values of reason code configured in **Billing Settings** > **Configure
Reason Codes** through Zuora UI. Indicates the reason when a return order
line item occurs.
'
maxLength: 255
type: string
subscriptions:
description: Each item includes a set of order actions, which will be applied
to the same base subscription.
items:
properties:
customFields:
$ref: '#/definitions/SubscriptionObjectCustomFields'
orderActions:
description: The actions to be applied to the subscription. Order actions
will be stored with the sequence when it was provided in the request.
items:
$ref: '#/definitions/PreviewOrderOrderAction'
type: array
quote:
$ref: '#/definitions/QuoteObjectFields'
ramp:
$ref: '#/definitions/RampRequest'
subscriptionNumber:
description: 'Leave this field empty to represent new subscription creation,
or specify a subscription number to update an existing subscription.
'
type: string
type: object
type: array
required:
- orderDate
- previewOptions
type: object
POSTOrderRequestType:
example:
description: This is a description for the Order.
existingAccountNumber: A00000001
orderDate: '2017-01-01'
orderLineItems:
- billTo: 2c9081a03c6d7b51013c6d7e2dfc09fa
billingTrigger: BillImmediately
chargeAmountPerUnit: 50
customFields:
someField__c: some string
deferredRevenueAccountingCode: Unearned Revenues
description: With Dual Stereo Microphones, HD 1080p, Black
itemName: webcam
itemType: Product
listPricePerUnit: 59
ownerAccountNumber: AN_1683614809986
productCode: C9201
purchaseOrderNumber: 960-000764
quantity: 2
recognizedRevenueAccountingCode: Earned Revenues
revenueRecognitionRule: recognized upon invoice
soldTo: 4028fc828244a0ac018244dfc9a90bee
taxCode: '8018'
taxMode: TaxInclusive
transactionEndDate: '2021-02-01'
transactionStartDate: '2021-02-01'
orderNumber: OM-00001
processingOptions:
applyCreditBalance: true
billingOptions:
creditMemoReasonCode: Unsatisfactory service
targetDate: '2017-08-01'
collectPayment: true
electronicPaymentOptions:
authTransactionId: pi_3OER45dashnqYj
gatewayOrderId: A001
paymentGatewayId: 2c9890186cb7c157016cd18c72370999
paymentMethodId: 2c9890186cb7c157016cd18c6f690999
runBilling: true
subscriptions:
- orderActions:
- createSubscription:
billToContactId: efbff07e6290dfb8016291003bd00dda
invoiceTemplateId: 2c9081a03c638994013c63978baf002b
paymentTerm: Net 30
sequenceSetId: 6abcc30846de11e990900242ac1f0003
soldToContactId: efbff07e6290dfb8016291003bd00ddb
subscribeToRatePlans:
- productRatePlanId: efbff07e6290dfb8016291003bd00dda
subscriptionNumber: SM-00001
terms:
autoRenew: true
initialTerm:
period: 12
periodType: Month
startDate: '2017-01-01'
termType: TERMED
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerms:
- period: 12
periodType: Month
triggerDates:
- name: ContractEffective
triggerDate: '2017-01-01'
type: CreateSubscription
- orderActions:
- createSubscription:
subscribeToRatePlans:
- productRatePlanId: efbff07e6290dfb8016291003bd00dda
subscriptionNumber: SM-00002
terms:
autoRenew: true
initialTerm:
period: 12
periodType: Month
startDate: '2017-02-01'
termType: TERMED
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerms:
- period: 12
periodType: Month
triggerDates:
- name: ServiceActivation
triggerDate: '2017-02-01'
type: CreateSubscription
- orderActions:
- createSubscription:
subscribeToRatePlans:
- productRatePlanId: efbff07e6290dfb80162910024c80dd5
subscriptionNumber: SM-00003
terms:
autoRenew: true
initialTerm:
period: 12
periodType: Month
startDate: '2017-01-01'
termType: TERMED
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerms:
- period: 12
periodType: Month
triggerDates:
- name: ServiceActivation
triggerDate: '2017-03-01'
- name: CustomerAcceptance
triggerDate: '2017-04-01'
type: CreateSubscription
- orderActions:
- createSubscription:
subscribeToRatePlans:
- chargeOverrides:
- productRatePlanChargeId: efbff07e6290dfb80162910024d80dd7
startDate:
triggerEvent: SpecificDate
productRatePlanId: efbff07e6290dfb80162910024c80dd5
uniqueToken: Sugar-free Monthly
subscriptionNumber: SM-00004
terms:
autoRenew: true
initialTerm:
period: 12
periodType: Month
startDate: '2017-01-01'
termType: TERMED
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerms:
- period: 12
periodType: Month
triggerDates:
- name: ServiceActivation
triggerDate: '2017-03-01'
- name: CustomerAcceptance
triggerDate: '2017-04-01'
type: CreateSubscription
- orderActions:
- suspend:
suspendPeriods: 2
suspendPeriodsType: Week
suspendPolicy: FixedPeriodsFromToday
triggerDates:
- name: ContractEffective
triggerDate: '2018-01-01'
- name: ServiceActivation
triggerDate: '2018-01-01'
- name: CustomerAcceptance
triggerDate: '2018-01-01'
type: Suspend
subscriptionNumber: SM-00005
- orderActions:
- resume:
extendsTerm: true
resumePolicy: SpecificDate
resumeSpecificDate: '2018-10-01'
triggerDates:
- name: ContractEffective
triggerDate: '2018-01-01'
- name: ServiceActivation
triggerDate: '2018-01-01'
- name: CustomerAcceptance
triggerDate: '2018-01-01'
type: Resume
subscriptionNumber: SM-00006
properties:
category:
default: NewSales
description: 'Category of the order to indicate a product sale or return.
Default value is `NewSales`.
'
enum:
- NewSales
- Return
type: string
customFields:
$ref: '#/definitions/OrderObjectCustomFields'
description:
description: A description of the order.
maxLength: 500
type: string
existingAccountNumber:
description: "The account number that this order will be created under. \n\
\nNote that this actually specifies the invoice owner account of the subscriptions\
\ included in this order.\n"
maxLength: 70
type: string
externallyManagedBy:
description: 'An enum field on the Subscription object to indicate the name
of a third-party store. This field is used to represent subscriptions created
through third-party stores.
'
enum:
- Amazon
- Apple
- Google
- Roku
type: string
newAccount:
$ref: '#/definitions/Account'
orderDate:
description: The date when the order is signed. All the order actions under
this order will use this order date as the contract effective date if the
contract effective date field is skipped or its value is left as null.
format: date
type: string
orderLineItems:
description: "[Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ are non subscription based items created by an Order, representing transactional\
\ charges such as one-time fees, physical goods, or professional service\
\ charges that are not sold as subscription services. \n\nWith the Order\
\ Line Items feature enabled, you can now launch non-subscription and unified\
\ monetization business models in Zuora, in addition to subscription business\
\ models.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to\
\ enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n"
items:
$ref: '#/definitions/CreateOrderOrderLineItem'
type: array
orderNumber:
description: "The order number of the new order. If not provided, system will\
\ auto-generate a number for this order. \n**Note:** Make sure the order\
\ number does not contain a slash. \n"
maxLength: 100
type: string
processingOptions:
$ref: '#/definitions/processingOptionsOrdersWithDelayedCapturePayment'
reasonCode:
description: 'Values of reason code configured in **Billing Settings** > **Configure
Reason Codes** through Zuora UI. Indicates the reason when a return order
line item occurs.
'
maxLength: 255
type: string
schedulingOptions:
description: "Information of scheduled order. \n\n**Note**: The Scheduled Orders feature is in the Early Adopter\
\ phase. We are actively soliciting feedback from a small set of early adopters\
\ before releasing it as generally available. To manage and access features\
\ from the self-service interface, see Enable billing features by yourself .\n"
properties:
scheduledDate:
description: 'The date for the order scheduled.
'
format: date
type: string
scheduledDatePolicy:
description: Date policy of the scheduled order.
enum:
- SpecificDate
type: string
type: object
status:
description: |
The status of the order. The default value is `Completed`. The following values are supported:
- `Draft`: The order is in draft status.
- `Pending`: The order is in pending status.
- `Completed`: The order is in completed status.
- `Scheduled`: The order is in scheduled status and it is only valid if the Scheduled Orders feature is enabled.
- `Executing`: The scheduled order is executed by a scheduler and it is only valid if the Scheduled Orders feature is enabled.
- `Failed`: The scheduled order has failed.
**Note**: The Scheduled Orders feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access features from the self-service interface, see Enable billing features by yourself .
enum:
- Draft
- Pending
- Completed
- Scheduled
- Executing
- Failed
type: string
subscriptions:
description: Each item includes a set of order actions, which will be applied
to the same base subscription.
items:
properties:
customFields:
$ref: '#/definitions/SubscriptionObjectCustomFields'
orderActions:
description: The actions to be applied to the subscription. Order actions
will be stored with the sequence when it was provided in the request.
items:
$ref: '#/definitions/CreateOrderOrderAction'
type: array
quote:
$ref: '#/definitions/QuoteObjectFields'
ramp:
$ref: '#/definitions/RampRequest'
subscriptionNumber:
description: 'Leave this empty to represent new subscription creation.
Specify a subscription number to update an existing subscription.
'
type: string
type: object
type: array
required:
- orderDate
type: object
POSTPMMandateInfo:
description: |
The mandate information for the Credit Card, Apple Pay, Google Pay, Credit Card Reference Transaction, ACH, or Bank Transfer payment method.
The following mandate fields are common to all supported payment methods:
* `mandateId`
* `mandateReason`
* `mandateStatus`
The following mandate fields are specific to the ACH and Bank Transfer payment methods:
* `mandateReceivedStatus`
* `existingMandateStatus`
* `mandateCreationDate`
* `mandateUpdateDate`
The following mandate fields are specific to the Credit Card, Apple Pay, and Google Pay payment methods:
* `mitTransactionId`
* `mitProfileAgreedOn`
* `mitConsentAgreementRef`
* `mitConsentAgreementSrc`
* `mitProfileType`
* `mitProfileAction`
properties:
existingMandateStatus:
description: 'Indicates whether the mandate is an existing mandate.
'
enum:
- 'Yes'
- 'No'
type: string
mandateCreationDate:
description: 'The date on which the mandate was created.
'
format: date
type: string
mandateId:
description: 'The mandate ID.
'
type: string
mandateReason:
description: 'The reason of the mandate from the gateway side.
'
type: string
mandateReceivedStatus:
description: 'Indicates whether the mandate is received from the gateway
'
enum:
- 'Yes'
- 'No'
type: string
mandateStatus:
description: 'The status of the mandate from the gateway side.
'
type: string
mandateUpdateDate:
description: 'The date on which the mandate was updated.
'
format: date
type: string
mitConsentAgreementRef:
description: "Reference for the consent agreement that you have established\
\ with the customer. \n"
type: string
mitConsentAgreementSrc:
description: 'Required if you set the `mitProfileAction` field. Specifies
how the consent agreement has been established with the customer. The allowed
value is `External`. If you do not specify the `mitProfileAction` field,
Zuora will automatically create a stored credential profile for the payment
method, with the default value `External` set to this field.
'
enum:
- External
type: string
mitProfileAction:
description: "Specifies how Zuora creates and activates the stored credential\
\ profile. Only applicable if you set the `status` field to `Active`.\n\n\
- `Activate` (default) - Use this value if you are creating the stored credential\
\ profile after receiving the customer's consent.\n\n Zuora will create\
\ the stored credential profile then send a cardholder-initiated transaction\
\ (CIT) to the payment gateway to validate the stored credential profile.\
\ If the CIT succeeds, the status of the stored credential profile will\
\ be `Active`. If the CIT does not succeed, Zuora will not create a stored\
\ credential profile.\n \n If the payment gateway does not support the\
\ stored credential transaction framework, the status of the stored credential\
\ profile will be `Agreed`.\n\n\n- `Persist` - Use this value if the stored\
\ credential profile represents a stored credential profile in an external\
\ system. The status of the payment method's stored credential profile will\
\ be `Active`.\n\nIf you do not specify this field, Zuora will automatically\
\ create a stored credential profile for the payment method, with the default\
\ value `Activate` set to this field.\n"
enum:
- Activate
- Persist
type: string
mitProfileAgreedOn:
description: 'The date on which the stored credential profile is agreed. The
date format is `yyyy-mm-dd`.
'
format: date
type: string
mitProfileType:
description: 'Indicates the type of the stored credential profile. If you
do not specify the `mitProfileAction` field, Zuora will automatically create
a stored credential profile for the payment method, with the default value
`Recurring` set to this field.
'
type: string
mitTransactionId:
description: 'Specifies the ID of the transaction. Only applicable if you
set the `mitProfileAction` field to `Persist`.
'
maxLength: 128
type: string
title: mandateInfo
type: object
POSTPaymentMethodDecryption:
example:
accountID: 402891a25a02e11c015a02f3c6100003
integrationType: ApplePay
invoiceId: INV000000005
merchantID: merchant.CN.com.zuora.services416
mitConsentAgreementSrc: External
mitProfileAction: Activate
mitProfileType: Recurring
paymentGateway: CyberSourceOPG
paymentToken:
data: xGc......JDxuYz1gug0KZRrGXJQ=
header:
ephemeralPublicKey: MFkwEw......TMbLoojKBA==
publicKeyHash: HuLvfqvLon......9jEyX0w=
transactionId: abbadd18818baea1f37b40844c9e09afa9733b0eccb373905b811da43cf1753b
signature: MIAGCSqGSIb......AEtrLSv7hE9gAAAAAAAA==
version: EC_v1
processPayment: true
properties:
accountID:
description: |-
The ID of the customer account associated with this payment method.
To create an orphan payment method that is not associated with any customer account, you do not need to specify this field during creation. However, you must associate the orphan payment method with a customer account within 10 days. Otherwise, this orphan payment method will be deleted.
type: string
cardHolderInfo:
$ref: '#/definitions/CreatePaymentMethodCardholderInfo'
integrationType:
description: |+
Field to identify the token decryption type.
**Note:** The only value at this time is `ApplePay`.
type: string
invoiceId:
description: |
The id of invoice this payment will apply to.
**Note:** When `processPayment` is `true`, this field is required.
Only one invoice can be paid; for scenarios where you want to pay for multiple invoices, set `processPayment` to `false` and call payment API separately.
type: string
merchantID:
description: 'The Merchant ID that was configured for use with Apple Pay in
the Apple iOS Developer Center.
'
type: string
mitConsentAgreementSrc:
description: |
This field is only available for the following gateway integrations to create stored credential profiles within payment methods:
- Chase Paymentech Orbital Gateway
- CyberSource Payment API v2.0
- Stripe v2
- Vantiv (Now Worldpay)
Specify how the consent agreement has been established with the customer. The allowed value is `External`. It is required if the `mitProfileAction` field is specified. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `External` set to this field.
enum:
- External
type: string
mitProfileAction:
description: "This field is only available for the following gateway integrations\
\ to create stored credential profiles within payment methods:\n - Chase\
\ Paymentech Orbital Gateway\n - CyberSource Payment API v2.0\n - Stripe\
\ v2\n - Vantiv (Now Worldpay)\n\nSpecify either of the following values\
\ in this field:\n \n - `Activate` - Use this value if you are creating\
\ the stored credential profile after receiving the customer's consent.\n\
\ \n Zuora will create the stored credential profile then send a cardholder-initiated\
\ transaction (CIT) to the payment gateway to validate the stored credential\
\ profile. If the CIT succeeds, the status of the stored credential profile\
\ will be `Active`. If the CIT does not succeed, Zuora will not create a\
\ stored credential profile.\n \n If the payment gateway does not\
\ support the stored credential transaction framework, the status of the\
\ stored credential profile will be `Agreed`.\n \n - `Persist` - Use\
\ this value if the stored credential profile represents a stored credential\
\ profile in an external system. The status of the payment method's stored\
\ credential profile will be `Active`.\n\n If you do not specify this field,\
\ Zuora will automatically create a stored credential profile for the payment\
\ method, with the default value `Activate` set to this field.\n \n"
enum:
- Activate
- Persist
type: string
mitProfileType:
description: "This field is only available for the following gateway integrations\
\ to create stored credential profiles within payment methods:\n - Chase\
\ Paymentech Orbital Gateway\n - CyberSource Payment API v2.0\n - Stripe\
\ v2\n - Vantiv (Now Worldpay)\n\nThis field indicates the type of the\
\ stored credential profile to process recurring or unsecheduled transactions.\
\ It is required if the `mitProfileAction` field is specified. If you do\
\ not specify the `mitProfileAction` field, Zuora will automatically create\
\ a stored credential profile for the payment method, with the default value\
\ `Recurring` set to this field.\n \n"
enum:
- Recurring
- Unscheduled
type: string
paymentGateway:
description: |
The label name of the gateway instance configured in Zuora that should process the payment. When creating a Payment, this must be a valid gateway instance ID and this gateway must support the specific payment method. If not specified, the default gateway of your Zuora customer account will be used.
**Note:** When `processPayment` is `true`, this field is required. When `processPayment` is `false`, the default payment gateway of your Zuora customer account will be used no matter whether a payment gateway instance is specified in the `paymentGateway` field.
type: string
paymentToken:
description: |+
The complete JSON Object representing the encrypted payment token payload returned in the response from the Apple Pay session.
type: object
processPayment:
description: "A boolean flag to control whether a payment should be processed\
\ after creating payment method. The payment amount will be equivalent to\
\ the amount the merchant supplied in the ApplePay session. Default is false.\n\
\nIf this field is set to `true`, you must specify the `paymentGateway`\
\ field with the payment gateway instance name.\n\nIf this field is set\
\ to `false`:\n - The default payment gateway of your Zuora customer account\
\ will be used no matter whether a payment gateway instance is specified\
\ in the `paymentGateway` field. \n - You must select the **Verify new\
\ credit card** check box on the gateway instance settings page. Otherwise,\
\ the cryptogram will not be sent to the gateway.\n - A separate subscribe\
\ or payment API call is required after this payment method creation call.\n"
type: boolean
required:
- integrationType
- merchantID
- paymentToken
type: object
POSTPaymentMethodRequest:
allOf:
- properties:
accountKey:
description: "Internal ID of the customer account that will own the payment\
\ method. \n\nTo create an orphan payment method that is not associated\
\ with any customer account, you do not need to specify this field during\
\ creation. However, you must associate the orphan payment method with\
\ a customer account within 10 days. Otherwise, this orphan payment method\
\ will be deleted.\n"
type: string
authGateway:
description: |
Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.
If you do not set this field, Zuora will use one of the following payment gateways instead:
* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.
* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.
type: string
gatewayOptions:
description: |
The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).
Zuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.
properties:
key:
description: 'The name of a gateway-specific parameter.
'
type: string
value:
description: 'The value of the gateway-specific parameter.
'
type: string
type: object
ipAddress:
description: "The IPv4 or IPv6 information of the user when the payment\
\ method is created or updated. Some gateways use this field for fraud\
\ prevention. If this field is passed to Zuora, Zuora directly passes\
\ it to gateways. \n\nIf the IP address length is beyond 45 characters,\
\ a validation error occurs.\n\nFor validating SEPA payment methods on\
\ Stripe v2, this field is required.\n"
type: string
makeDefault:
default: false
description: |
Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.
When you set this field to `true`, make sure the payment method is supported by the default payment gateway.
type: boolean
mandateInfo:
description: 'The mandate information for the Credit Card, Credit Card Reference
Transaction, ACH, or Bank Transfer payment method.
'
properties:
mandateId:
description: |
The mandate ID.
When creating an ACH payment method, if you need to pass in tokenized information, use the `mandateId` instead of `tokenId` field.
maxLength: 36
type: string
mandateReason:
description: 'The reason of the mandate from the gateway side.
'
maxLength: 64
type: string
mandateStatus:
description: 'The status of the mandate from the gateway side.
'
maxLength: 64
type: string
type: object
skipValidation:
default: false
description: "Specify whether to skip the validation of the information\
\ through the payment gateway. For example, when migrating your payment\
\ methods, you can set this field to `true` to skip the validation. \n"
type: boolean
type:
description: |
Type of the payment method. Possible values include:
* `CreditCard` - Credit card payment method.
* `CreditCardReferenceTransaction` - Credit Card Reference Transaction. See [Supported payment methods](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Supported_Payment_Methods) for payment gateways that support this type of payment method.
* `ACH` - ACH payment method.
* `SEPA` - Single Euro Payments Area.
* `Betalingsservice` - Direct Debit DK.
* `Autogiro` - Direct Debit SE.
* `Bacs` - Direct Debit UK.
* `Becs` - Direct Entry AU.
* `Becsnz` - Direct Debit NZ.
* `PAD` - Pre-Authorized Debit.
* `PayPalCP` - PayPal Commerce Platform payment method. Use this type if you are using a [PayPal Commerce Platform Gateway](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Commerce_Platform_Gateway) instance.
* `PayPalEC` - PayPal Express Checkout payment method. Use this type if you are using a [PayPal Payflow Pro Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Payflow_Pro%2C_Website_Payments_Payflow_Edition%2C_Website_Pro_Payment_Gateway) instance.
* `PayPalNativeEC` - PayPal Native Express Checkout payment method. Use this type if you are using a [PayPal Express Checkout Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Express_Checkout_Gateway) instance.
* `PayPalAdaptive` - PayPal Adaptive payment method. Use this type if you are using a [PayPal Adaptive Payment Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Adaptive_Payments_Gateway) instance.
* `AdyenApplePay` - Apple Pay on Adyen Integration v2.0. See [Set up Adyen Apple Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Apple_Pay_on_Web/Set_up_Adyen_Apple_Pay) for details.
* `AdyenGooglePay` - Google Pay on Adyen Integration v2.0. See [Set up Adyen Google Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Adyen_Google_Pay) for details.
* `GooglePay` - Google Pay on Chase Paymentech Orbital gateway integration. See [Set up Google Pay on Chase](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Google_Pay_on_Chase) for details.
* You can also specify a custom payment method type. 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 details.
Note that Zuora is continuously adding new payment method types.
type: string
required:
- type
type: object
- $ref: '#/definitions/CreatePMPayPalECPayPalNativeECPayPalCP'
- $ref: '#/definitions/CreatePaymentMethodPayPalAdaptive'
- $ref: '#/definitions/CreatePaymentMethodCreditCard'
- $ref: '#/definitions/CreatePaymentMethodACH'
- $ref: '#/definitions/CreatePaymentMethodBankTransfer'
- $ref: '#/definitions/CreatePaymentMethodCCReferenceTransaction'
- $ref: '#/definitions/CreatePaymentMethodApplePayAdyen'
- $ref: '#/definitions/CreatePaymentMethodGooglePayAdyenChase'
- $ref: '#/definitions/PaymentMethodObjectCustomFields'
example:
BAID: I-1TJ3GAGG82Y9
accountKey: 2c92c0f95be68649015bf14e001f2760
email: customer@example.com
type: PayPalEC
POSTPaymentMethodResponse:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
id:
description: 'Internal ID of the payment method that was created.
'
type: string
reasons:
items:
description: 'Error information. Only applicable if the payment method
was not created.
'
properties:
code:
description: 'Error code.
'
type: string
message:
description: 'Error message.
'
type: string
type: object
type: array
type: object
POSTPaymentMethodResponseDecryption:
properties:
amount:
description: 'The payment amount contained within the encrypted token.
'
type: string
paymentId:
description: 'The ID of newly processed payment,
'
type: string
paymentMethodId:
description: 'ID of the newly-created payment method.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
POSTPaymentMethodUpdaterBatchRequest:
example:
billingCycleDay: 5
updaterAccountId: 418734b01fbb11ee821f0e4e5eec84cf
properties:
billingCycleDay:
description: |
The billing cycle day. The allowed value is an integer in the range of 1 - 31.
The payment methods from accounts where the billing cycle day is the specified value in this field will be included in the updates.
type: integer
updaterAccountId:
description: 'The ID (UUID) of the PMU account. This field must be a string
of 32 characters consisting of digits and letters a - f.
'
type: string
required:
- updaterAccountId
- billingCycleDay
type: object
POSTPaymentMethodUpdaterResponse:
properties:
processId:
description: 'The ID of the running process when the exception occurs. This
field is available only if the `success` field is `false`.
'
type: string
reasons:
description: 'The container of the error code and message. This field is available
only if the `success` field is `false`.
'
items:
properties:
code:
description: 'Error code.
'
type: string
message:
description: 'Error message.
'
type: string
type: object
type: array
requestId:
description: 'The ID of the request. This field is available only if the `success`
field is `false`
'
type: string
success:
description: 'Indicates whether the request to create a PMU batch is sent
successfully.
'
type: boolean
type: object
POSTPaymentRunDataElementRequest:
allOf:
- properties:
accountId:
description: |
A valid account ID associated with the payment run.
If `consolidatedPayment` is set to `true`, this field is used in processing a single payment for invoices/debit memos due on an account.
type: string
accountNumber:
description: |
The number of the customer account associated with the payment run, such as `A00000001`.
You can specify either `accountNumber` or `accountId` for a customer account, but not both of them.
If `consolidatedPayment` is set to `true`, this field is used in processing a single payment for invoices, debit memos, and standalone payments due on an account.
type: string
amount:
description: |
The amount to be collected for the specified invoice/debit memo. `amount` must be a positive numeric value no more than the balance of the specified invoice/debit memo.
This field is only available when `documentId` is specified. If `amount` is not specified, whole balance of the invoice/debit memo is collected.
type: number
comment:
description: 'Additional comments.
'
type: string
currency:
description: |
Note: This field is only available if support for standalone payments is enabled.
The currency of the standalone payment. Specify this field only if the `standalone` field is `true`. The currency of the standalone payment can be different from the payment currency defined in the customer account settings.
type: string
dataItems:
description: |
The array of data for each Invoice if you want to collect payment for particular items through one payment method. The grouped items are sent as one data record.
Here is another example for a data item:
```
{
"accountId": "60c81b5bc51649e8a7d1b48303194790",
"documentId": "2c9081a03c63c94c013c6894af5602dd",
"documentType": "Invoice",
"dataItems": [
{
"documentItemId": "8a92ab0e8ab14c53018ac746961c10d1",
"amount": 40
},
{
"taxItemId": "8a92ab0e8ab14c53018ac746961c10d2",
"amount": 40
}
],
"amount": 80,
"paymentMethodId": "2c9081a03c6d7b51013c6d7e4ada0a1c",
"paymentGatewayId": "d2abe8342e1811ea80e774b9452e17ea",
"comment": "Payment Comments",
"customField1__c": "cf_value1",
"customField2__c": "cf_value2"
},
```
properties:
amount:
description: 'The total amount to be collected for the specified invoice/debit
memo item. The sum of the item amount should be equal to document
amount.
'
type: number
documentItemId:
description: 'The ID of a billing document of the invoice item or debit
memo item.
'
type: string
taxItemId:
description: 'The tax ID of the invoice item or debit memo item.
'
type: string
title: dataItems
type: object
documentId:
description: |
The ID of a billing document associated with the payment run. `documentId` must be valid and match with `documentType`.
You must either specify both `documentId` and `documentType`, or specify neither of them.
If neither of `documentType` and `documentId` is specified, all invoices/debit memos with open balance of the account are collected.
type: string
documentNumber:
description: |
The number of a billing document associated with the payment run. `documentNumber` must be valid and match with `documentType`.
You must either specify both `documentNumber` and `documentType`, or specify neither of them.
If neither of `documentType` and `documentNumber` is specified, all invoices/debit memos with open balance of the account are collected.
type: string
documentType:
description: |
The type of a billing document associated with the payment run. The value can be `Invoice` or `DebitMemo`, but `DebitMemo` is only supported if the Invoice Settlement feature is enabled.
You must either specify both `documentType` and `documentId`, or specify neither of them.
If neither of `documentType` and `documentId` is specified, all invoices/debit memos with open balance of the account are collected.
enum:
- Invoice
- DebitMemo
type: string
paymentGatewayId:
description: |
The ID of the payment gateway for collecting invoices/debit memos. The specified payment gateway must be valid and active. If it is not specified, the default payment gateway of the account is used. If no payment gateway is configured for the account, the default payment gateway of the tenant is used.
If `consolidatedPayment` is set to `true`, this field is used in processing a single payment for invoices/debit memos due on an account.
type: string
paymentMethodId:
description: |
The ID of the payment method for collecting invoices/debit memos. The specified payment method must be a valid non-system payment method. If it is not specified, the default payment method of the account is used regardless of the `autoPay` value of the account.
If `processPaymentWithClosedPM` is set to `false`, the payment method cannot be closed.
If the payment retry rules are enabled, the payment method must meet the rules.
If `consolidatedPayment` is set to `true`, this field is used in processing a single payment for invoices/debit memos due on an account.
type: string
standalone:
default: false
description: "Note: This field is only available if support for standalone\
\ payments is enabled.\n\nSpecify `true` to indicate that this is a standalone\
\ payment that will be created and processed in Zuora through Zuora gateway\
\ integration but will be settled outside of Zuora. When `standalone`\
\ is set to `true`:\n - `accountId` or `accountNumber` is required.\n\
\ - `amount` is required. \n - The amount will not be summed up into\
\ the account balance and key metrics regardless of the payment currency.\n\
\ - No settlement data will be created.\n - Either the applied amount\
\ or the unapplied amount of the payment is zero.\n - The standalone\
\ payment cannot be applied, unapplied, or transferred.\n"
type: boolean
type: object
- $ref: '#/definitions/PaymentObjectCustomFields'
POSTPaymentRunRequest:
example:
accountId: 402890245f097f39015f0e9fcdd60558
autoApplyCreditMemo: 'true'
autoApplyUnappliedPayment: 'true'
consolidatedPayment: 'true'
processPaymentWithClosedPM: 'true'
targetDate: '2017-10-10'
properties:
accountId:
description: |
The ID of the customer account associated with the payment run.
This field conflicts with each of the `batch`, `billCycleDay`, `currency`, `paymentGatewayId`, and `billingRunId` fields. If there are such conflicts, an error occurs and an error message is returned.
format: uuid
type: string
applyCreditBalance:
description: 'If `applyCreditBalance` is true, the credit memo or unapplied
payment on the order account will be automatically applied to the invoices
generated by this order. The credit memo generated by this order will not
be automatically applied to any invoices.
'
type: boolean
autoApplyCreditMemo:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Whether to automatically apply a posted credit memo to one or more receivables in the payment run.
type: boolean
autoApplyUnappliedPayment:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Whether to automatically apply unapplied payments to one or more receivables in the payment run.
type: boolean
batch:
description: "The alias name given to a batch. The batch name is a string\
\ of 50 characters or less.\n\nThis field conflicts with the `accountId`\
\ field. If they are both specified in the request body, an error occurs\
\ and an error message is returned. \n\n**Note**: By default, you have 50\
\ configurable account batches. To increase the limit to 200 batches, you\
\ must have the Performance Booster Elite package.\n"
type: string
billCycleDay:
description: |
The billing cycle day (BCD), the day of the month when a bill run generates invoices for the account. The value must be equal to or less then 31, and 31 is mean the EOM.
This field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.
type: string
billingRunId:
description: |
The ID of a bill run.
This field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.
format: uuid
type: string
collectPayment:
description: "Whether to process electronic payments during the execution\
\ of payment runs. \n\nIf the Payment user permission \"Process Electronic\
\ Payment\" is disabled, this field will be ignored.\n"
type: boolean
consolidatedPayment:
description: "**Note:** The **Process Electronic Payment** permission also\
\ needs to be allowed for a Manage Payment Runs role to work. See [Payments\
\ Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/e_Payments_Roles)\
\ for more information. \n\nWhether to process a single payment for all\
\ receivables that are due on an account.\n"
type: boolean
currency:
description: |
A currency defined in the web-based UI administrative settings.
This field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.
type: string
data:
description: |2
The array of data for specifying records of accounts and invoices/debit memos that will be collected and processed by a payment run.
When you specify the data array, ensure that at least one record is passed in. If an empty array is specified, `accountId`, `batch`, `billCycleDay`, `currency`, `paymentGatewayId`, and `billingRunId` fields will be used to define the billing documents to be collected.
A maximum of 50K records are allowed to be passed into the `data` array.
Here is an example:
```
{
"accountId": "60c81b5bc51649e8a7d1b48303194790",
"documentId": "2c9081a03c63c94c013c6894af5602dd",
"documentType": "Invoice",
"amount": 80,
"paymentMethodId": "2c9081a03c6d7b51013c6d7e4ada0a1c",
"paymentGatewayId": "d2abe8342e1811ea80e774b9452e17ea",
"comment": "Payment Comments",
"customField1__c": "cf_value1",
"customField2__c": "cf_value2"
}
```
Here is another example for a standalone payment:
```
{
"accountId": "account2",
"amount": 100,
"currency": "GBP",
"standalone": true
}
```
items:
$ref: '#/definitions/POSTPaymentRunDataElementRequest'
title: payment run data
type: array
organizationLabels:
description: "The organizations that the run is created for. \n\nFor each\
\ item in the array, either the `organizationId` or the `organizationName`\
\ field is required.\n\nThis field is only required when you have already\
\ turned on Multi-Org feature.\n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
paymentGatewayId:
description: |
The ID of the gateway instance that processes the payment.
This field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.
format: uuid
type: string
processPaymentWithClosedPM:
description: "**Note:** The **Process Electronic Payment** permission also\
\ needs to be allowed for a Manage Payment Runs role to work. See [Payments\
\ Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/e_Payments_Roles)\
\ for more information. \n\nWhether to process payments even if the default\
\ payment method is closed.\n"
type: boolean
runDate:
description: "The date and time when the scheduled payment run is to be executed,\
\ in `yyyy-mm-dd hh:mm:ss` format. The backend will ignore mintues and seconds\
\ in the field value. For example, if you specify `2017-03-01 11:30:37`\
\ for this value, this payment run will be run at 2017-03-01 11:00:00.\n\
\nYou must specify either the `runDate` field or the `targetDate` field\
\ in the request body. If you specify the `runDate` field, the scheduced\
\ payment run is to be executed on the run date. If you specify the `targetDate`\
\ field, the payment run is executed immediately after it is created. \n"
format: date-time
type: string
targetDate:
description: "The target date used to determine which receivables to be paid\
\ in the payment run. The payments are collected for all receivables with\
\ the due date no later than the target date.\n\nYou must specify either\
\ the `runDate` field or the `targetDate` field in the request body. If\
\ you specify the `runDate` field, the scheduced payment run is to be executed\
\ on the run date. If you specify the `targetDate` field, the payment run\
\ is executed immediately after it is created. \n"
format: date
type: string
type: object
POSTPaymentScheduleRequest:
allOf:
- properties:
accountId:
description: "ID of the customer account the payment schedule belongs to.\n\
\n**Note:**\n`accountId` and `accountNumber` cannot both be `null`. When\
\ both fields are specified, the two values must match each other. \
\ \n"
type: string
accountNumber:
description: "Account number of the customer account the payment schedule\
\ belongs to.\n\n**Note:**\n`accountId` and `accountNumber` cannot both\
\ be `null`. When both fields are specified, the two values must match\
\ each other. \n"
type: string
amount:
description: "The amount of each payment schedule item in the payment schedule.\n\
\n**Note:**\n- This field is required when `items` is not specified.\n\
- This field will be ignored when `items` is specified.\n- When creating\
\ recurring payment schedules, there are 2 options to specify amounts:\
\ \n - Specify `totalAmount` and `occurrences`, `amount` will be calculated.\n\
\ - Specify `amount` and `occurrences`, `totalAmount` will be calculated.\n\
\ You must specify either `totalAmount` or `amount`. Specifying both\
\ fields at the same time is not allowed.\n"
type: number
billingDocument:
description: |
Object of the billing document with which the payment schedule is associated.
**Note:**
- This field is optional. If you have the Standalone Payment feature enabled, you can leave this field blank and set `standalone` to `true` to create standalone payments. You can also choose to create unapplied payments by leaving this object blank and setting `standalone` to `false`.
- If Standalone Payment is not enabled, leaving this object unspecified will create unapplied payments.
properties:
id:
description: |
ID of the billing document.
**Note:**
If a billing document is specified, either `id` or `number` of the billing document must be specified. You cannot specify both of them or skip both.
type: string
number:
description: |
ID of the billing document.
**Note:**
If a billing document is specified, either `id` or `number` of the billing document must be specified. You cannot specify both of them or skip both.
type: string
type:
description: 'The type of the billing document. The default value is
`Invoice`.
'
enum:
- Invoice
- DebitMemo
type: string
required:
- type
type: object
currency:
description: |
Currency of the payment schedule.
**Note:**
- This field is optional. The default value is the account's default currency.
- This field will be ignored when `items` is specified.
type: string
description:
description: 'Description of the payment schedule. Max length is 255.
'
type: string
items:
description: 'Container array for payment schedule items.
'
items:
allOf:
- properties:
amount:
description: 'The amount that needs to be collected by this payment
schedule item.
'
type: number
billingDocument:
description: "Object for the billing document with which the payment\
\ schedule item is associated. \n**Note:** You must specify the\
\ same billing document for all the payment schedule items in\
\ one payment schedule.\n"
properties:
id:
description: |
The ID of the billing document.
**Note:**
If a billing document is specified, one of `id` or `number` must be specified. You cannot specify both of them or or skip both.
type: string
number:
description: |
The number of the billing document.
**Note:**
If a billing document is specified, one of `id` or `number` must be specified. You cannot specify both of them or skip both.
type: string
type:
description: 'The type of the billing document. The default
value is `Invoice`.
'
enum:
- Invoice
- DebitMemo
type: string
required:
- type
type: object
currency:
description: |
The currency of the payment.
**Note**:
- This field is optional. If not specified, the default value is the currency set for the account.
type: string
description:
description: 'Description of the payment schedule item.
'
type: string
paymentGatewayId:
description: |
The ID of the payment gateway.
**Note**:
- This field is optional. If not specified, the default value is the payment gateway id set for the account.
type: string
paymentMethodId:
description: |
The ID of the payment method.
**Note**:
- This field is optional. If not specified, the default value is the payment method id set for the account.
type: string
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
Here is an example:
```
"paymentOption": [
{
"type": "GatewayOptions",
"detail": {
"SecCode":"WEB"
}
}
]
```
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
To enable this field, submit a request at [Zuora Global Support](https://support.zuora.com/). This field is only available if `zuora-version` is set to `337.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
runHour:
description: "At which hour in the day in the tenant\u2019s timezone\
\ this payment will be collected. Available values:`[0,1,2,~,22,23]`.\
\ If the time difference between your tenant\u2019s timezone and\
\ the timezone where Zuora servers are is not in full hours, for\
\ example, 2.5 hours, the payment schedule items will be triggered\
\ half hour later than your scheduled time.\nThe default value\
\ is `0`.\nIf the payment `runHour` and `scheduledDate` are backdated,\
\ the system will collect the payment when the next runHour occurs.\n"
type: string
scheduledDate:
description: 'The date to collect the payment.
'
format: date
type: string
type: object
- $ref: '#/definitions/PaymentScheduleItemCustomFields'
type: array
occurrences:
description: "The number of payment schedule item to be created. Maximum\
\ value is 1000.\n\n**Note:**\n- This field is required when `items` is\
\ not specified.\n- This field will be ignored when `items` is specified.\
\ \n"
type: integer
paymentGatewayId:
description: |
ID of the payment gateway.
**Note:**
- This field is optional. The default value is the account's default payment gateway ID. If no payment gateway ID is found on the cusotmer account level, the default value will be the tenant's default payment gateway ID.
- This field will be ignored when `items` is specified.
type: string
paymentMethodId:
description: "ID of the payment method.\n\n**Note:**\n- This field is optional.\
\ The default value is the account's default payment method ID.\n- This\
\ field will be ignored when `items` is specified. \n"
type: string
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
Here is an example:
```
"paymentOption": [
{
"type": "GatewayOptions",
"detail": {
"SecCode":"WEB"
}
}
]
```
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
paymentScheduleNumber:
description: "You can use this field to specify the number of the payment\
\ schedule.\nOnly characters from the following sets are allowed: A-Z,\
\ a-z, 0-9, and `-`. \nPayment numbers must start with a letter. In addition,`-`\
\ can only be used at most once and cannot be placed at the beginning\
\ or the end of the payment numbers. \n"
type: string
period:
description: "The frequency for the payment collection since the `startDate`.\n\
\n**Note:**\n- Thie field is required when `items` is not specified.\n\
- This field will be ignored when `items` is specified.\n- If `startDate`\
\ is `30` or `31` and `period` is `Monthly`, when in February, payment\
\ schedule will use the last day of February for payment collection. \n"
enum:
- Monthly
- Weekly
- BiWeekly
type: string
prepayment:
description: 'Indicates whether the payments created by the payment schedule
will be used as reserved payments. This field will only be available if
the prepaid cash drawdown permission is enabled. See [Prepaid Cash with
Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown)
for more information.
'
type: boolean
runHour:
description: "Specifies at which hour in the day in the tenant\u2019s time\
\ zone when this payment will be collected. Available values: `[0,1,2,~,22,23]`.\n\
\n**Note:**\n- If the time difference between your tenant\u2019s timezone\
\ and the timezone where Zuora servers are is not in full hours, for example,\
\ 2.5 hours, the payment schedule items will be triggered half hour later\
\ than your scheduled time.\n- If the payment `runHour` and `scheduledDate`\
\ are backdated, the system will collect the payment when the next runHour\
\ occurs.\n- This field is optional. The default value is `0`.\n- This\
\ field will be ignored when `items` is specified. \n"
type: integer
standalone:
description: "Indicate whether the payments created by the payment schedule\
\ are standalone payments or not. When setting to `true`, standalone payments\
\ will be created. When setting to `false`, you can either specify a billing\
\ document, or not specifying any billing documents. In the later case,\
\ unapplied payments will be created. If set to `null`, standalone payment\
\ will be created.\n\n**Note**: \n- This field is only available if the\
\ Standalone Payment is enabled. Do not include this field if Standalone\
\ Payment is not enabled.\n- If Standalone Payment is enabled, default\
\ value is `true`.\n"
type: boolean
startDate:
description: "The date for the first payment collection.\n\n**Note:**\n\
- This field is required when `items` is not specified.\n- This field\
\ will be ignored when `items` is specified. \n"
format: date
type: string
totalAmount:
description: "The total amount of that the payment schedule will collect.\
\ This field is only available for recurring payment schedules. \n\n**Note**:\n\
- When creating recurring payment schedules, there are 2 options to specify\
\ amounts:\n \n - Specify `totalAmount` and `occurrences`, `amount`\
\ will be calculated.\n - Specify `amount` and `occurrences`, `totalAmount`\
\ will be calculated.\n \n You must specify either `totalAmount` or\
\ `amount`. Specifying both fields at the same time is not allowed.\n\
- If the Standalone Payments feature is enabled and `standalone` is set\
\ to `true` for the payment schedule, `totalAmount` will be ignored.\n"
type: number
type: object
- $ref: '#/definitions/PaymentScheduleCustomFields'
POSTPaymentScheduleResponse:
allOf:
- properties:
accountId:
description: 'ID of the account that owns the payment schedule.
'
type: string
accountNumber:
description: 'Number of the account that owns the payment schedule.
'
type: string
billingDocument:
properties:
id:
description: 'ID of the billing document. for example, `2c9890306fb2121e016fb21a6b550041`.
'
type: string
number:
description: 'Number of the billing docuemnt, for example, `INV00002345`.
'
type: string
type:
description: 'Indicates whether the associated billing document is a
debit memo or a invoice.
'
type: string
type: object
createdById:
description: 'ID of the user who created this payment schedule.
'
type: string
createdDate:
description: 'The date and time the payment schedule is created.
'
format: date
type: string
description:
description: 'The description of the payment schedule.
'
type: string
id:
description: 'ID of the payment schedule.
'
type: string
isCustom:
description: 'Indicates if the payment schedule is a custom payment schedule.
'
type: boolean
items:
description: 'Container for payment schedule items.
'
items:
$ref: '#/definitions/PaymentScheduleItemCommonResponse'
type: array
nextPaymentDate:
description: 'The date the next payment will be processed.
'
format: date
type: string
occurrences:
description: 'The number of payment schedule items that are created by this
payment schedule.
'
type: integer
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
paymentScheduleNumber:
description: 'Number of the payment schedule.
'
type: string
period:
description: |
For recurring payment schedule only. The period of payment generation. Available values include: `Monthly`, `Weekly`, `BiWeekly`.
Return `null` for custom payment schedules.
type: string
prepayment:
description: 'Indicates whether the payments created by the payment schedule
are used as a reserved payment. This field will only be available if the
prepaid cash drawdown permission is enabled. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown)
for more information.
'
type: boolean
recentPaymentDate:
description: 'The date the last payment was processed.
'
format: date
type: string
runHour:
description: "[0,1,2,~,22,23]\n\nAt which hour in the day in the tenant\u2019\
s timezone this payment will be collected. If the payment `runHour` and\
\ `scheduledDate` are backdated, the system will collect the payment when\
\ the next runHour occurs.\nReturn `0` for custom payment schedules.\n"
type: integer
standalone:
description: 'Indicates if the payments that the payment schedule created
are standalone payments or not.
'
type: boolean
startDate:
description: 'The date when the first payment of this payment schedule is
proccessed.
'
format: date
type: string
status:
description: |
The status of the payment schedule.
- `Active`: There are still pament schedule items to process.
- `Canceled`: After a payment schedule is canceled by the user, the schedule is marked as `Canceled`.
- `Completed`: After all payment schedule items are processed, the schedule is marked as `Completed`.
enum:
- Active
- Canceled
- Completed
type: string
success:
description: "Returns `true` if the request was processed successfully.\
\ \n"
type: boolean
totalAmount:
description: 'The total amount that will be collected by this payment schedule.
This field will contain a null value if the `standalone` value is `true`.
'
type: number
totalPaymentsErrored:
description: 'The number of errored payments.
'
type: integer
totalPaymentsProcessed:
description: 'The number of processed payments.
'
type: integer
updatedById:
description: 'ID of the user who last updated this payment schedule.
'
type: string
updatedDate:
description: 'The date and time the payment schedule is last updated.
'
format: date
type: string
type: object
- $ref: '#/definitions/PaymentScheduleCustomFields'
POSTPaymentSchedulesEach:
properties:
id:
description: 'The ID of the created payment schedule.
'
type: string
paymentScheduleNumber:
description: 'The number of the created payment schedule.
'
type: string
title: Payment Schedule ID and Number
type: object
POSTPaymentSchedulesRequest:
properties:
paymentSchedules:
description: 'Container of the payment schedules to be created.
'
items:
$ref: '#/definitions/POSTPaymentScheduleRequest'
type: array
type: object
POSTPaymentSchedulesResponse:
description: 'Container of the payment schedules that are created.
'
properties:
paymentSchedules:
description: 'Container for payment parts.
'
items:
$ref: '#/definitions/POSTPaymentSchedulesEach'
type: array
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
POSTPreviewBillingAdjustmentRequestType:
example:
chargeNumbers:
- string
- string
deferredRevenueAccountingCode: string
endDate: '2023-02-27'
exclusion:
- chargeNumbers:
- string
- string
deliveryDate: '2023-02-26'
- chargeNumbers:
- string
- string
deliveryDate: '2023-05-27'
reason: string
recognizedRevenueAccountingCode: string
revenueRecognitionRuleName: string
startDate: '2023-02-26'
subscriptionNumber: string
type: DeliveryCredit
properties:
accountNumber:
description: "The account number for which the delivery adjustment is created.\n\
\n**Note**: \n - The account number should be of the subscription owner.\n\
\ - Only one of accountNumber or subscriptionNumber should be provided.\n"
type: string
chargeNumbers:
description: 'An optional container to specify charge numbers in the subscription
for which the delivery adjustment needs to be created.
'
items:
type: string
type: array
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as Monthly
Recurring Liability.
'
type: string
endDate:
description: 'The end date of the delivery adjustment, in `yyyy-mm-dd` format.
This is inclusive.
'
format: date
type: string
reason:
description: 'The reason for the delivery adjustment.
'
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as Monthly
Recurring Charges or Overage Charges.
'
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the revenue
schedule.
'
type: string
startDate:
description: 'The start date of the delivery adjustment, in `yyyy-mm-dd` format.
This is inclusive.
'
format: date
type: string
subscriptionNumber:
description: |
The subscription number for which the delivery adjustment is created.
**Note**: Only one of accountNumber or subscriptionNumber should be provided.
type: string
type:
description: 'The type of delivery adjustment.
'
enum:
- DeliveryCredit
type: string
required:
- startDate
- endDate
type: object
POSTPriceBookItemIntervalPrice:
properties:
duration:
description: "The duration of the interval. \n\nIf you set the `type` field\
\ to `Infinity`, do not specify the `duration` field in the request.\n"
type: number
overagePrice:
description: "The overage price. \n\nThis field is only applicable for charges\
\ with the Overage or Tiered with Overage pricing charge model.\n"
type: number
price:
description: "The price for the interval. \n\nThis field is only applicable\
\ for charges with the Flat Fee, Per Unit, or Delivery Pricing charge model.\n"
type: number
sequence:
description: |
The sequence of the interval.
The value must be a consecutive positive integer starting from `1`.
minimum: 1
type: number
tiers:
description: "Container for the tiers. \n\nThis field is only applicable for\
\ charges with the Tiered, Volume, or Tiered with Overage pricing charge\
\ model.\n"
items:
$ref: '#/definitions/POSTPriceBookItemTier'
type: array
type:
description: 'The type of the interval.
'
enum:
- Infinity
- Day
- Month
type: string
required:
- type
- sequence
title: intervalPrices
type: object
POSTPriceBookItemRequest:
allOf:
- properties:
currency:
description: 'The currency for the price.
'
type: string
defaultQuantity:
description: "The default quantity of the price book item. \n\nThis field\
\ is only applicable for one-time and recurring charges.\n"
type: number
effectiveEndDate:
description: 'The effective end date of the offer.
'
format: date
type: string
effectiveStartDate:
description: 'The effective start date of the price book item.
'
format: date
type: string
includedUnits:
description: "The number of units included in the price book item. \n\n\
This field is only applicable for charges with the Overage pricing charge\
\ model.\n"
type: number
intervalPrices:
description: "Container for the interval prices of the product rate plan\
\ charge. \n\nThis field is applicable only if you want to use interval\
\ prices for different periods.\n"
items:
$ref: '#/definitions/POSTPriceBookItemIntervalPrice'
type: array
listPriceBase:
description: "The list price base of the price book item. \n\nThis field\
\ is only applicable for recurring charges.\n"
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
type: string
offerId:
description: |
The ID of the offer that you want to associate the price book item with.
You can specify either `offerId` or `offerNumber`.
type: string
offerNumber:
description: "The number of the offer that you want to associate the price\
\ book item with. \n\nYou can specify either `offerId` or `offerNumber`.\n"
type: string
overagePrice:
description: "The overage price of the price book item. \n\nThis field is\
\ only applicable for charges with the Overage or Tiered with Overage\
\ pricing charge model.\n"
type: number
price:
description: "The price of the price book item. \n\nThis field is only applicable\
\ for charges with the Flat Fee, Per Unit, or Delivery Pricing charge\
\ model.\n"
type: number
productChargeId:
description: 'The ID of the product rate plan charge associated with the
price book item.
'
type: string
tiers:
description: "Container for the tiers of the price book item. \n\nThis field\
\ is only applicable for charges with the Tiered, Volume, or Tiered with\
\ Overage pricing charge model.\n"
items:
$ref: '#/definitions/POSTPriceBookItemTier'
type: array
required:
- productChargeId
- currency
type: object
example:
currency: USD
defaultQuantity: 10
intervalPrices:
- duration: 2
sequence: 1
tiers:
- endingUnit: 10
price: 5
priceFormat: FlatFee
startingUnit: 0
tier: 1
- endingUnit: 20
price: 4
priceFormat: FlatFee
startingUnit: 11
tier: 2
type: Month
listPriceBase: Per_Month
offerId: 402880e8813bff7a01813c1f71f90024
offerNumber: OF-00000001
productChargeId: 402880e8813bff7a01813c1f71f90024
POSTPriceBookItemTier:
properties:
endingUnit:
description: 'The ending unit of the tier.
'
type: number
price:
description: 'The price of the tier.
'
type: number
priceFormat:
description: 'The price format of the tier.
'
enum:
- FlatFee
- PerUnit
type: string
startingUnit:
description: 'The starting unit of the tier.
'
type: number
tier:
description: 'The number of the tier.
'
type: number
required:
- tier
- startingUnit
- price
title: tiers
type: object
POSTProductChargeDefinitionPricing:
properties:
currency:
description: 'The currency for the price.
'
type: string
discountAmount:
description: 'The specific amount for a fixed discount. The field is applicable
only for charges based on the Discount-Fixed Amount charge model.
'
format: double
type: number
discountPercentage:
description: 'The percentage of discount for a percentage discount. The field
is applicable only for charges based on the Discount-Percentage charge model.
'
format: double
type: number
price:
description: "The price of this item. \n\nThis field is only applicable for\
\ charges based on the following charge models:\n - Flat Fee\n - Per Unit\n\
\ - Delivery Pricing\n"
type: number
tiers:
description: "Container for the tiers of the price item. \n\nThis field is\
\ only applicable for charges based on the following charge models:\n -\
\ Tiered Pricing\n - Volume Pricing\n\nYou must specify all relevant fields\
\ of all tiers, including pricing information for each currency.\nFor each\
\ currency, ensure that the tiers appear in ascending order of `StartingUnit`.\n\
\nFor example:\n\n```\n[\n {\n \"startingUnit\": \"1\",\n \"endingUnit\"\
: \"150\",\n \"currency\": \"USD\",\n \"price\": 1.95,\n \"priceFormat\"\
: \"Per Unit\"\n },\n {\n \"startingUnit\": \"151\",\n \"endingUnit\"\
: \"300\",\n \"currency\": \"USD\",\n \"price\": 1.45,\n \"priceFormat\"\
: \"Per Unit\"\n },\n {\n \"startingUnit\": \"1\",\n \"endingUnit\"\
: \"150\",\n \"currency\": \"EUR\",\n \"price\": 1.75,\n \"priceFormat\"\
: \"Per Unit\"\n },\n {\n \"startingUnit\": \"151\",\n \"endingUnit\"\
: \"300\",\n \"currency\": \"EUR\",\n \"price\": 1.30,\n \"priceFormat\"\
: \"Per Unit\"\n }\n]\n``` \n"
items:
$ref: '#/definitions/POSTChargeDefinitionPricingTier'
type: array
title: prices
type: object
POSTPublicEmailTemplateRequest:
example:
active: true
bccEmailAddress: user@example.com
ccEmailAddress: user@example.com
ccEmailType: SpecificEmails
description: Email when an account is edited
emailBody: Dear user,the account has been edited. Example
Co. Ltd.
emailSubject: Account has been edited
encodingType: UTF8
eventTypeName: AccountEdit
fromEmailAddress: null
fromEmailType: TenantEmail
fromName: Example Co. Ltd.
isHtml: true
name: Account Edit Email
replyToEmailAddress: null
replyToEmailType: TenantEmail
toEmailAddress: null
toEmailType: BillToContact
properties:
active:
default: true
description: The status of the email template. The default value is `true`.
type: boolean
bccEmailAddress:
description: The email bcc address.
format: email
type: string
ccEmailAddress:
description: The email CC address.
type: string
ccEmailType:
default: SpecificEmails
description: "Email CC type.\n* When the base object for the event is associated\
\ with `Account`, `ccEmailType` can be any values in the enum list. \n*\
\ When the base object for the event is not associated with `Account`, `ccEmailType`\
\ must be `TenantAdmin`, `RunOwner`, or `SpecificEmail`. "
enum:
- BillToContact
- SoldToContact
- SpecificEmails
- TenantAdmin
- BillToAndSoldToContacts
- RunOwner
- AllContacts
- InvoiceOwnerBillToContact
- InvoiceOwnerSoldToContact
- InvoiceOwnerBillToAndSoldToContacts
- InvoiceOwnerAllContacts
type: string
description:
description: The description of the email template.
maxLength: 255
type: string
emailBody:
description: "The email body. You can add merge fields in the email object\
\ using angle brackets. \nYou can also embed HTML tags if `isHtml` is `true`."
type: string
emailSubject:
description: The email subject. Users can add merge fields in the email subject
using angle brackets.
type: string
encodingType:
default: UTF8
description: The endcode type of the email body.
enum:
- UTF8
- Shift_JIS
- ISO_2022_JP
- EUC_JP
- X_SJIS_0213
type: string
eventCategory:
description: "If you specify this field, the email template is created based\
\ on a standard event. See [Standard Event Categories](https://knowledgecenter.zuora.com/Central_Platform/Notifications/A_Standard_Events/Standard_Event_Category_Code_for_Notification_Histories_API)\
\ for all standard event category codes. \n"
type: number
eventTypeName:
description: 'The name of the custom event or custom scheduled event. If you
specify this field, the email template is created based on the corresponding
custom event or custom scheduled event.
'
type: string
eventTypeNamespace:
description: "The namespace of the `eventTypeName` field. The `eventTypeName`\
\ has the `user.notification` namespace by default. \n\nNote that if the\
\ `eventTypeName` is a standard event type, you must specify the `com.zuora.notification`\
\ namespace; otherwise, you will get an error.\n\nFor example, if you want\
\ to create an email template on the `OrderActionProcessed` event, you must\
\ specify `com.zuora.notification` for this field. \n"
type: string
fromEmailAddress:
description: If fromEmailType is SpecificEmail, this field is required.
type: string
fromEmailType:
description: The type of the email.
enum:
- TenantEmail
- RunOwner
- SpecificEmail
type: string
fromName:
description: The name of the email sender.
type: string
isHtml:
default: false
description: Indicates whether the style of email body is HTML. The default
value is `false`.
type: boolean
name:
description: The name of the email template, a unique name in a tenant.
maxLength: 255
type: string
replyToEmailAddress:
description: If replyToEmailType is SpecificEmail, this field is required.
type: string
replyToEmailType:
description: Type of the replyTo email.
enum:
- TenantEmail
- RunOwner
- SpecificEmail
type: string
toEmailAddress:
description: If toEmailType is SpecificEmail, this field is required.
type: string
toEmailType:
description: "Email receive type.\n* When the base object for the event is\
\ associated with `Account`, `toEmailType` can be any values in the enum\
\ list. \n* When the base object for the event is not associated with `Account`,\
\ `toEmailType` must be `TenantAdmin`, `RunOwner`, or `SpecificEmail`. "
enum:
- BillToContact
- SoldToContact
- SpecificEmails
- TenantAdmin
- BillToAndSoldToContacts
- RunOwner
- AllContacts
- InvoiceOwnerBillToContact
- InvoiceOwnerSoldToContact
- InvoiceOwnerBillToAndSoldToContacts
- InvoiceOwnerAllContacts
type: string
required:
- name
- fromEmailType
- emailSubject
- emailBody
- toEmailType
type: object
POSTPublicNotificationDefinitionRequest:
example:
active: true
associatedAccount: ParentAccount.Id
callout:
active: true
calloutAuth:
domain: example_domain
password: example_password
preemptive: true
username: example_user
calloutBaseurl: https://www.example.com/callout/AccountEdit
calloutParams:
AccountName:
AccountNumber:
calloutRetry: true
description: Callout when an account is edited
eventTypeName: AccountEdit
httpMethod: POST
name: Callout for Account Edited
requiredAuth: true
calloutActive: true
communicationProfileId: 6e569e1e05f040eda51a927b140c0ac5
description: Notification sent out when an account is edited
emailActive: true
emailTemplateId: 6e569e1e05f040eda51a927b140c0ac6
eventTypeName: AccountEdit
filterRule:
condition: Account.Balance >= _VIP_BALANCE_AMOUNT && Account.Status == _ACCOUNT_STATUS
description: Filter rule to test if an account is a VIP account
parameters:
_ACCOUNT_STATUS:
description: The status of the VIP Account
displayName: VIP Account Status
options:
- Draft
- Active
- Canceled
valueType: STRING
_VIP_BALANCE_AMOUNT:
description: The minimum account balance
displayName: VIP Account Balance
options: null
valueType: BIG_DECIMAL
filterRuleParams:
_ACCOUNT_STATUS: Active
_VIP_BALANCE_AMOUNT: '100000'
name: Account Edit Notification
properties:
active:
default: true
description: The status of the notification definition. The default value
is `true`.
type: boolean
associatedAccount:
description: "Indicates with which type of account this notification is associated.\
\ Depending on your environment, you can use one of the following values:\n\
* `Account.Id`: ID of the primary customer account related to the notification.\
\ It is also the default value.\n* `ParentAccount.Id`: this option is available\
\ only if you have Customer Hierarchy enabled for your tenant.\n* `SubscriptionOwnerAccount.Id`:\
\ this option is available if the base object of the notification is Order\
\ Action.\n\n**Note:** before specifying this field, we recommend that you\
\ use [Data Source](https://knowledgecenter.zuora.com/Billing/Reporting/D_Data_Sources_and_Exports/C_Data_Source_Reference)\
\ to check the available types of accounts for the current notification.\
\ \n"
type: string
callout:
properties:
active:
default: true
description: The status of the callout. The default is `true`.
type: boolean
calloutAuth:
$ref: '#/definitions/CalloutAuth'
calloutBaseurl:
description: The callout URL. It must start with 'https://'
example: https://***
format: url
minLength: 10
type: string
calloutParams:
$ref: '#/definitions/CalloutMergeFields'
calloutRetry:
default: true
description: Specified whether to retry the callout when the callout fails.
The default value is `true`.
type: boolean
description:
description: Description for the callout.
maxLength: 255
type: string
eventTypeName:
description: The name of the event type. The value must be the same as
the parent-level `eventTypeName` field.
minLength: 1
type: string
httpMethod:
description: The HTTP method of the callout.
enum:
- GET
- PUT
- POST
- DELETE
example: POST
type: string
name:
description: The name of the created callout.
maxLength: 255
type: string
oauth2ProviderId:
description: |
The ID of the OAuth 2.0 provider in your tenant that provides access tokens for the callout. This field is required if `requiredOauth2` is `true`.
For more information about how to get the ID of an OAuth 2.0 provider, see Retrieve the ID of an OAuth 2.0 provider .
type: string
requiredAuth:
description: |
Indicates whether Basic authentication is enabled for the callout. If this field is `true`, you must specify the username and password in `calloutAuth`.
The `requiredAuth` and `requiredOauth2` fields cannot be `true` at the same time.
type: boolean
requiredOauth2:
description: "Indicates whether OAuth 2.0 authentication is enabled for\
\ the callout. If this field is `true`, you must specify the OAuth 2.0\
\ provider ID in `oauth2ProviderId`.\n \nThe `requiredAuth` and `requiredOauth2`\
\ fields cannot be `true` at the same time.\n"
type: boolean
required:
- name
- calloutBaseurl
- httpMethod
type: object
calloutActive:
default: false
description: The status of the callout action. The default value is `false`.
type: boolean
communicationProfileId:
description: "The profile that notification definition belongs to. \n\nYou\
\ can use the [Query Action](https://developer.zuora.com/api-references/api/operation/Action_POSTquery)\
\ to get the communication profile Id. See the following request sample:\n\
\n`{\n \"queryString\": \"select Id, ProfileName from CommunicationProfile\"\
\n }`\n\nIf you do not pass the communicationProfileId, notification service\
\ will be automatically added to the 'Default Profile'.\n"
type: string
description:
description: The description of the notification definition.
maxLength: 255
type: string
emailActive:
default: false
description: The status of the email action. The default value is `false`.
type: boolean
emailTemplateId:
description: The ID of the email template. If `emailActive` is `true`, an
email template is required. And EventType of the email template MUST be
the same as the eventType.
format: uuid
type: string
eventTypeName:
description: "The name of the event type. \n"
minLength: 1
type: string
eventTypeNamespace:
description: "The namespace of the `eventTypeName` field. The `eventTypeName`\
\ has the `user.notification` namespace by default. \n \nFor example,\
\ if you want to create a notification definition on the `OrderActionProcessed`\
\ event, you must specify `com.zuora.notification` for this field.\n"
type: string
filterRule:
description: ''
properties:
condition:
description: |
The filter rule conditions, written in [JEXL](http://commons.apache.org/proper/commons-jexl/).
The rule might contain event context merge fields and data source merge fields. Data source merge fields must be from [the base object of the event or from the joined objects of the base object](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL#Data_Sources_and_Objects). Notifications with invalid merge fields will fail to evaluate, thus will not be invoked. For example, to filter an invoice posted notification to only invoices with an amount over 1000, you would define the following condition:
```Invoice.Amount > 1000```
There are conventions and keywords you need to be aware of. For example:
* `Invoice.Amount` refers to the `Amount` field of the Zuora object `Invoice`.
* Unlike Event Triggers, there is no access to variables with the `_old` suffix. Fields with the `_old` suffix are only available on Event Trigger conditions.
example: Account.Balance >= _VIP_BALANCE_AMOUNT && Account.Status == _ACCOUNT_STATUS
type: string
description:
description: The description of the filter rule.
maxLength: 255
type: string
parameters:
$ref: '#/definitions/FilterRuleParameterDefinitions'
required:
- condition
- parameters
type: object
filterRuleParams:
$ref: '#/definitions/FilterRuleParameterValues'
name:
description: The name of the notification definition, unique per communication
profile.
maxLength: 255
type: string
required:
- eventTypeName
- name
type: object
POSTRSASignatureResponseType:
properties:
key:
description: 'Public key generated for this Payment Page.
'
type: string
signature:
description: |
Digital signature generated for this Payment Page.
If `signature` returns `null` but `token` is successfully returned, please limit the number of the fields in your request to make sure that the maximum length supported by the RSA signature algorithm is not exceeded.
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
tenantId:
description: 'ID of the Zuora tenant.
'
type: string
token:
description: 'Token generated for this Payment Page.
'
type: string
type: object
POSTRSASignatureType:
example:
currency: USD
method: POST
pageId: 2c92c0f855e2b4630155ec9e6a1b6eec
uri: https://apisandbox.zuora.com/apps/PublicHostedPageLite.do
properties:
IBAN:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters specific for Bank Transfer - Direct Debit.\
\ \nSee [Client parameters for Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
accountId:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
authorizationAmount:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: number
bankBranchCode:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters specific for Bank Transfer - Direct Debit.\
\ \nSee [Client parameters for Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
bankCheckDigit:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters specific for Bank Transfer - Direct Debit.\
\ \nSee [Client parameters for Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
bankCity:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters specific for Bank Transfer - Direct Debit.\
\ \nSee [Client parameters for Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
bankPostalCode:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters specific for Bank Transfer - Direct Debit.\
\ \nSee [Client parameters for Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
bankStreetName:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters specific for Bank Transfer - Direct Debit.\
\ \nSee [Client parameters for Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
bankStreetNumber:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters specific for Bank Transfer - Direct Debit.\
\ \nSee [Client parameters for Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
businessIdentificationCode:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters specific for Bank Transfer - Direct Debit.\
\ \nSee [Client parameters for Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
cityBlackList:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters specific for credit cards. \nSee [Client parameters\
\ for Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
cityWhiteList:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters specific for credit cards. \nSee [Client parameters\
\ for Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
currency:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
deviceSessionId:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
gatewayName:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
id:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
key:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
locale:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
maxConsecutivePaymentFailures:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: integer
method:
description: 'The type of the request. Set it to POST.
'
type: string
pageId:
description: 'The page id of your Payment Pages 2.0 form. Click **Show Page
Id** next to the Payment Page name in the Hosted Page List to retrieve the
page id.
'
type: string
param_gwOptions_[*option*]:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
param_supportedTypes:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters specific for credit cards. \nSee [Client parameters\
\ for Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
passthrough[1,2,3,4,5]:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n\nNote: Although up to 15 passthrough parameters can be\
\ supported when passing in your client parameters, only the first 5 parameters\
\ are used for signature generation and validation.\n"
type: string
paymentGateway:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
paymentRetryWindow:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: integer
pmId:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters specific for credit cards. \nSee [Client parameters\
\ for Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
signature:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
signatureType:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
style:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
submitEnabled:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: boolean
tenantId:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
token:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: string
uri:
description: |
The URL that the Payment Page will be served from.
* For US Cloud 1 Production environment: Use https://na.zuora.com/apps/PublicHostedPageLite.do
* For US Cloud 1 Sandbox environment: Use https://sandbox.na.zuora.com/apps/PublicHostedPageLite.d
* For US Cloud 2 Production environment: Use https://www.zuora.com/apps/PublicHostedPageLite.do
* For US Cloud 2 API Sandbox environment: Use https://apisandbox.zuora.com/apps/PublicHostedPageLite.do
* For US Central Sandbox environment: Use https://test.zuora.com/apps/PublicHostedPageLite.do
* For EU Cloud Production environment: Use https://eu.zuora.com/apps/PublicHostedPageLite.do
* For EU Cloud Sandbox environment: Use https://sandbox.eu.zuora.com/apps/PublicHostedPageLite.do
* For EU Central Sandbox environment: Use https://test.eu.zuora.com/apps/PublicHostedPageLite.do
type: string
useDefaultRetryRule:
description: "An optional client parameter that can be used for validating\
\ client-side HPM parameters. \nSee [Client parameters for Payment Pages\
\ 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0)\
\ \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters)\
\ \nfor details.\n"
type: boolean
required:
- method
- pageId
- uri
type: object
POSTRatePlanDefinitionRequest:
example:
productRatePlanChargeId: 2c9890e489f227bd0189f22f3482001f
productRatePlanChargeNumber: PRPC-00000001
productRatePlanId: 2c9890678b1ca909018b1caea5c30000
productRatePlanNumber: PRP-00000008
properties:
productRatePlanChargeId:
description: 'The unique ID of the product rate plan charge to be used in
the product rate plan.
'
type: string
productRatePlanChargeNumber:
description: 'The unique number (natural key) of the product rate plan charge
to be used in the product rate plan.
'
type: string
productRatePlanId:
description: 'The unique ID of the product rate plan that uses this rate plan
definition.
'
type: string
productRatePlanNumber:
description: 'The unique number (natural key) of the product rate plan that
uses this rate plan definition.
'
type: string
type: object
POSTRatePlanDefinitionResponse:
properties:
id:
description: 'The unique ID of the product charge definition.
'
type: string
success:
description: 'Indicates whether the request succeeded.
'
type: boolean
type: object
POSTReconcileRefundRequest:
example:
action: settle
actionDate: '2020-10-25 11:11:11'
gatewayReconciliationReason: refund_paid
gatewayReconciliationStatus: paid
payoutId: PAYOUT123
properties:
action:
description: |
The action of the refund reconciliation.
- `settle`: Sets Gateway State to "Settled" and returns the refund object as response.
- `reject`: Sets Gateway State to "FailedToSettle" and handle the event according to the settings configured in the Gateway Reconciliation Configuration in Payments Settings through Zuora UI. See [Configure how to handle refund rejected events](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/M_Payment_Gateways/Gateway_Reconciliation#Configure_how_to_handle_refund_rejected_events) for details.
enum:
- settle
- reject
type: string
actionDate:
description: 'The date and time of the refund reconciliation action, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: datetime
type: string
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
payoutId:
description: 'The payout ID of the refund from the gateway side.
'
type: string
type: object
POSTReconcileRefundResponse:
example:
accountId: 4028905f5a87c0ff015a87d25ae90025
amount: 4
cancelledOn: null
comment: Create a refund for unapplied payment.
createdById: 402881e522cf4f9b0122cf5d82860002
createdDate: '2020-03-01 14:46:03'
creditMemoId: null
financeInformation:
bankAccountAccountingCode: null
bankAccountAccountingCodeType: null
transferredToAccounting: 'No'
unappliedPaymentAccountingCode: null
unappliedPaymentAccountingCodeType: null
gatewayId: null
gatewayReconciliationReason: refund_paid
gatewayReconciliationStatus: paid
gatewayResponse: null
gatewayResponseCode: null
gatewayState: Settled
id: 4028905f5a87c0ff015a889e590e00c9
markedForSubmissionOn: null
methodType: CreditCard
number: R-00000001
paymentId: 4028905f5a87c0ff015a889ddfb800c0
paymentMethodId: null
paymentMethodSnapshotId: null
payoutId: PAYOUT123
reasonCode: Standard Refund
referenceId: null
refundDate: '2020-03-01'
refundTransactionTime: null
secondRefundReferenceId: null
settledOn: '2020-10-25 11:11:11'
softDescriptor: null
softDescriptorPhone: null
status: Processed
submittedOn: null
success: true
type: Electronic
updatedById: 402881e522cf4f9b0122cf5d82860002
updatedDate: '2020-03-01 14:46:03'
properties:
accountId:
description: 'The ID of the customer account that the refund is for.
'
type: string
amount:
description: 'The total amount of the refund.
'
format: double
type: number
cancelledOn:
description: 'The date and time when the transaction was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: 'Comments about the refund.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the refund.
'
type: string
createdDate:
description: 'The date and time when the refund is created, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
creditMemoId:
description: 'The ID of the credit memo that is refunded.
'
type: string
financeInformation:
description: 'Container for the finance information related to the refund.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
bankAccountAccountingCodeType:
description: "The type of the accounting code that maps to a bank account\
\ in your accounting system.\n \n"
type: string
transferredToAccounting:
description: "Whether the refund was transferred to an external accounting\
\ system. Use this field for integration with accounting systems, such\
\ as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
maxLength: 100
minLength: 0
type: string
unappliedPaymentAccountingCodeType:
description: "The type of the accounting code for the unapplied payment.\n\
\ \n"
type: string
type: object
gatewayId:
description: 'The ID of the gateway instance that processes the refund.
'
type: string
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
gatewayResponse:
description: 'The message returned from the payment gateway for the refund.
This message is gateway-dependent.
'
type: string
gatewayResponseCode:
description: 'The code returned from the payment gateway for the refund. This
code is gateway-dependent.
'
type: string
gatewayState:
description: 'The status of the refund in the gateway; specifically used for
reconciliation.
'
enum:
- Settled
- FailedToSettle
type: string
id:
description: 'The ID of the refund.
'
type: string
markedForSubmissionOn:
description: 'The date and time when a refund was marked and waiting for batch
submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
methodType:
description: "How an external refund was issued to a customer. \n"
enum:
- ACH
- Cash
- Check
- CreditCard
- PayPal
- WireTransfer
- DebitCard
- CreditCardReferenceTransaction
- BankTransfer
- Other
type: string
number:
description: 'The unique identification number of the refund. For example,
R-00000001.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentId:
description: 'The ID of the payment that is refunded.
'
type: string
paymentMethodId:
description: 'The unique ID of the payment method that the customer used to
make the refund.
'
type: string
paymentMethodSnapshotId:
description: 'The unique ID of the payment method snapshot which is a copy
of the particular Payment Method used in a transaction.
'
type: string
payoutId:
description: 'The payout ID of the refund from the gateway side.
'
type: string
reasonCode:
description: "A code identifying the reason for the transaction. \n"
type: string
referenceId:
description: 'The transaction ID returned by the payment gateway for an electronic
refund. Use this field to reconcile refunds between your gateway and Zuora
Payments.
'
type: string
refundDate:
description: "The date when the refund takes effect, in `yyyy-mm-dd` format.\
\ For example, 2020-03-01. \n"
format: date
type: string
refundTransactionTime:
description: 'The date and time when the refund was issued, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
secondRefundReferenceId:
description: "The transaction ID returned by the payment gateway if there\
\ is an additional refund. \n"
type: string
settledOn:
description: 'The date and time when the transaction is settled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
softDescriptor:
description: 'A payment gateway-specific field that maps Zuora to other gateways.
'
type: string
softDescriptorPhone:
description: "A payment gateway-specific field that maps Zuora to other gateways.\
\ \n"
type: string
status:
description: 'The status of the refund.
'
type: string
submittedOn:
description: 'The date and time when the refund was submitted, in yyyy-mm-dd
hh:mm:ss format.
'
format: date-time
type: string
success:
description: 'Indicates if the request is processed successfully.
'
type: boolean
type:
description: 'The type of the refund.
'
enum:
- External
- Electronic
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the refund.
'
type: string
updatedDate:
description: 'The date and time when the refund was last updated, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
type: object
POSTRegisterApplePayDomainRequest:
example:
domainName: testapplepay.zuora.com
properties:
domainName:
description: 'The name of the domain to be registered with Apple Pay, such
as `testapplepay.zuora.com`.
'
type: string
required:
- domainName
type: object
POSTRegisterApplePayDomainResponse:
properties:
domainName:
description: 'The name of the domain registered with Apple Pay, such as `testapplepay.zuora.com`.
'
type: string
domainVerified:
description: 'Indicates whether the domain registration is successfully verified.
'
type: boolean
id:
description: 'The ID of the domain, such as `402881a38924ff1001892502da090021`.
'
type: string
success:
description: 'Indicates whether this call succeeds.
'
type: boolean
type: object
POSTRejectPaymentRequest:
example:
gatewayReconciliationReason: insufficient_funds
gatewayReconciliationStatus: payment_failed
gatewayResponse: Insufficient funds
gatewayResponseCode: '023'
referenceId: '825522036728874689'
secondReferenceId: '825522036690700110'
settledOn: '2019-05-07 20:56:32.981'
properties:
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
gatewayResponse:
description: 'The transaction response returned by the gateway for this transaction.
If the transaction was declined, this reason is provided in the message.
'
type: string
gatewayResponseCode:
description: 'Response message Code returned by the gateway about the transaction
status.
'
type: string
referenceId:
description: "Unique Id generated by the gateway for each transaction. Use\
\ this ID to find the respective Zuora Payment ID. \n"
maxLength: 100
type: string
secondReferenceId:
description: 'The second reference Id. Some gateway uses two unique transaction
IDs.
'
maxLength: 100
type: string
settledOn:
description: 'The date and time of the transaction settlement. The format
is `yyyy-mm-dd hh:mm:ss`.
'
format: date-time
type: string
type: object
POSTRejectPaymentResponse:
properties:
accountId:
description: 'The ID of the customer account that the payment is for.
'
type: string
amount:
description: 'The total amount of the payment.
'
format: double
type: number
cancelledOn:
description: 'The date and time when the payment was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: 'Comments about the payment.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the refund.
'
type: string
createdDate:
description: 'The date and time when the chargeback is created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2019-03-01 15:31:10.
'
format: date-time
type: string
creditMemoId:
description: 'The ID of the credit memo that is refunded.
'
type: string
financeInformation:
description: 'Container for the finance information related to the refund.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
bankAccountAccountingCodeType:
description: "The type of the accounting code that maps to a bank account\
\ in your accounting system.\n \n"
type: string
transferredToAccounting:
description: "Whether the refund was transferred to an external accounting\
\ system. Use this field for integration with accounting systems, such\
\ as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
maxLength: 100
minLength: 0
type: string
unappliedPaymentAccountingCodeType:
description: "The type of the accounting code for the unapplied payment.\n\
\ \n"
type: string
type: object
gatewayId:
description: 'The ID of the gateway instance that processes the payment.
'
type: string
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
gatewayResponse:
description: 'The message returned from the payment gateway for the payment.
This message is gateway-dependent.
'
type: string
gatewayResponseCode:
description: 'The code returned from the payment gateway for the payment.
This code is gateway-dependent.
'
type: string
gatewayState:
description: 'The status of the payment in the gateway; specifically used
for reconciliation.
'
enum:
- Submitted
- NotSubmitted
- Settled
- FailedToSettle
type: string
id:
description: 'The ID of the payment chargeback.
'
type: string
markedForSubmissionOn:
description: 'The date and time when a charge was marked and waiting for batch
submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
methodType:
description: "How an external refund was issued to a customer. \n"
enum:
- ACH
- Cash
- Check
- CreditCard
- PayPal
- WireTransfer
- DebitCard
- CreditCardReferenceTransaction
- BankTransfer
- Other
type: string
number:
description: 'The unique identification number of the payment. For example,
P-00000001.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentId:
description: 'The ID of the payment that is refunded.
'
type: string
paymentMethodId:
description: 'The unique ID of the payment method that the customer used to
make the payment.
'
type: string
paymentMethodSnapshotId:
description: 'The unique ID of the payment method snapshot which is a copy
of the particular Payment Method used in a transaction.
'
type: string
payoutId:
description: 'The payout ID from the gateway side.
'
type: string
reasonCode:
description: "A code identifying the reason for the transaction. \n"
type: string
referenceId:
description: 'The transaction ID returned by the payment gateway for an electronic
refund. Use this field to reconcile refunds between your gateway and Zuora
Payments.
'
type: string
refundDate:
description: "The date when the refund takes effect, in `yyyy-mm-dd` format.\
\ For example, 2017-03-01. \n"
format: date
type: string
refundTransactionTime:
description: 'The date and time when the refund was issued, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
secondRefundReferenceId:
description: "The transaction ID returned by the payment gateway if there\
\ is an additional refund. \n"
type: string
settledOn:
description: 'The date and time when the transaction is settled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
softDescriptor:
description: 'A payment gateway-specific field that maps Zuora to other gateways.
'
type: string
softDescriptorPhone:
description: "A payment gateway-specific field that maps Zuora to other gateways.\
\ \n"
type: string
status:
description: 'The status of the payment.
'
type: string
submittedOn:
description: 'The date and time when the payment was submitted, in yyyy-mm-dd
hh:mm:ss format.
'
format: date-time
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type:
description: 'The type of the payment.
'
enum:
- External
- Electronic
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the payment.
'
type: string
updatedDate:
description: 'The date and time when the payment was last updated, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2019-03-02 15:36:10.
'
format: date-time
type: string
type: object
POSTResendCalloutNotifications:
example:
- a02ea6d76931475bb73fcd339b5f6ht8g
- 40dbbc5f2cfb4e2fa236db11ea1dfghht
- a3fd8e81c20a4ac0a1eb3747339asdfef
- a00000000000000000000000000000000
items:
description: 'ID for failed callout notifications. You can resend at most 1000
callout notifications at a time.
'
type: string
type: array
POSTResendEmailNotifications:
example:
- a02ea6d76931475bb73fcd339b5f6ht8g
- 40dbbc5f2cfb4e2fa236db11ea1dfghht
- a3fd8e81c20a4ac0a1eb3747339asdfef
- a00000000000000000000000000000000
items:
description: 'ID for failed email notifications. You can resend at most 1000
email notifications at a time.
'
type: string
type: array
POSTRetryPaymentScheduleItemInfo:
description: 'Information of the payment schedule items to be retried.
'
properties:
id:
description: 'Specifies the ID of the payment schedule item to be retried.
'
type: string
paymentGatewayId:
description: 'Specifies the ID of a payment gateway that will be used in the
retry.
'
type: string
paymentMethodId:
description: 'Specifies the ID of a payment method that will be used in the
retry.
'
type: string
type: object
POSTRetryPaymentScheduleItemRequest:
properties:
items:
description: 'The maximum number of items allowable to pass is 10.
'
items:
$ref: '#/definitions/POSTRetryPaymentScheduleItemInfo'
title: Payment schedule items to be retried.
type: array
type: object
POSTRetryPaymentScheduleItemResponse:
properties:
items:
items:
$ref: '#/definitions/PaymentScheduleItemCommonResponse'
type: array
success:
description: "Returns `true` if the request was processed successfully. \n"
type: boolean
type: object
POSTReversePaymentRequest:
example:
amount: 100
gatewayReconciliationReason: insufficient_funds
gatewayReconciliationStatus: payment_failed
gatewayResponse: Insufficient funds
gatewayResponseCode: '023'
payoutId: PAYOUT123
referenceId: '825522036728874689'
secondReferenceId: '825522036690700110'
settledOn: '2019-05-07 20:56:32.981'
properties:
amount:
description: "The amount that needs to be reversed (chargeback). It cannot\
\ be greater than the total Payment amount. \n"
type: number
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
gatewayResponse:
description: 'The transaction response returned by the gateway for this transaction.
If the transaction was declined, this reason is provided in the message.
'
type: string
gatewayResponseCode:
description: 'Response message Code returned by the gateway about the transaction
status.
'
type: string
payoutId:
description: 'The payout ID from the gateway side.
'
type: string
referenceId:
description: "Unique Id generated by the gateway for each transaction. Use\
\ this ID to find the respective Zuora Payment ID. \n"
maxLength: 100
type: string
secondReferenceId:
description: 'The second reference Id. Some gateways use two unique transaction
IDs.
'
maxLength: 100
type: string
settledOn:
description: 'The date and time of the transaction settlement. The format
is `yyyy-mm-dd hh:mm:ss`.
'
format: date-time
type: string
required:
- amount
type: object
POSTReversePaymentResponse:
properties:
accountId:
description: 'The ID of the customer account that the payment is for.
'
type: string
amount:
description: 'The total amount of the payment.
'
format: double
type: number
cancelledOn:
description: 'The date and time when the payment was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: 'Comments about the payment.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the refund.
'
type: string
createdDate:
description: 'The date and time when the chargeback is created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2019-03-01 15:31:10.
'
format: date-time
type: string
creditMemoId:
description: 'The ID of the credit memo that is refunded.
'
type: string
financeInformation:
description: 'Container for the finance information related to the refund.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
bankAccountAccountingCodeType:
description: "The type of the accounting code that maps to a bank account\
\ in your accounting system.\n \n"
type: string
transferredToAccounting:
description: "Whether the refund was transferred to an external accounting\
\ system. Use this field for integration with accounting systems, such\
\ as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
maxLength: 100
minLength: 0
type: string
unappliedPaymentAccountingCodeType:
description: "The type of the accounting code for the unapplied payment.\n\
\ \n"
type: string
type: object
gatewayId:
description: 'The ID of the gateway instance that processes the payment.
'
type: string
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
gatewayResponse:
description: 'The message returned from the payment gateway for the payment.
This message is gateway-dependent.
'
type: string
gatewayResponseCode:
description: 'The code returned from the payment gateway for the payment.
This code is gateway-dependent.
'
type: string
gatewayState:
description: 'The status of the payment in the gateway; specifically used
for reconciliation.
'
enum:
- Submitted
- NotSubmitted
- Settled
- FailedToSettle
type: string
id:
description: 'The ID of the payment chargeback.
'
type: string
markedForSubmissionOn:
description: 'The date and time when a charge was marked and waiting for batch
submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
methodType:
description: "How an external refund was issued to a customer. \n"
enum:
- ACH
- Cash
- Check
- CreditCard
- PayPal
- WireTransfer
- DebitCard
- CreditCardReferenceTransaction
- BankTransfer
- Other
type: string
number:
description: 'The unique identification number of the payment. For example,
P-00000001.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentId:
description: 'The ID of the payment that is refunded.
'
type: string
paymentMethodId:
description: 'The unique ID of the payment method that the customer used to
make the payment.
'
type: string
paymentMethodSnapshotId:
description: 'The unique ID of the payment method snapshot which is a copy
of the particular Payment Method used in a transaction.
'
type: string
payoutId:
description: 'The payout ID from the gateway side.
'
type: string
reasonCode:
description: "A code identifying the reason for the transaction. \n"
type: string
referenceId:
description: 'The transaction ID returned by the payment gateway for an electronic
refund. Use this field to reconcile refunds between your gateway and Zuora
Payments.
'
type: string
refundDate:
description: 'The date when the refund takes effect, in `yyyy-mm-dd` format.
For example, 2017-03-01.
'
format: date
type: string
refundTransactionTime:
description: 'The date and time when the refund was issued, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
secondRefundReferenceId:
description: "The transaction ID returned by the payment gateway if there\
\ is an additional refund. \n"
type: string
settledOn:
description: 'The date and time when the transaction is settled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
softDescriptor:
description: 'A payment gateway-specific field that maps Zuora to other gateways.
'
type: string
softDescriptorPhone:
description: "A payment gateway-specific field that maps Zuora to other gateways.\
\ \n"
type: string
status:
description: 'The status of the payment.
'
type: string
submittedOn:
description: 'The date and time when the payment was submitted, in yyyy-mm-dd
hh:mm:ss format.
'
format: date-time
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type:
description: 'The type of the payment.
'
enum:
- External
- Electronic
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the payment.
'
type: string
updatedDate:
description: 'The date and time when the payment was last updated, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2019-03-02 15:36:10.
'
format: date-time
type: string
type: object
POSTReverseRolloverRequestType:
allOf:
- properties:
destinationValidityPeriod:
$ref: '#/definitions/DestinationValidityPeriodInfo'
prepaymentUom:
description: |
Specifies the units of measure for prepayment charge. Units of measure are configured in the web-based UI. Your values depend on your configuration in **Billing Settings**.
**Values**: a valid unit of measure
type: string
sourceValidityPeriod:
$ref: '#/definitions/SourceValidityPeriodInfo'
subscriptionNumber:
description: The unique identifier number of the subscription.
maxLength: 100
type: string
required:
- subscriptionNumber
- prepaymentUom
- sourceValidityPeriod
- destinationValidityPeriod
type: object
example:
destinationValidityPeriod:
endDate: '2024-01-01'
startDate: '2023-01-01'
prepaymentUom: Each
sourceValidityPeriod:
endDate: '2025-01-01'
startDate: '2024-01-01'
subscriptionNumber: A-S00000009
POSTReverseRolloverResponseType:
properties:
message:
description: Indicates the result.
type: string
reverseRolloverFundCount:
description: Indicates the number of funds which have been rolled back.
format: int64
type: integer
success:
description: Indicates whether the call succeeded.
type: boolean
type: object
POSTScCreateType:
allOf:
- properties:
amendedByOrderOn:
description: 'The date when the rate plan charge is amended through an order
or amendment. This field is to standardize the booking date information
to increase audit ability and traceability of data between Zuora Billing
and Zuora Revenue. It is mapped as the booking date for a sale order line
in Zuora Revenue.
'
type: string
applyDiscountTo:
description: |
Specifies the type of charges that you want a specific discount to apply to.
Values:
* `ONETIME`
* `RECURRING`
* `USAGE`
* `ONETIMERECURRING`
* `ONETIMEUSAGE`
* `RECURRINGUSAGE`
* `ONETIMERECURRINGUSAGE`
type: string
billCycleDay:
description: |
Sets the bill cycle day (BCD) for the charge. The BCD determines which day of the month the customer is billed.
Values: `1`-`31`
type: string
billCycleType:
description: |
Specifies how to determine the billing day for the charge. When this field is set to `SpecificDayofMonth`, set the `BillCycleDay` field. When this field is set to `SpecificDayofWeek`, set the `weeklyBillCycleDay` field.
Values:
* `DefaultFromCustomer`
* `SpecificDayofMonth`
* `SubscriptionStartDay`
* `ChargeTriggerDay`
* `SpecificDayofWeek`
type: string
billingPeriod:
description: |
Billing period for the charge. The start day of the billing period is also called the bill cycle day (BCD).
Values:
* `Month`
* `Quarter`
* `Semi_Annual`
* `Annual`
* `Eighteen_Months`
* `Two_Years`
* `Three_Years`
* `Five_Years`
* `Specific_Months`
* `Subscription_Term`
* `Week`
* `Specific_Weeks`
type: string
billingPeriodAlignment:
description: |
Aligns charges within the same subscription if multiple charges begin on different dates.
Values:
* `AlignToCharge`
* `AlignToSubscriptionStart`
* `AlignToTermStart`
type: string
billingTiming:
description: |
Billing timing for the charge for recurring charge types. Not avaliable for one time, usage, and discount charges.
Values:
* `IN_ADVANCE` (default)
* `IN_ARREARS`
type: string
chargeModelConfiguration:
$ref: '#/definitions/ChargeModelConfigurationType'
description:
description: 'Description of the charge.
'
type: string
discountAmount:
description: 'Specifies the amount of fixed-amount discount.
'
type: number
discountLevel:
description: |
Specifies if the discount applies to the product rate plan only, the entire subscription, or to any activity in the account.
Values:
* `rateplan`
* `subscription`
* `account`
type: string
discountPercentage:
description: "Percentage of discount for a percentage discount. \n"
type: number
endDateCondition:
description: |
Defines when the charge ends after the charge trigger date. If the subscription ends before the charge end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the charge end date.
Values:
* `Subscription_End`
* `Fixed_Period`
* `Specific_End_Date`
* `One_Time`
type: string
excludeItemBillingFromRevenueAccounting:
default: false
description: |
The flag to exclude rate plan charge related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: boolean
excludeItemBookingFromRevenueAccounting:
default: false
description: |
The flag to exclude rate plan charges from revenue accounting.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: boolean
includedUnits:
description: 'Specifies the number of units in the base set of units for
this charge. Must be >=`0`.
'
type: number
isAllocationEligible:
description: |
This field is used to identify if the charge segment is allocation eligible in revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
isUnbilled:
description: |
This field is used to dictate how to perform the accounting during revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
listPriceBase:
description: |
The list price base for the product rate plan charge.
Values:
* `Per_Billing_Period`
* `Per_Month`
* `Per_Week`
* `Per_Year`
* `Per_Specific_Months`
type: string
number:
description: 'Unique number that identifies the charge. Max 50 characters.
System-generated if not provided.
'
type: string
numberOfPeriods:
description: 'Specifies the number of periods to use when calculating charges
in an overage smoothing charge model.
'
format: int64
type: integer
originalOrderDate:
description: |
The date when the rate plan charge is created through an order or amendment. This field is not updatable.
This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sale order line in Zuora Revenue.
format: date
type: string
overagePrice:
description: 'Price for units over the allowed amount.
'
type: number
overageUnusedUnitsCreditOption:
description: |
Determines whether to credit the customer with unused units of usage.
Values:
* `NoCredit`
* `CreditBySpecificRate`
type: string
price:
description: 'Price for units in the subscription rate plan.
'
type: number
priceChangeOption:
description: |
Applies an automatic price change when a termed subscription is renewed. The Billing Admin setting **Enable Automatic Price Change When Subscriptions are Renewed?** must be set to Yes to use this field.
Values:
* `NoChange` (default)
* `SpecificPercentageValue`
* `UseLatestProductCatalogPricing`
type: string
priceIncreasePercentage:
description: "Specifies the percentage to increase or decrease the price\
\ of a termed subscription's renewal. Required if you set the `PriceChangeOption`\
\ field to `SpecificPercentageValue`. \n\nValue must be a decimal between\
\ `-100` and `100`.\n"
type: number
productRatePlanChargeId:
description: 'ID of a product rate-plan charge for this subscription.
'
type: string
productRatePlanChargeNumber:
description: 'Number of a product rate-plan charge for this subscription.
'
type: string
quantity:
description: "Number of units. Must be a decimal >=`0`. \n\nWhen using `chargeOverrides`\
\ for creating subscriptions with recurring charge types, the `quantity`\
\ field must be populated when the charge model is \"Tiered Pricing\"\
\ or \"Volume Pricing\". It is not required for \"Flat Fee Pricing\" charge\
\ model.\n"
type: number
ratingGroup:
description: "Specifies a rating group based on which usage records are\
\ rated.\n\nPossible values:\n\n- `ByBillingPeriod` (default): The rating\
\ is based on all the usages in a billing period.\n- `ByUsageStartDate`:\
\ The rating is based on all the usages on the same usage start date.\
\ \n- `ByUsageRecord`: The rating is based on each usage record.\n- `ByUsageUpload`:\
\ The rating is based on all the usages in a uploaded usage file (`.xls`\
\ or `.csv`).\n- `ByGroupId`: The rating is based on all the usages in\
\ a custom group.\n\n**Note:** \n- The `ByBillingPeriod` value can be\
\ applied for all charge models. \n- The `ByUsageStartDate`, `ByUsageRecord`,\
\ and `ByUsageUpload` values can only be applied for per unit, volume\
\ pricing, and tiered pricing charge models. \n- The `ByGroupId` value\
\ is only available if you have the Active Rating feature enabled.\n-\
\ Use this field only for Usage charges. One-Time Charges and Recurring\
\ Charges return `NULL`.\n"
type: string
specificBillingPeriod:
description: 'Specifies the number of month or week for the charges billing
period. Required if you set the value of the `billingPeriod` field to
`Specific_Months` or `Specific_Weeks`.
'
format: int64
type: integer
specificEndDate:
description: |
Defines when the charge ends after the charge trigger date.
**note:**
* This field is only applicable when the `endDateCondition` field is set to `Specific_End_Date`.
* If the subscription ends before the specific end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the specific end date.
format: date
type: string
specificListPriceBase:
description: "The number of months for the list price base of the charge.\
\ This field is required if you set the value of the `listPriceBase` field\
\ to `Per_Specific_Months`.\n\n**Note**: \n - This field is available\
\ only if you have the Annual List Price feature enabled.\n - The value\
\ of this field is `null` if you do not set the value of the `listPriceBase`\
\ field to `Per_Specific_Months`.\n"
format: int32
maximum: 200
minimum: 1
type: integer
tiers:
description: |
Container for Volume, Tiered, or Tiered with Overage charge models. Supports the following charge types:
* One-time
* Recurring
* Usage-based
items:
$ref: '#/definitions/POSTTierType'
type: array
triggerDate:
description: 'Specifies when to start billing the customer for the charge.
Required if the `triggerEvent` field is set to `USD`.
'
format: date
type: string
triggerEvent:
description: |
Specifies when to start billing the customer for the charge.
Values:
* `UCE`
* `USA`
* `UCA`
* `USD`
type: string
unusedUnitsCreditRates:
description: 'Specifies the rate to credit a customer for unused units of
usage. This field applies only for overage charge models when the `OverageUnusedUnitsCreditOption`
field is set to `CreditBySpecificRate`.
'
type: number
upToPeriods:
description: "Specifies the length of the period during which the charge\
\ is active. If this period ends before the subscription ends, the charge\
\ ends when this period ends.\n\n**Note:** You must use this field together\
\ with the `upToPeriodsType` field to specify the time period.\n\n* This\
\ field is applicable only when the `endDateCondition` field is set to\
\ `Fixed_Period`. \n* If the subscription end date is subsequently changed\
\ through a Renewal, or Terms and Conditions amendment, the charge end\
\ date will change accordingly up to the original period end.\n"
format: int64
type: integer
upToPeriodsType:
description: "\nThe period type used to define when the charge ends. \n\n\
Values:\n\n* `Billing_Periods`\n* `Days`\n* `Weeks`\n* `Months`\n* `Years`\n\
\nYou must use this field together with the `upToPeriods` field to specify\
\ the time period.\n\nThis field is applicable only when the `endDateCondition`\
\ field is set to `Fixed_Period`. \n"
type: string
weeklyBillCycleDay:
description: "Specifies which day of the week is the bill cycle day (BCD)\
\ for the charge. \n\nValues:\n\n* `Sunday`\n* `Monday`\n* `Tuesday`\n\
* `Wednesday`\n* `Thursday`\n* `Friday`\n* `Saturday`\n"
type: string
required:
- productRatePlanChargeId
type: object
- $ref: '#/definitions/RatePlanChargeObjectCustomFields'
title: chargeOverrides
POSTScheduleItemType:
allOf:
- properties:
amount:
description: "The amount of the invoice to be generated during the processing\
\ of the invoice schedule item. \n\nYou can only specify either the `amount`\
\ field or `percentage` field in one request. \n - If you choose to specify\
\ the `amount` field in the request, `null` is returned as the value of\
\ the `percentage` field in the corresponding response. \n - If you choose\
\ to specify the `percentage` field in the request, the value of the `amount`\
\ field returned in the corresponding response is calculated based on\
\ the percentage of the total amount. \n"
format: number
type: string
name:
description: 'The name of the invoice schedule item.
'
maxLength: 100
type: string
percentage:
description: "The percentage of the total amount to be billed during the\
\ processing of the invoice schedule item. \n\nYou can only specify either\
\ the `amount` field or `percentage` field in one request. \n - If you\
\ choose to specify the `amount` field in the request, `null` is returned\
\ as the value of the `percentage` field in the corresponding response.\
\ \n - If you choose to specify the `percentage` field in the request,\
\ the value of the `amount` field returned in the corresponding response\
\ is calculated based on the percentage of the total amount.\n"
format: number
maximum: 100
type: string
runDate:
description: "The date in the tenant\u2019s time zone when the invoice schedule\
\ item is planned to be processed to generate an invoice.\n\n\nWhen specifying\
\ run dates for invoice schedule items, consider that:\n- An invoice schedule\
\ item with a blank run date will not be executed.\n- You can only update\
\ the run date for an invoice schedule item in Pending status.\n- If the\
\ run date of an invoice schedule item is left empty, the dates of all\
\ subsequent invoice schedule items must also be blank.\n- You must specify\
\ run dates in chronological order for invoice schedule items. \
\ \n"
format: date
type: string
targetDateForAdditionalSubscriptions:
description: "The date in the tenant's time zone used by the invoice schedule\
\ to determine which fixed-period regular charges to be billed together\
\ with the invoice schedule item. \n\nThe regular charges must come from\
\ the subscriptions specified in the `additionalSubscriptionsToBill` field.\n"
format: date
type: string
type: object
- $ref: '#/definitions/InvoiceScheduleItemCustomFields'
- {}
title: scheduleItems
POSTSequenceSetRequest:
description: ''
properties:
creditMemo:
$ref: '#/definitions/CreditMemoEntityPrefix'
debitMemo:
$ref: '#/definitions/DebitMemoEntityPrefix'
invoice:
$ref: '#/definitions/InvoiceEntityPrefix'
name:
description: 'The name of the sequence set to configure for billing documents,
payments, and refunds.
'
example: FRANCE
type: string
payment:
$ref: '#/definitions/PaymentEntityPrefix'
refund:
$ref: '#/definitions/RefundEntityPrefix'
required:
- name
- invoice
- creditMemo
- debitMemo
title: sequenceSets
type: object
POSTSequenceSetsRequest:
description: ''
example:
sequenceSets:
- creditMemo:
prefix: FCM
startNumber: 10
debitMemo:
prefix: FDM
startNumber: 10
invoice:
prefix: FINV
startNumber: 10
name: FR
payment:
prefix: FP-
startNumber: 10
refund:
prefix: FR-
startNumber: 10
- creditMemo:
prefix: ICM
startNumber: 10
debitMemo:
prefix: IDM
startNumber: 10
invoice:
prefix: IINV
startNumber: 10
name: ITA
payment:
prefix: IP-
startNumber: 10
refund:
prefix: IR-
startNumber: 10
properties:
sequenceSets:
description: 'Array of sequence sets configured for billing documents, payments,
and refunds.
'
items:
$ref: '#/definitions/POSTSequenceSetRequest'
type: array
type: object
POSTSequenceSetsResponse:
description: ''
properties:
sequenceSets:
description: 'Array of sequence sets configured for billing documents, payments,
and refunds.
'
items:
$ref: '#/definitions/GETSequenceSetResponse'
type: array
success:
description: 'Indicates whether the call succeeded.
'
example: true
type: boolean
type: object
POSTSettlePaymentRequest:
example:
gatewayReconciliationReason: paid
gatewayReconciliationStatus: succeeded
payoutId: PAYOUT123
settledOn: '2019-05-07 20:56:32.981'
properties:
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
payoutId:
description: 'The payout ID from the gateway side.
'
type: string
settledOn:
description: 'The date and time of the transaction settlement. The format
is `yyyy-mm-dd hh:mm:ss`.
'
format: date-time
type: string
type: object
POSTSettlePaymentResponse:
properties:
accountId:
description: 'The ID of the customer account that the payment is for.
'
type: string
amount:
description: 'The total amount of the payment.
'
format: double
type: number
appliedAmount:
description: 'The applied amount of the payment.
'
format: double
type: number
authTransactionId:
description: 'The authorization transaction ID from the payment gateway.
'
type: string
bankIdentificationNumber:
description: 'The first six or eight digits of the credit card or debit card
used for the payment, when applicable.
'
type: string
cancelledOn:
description: 'The date and time when the payment was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: 'Comments about the payment.
'
type: string
createdById:
description: 'The ID of the Zuora user who created the refund.
'
type: string
createdDate:
description: 'The date and time when the chargeback is created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2019-03-01 15:31:10.
'
format: date-time
type: string
creditBalanceAmount:
description: 'The amount that the payment transfers to the credit balance.
The value is not `0` only for those payments that come from legacy payment
operations performed without the Invoice Settlement feature.
'
format: double
type: number
currency:
description: 'A currency defined in the web-based UI administrative settings.
'
type: string
effectiveDate:
description: 'The date and time when the payment takes effect, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
financeInformation:
description: 'Container for the finance information related to the refund.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
bankAccountAccountingCodeType:
description: "The type of the accounting code that maps to a bank account\
\ in your accounting system.\n \n"
type: string
transferredToAccounting:
description: "Whether the refund was transferred to an external accounting\
\ system. Use this field for integration with accounting systems, such\
\ as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
maxLength: 100
minLength: 0
type: string
unappliedPaymentAccountingCodeType:
description: "The type of the accounting code for the unapplied payment.\n\
\ \n"
type: string
type: object
gatewayId:
description: 'The ID of the gateway instance that processes the payment.
'
type: string
gatewayOrderId:
description: 'A merchant-specified natural key value that can be passed to
the electronic payment gateway when a payment is created. If not specified,
the payment number will be passed in instead.
'
type: string
gatewayReconciliationReason:
description: 'The reason of gateway reconciliation.
'
type: string
gatewayReconciliationStatus:
description: 'The status of gateway reconciliation.
'
type: string
gatewayResponse:
description: 'The message returned from the payment gateway for the payment.
This message is gateway-dependent.
'
type: string
gatewayResponseCode:
description: 'The code returned from the payment gateway for the payment.
This code is gateway-dependent.
'
type: string
gatewayState:
description: 'The status of the payment in the gateway; specifically used
for reconciliation.
'
enum:
- Submitted
- NotSubmitted
- Settled
- FailedToSettle
type: string
id:
description: 'The ID of the payment chargeback.
'
type: string
markedForSubmissionOn:
description: 'The date and time when a charge was marked and waiting for batch
submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.
'
format: date-time
type: string
number:
description: 'The unique identification number of the payment. For example,
P-00000001.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentMethodId:
description: 'The unique ID of the payment method that the customer used to
make the payment.
'
type: string
paymentMethodSnapshotId:
description: 'The unique ID of the payment method snapshot which is a copy
of the particular Payment Method used in a transaction.
'
type: string
payoutId:
description: 'The payout ID from the gateway side.
'
type: string
referenceId:
description: 'The transaction ID returned by the payment gateway for an electronic
refund. Use this field to reconcile refunds between your gateway and Zuora
Payments.
'
type: string
refundAmount:
description: 'The amount of the payment that is refunded.
'
format: double
type: number
secondPaymentReferenceId:
description: "The transaction ID returned by the payment gateway if there\
\ is an additional transaction for the payment. \n"
type: string
settledOn:
description: 'The date and time when the transaction is settled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
softDescriptor:
description: 'A payment gateway-specific field that maps Zuora to other gateways.
'
type: string
softDescriptorPhone:
description: 'A payment gateway-specific field that maps Zuora to other gateways.
'
type: string
status:
description: 'The status of the payment.
'
type: string
submittedOn:
description: 'The date and time when the payment was submitted, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
success:
description: 'Indicates if the request is processed successfully.
'
type: boolean
type:
description: 'The type of the payment.
'
enum:
- External
- Electronic
type: string
unappliedAmount:
description: 'The unapplied amount of the payment.
'
format: double
type: number
updatedById:
description: 'The ID of the Zuora user who last updated the payment.
'
type: string
updatedDate:
description: 'The date and time when the payment was last updated, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2019-03-02 15:36:10.
'
format: date-time
type: string
type: object
POSTSrpCreateType:
allOf:
- properties:
chargeOverrides:
description: 'This optional container is used to override the quantity of
one or more product rate plan charges for this subscription.
'
items:
$ref: '#/definitions/POSTScCreateType'
type: array
externalCatalogPlanId:
description: |
An external ID of the product rate plan to be added. You can use this field to specify a product rate plan that is imported from an external system. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan.
**Note:** If both `externalCatalogPlanId` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
externalIdSourceSystem:
description: |
The ID of the external source system. You can use this field and `externalCatalogPlanId` to specify a product rate plan that is imported from an external system.
**Note:** If both `externalCatalogPlanId`, `externalIdSourceSystem` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
externallyManagedPlanId:
description: 'Indicates the unique identifier for the rate plan purchased
on a third-party store. This field is used to represent a subscription
rate plan created through third-party stores.
'
type: string
productRatePlanId:
description: 'ID of a product rate plan for this subscription.
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
type: object
- $ref: '#/definitions/RatePlanObjectCustomFields'
title: subscribeToRatePlans
POSTSubscriptionCancellationResponseType:
properties:
cancelledDate:
description: "The date that the subscription was canceled. \n\nThis field\
\ is available in the Orders Harmonization tenants and the Subscribe and\
\ Amend tenants. This field is not available in the Orders tenants. For\
\ more information, see Identify your tenant type for managing subscriptions .\n"
format: date
type: string
creditMemoId:
description: |
The credit memo ID, if a credit memo is generated during the subscription process.
**Note:** This container is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header, and you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: string
invoiceId:
description: 'ID of the invoice, if one is generated.
'
type: string
paidAmount:
description: 'Amount paid.
'
type: number
paymentId:
description: 'ID of the payment, if a payment is collected.
'
type: string
subscriptionId:
description: 'The subscription ID.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
totalDeltaMrr:
description: 'Change in the subscription monthly recurring revenue as a result
of the update.
'
type: number
totalDeltaTcv:
description: 'Change in the total contracted value of the subscription as
a result of the update.
'
type: number
type: object
POSTSubscriptionCancellationType:
example:
cancellationEffectiveDate: '2019-05-31'
cancellationPolicy: SpecificDate
collect: false
creditMemoReasonCode: Unsatisfactory service
runBilling: true
properties:
applicationOrder:
description: |
The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.
**Note:**
- This field is valid only if the `applyCredit` field is set to `true`.
- If no value is specified for this field, the default priority order is used, ["CreditMemo", "UnappliedPayment"], to apply credit memos first and then apply unapplied payments.
- If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `["CreditMemo"]`, only credit memos are used to apply to invoices.
items:
type: string
type: array
applyCredit:
description: |
If the value is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices.
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: boolean
applyCreditBalance:
description: "Whether to automatically apply a credit balance to an invoice.\n\
\nIf the value is `true`, the credit balance is applied to the invoice.\
\ If the value is `false`, no action is taken.\n\n\nTo view the credit balance\
\ adjustment, retrieve the details of the invoice using the Get Invoices\
\ method.\n\nPrerequisite: `invoice` must be `true`. \n\n**Note:** \n -\
\ If you are using the field `invoiceCollect` rather than the field `invoice`,\
\ the `invoiceCollect` value must be `true`.\n - This field is deprecated\
\ if you have the Invoice Settlement feature enabled.\n"
type: boolean
bookingDate:
description: 'The booking date that you want to set for the amendment contract
when you cancel the subscription. The default value is the current date
when you make the API call.
'
format: date
type: string
cancellationEffectiveDate:
description: 'Date the cancellation takes effect, in the format yyyy-mm-dd. Use
only if `cancellationPolicy` is `SpecificDate`. Should not be earlier than
the subscription contract-effective date, later than the subscription term-end
date, or within a period for which the customer has been invoiced.
'
format: date
type: string
cancellationPolicy:
description: 'Cancellation method. Possible values are: `EndOfCurrentTerm`,
`EndOfLastInvoicePeriod`, `SpecificDate`. If using `SpecificDate`, the `cancellationEffectiveDate`
field is required.
'
type: string
collect:
default: false
description: "Collects an automatic payment for a subscription. The collection\
\ generated in this operation is only for this subscription, not for the\
\ entire customer account.\n\nIf the value is `true`, the automatic payment\
\ is collected. If the value is `false`, no action is taken.\n\nPrerequisite:\
\ The `invoice` or `runBilling` field must be `true`. \n\n**Note**: This\
\ field is only available if you set the `zuora-version` request header\
\ to `196.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
type: boolean
contractEffectiveDate:
description: 'The date when the customer notifies you that they want to cancel
their subscription.
'
format: date
type: string
creditMemoReasonCode:
description: A code identifying the reason for the credit memo transaction
that is generated by the request. The value must be an existing reason code.
If you do not pass the field or pass the field with empty value, Zuora uses
the default reason code.
type: string
documentDate:
description: "The date of the billing document, in `yyyy-mm-dd` format. It\
\ represents the invoice date for invoices, credit memo date for credit\
\ memos, and debit memo date for debit memos.\n\n- If this field is specified,\
\ the specified date is used as the billing document date. \n- If this field\
\ is not specified, the date specified in the `targetDate` is used as the\
\ billing document date.\n"
format: date
type: string
invoice:
description: "**Note:** This field has been replaced by the `runBilling` field.\
\ The\n`invoice` field is only available for backward compatibility.\n\n\
\nCreates an invoice for a subscription. The invoice generated in this\n\
operation is only for this subscription, not for the entire customer\naccount.\n\
\n\nIf the value is `true`, an invoice is created. If the value is\n`false`,\
\ no action is taken. The default value is `false`. \n\n\nThis field is\
\ in Zuora REST API version control. Supported minor\nversions are `196.0`\
\ and `207.0`. To use this field in the method, you\nmust set the zuora-version\
\ parameter to the minor version number in\nthe request header.\n"
type: boolean
invoiceCollect:
default: false
description: |
This field has been replaced by the `invoice` field and the
`collect` field. `invoiceCollect` is available only for backward compatibility.
If this field is set to `true`, an invoice is generated and payment automatically collected.
**Note**: This field is only available if you set the `zuora-version` request header to `186.0`, `187.0`, `188.0`, or `189.0`.
type: boolean
invoiceTargetDate:
description: |
**Note:** This field has been replaced by the `targetDate` field. The
`invoiceTargetDate` field is only available for backward
compatibility.
Date through which to calculate charges if an invoice is generated, as
yyyy-mm-dd. Default is current date.
This field is in Zuora REST API version control. Supported minor
versions are `207.0` and earlier [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: date
type: string
orderDate:
description: "The date when the order is signed. If no additinal contractEffectiveDate\
\ is provided, this order will use this order date as the contract effective\
\ date.\nThis field must be in the `yyyy-mm-dd` format.\nThis field is required\
\ for Orders customers only, not applicable to Orders Harmonization customers.\
\ \n"
format: date
type: string
runBilling:
default: false
description: "Creates an invoice for a subscription. If you have the Invoice\
\ Settlement feature enabled, a credit memo might also be created based\
\ on the [invoice and credit memo generation rule](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/Credit_and_Debit_Memos/Rules_for_Generating_Invoices_and_Credit_Memos).\
\ \n\n\nThe billing documents generated\nin this operation is only for\
\ this subscription, not for the entire\ncustomer account.\n\n\nPossible\
\ values:\n\n- `true`: An invoice is created. If you have the Invoice Settlement\
\ feature enabled, a credit memo might also be created.\n\n\n- `false`:\
\ No invoice is created.\n\n\n**Note:** This field is in Zuora REST API\
\ version control. Supported\nminor versions are `211.0` or later [available\
\ versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ To use this field in the method,\nyou must set the `zuora-version` parameter\
\ to the minor version number\nin the request header.\n"
enum:
- true
- false
type: boolean
targetDate:
description: |
Date through which to calculate charges if an invoice or a credit memo is generated, as
yyyy-mm-dd. Default is current date.
**Note:** The credit memo is only available if you have the Invoice Settlement feature enabled.
This field is in Zuora REST API version control. Supported minor
versions are `211.0` and later. To use this field in the method, you
must set the `zuora-version` parameter to the minor version number in
the request header.
format: date
type: string
required:
- cancellationPolicy
type: object
POSTSubscriptionPreviewCreditMemoItemsType:
properties:
amountWithoutTax:
description: 'The credit memo item amount excluding tax.
'
format: double
type: number
chargeAmount:
description: 'The amount of the credit memo item. For tax-inclusive credit
memo items, the amount indicates the credit memo item amount including tax.
For tax-exclusive credit memo items, the amount indicates the credit memo
item amount excluding tax
'
format: double
type: number
chargeDescription:
description: 'Description of this credit memo item.
'
type: string
chargeName:
description: 'Name of this credit memo item.
'
type: string
productName:
description: 'Name of the product associated with this credit memo item.
'
type: string
productRatePlanChargeId:
description: 'ID of the product rate plan charge associated with this credit
memo item.
'
type: string
quantity:
description: 'Quantity of the charge associated with this credit memo item.
'
type: integer
serviceEndDate:
description: 'End date of the service period for this credit memo item, as
yyyy-mm-dd.
'
format: date
type: string
serviceStartDate:
description: 'Service start date of this credit memo item, as yyyy-mm-dd.
'
format: date
type: string
taxAmount:
description: 'The tax amount of the credit memo item.
'
format: double
type: number
taxationItems:
description: "List of taxation items.\n**Note**: This field is only available\
\ if you set the `zuora-version` request header to `315.0` or later [available\
\ versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version). "
items:
$ref: '#/definitions/POSTSubscriptionPreviewTaxationItemsType'
type: array
unitOfMeasure:
description: Unit used to measure consumption.
type: string
title: creditMemoItems
type: object
POSTSubscriptionPreviewInvoiceItemsType:
properties:
chargeAmount:
description: 'The amount of the charge. This amount doesn''t include taxes
unless the charge''s tax mode is inclusive.
'
type: number
chargeDescription:
description: 'Description of the charge.
'
type: string
chargeName:
description: 'Name of the charge.
'
type: string
productName:
description: 'Name of the product associated with this item.
'
type: string
productRatePlanChargeId:
description: 'ID of the product rate plan charge.
'
type: string
quantity:
description: 'Quantity of this item.
'
type: number
serviceEndDate:
description: 'End date of the service period for this item, i.e., the last
day of the period, as yyyy-mm-dd.
'
format: date
type: string
serviceStartDate:
description: 'Service start date as yyyy-mm-dd. If the charge is a one-time
fee, this is the date of that charge.
'
format: date
type: string
taxAmount:
description: 'The tax amount of the invoice item.
'
format: double
type: number
taxationItems:
description: "List of taxation items.\n**Note**: This field is only available\
\ if you set the `zuora-version` request header to `315.0` or later [available\
\ versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version). "
items:
$ref: '#/definitions/POSTSubscriptionPreviewTaxationItemsType'
type: array
unitOfMeasure:
description: ''
type: string
title: invoiceItems
type: object
POSTSubscriptionPreviewResponseType:
properties:
amount:
description: 'Invoice amount.
'
type: number
amountWithoutTax:
description: 'Invoice amount minus tax.
'
type: number
chargeMetrics:
description: 'Container for charge metrics.
'
properties:
dmrr:
description: 'Change in monthly recurring revenue.
'
type: string
dtcv:
description: 'Change in total contract value.
'
type: string
mrr:
description: 'Monthly recurring revenue.
'
type: string
number:
description: 'The charge number of the subscription. Only available for
update subscription.
'
type: string
originRatePlanId:
description: 'The origin rate plan ID. Only available for update subscription.
'
type: string
originalId:
description: 'The original rate plan charge ID. Only available for update
subscription.
'
type: string
productRatePlanChargeId:
description: 'The product rate plan charge ID.
'
type: string
productRatePlanId:
description: 'The product rate plan ID.
'
type: string
tcv:
description: 'Total contract value.
'
type: string
type: object
contractedMrr:
description: 'Monthly recurring revenue of the subscription.
'
type: number
creditMemo:
description: "\nContainer for credit memos.\n\n**Note:** This container is\
\ only available if you set the Zuora REST API minor version to 207.0 or\
\ later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version)\
\ in the request header, and you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n"
properties:
amount:
description: Credit memo amount.
format: double
type: number
amountWithoutTax:
description: Credit memo amount minus tax.
format: double
type: number
creditMemoItems:
description: ''
items:
$ref: '#/definitions/POSTSubscriptionPreviewCreditMemoItemsType'
type: array
taxAmount:
description: Tax amount on the credit memo.
format: double
type: number
type: object
documentDate:
description: "The date of the billing document, in `yyyy-mm-dd` format. It\
\ represents the invoice date for invoices, credit memo date for credit\
\ memos, and debit memo date for debit memos.\n\n- If this field is specified,\
\ the specified date is used as the billing document date. \n- If this field\
\ is not specified, the date specified in the `targetDate` is used as the\
\ billing document date.\n"
format: date
type: string
invoice:
description: "Container for invoices.\n\n\n **Note:** This field is only available\
\ if you set the Zuora REST API minor version to 207.0 or later [available\
\ versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version)\
\ in the request header. Also, the response structure is changed and the\
\ following invoice related response fields are moved to this **invoice**\
\ container:\n \n * amount\n * amountWithoutTax\n * taxAmount\n \
\ * invoiceItems\n * targetDate\n"
properties:
amount:
description: Invoice amount.
type: number
amountWithoutTax:
description: 'Invoice amount minus tax.
'
type: number
invoiceItems:
description: 'Container for invoice items.
'
items:
$ref: '#/definitions/POSTSubscriptionPreviewInvoiceItemsType'
type: array
targetDate:
description: |
Date through which to calculate charges if an invoice is generated, as yyyy-mm-dd. Default is current date.
**Note:** This field is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header.
type: string
taxAmount:
description: 'The tax amount of the invoice.
'
type: number
type: object
invoiceItems:
description: 'Container for invoice items.
'
items:
$ref: '#/definitions/POSTSubscriptionPreviewInvoiceItemsType'
type: array
invoiceTargetDate:
description: |
Date through which charges are calculated on the invoice, as yyyy-mm-dd.
**Note:** This field is only available if you do not specify the Zuora REST API minor version or specify the minor version to 186.0, 187.0, 188.0, 189.0, 196.0, and 206.0.
format: date
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
targetDate:
description: |
Date through which to calculate charges if an invoice is generated, as yyyy-mm-dd. Default is current date.
**Note:** This field is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header.
format: date
type: string
taxAmount:
description: 'Tax amount on the invoice.
'
type: number
totalContractedValue:
description: 'Total contracted value of the subscription.
'
type: number
type: object
POSTSubscriptionPreviewTaxationItemsType:
properties:
exemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
type: number
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of the taxCode
field.
'
type: string
name:
description: 'The name of the taxation item.
'
type: string
taxAmount:
description: 'The tax amount of the invoice item.
'
format: double
type: number
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific invoice.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date when the tax is applied to the invoice.
'
type: string
taxRate:
description: 'The tax rate applied to the invoice. '
type: number
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'Enum:"Percentage" "FlatFee". The type of the tax rate applied
to the invoice.
'
enum:
- Percentage
- FlatFee
type: string
title: taxationItems
type: object
POSTSubscriptionPreviewType:
allOf:
- properties:
accountKey:
description: "\nCustomer account number or ID.\n\nYou must specify the account\
\ information either in this field or in the `previewAccountInfo` field\
\ with the following conditions:\n \n* If you already have a customer\
\ account, specify the account number or ID in this field.\n* If you do\
\ not have a customer account, provide account information in the `previewAccountInfo`\
\ field.\n"
type: string
contractEffectiveDate:
description: 'Effective contract date for this subscription, as yyyy-mm-dd.
'
format: date
type: string
customerAcceptanceDate:
description: |
The date on which the services or products within a subscription have been accepted by the customer, as yyyy-mm-dd.
Default value is dependent on the value of other fields. See **Notes** section for more details.
format: date
type: string
documentDate:
description: "The date of the billing document, in `yyyy-mm-dd` format.\
\ It represents the invoice date for invoices, credit memo date for credit\
\ memos, and debit memo date for debit memos.\n\n- If this field is specified,\
\ the specified date is used as the billing document date. \n- If this\
\ field is not specified, the date specified in the `targetDate` is used\
\ as the billing document date.\n"
format: date
type: string
includeExistingDraftDocItems:
description: |
Specifies whether to include draft invoice items in subscription previews.
Values are:
* `true` (default). Includes draft invoice items in the preview result.
* `false`. Excludes draft invoice items in the preview result.
**Note:** This field is in Zuora REST API version control. Supported minor versions are 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: boolean
includeExistingDraftInvoiceItems:
description: |
Specifies whether to include draft invoice items in previews.
Values are:
* `true` (default). Includes draft invoice items in the preview result.
* `false`. Excludes draft invoice items in the preview result.
**Note:** This field is in Zuora REST API version control. Supported minor versions are 186.0, 187.0, 188.0, 189.0, 196.0, and 206.0.
type: boolean
initialTerm:
description: "Duration of the first term of the subscription, in whole months.\
\ If `termType` is `TERMED`, then this field is required, and the value\
\ must be greater than `0`. If `termType` is `EVERGREEN`, this field is\
\ ignored. \n"
format: int64
type: integer
initialTermPeriodType:
description: "The period type of the initial term. \n\nSupported values\
\ are:\n\n* `Month`\n* `Year`\n* `Day`\n* `Week`\n \nThe default period\
\ type is `Month`.\n\n"
type: string
invoiceOwnerAccountKey:
description: |
Invoice owner account number or ID.
**Note:** This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
type: string
invoiceTargetDate:
description: |
Date through which to calculate charges if an invoice is generated, as yyyy-mm-dd. Default is current date.
**Note:** This field is in Zuora REST API version control. Supported minor versions are 186.0, 187.0, 188.0, 189.0, 196.0, and 206.0. .
format: date
type: string
notes:
description: String of up to 500 characters.
type: string
previewAccountInfo:
$ref: '#/definitions/POSTSubscriptionPreviewTypePreviewAccountInfo'
previewType:
description: "The type of preview you will receive. \n\nThis field is in\
\ Zuora REST API version control. The supported values of this field depend\
\ on the REST API minor version you specified in the request header.\n\
\n\n* If you do not specify the REST API minor version or specify the\
\ minor version number to one of following values in the request header:\n\
\ \n * 186.0\n * 187.0\n * 188.0\n * 189.0\n * 196.0\n * 206.0\n\
\ \n The following values are supported in the **previewType** field:\n\
\n * InvoiceItem\n * ChargeMetrics\n * InvoiceItemChargeMetrics\n \
\ \n The default value is InvoiceItem.\n\n* If you specify the REST API\
\ minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version)\
\ in the request header, the following values are supported in the **previewType**\
\ field:\n\n - LegalDoc\n - ChargeMetrics\n - LegalDocChargeMetrics\n\
\n The default value is LegalDoc.\n\n.\n"
type: string
serviceActivationDate:
description: |
The date on which the services or products within a subscription have been activated and access has been provided to the customer, as yyyy-mm-dd.
Default value is dependent on the value of other fields. See **Notes** section for more details.
format: date
type: string
subscribeToRatePlans:
description: 'Container for one or more rate plans for this subscription.
'
items:
$ref: '#/definitions/POSTSrpCreateType'
type: array
targetDate:
description: |
Date through which to calculate charges if an invoice is generated, as yyyy-mm-dd. Default is current date.
**Note:** This field is in Zuora REST API version control. Supported minor versions are 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version). To use this field in the method, you must set the `zuora-version` parameter to the minor version number in the request header.
format: date
type: string
termStartDate:
description: 'The date on which the subscription term begins, as yyyy-mm-dd.
If this is a renewal subscription, this date is different from the subscription
start date.
'
format: date
type: string
termType:
description: 'Possible values are: `TERMED`, `EVERGREEN`.
'
type: string
required:
- termType
- contractEffectiveDate
- subscribeToRatePlans
type: object
- $ref: '#/definitions/SubscriptionObjectCustomFields'
example:
contractEffectiveDate: 2013-1-15
initialTerm: 12
initialTermPeriodType: Week
invoiceTargetDate: '2013-12-31'
previewAccountInfo:
billCycleDay: 31
billToContact:
city: Walnut Creek
country: United States
county: Contra Consta
state: California
zipCode: '94549'
currency: USD
subscribeToRatePlans:
- chargeOverrides:
- productRatePlanChargeId: ff8080811ca15d19011cddad8c953b53
quantity: 100
productRatePlanId: ff8080811ca15d19011cdda9b0ad3b51
termType: TERMED
POSTSubscriptionPreviewTypePreviewAccountInfo:
allOf:
- properties:
billCycleDay:
description: 'The account''s bill cycle day (BCD), when bill runs generate
invoices for the account. Specify any day of the month (`1`-`31`, where
`31` = end-of-month), or `0` for auto-set.
'
format: int64
type: integer
billToContact:
description: 'Container for bill-to contact information of this account.
'
properties:
city:
description: 'The city of the bill-to address. The value should be 40
characters or less.
'
type: string
country:
description: |
The country of the bill-to address. The value must be a valid country name or abbreviation.
**Note:** You must specify this field if you are using Zuora Tax for this account.
type: string
county:
description: 'The county of the bill-to address. The value should be
32 characters or less.
'
type: string
state:
description: |
The state of the bill-to address. The value must be a valid state or province name or 2-character abbreviation.
**Note:** You must specify this field if you are using Zuora Tax for this account and the country is `USA` or `Canada`.
type: string
taxRegion:
description: 'If using Zuora Tax, a region string as optionally defined
in your tax rules.
'
type: string
zipCode:
description: 'The zip code of the bill-to address. The value should
be 20 characters or less.
'
type: string
type: object
currency:
description: 'A currency as defined in Billing Settings.
'
type: string
required:
- billCycleDay
- billToContact
- currency
type: object
- $ref: '#/definitions/AccountObjectNSFields'
- $ref: '#/definitions/AccountObjectCustomFields'
description: |
A container for providing a customer account information if you do not have an existing customer account. This customer account information is only used for subscription preview.
You must specify the account information either in this field or in the `accountKey` field with the following conditions:
* If you already have a customer account, specify the account number or ID in the accountKey field.
* If you do not have a customer account, provide account information in this field.
title: previewAccountInfo
POSTSubscriptionResponseType:
properties:
contractedMrr:
description: 'Monthly recurring revenue of the subscription.
'
type: number
creditMemoId:
description: |
The credit memo ID, if a credit memo is generated during the subscription process.
**Note:** This container is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header, and you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: string
invoiceId:
description: 'Invoice ID, if an invoice is generated during the subscription
process.
'
type: string
paidAmount:
description: 'Payment amount, if a payment is collected.
'
type: number
paymentId:
description: 'Payment ID, if a payment is collected.
'
type: string
subscriptionId:
description: ''
type: string
subscriptionNumber:
description: ''
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
totalContractedValue:
description: 'Total contracted value of the subscription.
'
type: number
type: object
POSTSubscriptionType:
allOf:
- properties:
accountKey:
description: 'Customer account number or ID
'
type: string
applicationOrder:
description: |
The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.
**Note:**
- This field is valid only if the `applyCredit` field is set to `true`.
- If no value is specified for this field, the default priority order is used, ["CreditMemo", "UnappliedPayment"], to apply credit memos first and then apply unapplied payments.
- If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `["CreditMemo"]`, only credit memos are used to apply to invoices.
items:
type: string
type: array
applyCredit:
description: |
If the value is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices.
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: boolean
applyCreditBalance:
description: "Whether to automatically apply a credit balance to an invoice.\n\
\nIf the value is `true`, the credit balance is applied to the invoice.\
\ If the value is `false`, no action is taken.\n\n\nTo view the credit\
\ balance adjustment, retrieve the details of the invoice using the Get\
\ Invoices method.\n\nPrerequisite: `invoice` must be `true`. \n\n**Note:**\
\ \n - If you are using the field `invoiceCollect` rather than the field\
\ `invoice`, the `invoiceCollect` value must be `true`.\n - This field\
\ is deprecated if you have the Invoice Settlement feature enabled.\n"
type: boolean
autoRenew:
default: false
description: |
If true, this subscription automatically renews at the end of the subscription term.
This field is only required if the `termType` field is set to `TERMED`.
type: boolean
collect:
default: true
description: "Collects an automatic payment for a subscription. The collection\
\ generated in this operation is only for this subscription, not for the\
\ entire customer account.\n\nIf the value is `true`, the automatic payment\
\ is collected. If the value is `false`, no action is taken.\n\nPrerequisite:\
\ The `invoice` or `runBilling` field must be `true`. \n\n**Note**: This\
\ field is only available if you set the `zuora-version` request header\
\ to `196.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
type: boolean
contractEffectiveDate:
description: 'Effective contract date for this subscription, as yyyy-mm-dd
'
format: date
type: string
creditMemoReasonCode:
description: A code identifying the reason for the credit memo transaction
that is generated by the request. The value must be an existing reason
code. If you do not pass the field or pass the field with empty value,
Zuora uses the default reason code.
type: string
customerAcceptanceDate:
description: |
The date on which the services or products within a subscription have been accepted by the customer, as yyyy-mm-dd.
Default value is dependent on the value of other fields. See **Notes** section for more details.
format: date
type: string
documentDate:
description: "The date of the billing document, in `yyyy-mm-dd` format.\
\ It represents the invoice date for invoices, credit memo date for credit\
\ memos, and debit memo date for debit memos.\n\n- If this field is specified,\
\ the specified date is used as the billing document date. \n- If this\
\ field is not specified, the date specified in the `targetDate` is used\
\ as the billing document date.\n"
format: date
type: string
externallyManagedBy:
description: 'An enum field on the Subscription object to indicate the name
of a third-party store. This field is used to represent subscriptions
created through third-party stores.
'
enum:
- Amazon
- Apple
- Google
- Roku
type: string
gatewayId:
description: 'The ID of the payment gateway instance. For example, `2c92c0f86078c4d5016091674bcc3e92`.
'
type: string
initialTerm:
description: 'The length of the period for the first subscription term.
If `termType` is `TERMED`, then this field is required, and the value
must be greater than `0`. If `termType` is `EVERGREEN`, this field is
ignored.
'
format: int64
type: integer
initialTermPeriodType:
description: |
The period type for the first subscription term.
This field is used with the `InitialTerm` field to specify the initial subscription term.
Values are:
* `Month` (default)
* `Year`
* `Day`
* `Week`
type: string
invoice:
description: "**Note:** This field has been replaced by the `runBilling`\
\ field. The\n`invoice` field is only available for backward compatibility.\n\
\n\nCreates an invoice for a subscription. The invoice generated in this\n\
operation is only for this subscription, not for the entire customer\n\
account.\n\n\nIf the value is `true`, an invoice is created. If the value\
\ is\n`false`, no action is taken. The default value is `true`. \n\n\n\
This field is in Zuora REST API version control. Supported minor\nversions\
\ are `196.0` and `207.0`. To use this field in the method, you\nmust\
\ set the zuora-version parameter to the minor version number in\nthe\
\ request header.\n"
type: boolean
invoiceCollect:
default: true
description: |
**Note:** This field has been replaced by the `invoice` field
and the `collect` field. `invoiceCollect` is available only for backward compatibility.
If this field is set to `true`, an invoice is generated and payment collected automatically
during the subscription process. If `false`, no invoicing or payment takes
place. The invoice generated in this operation is only for this subscription,
not for the entire customer account.
**Note**: This field is only available if you set the `zuora-version` request header to `186.0`, `187.0`, `188.0`, or `189.0`.
type: boolean
invoiceOwnerAccountKey:
description: |
Invoice owner account number or ID.
**Note:** This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
type: string
invoiceSeparately:
description: "Separates a single subscription from other subscriptions and\
\ invoices the charge independently. \n\nIf the value is `true`, the subscription\
\ is billed separately from other subscriptions. If the value is `false`,\
\ the subscription is included with other subscriptions in the account\
\ invoice.\n\nThe default value is `false`.\n\nPrerequisite: The default\
\ subscription setting Enable Subscriptions to be Invoiced Separately\
\ must be set to Yes.\n"
type: boolean
invoiceTargetDate:
description: |
**Note:** This field has been replaced by the `targetDate` field. The
`invoiceTargetDate` field is only available for backward
compatibility.
Date through which to calculate charges if an invoice is generated, as
yyyy-mm-dd. Default is current date.
This field is in Zuora REST API version control. Supported minor
versions are `207.0` and earlier [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: date
type: string
lastBookingDate:
description: "The last booking date of the subscription object. This field\
\ is writable only when the subscription is newly created as a first version\
\ subscription. You can override the date value when creating a subscription\
\ through the Subscribe and Amend API or the subscription creation UI\
\ (non-Orders). Otherwise, the default value `today` is set per the user's\
\ timezone. The value of this field is as follows:\n* For a new subscription\
\ created by the [Subscribe and Amend APIs](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Migration_Guidance#Subscribe_and_Amend_APIs_to_Migrate),\
\ this field has the value of the subscription creation date.\n* For a\
\ subscription changed by an amendment, this field has the value of the\
\ amendment booking date.\n* For a subscription created or changed by\
\ an order, this field has the value of the order date. "
format: date
type: string
notes:
description: 'String of up to 500 characters.
'
type: string
paymentMethodId:
description: 'The ID of the payment method used for the payment.
'
type: string
prepayment:
description: "Indicates whether the subscription will consume the reserved\
\ payment amount of the customer account. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown)\
\ for more information. \n"
type: boolean
renewalSetting:
description: |
Specifies whether a termed subscription will remain termed or change to evergreen when it is renewed.
Values:
* `RENEW_WITH_SPECIFIC_TERM` (default)
* `RENEW_TO_EVERGREEN`
type: string
renewalTerm:
description: 'The length of the period for the subscription renewal term.
Default is `0`.
'
format: int64
type: integer
renewalTermPeriodType:
description: |
The period type for the subscription renewal term.
This field is used with the `renewalTerm` field to specify the subscription renewal term.
Values are:
* `Month` (default)
* `Year`
* `Day`
* `Week`
type: string
runBilling:
default: true
description: "Creates an invoice for a subscription. If you have the Invoice\
\ Settlement feature enabled, a credit memo might also be created based\
\ on the [invoice and credit memo generation rule](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/Credit_and_Debit_Memos/Rules_for_Generating_Invoices_and_Credit_Memos).\
\ \n\n\nThe billing documents generated\nin this operation is only for\
\ this subscription, not for the entire\ncustomer account.\n\n\nPossible\
\ values:\n\n- `true`: An invoice is created. If you have the Invoice\
\ Settlement feature enabled, a credit memo might also be created.\n\n\
\n- `false`: No invoice is created.\n\n\n**Note:** This field is in Zuora\
\ REST API version control. Supported\nminor versions are `211.0` or later\
\ [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ To use this field in the method,\nyou must set the `zuora-version` parameter\
\ to the minor version number\nin the request header.\n"
enum:
- true
- false
type: boolean
serviceActivationDate:
description: |
The date on which the services or products within a subscription have been activated and access has been provided to the customer, as yyyy-mm-dd.
Default value is dependent on the value of other fields. See **Notes** section for more details.
format: date
type: string
subscribeToRatePlans:
description: 'Container for one or more rate plans for this subscription.
'
items:
$ref: '#/definitions/POSTSrpCreateType'
type: array
subscriptionNumber:
description: |
Subscription Number. The value can be up to 1000 characters.
If you do not specify a subscription number when creating a subscription, Zuora will generate a subscription number automatically.
If the account is created successfully, the subscription number is returned in the `subscriptionNumber` response field.
type: string
targetDate:
description: |
Date through which to calculate charges if an invoice or a credit memo is generated, as
yyyy-mm-dd. Default is current date.
**Note:** The credit memo is only available if you have the Invoice Settlement feature enabled.
This field is in Zuora REST API version control. Supported minor
versions are `211.0` and later. To use this field in the method, you
must set the `zuora-version` parameter to the minor version number in
the request header.
format: date
type: string
termStartDate:
description: 'The date on which the subscription term begins, as yyyy-mm-dd.
If this is a renewal subscription, this date is different from the subscription
start date.
'
format: date
type: string
termType:
description: 'Possible values are: `TERMED`, `EVERGREEN`.
'
type: string
required:
- accountKey
- contractEffectiveDate
- subscribeToRatePlans
- termType
- renewalTerm
type: object
- $ref: '#/definitions/SubscriptionObjectQTFields'
- $ref: '#/definitions/SubscriptionObjectNSFields'
- $ref: '#/definitions/SubscriptionObjectCustomFields'
example:
accountKey: A00001115
autoRenew: true
contractEffectiveDate: 2015-02-1
creditMemoReasonCode: Unsatisfactory service
initialTerm: '12'
initialTermPeriodType: Week
notes: Test POST subscription from z-ruby-sdk
renewalTerm: '3'
renewalTermPeriodType: Week
subscribeToRatePlans:
- chargeOverrides:
- billCycleDay: '5'
billCycleType: SpecificDayofMonth
billingPeriodAlignment: AlignToCharge
billingTiming: IN_ARREARS
description: This is rate plan charge description
number: TestCharge
price: 12.01
productRatePlanChargeId: ff8080811ca15d19011cddad8c953b53
triggerDate: '2015-09-01'
triggerEvent: USD
productRatePlanId: ff8080811ca15d19011cdda9b0ad3b51
termType: TERMED
POSTTaxationItemForCMType:
allOf:
- properties:
exemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
financeInformation:
description: 'Container for the finance information related to the taxation
item.
'
properties:
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
salesTaxPayableAccountingCode:
description: 'The accounting code for the sales taxes payable.
'
maxLength: 100
minLength: 0
type: string
type: object
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of the
`taxCode` field.
'
type: string
memoItemId:
description: 'The ID of the credit memo that the taxation item is created
for.
'
type: string
name:
description: 'The name of the taxation item.
'
type: string
sourceTaxItemId:
description: "The ID of the taxation item of the invoice, which the credit\
\ memo is created from. \n\nIf you want to use this REST API to create\
\ taxation items for a credit memo created from an invoice, the taxation\
\ items of the invoice must be created or imported through the SOAP API\
\ call.\n\n**Note:** \n - This field is only used if the credit memo\
\ is created from an invoice. \n - If you do not contain this field in\
\ the request body, Zuora will automatically set a value for the `sourceTaxItemId`\
\ field based on the tax location code, tax jurisdiction, and tax rate.\n"
type: string
taxAmount:
description: 'The amount of the tax applied to the credit memo.
'
format: double
type: number
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific credit memo.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date when the tax is applied to the credit memo.
'
format: date
type: string
taxRate:
description: 'The tax rate applied to the credit memo.
'
format: double
type: number
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'The type of the tax rate applied to the credit memo.
'
enum:
- Percentage
- FlatFee
type: string
required:
- taxRate
- jurisdiction
- name
- taxRateType
- taxAmount
type: object
- $ref: '#/definitions/TaxationItemObjectCustomFields'
title: taxationItems
POSTTaxationItemForDMType:
allOf:
- properties:
exemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
financeInformation:
description: 'Container for the finance information related to the taxation
item.
'
properties:
salesTaxPayableAccountingCode:
description: 'The accounting code for the sales taxes payable.
'
maxLength: 100
minLength: 0
type: string
type: object
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of the
`taxCode` field.
'
type: string
memoItemId:
description: 'The ID of the debit memo that the taxation item is created
for.
'
type: string
name:
description: 'The name of the taxation item.
'
type: string
sourceTaxItemId:
description: "The ID of the taxation item of the invoice, which the debit\
\ memo is created from. \n\nIf you want to use this REST API to create\
\ taxation items for a debit memo created from an invoice, the taxation\
\ items of the invoice must be created or imported through the SOAP API\
\ call.\n\n**Note:** \n - This field is only used if the debit memo is\
\ created from an invoice. \n - If you do not contain this field in the\
\ request body, Zuora will automatically set a value for the `sourceTaxItemId`\
\ field based on the tax location code, tax jurisdiction, and tax rate.\n"
type: string
taxAmount:
description: 'The amount of the tax applied to the debit memo.
'
format: double
type: number
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific debit memo.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date when the tax is applied to the debit memo.
'
format: date
type: string
taxRate:
description: 'The tax rate applied to the debit memo.
'
format: double
type: number
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'The type of the tax rate applied to the debit memo.
'
enum:
- Percentage
- FlatFee
type: string
required:
- taxRate
- jurisdiction
- name
- taxRateType
- taxAmount
type: object
- $ref: '#/definitions/TaxationItemObjectCustomFields'
title: taxationItems
POSTTaxationItemList:
example:
taxationItems:
- exemptAmount: 0.0
financeInformation:
accountsReceivableAccountingCode: Check
salesTaxPayableAccountingCode: Check
invoiceItemId: 402890555a7e9791015a879f064d0055
jurisdiction: CALIFORNIA
locationCode: '06'
name: STATE TAX
taxAmount: 0.1
taxCode: ServiceTaxCode
taxCodeDescription: This is tax code description!
taxDate: '2016-09-30'
taxMode: TaxExclusive
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
properties:
taxationItems:
description: 'Container for taxation items.
'
items:
$ref: '#/definitions/POSTTaxationItemTypeForInvoice'
type: array
type: object
POSTTaxationItemListForCMType:
example:
taxationItems:
- exemptAmount: 0.0
financeInformation:
onAccountAccountingCode: Check
salesTaxPayableAccountingCode: Check
jurisdiction: CALIFORNIA
locationCode: '06'
memoItemId: 402890555a7e9791015a879f064d0055
name: STATE TAX
sourceTaxItemId: 402890555a7d4022015a7db254e200c1
taxAmount: 0.1
taxCode: ServiceTaxCode
taxCodeDescription: This is tax code description!
taxDate: '2016-09-30'
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
properties:
taxationItems:
description: 'Container for taxation items.
'
items:
$ref: '#/definitions/POSTTaxationItemForCMType'
type: array
type: object
POSTTaxationItemListForDMType:
example:
taxationItems:
- exemptAmount: 0.0
financeInformation:
salesTaxPayableAccountingCode: Check
jurisdiction: CALIFORNIA
locationCode: '06'
memoItemId: 402890555a7e9791015a87b082980068
name: STATE TAX
sourceTaxItemId: 402890555a7d4022015a7db254e200c2
taxAmount: 0.01
taxCode: ServiceTaxCode
taxCodeDescription: This is tax code description!
taxDate: '2016-06-05'
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
- exemptAmount: 0.0
financeInformation:
salesTaxPayableAccountingCode: Check
jurisdiction: CALIFORNIA
locationCode: '06'
memoItemId: 402890555a7e9791015a87b082d5006a
name: STATE TAX
sourceTaxItemId: 402890555a7d4022015a7db254e200c3
taxAmount: 0.02
taxCode: ServiceTaxCode
taxCodeDescription: This is tax code description!
taxDate: '2016-06-05'
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
properties:
taxationItems:
description: 'Container for taxation items.
'
items:
$ref: '#/definitions/POSTTaxationItemForDMType'
type: array
type: object
POSTTaxationItemTypeForInvoice:
allOf:
- properties:
exemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: number
type: string
financeInformation:
description: 'Container for the finance information related to the taxation
item.
'
properties:
accountsReceivableAccountingCode:
description: 'The accounting code for accounts receivable.
'
maxLength: 100
minLength: 0
type: string
salesTaxPayableAccountingCode:
description: 'The accounting code for the sales taxes payable.
'
maxLength: 100
minLength: 0
type: string
type: object
invoiceItemId:
description: 'The ID of the invoice associated with the taxation item.
'
type: string
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of the
`taxCode` field.
'
type: string
name:
description: 'The name of taxation.
'
type: string
taxAmount:
description: 'The amount of the taxation item in the invoice item.
'
format: number
type: string
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific invoice item.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date that the tax is applied to the invoice item, in `yyyy-mm-dd`
format.
'
format: date
type: string
taxMode:
description: 'The tax mode of the invoice item, indicating whether the amount
of the invoice item includes tax.
'
enum:
- TaxInclusive
- TaxExclusive
type: string
taxRate:
description: 'The tax rate applied to the invoice item.
'
format: number
type: string
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'The type of the tax rate applied to the invoice item.
'
enum:
- Percentage
- FlatFee
type: string
required:
- invoiceItemId
- jurisdiction
- name
- taxAmount
- taxDate
- taxRate
- taxRateType
title: taxItems
type: object
- $ref: '#/definitions/TaxationItemObjectCustomFields'
POSTTierType:
properties:
endingUnit:
description: 'End number of a range of units for the tier.
'
type: number
price:
description: 'Price of the tier if the charge is a flat fee, or the price
of each unit in the tier if the charge model is tiered pricing.
'
type: number
priceFormat:
description: |
Indicates if pricing is a flat fee or is per unit.
Values:
* `FlatFee`
* `PerUnit`
type: string
startingUnit:
description: 'Starting number of a range of units for the tier.
'
type: number
tier:
description: 'Unique number that identifies the tier that the price applies
to.
'
format: int64
type: integer
required:
- tier
- price
title: tiers
type: object
POSTTriggerRolloverRequestType:
allOf:
- properties:
destinationValidityPeriod:
$ref: '#/definitions/DestinationValidityPeriodInfo'
prepaymentUom:
description: |
Specifies the units of measure for prepayment charge. Units of measure are configured in the web-based UI. Your values depend on your configuration in **Billing Settings**.
**Values**: a valid unit of measure
type: string
priority:
description: |
Specifies the priority of rolled over fund in case of drawdown.
**Values**: ApplyLast / ApplyFirst
type: string
sourceValidityPeriod:
$ref: '#/definitions/SourceValidityPeriodInfo'
subscriptionNumber:
description: The unique identifier number of the subscription.
maxLength: 100
type: string
required:
- subscriptionNumber
- prepaymentUom
- sourceValidityPeriod
- destinationValidityPeriod
- priority
type: object
example:
destinationValidityPeriod:
endDate: '2025-01-01'
startDate: '2024-01-01'
prepaymentUom: Each
priority: ApplyFirst
sourceValidityPeriod:
endDate: '2024-01-01'
startDate: '2023-01-01'
subscriptionNumber: A-S00000009
POSTTriggerRolloverResponseType:
properties:
message:
description: Indicates the result.
type: string
rolloverFundCount:
description: Indicates the number of funds which have been rolled over.
format: int64
type: integer
success:
description: Indicates whether the call succeeded.
type: boolean
type: object
POSTUploadFileResponse:
properties:
fileId:
description: 'The unique ID of the uploaded PDF file.
'
type: string
success:
description: 'Indicates whether the call succeeded.
'
type: boolean
type: object
POSTUsageResponseType:
properties:
checkImportStatus:
description: |
The path for checking the status of the import.
The possible status values at this path are `Pending`, `Processing`, `Completed`, `Canceled`, and `Failed`. Only `Completed` indicates that the file contents were imported successfully.
type: string
size:
description: 'The size of the uploaded file in bytes.
'
format: int64
type: integer
success:
description: 'Indicates whether the call succeeded.
'
type: boolean
type: object
POSTVoidAuthorize:
example:
accountId: 402881e861bd8a7e0161c6a453750026
accountNumber: A00000004
gatewayOrderId: A001
transactionId: '5205213224866613203009'
properties:
accountId:
description: The ID of the customer account. This field is generally required,
but is optional if you are using the Ingenico ePayments gateway.
type: string
accountNumber:
description: The number of the customer account. This field is generally required,
but is optional if you are using the Ingenico ePayments gateway.
type: string
gatewayOptions:
description: |
The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).
Zuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.
properties:
key:
description: 'The name of a gateway-specific parameter.
'
type: string
value:
description: 'The value of the gateway-specific parameter.
'
type: string
type: object
gatewayOrderId:
description: |
The order ID for the specific gateway.
The specified order ID will be used in transaction authorization. If you specify an empty value for this field, Zuora will generate an ID and you will have to associate this ID with your order ID by yourself if needed. It is recommended to specify an ID for this field.
type: string
paymentGatewayId:
description: The ID of the payment gateway instance. This field is required
if you do not specify the `accountId` and `accountNumber` fields.
type: string
transactionId:
description: The ID of the transaction.
type: string
required:
- transactionId
- gatewayOrderId
type: object
POSTVoidAuthorizeResponse:
example:
gatewayOrderId: A001
resultCode: 0
resultMessage: 'Request ID: 5231719060426316203012'
success: true
transactionId: '5231719060426316203012'
properties:
gatewayOrderId:
description: |
The order ID for the specific gateway.
The specified order ID will be used in transaction authorization. If you specify an empty value for this field, Zuora will generate an ID and you will have to associate this ID with your order ID by yourself if needed. It is recommended to specify an ID for this field.
type: string
resultCode:
description: "The result code of the request. \n\n0 indicates that the request\
\ succeeded, and the following values indicate that the request failed:\n\
\ - 1: The request is declined.\n - 7: The field format is not correct.\n\
\ - 10: Client connection has timed out.\n - 11: Host connection has timed\
\ out.\n - 12: Processor connection has timed out.\n - 13: Gateway server\
\ is busy.\n - 20: The card type is not supported.\n - 21: The merchant\
\ account information is invalid.\n - 22: A generic error occurred on the\
\ processor.\n - 40: The card type has not been set up yet.\n - 41: The\
\ limit for a single transaction is exceeded.\n - 42: Address checking\
\ failed.\n - 43: Card security code checking failed.\n - 44: Failed due\
\ to the gateway security setting.\n - 45: Fraud protection is declined.\n\
\ - 46: Address checking or card security code checking failed (for Authorize.net\
\ gateway only).\n - 47: The maximum amount is exceeded (for Authorize.net\
\ gateway only).\n - 48: The IP address is blocked by the gateway (for\
\ Authorize.net gateway only).\n - 49: Card security code checking failed\
\ (for Authorize.net gateway only).\n - 60: User authentication failed.\n\
\ - 61: The currency code is invalid.\n - 62: The transaction ID is invalid.\n\
\ - 63: The credit card number is invalid.\n - 64: The card expiration\
\ date is invalid.\n - 65: The transaction is duplicated.\n - 66: Credit\
\ transaction error.\n - 67: Void transaction error.\n - 90: A valid amount\
\ is required.\n - 91: The BA code is invalid.\n - 92: The account number\
\ is invalid.\n - 93: The ACH transaction is not accepted by the merchant.\n\
\ - 94: An error occurred for the ACH transaction.\n - 95: The version\
\ parameter is invalid.\n - 96: The transaction type is invalid.\n - 97:\
\ The transaction method is invalid.\n - 98: The bank account type is invalid.\n\
\ - 99: The authorization code is invalid.\n - 200: General transaction\
\ error.\n - 500: The transaction is queued for submission.\n - 999: Unknown\
\ error.\n - -1: An error occurred in gateway communication.\n - -2: Idempotency\
\ is not supported.\n - -3: Inquiry call is not supported.\n"
type: string
resultMessage:
description: The corresponding request ID.
type: string
success:
description: Indicates whether the call succeeded.
type: boolean
transactionId:
description: The ID of the transaction.
type: string
type: object
POSTWorkflowDefinitionImportRequest:
properties:
linkages:
items:
$ref: '#/definitions/Linkage'
type: array
tasks:
items:
$ref: '#/definitions/Task'
type: array
workflow:
$ref: '#/definitions/Workflow'
type: object
type: object
POSTorPUTCatalogGroupAddProductRatePlan:
allOf:
- properties:
grade:
description: "The grade that is assigned for the product rate plan. The\
\ value of this field must be a positive integer. The greater the value,\
\ the higher the grade.\n\nA product rate plan to be added to a Grading\
\ catalog group must have one grade. You can specify a grade for a product\
\ rate plan in this request or update the product rate plan individually.\
\ \n"
type: number
id:
description: 'The unique ID of the product rate plan.
'
type: string
type: object
example:
grade: 3
id: 4028e5ab7f1b600c017f1b787d5d01cf
title: productRatePlans
PUTAccountEinvoiceProfile:
allOf:
- properties:
businessName:
description: 'Legal Business Name. The full formal name by which the Buyer
is registered with the relevant legal authority. '
maxLength: 255
type: string
businessNumber:
description: 'Buyer legal registration identifier. An identifier issued
by an official registrar that identifies the Buyer as a legal entity or
person. GSTIN of buyer for India. '
type: string
businessNumberSchemeId:
description: 'Business Number Schema Id. The identification scheme identifier
of the Buyer legal registration identifier. '
type: string
enabled:
description: 'Enable e-invoice for the account. All invoices generated from
this account can be submitted to generate e-invoices when invoices meet
the conditions: A business region must be created for the billing country
contact, and it must be linked to a service provider. The account must
be enabled to generate e-invoices. The invoice must be in the "Posted"
status. '
type: boolean
endpointId:
description: 'Buyer electronic address.Identifies the Buyer''s electronic
address to which the invoice is delivered.
'
type: string
endpointSchemeId:
description: 'Buyer electronic address identification scheme identifier. '
type: string
taxRegisterNumber:
description: 'Buyer VAT identifier. The Buyer''s VAT identifier (also known
as Buyer VAT identification number).
'
type: string
type: object
description: 'Container for profile information for this account.
'
title: einvoiceProfile
PUTAccountType:
allOf:
- properties:
additionalEmailAddresses:
description: 'A list of additional email addresses to receive email notifications.
Use commas to separate email addresses.
'
items:
type: string
type: array
autoPay:
description: "Whether future payments are to be automatically billed when\
\ they are due. \n"
type: boolean
batch:
description: |
The alias name given to a batch. A string of 50 characters or
less.
**Note**: By default, you have 50 configurable account batches. To increase the limit to 200 batches, you must have the Performance Booster Elite package.
type: string
billCycleDay:
description: "Sets the bill cycle day (BCD) for the charge. The BCD determines\n\
which day of the month the customer is billed. Values: Any activated system-defined\
\ bill cycle day \uFF08`1`-`31`\uFF09\n"
maxLength: 2
type: integer
billToContact:
$ref: '#/definitions/PUTAccountTypeBillToContact'
communicationProfileId:
description: |
The ID of the communication profile that this account is linked to.
You can provide either or both of the `communicationProfileId` and `profileNumber` fields.
If both are provided, the request will fail if they do not refer to the same communication profile.
type: string
creditMemoTemplateId:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
The unique ID of the credit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08a6246fdf101626b1b3fe0144b.
type: string
crmId:
description: 'CRM account ID for the account, up to 100 characters.
'
type: string
customerServiceRepName:
description: "Name of the account\u2019s customer service representative,\
\ if applicable.\n"
maxLength: 50
type: string
debitMemoTemplateId:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
The unique ID of the debit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08d62470a8501626b19d24f19e2.
type: string
defaultPaymentMethodId:
description: |
ID of the default payment method for the account.
Values: a valid ID for an existing payment method.
maxLength: 64
type: string
einvoiceProfile:
$ref: '#/definitions/PUTAccountEinvoiceProfile'
invoiceDeliveryPrefsEmail:
description: "Whether the customer wants to receive invoices through email.\
\ \n\nThe default value is `false`.\n"
type: boolean
invoiceDeliveryPrefsPrint:
description: |
Whether the customer wants to receive printed invoices, such as through postal mail.
The default value is `false`.
type: boolean
invoiceTemplateId:
description: 'Invoice template ID, configured in Billing Settings in the
Zuora UI.
'
type: string
name:
description: 'Account name, up to 255 characters.
'
type: string
notes:
description: 'A string of up to 65,535 characters.
'
type: string
parentId:
description: Identifier of the parent customer account for this Account
object. The length is 32 characters. Use this field if you have Customer Hierarchy enabled.
type: string
partnerAccount:
default: false
description: "Whether the customer account is a partner, distributor, or\
\ reseller. \n\n\nYou can set this field to `true` if you have business\
\ with distributors or resellers, or operating in B2B model to manage\
\ numerous subscriptions through concurrent API requests. After this field\
\ is set to `true`, the calculation of account metrics is performed asynchronously\
\ during operations such as subscription creation, order changes, invoice\
\ generation, and payments.\n\n\n**Note**: This field is available only\
\ if you have the Reseller Account feature enabled.\n"
type: boolean
paymentGateway:
description: 'The name of the payment gateway instance. If null or left
unassigned, the Account will use the Default Gateway.
'
type: string
paymentTerm:
description: Payment terms for this account. Possible values are `Due Upon
Receipt`, `Net 30`, `Net 60`, `Net 90`.
type: string
profileNumber:
description: |
The number of the communication profile that this account is linked to.
You can provide either or both of the `communicationProfileId` and `profileNumber` fields.
If both are provided, the request will fail if they do not refer to the same communication profile.
type: string
purchaseOrderNumber:
description: The purchase order number provided by your customer for services,
products, or both purchased.
type: string
salesRep:
description: The name of the sales representative associated with this account,
if applicable. Maximum of 50 characters.
type: string
sequenceSetId:
description: "The ID of the billing document sequence set to assign to the\
\ customer account. \n\nThe billing documents to generate for this account\
\ will adopt the prefix and starting document number configured in the\
\ sequence set.\n\nIf a customer account has no assigned billing document\
\ sequence set, billing documents generated for this account adopt the\
\ prefix and starting document number from the default sequence set.\n"
type: string
soldToContact:
$ref: '#/definitions/PUTAccountTypeSoldToContact'
tagging:
description: ''
type: string
taxInfo:
description: 'Container for tax exempt information, used to establish the
tax exempt status of a customer account.
'
properties:
VATId:
description: "EU Value Added Tax ID. \n\n**Note:** This feature is in\
\ Limited Availability. If you wish to have access to the feature,\
\ submit a request at [Zuora Global Support](https://support.zuora.com).\n"
type: string
companyCode:
description: "Unique code that identifies a company account in Avalara.\
\ Use this field to calculate taxes based on origin and sold-to addresses\
\ in Avalara.\n\n**Note:** This feature is in Limited Availability.\
\ If you wish to have access to the feature, submit a request at [Zuora\
\ Global Support](https://support.zuora.com). \n"
type: string
exemptCertificateId:
description: 'ID of the customer tax exemption certificate. Requires
Zuora Tax.
'
type: string
exemptCertificateType:
description: 'Type of tax exemption certificate that the customer holds.
Requires Zuora Tax.
'
type: string
exemptDescription:
description: 'Description of the tax exemption certificate that the
customer holds. Requires Zuora Tax.
'
type: string
exemptEffectiveDate:
description: |
Date when the customer tax exemption starts. Requires Zuora Tax.
Format: `yyyy-mm-dd`. Defaults to the current date.
format: date
type: string
exemptEntityUseCode:
description: |
A unique entity use code to apply exemptions in Avalara AvaTax.
This account-level field is required only when you choose Avalara as your tax engine. See [Exempt Transactions](https://developer.avalara.com/avatax/handling-tax-exempt-customers/)for more details.
maxLength: 64
type: string
exemptExpirationDate:
description: |
Date when the customer tax exemption expires. Requires Zuora Tax.
Format: `yyyy-mm-dd`. Defaults to the current date.
format: date
type: string
exemptIssuingJurisdiction:
description: 'Jurisdiction in which the customer tax exemption certificate
was issued.
'
type: string
exemptStatus:
description: |
Status of the account tax exemption. Requires Zuora Tax.
Required if you use Zuora Tax. This field is unavailable if Zuora Tax is not used.
Values: `Yes`, `No`(default), `pendingVerification`. Note that the value will be set to `No` if no input.
type: string
type: object
type: object
- $ref: '#/definitions/AccountObjectNSFields'
- $ref: '#/definitions/AccountObjectCustomFields'
example:
additionalEmailAddresses:
- contact3@example.com
- contact4@example.com
customerServiceRepName: CSR0001
einvoiceProfile:
businessName: legal business name
businessNumber: 20002039
businessNumberSchemeId: 088
enabled: true
endpointId: 08992
endpointSchemeId: 088
taxRegisterNumber: TAX393999
paymentGateway: TestGateway
purchaseOrderNumber: PO0001
PUTAccountTypeBillToContact:
allOf:
- properties:
address1:
description: 'First address line, 255 characters or less.
'
type: string
address2:
description: 'Second address line, 255 characters or less.
'
type: string
city:
description: 'City, 40 characters or less.
'
type: string
country:
description: 'Country; must be a valid country name or abbreviation. If
using Zuora Tax, you must specify a country in the sold-to contact to
calculate tax. A bill-to contact may be used if no sold-to contact is
provided.
'
type: string
county:
description: 'County; 32 characters or less. May optionally be used by Zuora
Tax to calculate county tax.
'
type: string
fax:
description: 'Fax phone number, 40 characters or less.
'
type: string
firstName:
description: 'First name, 100 characters or less.
'
type: string
homePhone:
description: 'Home phone number, 40 characters or less.
'
type: string
lastName:
description: 'Last name, 100 characters or less.
'
type: string
mobilePhone:
description: 'Mobile phone number, 40 characters or less.
'
type: string
nickname:
description: 'Nickname for this contact
'
type: string
otherPhone:
description: 'Other phone number, 40 characters or less.
'
type: string
otherPhoneType:
description: 'Possible values are: `Work`, `Mobile`, `Home`, `Other`.
'
type: string
personalEmail:
description: 'Personal email address, 80 characters or less.
'
type: string
state:
description: 'State; must be a valid state or province name or 2-character
abbreviation. If using Zuora Tax, be aware that Zuora Tax requires a state
(in the US) or province (in Canada) in this field for the sold-to contact
to calculate tax, and that a bill-to contact may be used if no sold-to
contact is provided.
'
type: string
taxRegion:
description: 'If using Zuora Tax, a region string as optionally defined
in your tax rules. Not required.
'
type: string
workEmail:
description: 'Work email address, 80 characters or less.
'
type: string
workPhone:
description: 'Work phone number, 40 characters or less.
'
type: string
zipCode:
description: 'Zip code, 20 characters or less.
'
type: string
required:
- firstName
- lastName
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
description: 'Container for bill-to contact information for this account.
'
title: Contact
PUTAccountTypeSoldToContact:
allOf:
- properties:
address1:
description: 'First address line, 255 characters or less.
'
type: string
address2:
description: 'Second address line, 255 characters or less.
'
type: string
city:
description: 'City, 40 characters or less.
'
type: string
country:
description: 'Country; must be a valid country name or abbreviation. If
using Zuora Tax, you must specify a country in the sold-to contact to
calculate tax. A bill-to contact may be used if no sold-to contact is
provided.
'
type: string
county:
description: 'County; 32 characters or less. May optionally be used by Zuora
Tax to calculate county tax.
'
type: string
fax:
description: 'Fax phone number, 40 characters or less.
'
type: string
firstName:
description: 'First name, 100 characters or less.
'
type: string
homePhone:
description: 'Home phone number, 40 characters or less.
'
type: string
lastName:
description: 'Last name, 100 characters or less.
'
type: string
mobilePhone:
description: 'Mobile phone number, 40 characters or less.
'
type: string
nickname:
description: 'Nickname for this contact
'
type: string
otherPhone:
description: 'Other phone number, 40 characters or less.
'
type: string
otherPhoneType:
description: 'Possible values are: `Work`, `Mobile`, `Home`, `Other`.
'
type: string
personalEmail:
description: 'Personal email address, 80 characters or less.
'
type: string
state:
description: 'State; must be a valid state or province name or 2-character
abbreviation. If using Zuora Tax, be aware that Zuora Tax requires a
state (in the US) or province (in Canada) in this field for the sold-to
contact to calculate tax, and that a bill-to contact may be used if no
sold-to contact is provided.
'
type: string
taxRegion:
description: 'If using Zuora Tax, a region string as optionally defined
in your tax rules. Not required.
'
type: string
workEmail:
description: 'Work email address, 80 characters or less.
'
type: string
workPhone:
description: 'Work phone number, 40 characters or less.
'
type: string
zipCode:
description: 'Zip code, 20 characters or less.
'
type: string
required:
- firstName
- lastName
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
description: 'Container for optional sold-to contact.
'
title: Contact
PUTAccountingCodeType:
allOf:
- properties:
glAccountName:
description: |
Name of the account in your general ledger.
Field only available if you have Zuora Finance enabled. Maximum of 255 characters.
type: string
glAccountNumber:
description: |
Account number in your general ledger.
Field only available if you have Zuora Finance enabled. Maximum of 255 characters.
type: string
name:
description: |
Name of the accounting code.
Accounting code name must be unique. Maximum of 100 characters.
type: string
notes:
description: 'Maximum of 2,000 characters.
'
type: string
type:
description: "Accounting code type. You cannot change the type of an accounting\
\ code from `AccountsReceivable` to a different type. \n\nNote that `On-Account\
\ Receivable` is only available if you enable the Invoice Settlement feature.\
\ \n"
enum:
- AccountsReceivable
- On-Account Receivable
- Cash
- OtherAssets
- CustomerCashOnAccount
- DeferredRevenue
- SalesTaxPayable
- OtherLiabilities
- SalesRevenue
- SalesDiscounts
- OtherRevenue
- OtherEquity
- BadDebt
- OtherExpenses
type: string
type: object
- $ref: '#/definitions/AccountingCodeObjectCustomFields'
example:
name: CASH
type: Cash
PUTAccountingPeriodType:
allOf:
- properties:
endDate:
description: 'The end date of the accounting period in yyyy-mm-dd format,
for example, "2016-02-19".
'
format: date
type: string
fiscalYear:
description: 'Fiscal year of the accounting period in yyyy format, for example,
"2016".
'
type: string
fiscal_quarter:
description: ''
format: int64
type: integer
name:
description: |
Name of the accounting period.
Accounting period name must be unique. Maximum of 100 characters.
type: string
notes:
description: |
Notes about the accounting period.
Maximum of 255 characters.
type: string
startDate:
description: 'The start date of the accounting period in yyyy-mm-dd format,
for example, "2016-02-19".
'
format: date
type: string
type: object
- $ref: '#/definitions/AccountingPeriodObjectCustomFields'
example:
endDate: '2016-01-31'
fiscalYear: 2016
name: Jan 2016
startDate: '2016-01-01'
PUTAttachmentType:
example:
description: Updated image
fileName: Image123.png
properties:
description:
description: 'Description of the attachment.
'
type: string
fileName:
description: 'File name of the attachment. The value should not contain the
file extension. Only the file name without the extension can be edited.
'
type: string
type: object
PUTBatchDebitMemosRequest:
example:
debitMemos:
- dueDate: '2017-12-28'
id: 402890d25f9f083f015f9f28041d0008
- dueDate: '2017-12-20'
id: 402890555a87d7f5015a892f2ba10057
properties:
debitMemos:
description: 'Container for debit memo update details.
'
items:
$ref: '#/definitions/BatchDebitMemoType'
type: array
type: object
PUTBulkCreditMemosRequestType:
allOf:
- properties:
memos:
description: 'The container for a list of credit memos. The maximum number
of credit memos is 50.
'
items:
$ref: '#/definitions/PUTCreditMemosWithIdType'
maxItems: 50
type: array
type: object
example:
memos:
- autoApplyUponPosting: false
comment: new comment
effectiveDate: '2017-04-17'
excludeFromAutoApplyRules: false
id: 402890555b797b57015b7986fc1a001f
items:
- amount: 1
comment: This is comment!
id: 402890555b797b57015b7986fc1a001c
quantity: 1
serviceEndDate: '2016-11-30'
serviceStartDate: '2016-11-01'
skuName: SKU-1
taxItems:
- amount: 0.03
id: 402890555b797b57015b7986fc3c001d
jurisdiction: CALIFORNIA
locationCode: '06'
taxCode: null
taxCodeDescription: This is tax code description!
taxDate: '2016-11-30'
taxExemptAmount: 0
taxName: STATE TAX1
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
unitOfMeasure: Test_UOM
- amount: 2
comment: This is comment!
id: 402890555b797b57015b7986fc41001e
serviceEndDate: '2016-11-30'
serviceStartDate: '2016-11-01'
skuName: SKU-2
taxItems: []
unitOfMeasure: Test_UOM
reasonCode: Correcting invoice error
PUTBulkDebitMemosRequestType:
allOf:
- properties:
memos:
description: 'The container for a list of debit memos. The maximum number
of debit memos is 50.
'
items:
$ref: '#/definitions/PUTDebitMemoWithIdType'
maxItems: 50
title: memos
type: array
type: object
example:
memos:
- autoPay: true
comment: new comment
dueDate: '2017-05-20'
effectiveDate: '2017-04-17'
id: 4028905f5a890526015a8db30954007a
items:
- amount: 1
comment: This is comment!
id: 402890555b797b57015b7986fc1a001c
quantity: 1
serviceEndDate: '2016-11-30'
serviceStartDate: '2016-11-01'
skuName: SKU-1
taxItems:
- amount: 0.03
id: 402890555b797b57015b7986fc3c001d
jurisdiction: CALIFORNIA
locationCode: '06'
taxCode: null
taxCodeDescription: This is tax code description!
taxDate: '2016-11-30'
taxExemptAmount: 0
taxName: STATE TAX1
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
unitOfMeasure: Test_UOM
- amount: 2
comment: This is comment!
id: 402890555b797b57015b7986fc41001e
serviceEndDate: '2016-11-30'
serviceStartDate: '2016-11-01'
skuName: SKU-2
taxItems:
- amount: 0.06
id: 402890555b797b57015b7986fc4c001f
jurisdiction: CALIFORNIA
locationCode: '06'
taxCode: null
taxCodeDescription: This is tax code description!
taxDate: '2016-11-30'
taxExemptAmount: 0
taxName: STATE TAX2
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
unitOfMeasure: Test_UOM
reasonCode: Correcting invoice error
PUTBulkProductChargeDefinitionRequest:
properties:
billingPeriod:
description: 'The override value of the billingPeriod for the product charge
definition.
'
type: string
billingTiming:
description: 'The override value of the billingTiming for the product charge
definition.
'
enum:
- IN_ADVANCE
- IN_ARREARS
type: string
chargeModel:
description: 'Determines how to calculate charges. Charge models must be individually
activated in Zuora Billing administration.
'
enum:
- DiscountFixedAmount
- DiscountPercentage
- FlatFee
- PerUnit
- Tiered
- Volume
- Delivery
type: string
defaultQuantity:
description: "The default quantity. \n\nThis field is applicable only for\
\ one-time and recurring charges.\n"
type: number
excludeItemBillingFromRevenueAccounting:
description: "Indicates whether to exclude the related invoice items, invoice\
\ item adjustments, credit memo items, and debit memo items from revenue\
\ accounting.\n\n**Note**: This field is only available if you have the\
\ Order to Revenue or Billing - Revenue Integration feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
description: |
Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.
**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.
type: boolean
isAllocationEligible:
description: |
Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `false`.
**Values**: `true`, `false`
**Note**: This field is available only if you have the Additional Revenue Fields property enabled.
type: boolean
isUnbilled:
description: "Specifies how to perform the accounting during revenue recognition.\
\ The default value is `false`.\n\n**Values**: `true`, `false`\n\n**Note**:\
\ This field is available only if you have the Additional Revenue Fields\
\ property enabled. \n"
type: boolean
listPriceBase:
description: "The list price base. \n\nThis field is applicable only for recurring\
\ charges.\n\n**Note**: The `Per_Year` enum value is available only if you\
\ have the Annual List Price feature enabled.\n"
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
type: string
prices:
description: 'Container for the new prices to override the existing prices
of the product charge definition.
'
items:
$ref: '#/definitions/POSTProductChargeDefinitionPricing'
type: array
productCategory:
description: "This field is used to maintain the product category for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
productChargeDefinitionKey:
description: 'The unique number or ID of the product charge definition to
be updated.
'
type: string
productClass:
description: "This field is used to maintain the product class for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
productFamily:
description: "This field is used to maintain the product family for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled.\n"
type: string
productLine:
description: "This field is used to maintain the product line for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
specificBillingPeriod:
description: 'The override value of the specificBillingPeriod for the product
charge definition.
'
type: number
specificListPriceBase:
description: "The number of months for the list price base of the charge definition.\
\ \nThe field is `null` if the `listPriceBase` field is not set to `Per_Specific_Months`.\n"
format: int32
maximum: 200
minimum: 1
type: integer
taxCode:
description: |
Specifies the tax code for taxation rules. This field is equired when the `Taxable` field is set to `True`.
**Note**: This value affects the tax calculation of the charge.
maxLength: 64
type: string
taxMode:
description: |
Determines how to define taxation for the charge. This field is equired when the `Taxable` field is set to `True`.
**Note**: This value affects the tax calculation of the charge.
enum:
- TaxExclusive
- TaxInclusive
type: string
taxable:
description: |
Determines whether the charge definition is taxable. When this field is set to `True`, the `TaxMode` and `TaxCode` fields are required.
**Character limit**: 5
**Values**: `True`, `False`
**Note**: This value affects the tax calculation of the charge.
type: boolean
term:
description: "The number of periods of a termed subscription that is eligible\
\ for this charge definition. This field is applicable when the `termType`\
\ field is set to `TERMED`, \nand is to be used together with the `termPeriodType`\
\ field.\n"
type: number
termPeriodType:
description: 'Specifies the period type for the subscription term that is
eligible for this charge definition.
'
enum:
- Month
- Year
- Day
- Week
type: string
termType:
description: 'The type of the subscription that is eligible for this charge
definition.
'
enum:
- TERMED
- EVERGREEN
type: string
uom:
description: |
Describes the unit of measure (UOM) configured in **Settings > Billing**.
**Values**: `Each`, `License`, `Seat`, or `null`
type: string
type: object
PUTCancelPaymentScheduleRequest:
properties:
cancelDate:
description: 'Specifies when the payment schedule will be canceled.
'
format: date
type: string
required:
- cancelDate
type: object
PUTCatalogGroup:
allOf:
- properties:
add:
description: 'The list of product rate plans to be added to the catalog
group.
'
items:
$ref: '#/definitions/POSTorPUTCatalogGroupAddProductRatePlan'
title: add
type: array
description:
description: 'The description of the catalog group.
'
type: string
name:
description: 'The unique name of the catalog group.
'
type: string
remove:
description: 'The list of product rate plans to be removed from the catalog
group.
'
items:
$ref: '#/definitions/PUTCatalogGroupRemoveProductRatePlan'
type: array
type: object
example:
add:
- grade: 3
id: 4028e5ab7f1b600c017f1b787d5d01cf
- grade: 2
id: 4028e5ab7f1b600c017f1b787d5d01ac
description: description
name: name
remove:
- id: 4028e5ab7f1b600c017f1b787d5d01cf
- id: 4028e5ab7f1b600c017f1b787d5d01ac
PUTCatalogGroupRemoveProductRatePlan:
allOf:
- properties:
id:
description: 'The unique ID of the product rate plan to be removed from
the catalog group.
'
type: string
type: object
example:
id: 4028e5ab7f1b600c017f1b787d5d01cf
title: remove
PUTContactType:
allOf:
- properties:
address1:
description: 'The first line of the contact''s address, which is often a
street address or business name.
'
maxLength: 255
type: string
address2:
description: 'The second line of the contact''s address.
'
maxLength: 255
type: string
city:
description: 'The city of the contact''s address.
'
maxLength: 40
type: string
contactDescription:
description: 'A description for the contact.
'
maxLength: 100
type: string
country:
description: 'The country of the contact''s address.
'
maxLength: 64
type: string
county:
description: 'The county. May optionally be used by Zuora Tax to calculate
county tax.
'
maxLength: 32
type: string
fax:
description: 'The contact''s fax number.
'
maxLength: 40
type: string
firstName:
description: 'The contact''s first name.
'
maxLength: 100
type: string
homePhone:
description: 'The contact''s home phone number.
'
maxLength: 40
type: string
lastName:
description: 'The contact''s last name.
'
maxLength: 100
type: string
mobilePhone:
description: 'The mobile phone number of the contact.
'
maxLength: 100
type: string
nickname:
description: 'A nickname for the contact.
'
maxLength: 100
type: string
otherPhone:
description: 'An additional phone number for the contact.
'
maxLength: 40
type: string
otherPhoneType:
description: 'The type of the additional phone number.
'
enum:
- Work
- Mobile
- Home
- Other
type: string
personalEmail:
description: 'The contact''s personal email address.
'
maxLength: 74
type: string
state:
description: 'The state or province of the contact''s address.
'
maxLength: 40
type: string
taxRegion:
description: 'If using Zuora Tax, a region string as optionally defined
in your tax rules. Not required.
'
maxLength: 32
type: string
workEmail:
description: 'The contact''s business email address.
'
maxLength: 74
type: string
workPhone:
description: 'The contact''s business phone number.
'
maxLength: 40
type: string
zipCode:
description: 'The zip code for the contact''s address.
'
maxLength: 20
type: string
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
example:
address1: new Address
city: Mumbai
contactDescription: This is the new Description
mobilePhone: 123213
zipCode: 123134
PUTCreditMemoItemType:
allOf:
- properties:
amount:
description: 'The amount of the credit memo item. For tax-inclusive credit
memo items, the amount indicates the credit memo item amount including
tax. For tax-exclusive credit memo items, the amount indicates the credit
memo item amount excluding tax
'
format: double
type: number
comment:
description: 'Comments about the credit memo item.
'
type: string
excludeItemBillingFromRevenueAccounting:
default: false
description: "The flag to exclude the credit memo item from revenue accounting.\n\
\n**Note**: This field is only available if you have the Billing - Revenue\
\ Integration feature enabled. \n"
type: boolean
financeInformation:
description: 'Container for the finance information related to the credit
memo item.
'
properties:
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as
Monthly Recurring Liability.
'
maxLength: 100
minLength: 0
type: string
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as
Monthly Recurring Charges or Overage Charges.
'
maxLength: 100
minLength: 0
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the
revenue schedule.
'
maxLength: 100
minLength: 0
type: string
type: object
id:
description: 'The ID of the credit memo item.
'
maxLength: 32
minLength: 32
type: string
quantity:
description: 'The number of units for the credit memo item.
'
format: double
type: number
serviceEndDate:
description: 'The service end date of the credit memo item.
'
format: date
type: string
serviceStartDate:
description: 'The service start date of the credit memo item.
'
format: date
type: string
skuName:
description: 'The name of the SKU.
'
type: string
taxItems:
description: 'Container for credit memo taxation items.
'
items:
$ref: '#/definitions/PutCreditMemoTaxItemType'
type: array
unitOfMeasure:
description: 'The definable unit that you measure when determining charges.
'
type: string
required:
- id
type: object
- $ref: '#/definitions/CreditMemoItemObjectCustomFields'
title: items
PUTCreditMemoType:
allOf:
- properties:
autoApplyUponPosting:
description: 'Whether the credit memo automatically applies to the invoice
upon posting.
'
type: boolean
comment:
description: 'Comments about the credit memo.
'
maxLength: 255
minLength: 0
type: string
effectiveDate:
description: 'The date when the credit memo takes effect.
'
format: date
type: string
excludeFromAutoApplyRules:
description: 'Whether the credit memo is excluded from the rule of automatically
applying unapplied credit memos to invoices and debit memos during payment
runs. If you set this field to `true`, a payment run does not pick up
this credit memo or apply it to other invoices or debit memos.
'
type: boolean
items:
description: 'Container for credit memo items.
'
items:
$ref: '#/definitions/PUTCreditMemoItemType'
type: array
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty. If you do not specify a value,
Zuora uses the default reason code.
'
type: string
transferredToAccounting:
description: "Whether the credit memo is transferred to an external accounting\
\ system. Use this field for integration with accounting systems, such\
\ as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
type: object
- $ref: '#/definitions/CreditMemoObjectNSFields'
- $ref: '#/definitions/CreditMemoObjectCustomFields'
example:
autoApplyUponPosting: false
comment: new comment
effectiveDate: '2017-04-17'
excludeFromAutoApplyRules: false
items:
- amount: 1
comment: This is comment!
id: 402890555b797b57015b7986fc1a001c
quantity: 1
serviceEndDate: '2016-11-30'
serviceStartDate: '2016-11-01'
skuName: SKU-1
taxItems:
- amount: 0.03
id: 402890555b797b57015b7986fc3c001d
jurisdiction: CALIFORNIA
locationCode: '06'
taxCode: null
taxCodeDescription: This is tax code description!
taxDate: '2016-11-30'
taxExemptAmount: 0.0
taxName: STATE TAX1
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
unitOfMeasure: Test_UOM
- amount: 2
comment: This is comment!
id: 402890555b797b57015b7986fc41001e
serviceEndDate: '2016-11-30'
serviceStartDate: '2016-11-01'
skuName: SKU-2
taxItems:
- amount: 0.06
id: 402890555b797b57015b7986fc4c001f
jurisdiction: CALIFORNIA
locationCode: '06'
taxCode: null
taxCodeDescription: This is tax code description!
taxDate: '2016-11-30'
taxExemptAmount: 0.0
taxName: STATE TAX2
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
unitOfMeasure: Test_UOM
reasonCode: Correcting invoice error
PUTCreditMemoWriteOff:
allOf:
- properties:
comment:
description: 'Comments about the debit memo.
'
type: string
memoDate:
description: 'The creation date of the debit memo and the effective date
of the credit memo. Credit memos are applied to the corresponding debit
memos on `memoDate`. By default, `memoDate` is set to the current date.
'
format: date
type: string
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty. The default value is `Write-off`.
'
type: string
type: object
- $ref: '#/definitions/DebitMemoObjectCustomFieldsCMWriteOff'
example:
DMCustomField__c: Custom fields
comment: Comments about the debit memo.
memoDate: '2022-05-05'
PUTCreditMemoWriteOffResponseType:
properties:
debitMemo:
description: 'Container for the credit memo that is automatically created.
'
properties:
id:
description: 'The unique ID of the created debit memo.
'
type: string
type: object
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
PUTCreditMemosWithIdType:
allOf:
- properties:
id:
description: 'The ID of the credit memo.
'
type: string
type: object
- $ref: '#/definitions/PUTCreditMemoType'
title: memos
PUTDebitMemoItemType:
allOf:
- properties:
amount:
description: 'The amount of the debit memo item. For tax-inclusive debit
memo items, the amount indicates the debit memo item amount including
tax. For tax-exclusive debit memo items, the amount indicates the debit
memo item amount excluding tax.
'
format: double
type: number
comment:
description: 'Comments about the debit memo item.
'
type: string
excludeItemBillingFromRevenueAccounting:
default: false
description: "The flag to exclude the debit memo item from revenue accounting.\n\
\n**Note**: This field is only available if you have the Billing - Revenue\
\ Integration feature enabled. \n"
type: boolean
financeInformation:
description: 'Container for the finance information related to the debit
memo item.
'
properties:
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as
Monthly Recurring Liability.
'
maxLength: 100
minLength: 0
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such as
Monthly Recurring Charges or Overage Charges.
'
maxLength: 100
minLength: 0
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the
revenue schedule.
'
maxLength: 100
minLength: 0
type: string
type: object
id:
description: 'The ID of the debit memo item.
'
maxLength: 32
minLength: 32
type: string
quantity:
description: 'The number of units for the debit memo item.
'
format: double
type: number
serviceEndDate:
description: 'The service end date of the debit memo item.
'
format: date
type: string
serviceStartDate:
description: "The service start date of the debit memo item. \n"
format: date
type: string
skuName:
description: 'The name of the SKU.
'
type: string
taxItems:
description: 'Container for debit memo taxation items.
'
items:
$ref: '#/definitions/PutDebitMemoTaxItemType'
type: array
unitOfMeasure:
description: 'The definable unit that you measure when determining charges.
'
type: string
required:
- id
type: object
- $ref: '#/definitions/DebitMemoItemObjectCustomFields'
title: items
PUTDebitMemoType:
allOf:
- properties:
autoPay:
description: "Whether debit memos are automatically picked up for processing\
\ in the corresponding payment run. \n\nBy default, debit memos are automatically\
\ picked up for processing in the corresponding payment run.\n"
type: boolean
comment:
description: 'Comments about the debit memo.
'
maxLength: 255
minLength: 0
type: string
dueDate:
description: 'The date by which the payment for the debit memo is due, in
`yyyy-mm-dd` format.
'
format: date
type: string
effectiveDate:
description: 'The date when the debit memo takes effect.
'
format: date
type: string
items:
description: 'Container for debit memo items.
'
items:
$ref: '#/definitions/PUTDebitMemoItemType'
type: array
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty. If you do not specify a value,
Zuora uses the default reason code
'
type: string
transferredToAccounting:
description: "Whether the debit memo is transferred to an external accounting\
\ system. Use this field for integration with accounting systems, such\
\ as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
type: object
- $ref: '#/definitions/DebitMemoObjectNSFields'
- $ref: '#/definitions/DebitMemoObjectCustomFields'
example:
autoPay: true
comment: new comment
dueDate: '2017-05-20'
effectiveDate: '2017-04-17'
items:
- amount: 1
comment: This is comment!
id: 402890555b797b57015b7986fc1a001c
quantity: 1
serviceEndDate: '2016-11-30'
serviceStartDate: '2016-11-01'
skuName: SKU-1
taxItems:
- amount: 0.03
id: 402890555b797b57015b7986fc3c001d
jurisdiction: CALIFORNIA
locationCode: '06'
taxCode: null
taxCodeDescription: This is tax code description!
taxDate: '2016-11-30'
taxExemptAmount: 0.0
taxName: STATE TAX1
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
unitOfMeasure: Test_UOM
- amount: 2
comment: This is comment!
id: 402890555b797b57015b7986fc41001e
serviceEndDate: '2016-11-30'
serviceStartDate: '2016-11-01'
skuName: SKU-2
taxItems:
- amount: 0.06
id: 402890555b797b57015b7986fc4c001f
jurisdiction: CALIFORNIA
locationCode: '06'
taxCode: null
taxCodeDescription: This is tax code description!
taxDate: '2016-11-30'
taxExemptAmount: 0.0
taxName: STATE TAX2
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
unitOfMeasure: Test_UOM
reasonCode: Correcting invoice error
PUTDebitMemoWithIdType:
allOf:
- properties:
id:
description: 'The ID of the debit memo.
'
type: string
type: object
- $ref: '#/definitions/PUTDebitMemoType'
PUTDeleteSubscriptionResponseType:
properties:
success:
description: Returns `true` if the request is processed successfully.
type: boolean
type: object
PUTJournalEntryItemType:
allOf:
- properties:
accountingCodeName:
description: |
Name of the accounting code.
If the Journal Entry Item has a blank accounting code, enter the empty string.
type: string
accountingCodeType:
description: "Accounting code type.\n\nNote that `On-Account Receivable`\
\ is only available if you enable the Invoice Settlement feature. \n"
enum:
- AccountsReceivable
- On-Account Receivable
- Cash
- OtherAssets
- CustomerCashOnAccount
- DeferredRevenue
- SalesTaxPayable
- OtherLiabilities
- SalesRevenue
- SalesDiscounts
- OtherRevenue
- OtherEquity
- BadDebt
- OtherExpenses
type: string
type:
description: 'Type of journal entry item. '
enum:
- Credit
- Debit
type: string
required:
- accountingCodeName
- type
type: object
- $ref: '#/definitions/JournalEntryItemObjectCustomFields'
title: journalEntryItems
PUTOrderActionTriggerDatesRequestType:
example:
subscriptions:
- orderActions:
- charges:
- chargeNumber: C-0000001
specificTriggerDate: '2016-09-01'
sequence: 0
triggerDates:
- name: CustomerAcceptance
triggerDate: '2016-09-01'
subscriptionNumber: A-S00000009
properties:
subscriptions:
items:
properties:
orderActions:
items:
properties:
charges:
items:
properties:
chargeNumber:
description: Charge number of the charge which needs the
triggering date to be provided. The charge's `triggerEvent`
must have been set as `SpecificDate`.
type: string
specificTriggerDate:
description: Date in YYYY-MM-DD format. The specific trigger
date you are to set for the charge.
format: date
type: string
type: object
type: array
sequence:
description: "Identifies which order action will have its triggering\
\ dates updated. \n"
type: integer
triggerDates:
description: Container for the service activation and customer
acceptance dates of the order action.
items:
properties:
name:
description: Name of the trigger date of the order action.
enum:
- ServiceActivation
- CustomerAcceptance
type: string
triggerDate:
description: 'Trigger date in YYYY-MM-DD format. The date
you are to set as the service activation date or the customer
acceptance date.
'
format: date
type: string
type: object
type: array
required:
- sequence
type: object
type: array
subscriptionNumber:
description: 'Subscription number of a subscription in the `Pending`
order for which you are to update the triggering dates. For example,
A-S00000001.
'
maxLength: 100
type: string
required:
- subscriptionNumber
type: object
type: array
type: object
PUTOrderActionsRequestType:
example:
changeReason: string
customFields:
PICKLIST_CF__c: option_1
properties:
orderAction:
$ref: '#/definitions/OrderActionPut'
type: object
PUTOrderLineItemRequestType:
allOf:
- $ref: '#/definitions/PutOrderLineItemUpdateType'
PUTOrderPatchRequestType:
example:
customFields:
order_cf__c: order custom fields
subscriptions:
- orderActions:
- customFields:
order_action_cf__c: Order action custom fields
order_action_undex__c: Order action custom fields
sequence: 0
subscriptionNumber: S-00005
properties:
customFields:
$ref: '#/definitions/OrderObjectCustomFields'
subscriptions:
items:
properties:
orderActions:
items:
properties:
customFields:
$ref: '#/definitions/OrderActionObjectCustomFields'
orderActionId:
description: 'The Id of the order action in the order. You can
provide either the `sequence` or the `orderActionId` field to
specify which order action to update. You cannot use then both
at the same time.
'
type: string
sequence:
description: 'The sequence number of the order action in the order.
You can provide either the `sequence` or the `orderActionId`
field to specify which order action to update. You cannot use
then both at the same time.
'
type: integer
type: object
type: array
subscriptionNumber:
type: string
type: object
type: array
type: object
PUTOrderRequestType:
example:
description: This is a description for the Order.
existingAccountNumber: A00000001
orderDate: '2017-01-01'
orderLineItems:
- billTo: 2c9081a03c6d7b51013c6d7e2dfc09fa
billingTrigger: BillImmediately
chargeAmountPerUnit: 50
customFields:
someField__c: some string
deferredRevenueAccountingCode: Unearned Revenues
description: With Dual Stereo Microphones, HD 1080p, Black
itemName: webcam
itemType: Product
listPricePerUnit: 59
productCode: C9201
purchaseOrderNumber: 960-000764
quantity: 2
recognizedRevenueAccountingCode: Earned Revenues
revenueRecognitionRule: recognized upon invoice
soldTo: 4028fc828244a0ac018244dfc9a90bee
taxCode: '8018'
taxMode: TaxInclusive
transactionEndDate: '2021-02-01'
transactionStartDate: '2021-02-01'
orderNumber: OM-00001
processingOptions:
applyCreditBalance: true
billingOptions:
creditMemoReasonCode: Unsatisfactory service
targetDate: '2017-08-01'
collectPayment: true
electronicPaymentOptions:
paymentGatewayId: 2c9890186cb7c157016cd18c72370999
paymentMethodId: 2c9890186cb7c157016cd18c6f690999
runBilling: true
subscriptions:
- orderActions:
- createSubscription:
billToContactId: efbff07e6290dfb8016291003bd00dda
invoiceTemplateId: 2c9081a03c638994013c63978baf002b
paymentTerm: Net 30
sequenceSetId: 6abcc30846de11e990900242ac1f0003
soldToContactId: efbff07e6290dfb8016291003bd00ddb
subscribeToRatePlans:
- productRatePlanId: efbff07e6290dfb8016291003bd00dda
subscriptionNumber: SM-00001
terms:
autoRenew: true
initialTerm:
period: 12
periodType: Month
startDate: '2017-01-01'
termType: TERMED
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerms:
- period: 12
periodType: Month
triggerDates:
- name: ContractEffective
triggerDate: '2017-01-01'
type: CreateSubscription
- orderActions:
- createSubscription:
subscribeToRatePlans:
- productRatePlanId: efbff07e6290dfb8016291003bd00dda
subscriptionNumber: SM-00002
terms:
autoRenew: true
initialTerm:
period: 12
periodType: Month
startDate: '2017-02-01'
termType: TERMED
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerms:
- period: 12
periodType: Month
triggerDates:
- name: ServiceActivation
triggerDate: '2017-02-01'
type: CreateSubscription
- orderActions:
- createSubscription:
subscribeToRatePlans:
- productRatePlanId: efbff07e6290dfb80162910024c80dd5
subscriptionNumber: SM-00003
terms:
autoRenew: true
initialTerm:
period: 12
periodType: Month
startDate: '2017-01-01'
termType: TERMED
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerms:
- period: 12
periodType: Month
triggerDates:
- name: ServiceActivation
triggerDate: '2017-03-01'
- name: CustomerAcceptance
triggerDate: '2017-04-01'
type: CreateSubscription
- orderActions:
- createSubscription:
subscribeToRatePlans:
- chargeOverrides:
- productRatePlanChargeId: efbff07e6290dfb80162910024d80dd7
startDate:
triggerEvent: SpecificDate
productRatePlanId: efbff07e6290dfb80162910024c80dd5
uniqueToken: Sugar-free Monthly
subscriptionNumber: SM-00004
terms:
autoRenew: true
initialTerm:
period: 12
periodType: Month
startDate: '2017-01-01'
termType: TERMED
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerms:
- period: 12
periodType: Month
triggerDates:
- name: ServiceActivation
triggerDate: '2017-03-01'
- name: CustomerAcceptance
triggerDate: '2017-04-01'
type: CreateSubscription
- orderActions:
- suspend:
suspendPeriods: 2
suspendPeriodsType: Week
suspendPolicy: FixedPeriodsFromToday
triggerDates:
- name: ContractEffective
triggerDate: '2018-01-01'
- name: ServiceActivation
triggerDate: '2018-01-01'
- name: CustomerAcceptance
triggerDate: '2018-01-01'
type: Suspend
subscriptionNumber: SM-00005
- orderActions:
- resume:
extendsTerm: true
resumePolicy: SpecificDate
resumeSpecificDate: '2018-10-01'
triggerDates:
- name: ContractEffective
triggerDate: '2018-01-01'
- name: ServiceActivation
triggerDate: '2018-01-01'
- name: CustomerAcceptance
triggerDate: '2018-01-01'
type: Resume
subscriptionNumber: SM-00006
properties:
category:
default: NewSales
description: 'Category of the order to indicate a product sale or return.
Default value is `NewSales`.
'
enum:
- NewSales
- Return
type: string
customFields:
$ref: '#/definitions/OrderObjectCustomFields'
description:
description: A description of the order.
maxLength: 500
type: string
existingAccountNumber:
description: |
The account number that this order will be created under.
Note that this actually specifies the invoice owner account of the subscriptions included in this order.
maxLength: 70
type: string
externallyManagedBy:
description: 'An enum field on the Subscription object to indicate the name
of a third-party store. This field is used to represent subscriptions created
through third-party stores.
'
enum:
- Amazon
- Apple
- Google
- Roku
type: string
newAccount:
$ref: '#/definitions/Account'
orderDate:
description: The date when the order is signed. All the order actions under
this order will use this order date as the contract effective date if the
contract effective date field is skipped or its value is left as null.
format: date
type: string
orderLineItems:
description: "[Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ are non subscription based items created by an Order, representing transactional\
\ charges such as one-time fees, physical goods, or professional service\
\ charges that are not sold as subscription services. \n\nWith the Order\
\ Line Items feature enabled, you can now launch non-subscription and unified\
\ monetization business models in Zuora, in addition to subscription business\
\ models.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature is now generally available to all Zuora customers. You need to\
\ enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders)\
\ feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items)\
\ feature. As of Zuora Billing Release 313 (November 2021), new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items)\
\ feature enabled by default. \n"
items:
$ref: '#/definitions/CreateOrderOrderLineItem'
type: array
orderNumber:
description: "The order number of the new order. If not provided, system will\
\ auto-generate a number for this order. \n**Note:** Make sure the order\
\ number does not contain a slash. \n"
maxLength: 100
type: string
processingOptions:
$ref: '#/definitions/processingOptionsOrders'
reasonCode:
description: 'Values of reason code configured in **Billing Settings** > **Configure
Reason Codes** through Zuora UI. Indicates the reason when a return order
line item occurs.
'
maxLength: 255
type: string
schedulingOptions:
description: "Information of scheduled order. \n\n**Note**: The Scheduled Orders feature is in the Early Adopter\
\ phase. We are actively soliciting feedback from a small set of early adopters\
\ before releasing it as generally available. To manage and access features\
\ from the self-service interface, see Enable billing features by yourself .\n"
properties:
scheduledDate:
description: 'The date for the order scheduled.
'
format: date
type: string
scheduledDatePolicy:
description: Date policy of the scheduled order.
enum:
- SpecificDate
type: string
type: object
status:
description: |
The status of the order. The default value is `Completed`. The following values are supported:
- `Draft`: The order is in draft status.
- `Pending`: The order is in pending status.
- `Completed`: The order is in completed status.
- `Scheduled`: The order is in scheduled status and it is only valid if the Scheduled Orders feature is enabled.
- `Executing`: The scheduled order is executed by a scheduler and it is only valid if the Scheduled Orders feature is enabled.
- `Failed`: The scheduled order has failed.
**Note**: The Scheduled Orders feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access features from the self-service interface, see Enable billing features by yourself .
enum:
- Draft
- Pending
- Completed
- Scheduled
type: string
subscriptions:
description: Each item includes a set of order actions, which will be applied
to the same base subscription.
items:
properties:
customFields:
$ref: '#/definitions/SubscriptionObjectCustomFields'
orderActions:
description: The actions to be applied to the subscription. Order actions
will be stored with the sequence when it was provided in the request.
items:
$ref: '#/definitions/CreateOrderOrderAction'
type: array
quote:
$ref: '#/definitions/QuoteObjectFields'
ramp:
$ref: '#/definitions/RampRequest'
subscriptionNumber:
description: 'Leave this empty to represent new subscription creation.
Specify a subscription number to update an existing subscription.
'
type: string
type: object
type: array
required:
- orderDate
type: object
PUTOrderTriggerDatesResponseType:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
accountNumber:
description: The account number for the order.
type: string
orderNumber:
description: The order number of the order updated.
type: string
status:
description: Status of the order.
enum:
- Completed
- Pending
type: string
subscriptions:
description: The subscriptions updated.
items:
properties:
status:
description: Status of the subscription. `Pending Activation` and
`Pending Acceptance` are only applicable for an order that contains
a `CreateSubscription` order action.
enum:
- Active
- Pending Activation
- Pending Acceptance
type: string
subscriptionNumber:
description: Subscription number of the subscription updated.
type: string
type: object
type: array
type: object
PUTPMAccountHolderInfo:
description: 'The account holder information. This field is not supported in updating
Credit Card Reference Transaction payment methods.
'
properties:
addressLine1:
description: |
The first line of the address for the account holder.
This field is required for SEPA Direct Debit payment methods on Stripe v2 for [certain countries](https://stripe.com/docs/payments/sepa-debit/set-up-payment?platform=web#web-submit-payment-method).
type: string
addressLine2:
description: "The second line of the address for the account holder. \n"
type: string
city:
description: 'The city where the account holder stays.
'
type: string
country:
description: |
The country where the account holder stays.
This field is required for SEPA payment methods on Stripe v2 for [certain countries](https://stripe.com/docs/payments/sepa-debit/set-up-payment?platform=web#web-submit-payment-method).
type: string
email:
description: 'The email address of the account holder.
'
type: string
phone:
description: 'The phone number of the account holder.
'
type: string
state:
description: 'The state where the account holder stays.
'
type: string
zipCode:
description: 'The zip code for the address of the account holder.
'
type: string
title: accountHolderInfo
type: object
PUTPMCreditCardInfo:
properties:
expirationMonth:
description: "One or two digits expiration month (1-12).\n \n"
type: integer
expirationYear:
description: 'Four-digit expiration year.
'
type: integer
securityCode:
description: "Optional. It is the CVV or CVV2 security code specific for the\
\ credit card or debit card. To ensure PCI compliance, this value is not\
\ stored and cannot be queried. \n\nIf securityCode code is not passed in\
\ the request payload, this operation only updates related fields in the\
\ payload. It does not validate the payment method through the gateway.\n\
\nIf securityCode is passed in the request payload, this operation retrieves\
\ the credit card information from payload and validates them through the\
\ gateway.\n"
type: string
type: object
PUTPaymentMethodObjectCustomFields:
additionalProperties:
description: |
Custom fields of the payment method. The name of each custom field has the form *customField*__c
. Custom field names are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields) for more information.
Custom fields are not supported in updating Credit Card Reference Transaction payment methods.
description: 'Container for custom fields of a payment method object.
'
title: paymentMethodFieldsCustom
type: object
PUTPaymentMethodRequest:
allOf:
- properties:
accountHolderInfo:
$ref: '#/definitions/PUTPMAccountHolderInfo'
accountKey:
description: |
The ID of the customer account associated with this payment method, such as `2x92c0f859b0480f0159d3a4a6ee5bb6`.
**Note:** You can use this field to associate an orphan payment method with a customer account. If a payment method is already associated with a customer account, you cannot change the associated payment method through this operation. You cannot remove the previous account ID and leave this field empty, either.
type: string
authGateway:
description: "Specifies the ID of the payment gateway that Zuora will use\
\ to authorize the payments that are made with the payment method. \n\n\
This field is not supported in updating Credit Card Reference Transaction\
\ payment methods.\n"
type: string
currencyCode:
description: 'The currency used for payment method authorization.
'
type: string
gatewayOptions:
description: |
The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).
Zuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.
This field is not supported in updating Credit Card Reference Transaction payment methods.
properties:
key:
description: 'The name of a gateway-specific parameter.
'
type: string
value:
description: 'The value of the gateway-specific parameter.
'
type: string
type: object
ipAddress:
description: "The IPv4 or IPv6 information of the user when the payment\
\ method is created or updated. Some gateways use this field for fraud\
\ prevention. If this field is passed to Zuora, Zuora directly passes\
\ it to gateways. \n\nIf the IP address length is beyond 45 characters,\
\ a validation error occurs.\n\nFor validating SEPA payment methods on\
\ Stripe v2, this field is required.\n"
type: string
mandateInfo:
description: 'The mandate information for the Credit Card, Credit Card Reference
Transaction, ACH, or Bank Transfer payment method.
'
properties:
mandateId:
description: 'The mandate ID.
'
maxLength: 36
type: string
mandateReason:
description: 'The reason of the mandate from the gateway side.
'
maxLength: 64
type: string
mandateStatus:
description: 'The status of the mandate from the gateway side.
'
maxLength: 64
type: string
type: object
type: object
- $ref: '#/definitions/PUTPMCreditCardInfo'
- $ref: '#/definitions/PUTPaymentMethodObjectCustomFields'
example:
accountHolderInfo:
addressLine1: address 1
phone: '1333333333'
expirationMonth: 8
expirationYear: 2024
securityCode: '123'
PUTPaymentMethodResponse:
properties:
id:
description: 'ID of the updated payment method.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
PUTPaymentRunRequest:
example:
autoApplyCreditMemo: 'true'
autoApplyUnappliedPayment: 'true'
consolidatedPayment: 'true'
processPaymentWithClosedPM: 'true'
targetDate: '2017-10-12'
properties:
accountId:
description: |
The ID of the customer account associated with the payment run.
This field conflicts with each of the `batch`, `billCycleDay`, `currency`, `paymentGatewayId`, and `billingRunId` fields. If there are such conflicts, an error occurs and an error message is returned.
format: uuid
type: string
applyCreditBalance:
description: |
**Note:** This field is only available if you have the Credit Balance feature enabled and the Invoice Settlement feature disabled.
Whether to apply credit balances in the payment run. This field is only available when you have Invoice Settlement feature disabled.
type: boolean
autoApplyCreditMemo:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Whether to automatically apply a posted credit memo to one or more receivables in the payment run.
type: boolean
autoApplyUnappliedPayment:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
Whether to automatically apply unapplied payments to one or more receivables in the payment run.
type: boolean
batch:
description: "The alias name given to a batch. The batch name is a string\
\ of 50 characters or less.\n\nThis field conflicts with the `accountId`\
\ field. If they are both specified in the request body, an error occurs\
\ and an error message is returned. \n\n**Note**: By default, you have 50\
\ configurable account batches. To increase the limit to 200 batches, you\
\ must have the Performance Booster Elite package.\n"
type: string
billCycleDay:
description: |
The billing cycle day (BCD), the day of the month when a bill run generates invoices for the account. The value must be equal to or less then 31, and 31 is mean the EOM.
This field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.
type: string
billingRunId:
description: |
The ID of a bill run.
This field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.
format: uuid
type: string
collectPayment:
description: "Whether to process electronic payments during the execution\
\ of payment runs. \n\nIf the Payment user permission \"Process Electronic\
\ Payment\" is disabled, this field will be ignored.\n"
type: boolean
consolidatedPayment:
description: "**Note:** The **Process Electronic Payment** permission also\
\ needs to be allowed for a Manage Payment Runs role to work. See [Payments\
\ Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/e_Payments_Roles)\
\ for more information. \n\nWhether to process a single payment for all\
\ receivables that are due on an account.\n"
type: boolean
currency:
description: |
A currency defined in the web-based UI administrative settings.
This field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.
type: string
organizationLabels:
description: "The organizations that the run is created for. \n\nFor each\
\ item in the array, either the `organizationId` or the `organizationName`\
\ field is required.\n\nThis field is only required when you have already\
\ turned on Multi-Org feature.\n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
paymentGatewayId:
description: |
The ID of the gateway instance that processes the payment.
This field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.
format: uuid
type: string
processPaymentWithClosedPM:
description: "**Note:** The **Process Electronic Payment** permission also\
\ needs to be allowed for a Manage Payment Runs role to work. See [Payments\
\ Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/e_Payments_Roles)\
\ for more information. \n\nWhether to process payments even if the default\
\ payment method is closed.\n"
type: boolean
runDate:
description: 'The date and time when the scheduled payment run is to be executed,
in `yyyy-mm-dd hh:mm:ss` format. The backend will ignore mintues and seconds
in the field value. For example, if you specify `2017-03-01 11:30:37` for
this value, this payment run will be run at 2017-03-01 11:00:00.
'
format: date-time
type: string
targetDate:
description: 'The target date used to determine which receivables to be paid
in the payment run. The payments are collected for all receivables with
the due date no later than the target date.
'
format: date
type: string
type: object
PUTPaymentScheduleItemRequest:
allOf:
- properties:
amount:
description: 'The amount of the payment.
'
format: decimal
type: number
currency:
description: 'The currency of the payment.
'
type: string
description:
description: 'The description of the payment schedule item.
'
type: string
linkPayments:
description: 'Container for payments linked to the payment schedule item.
'
items:
$ref: '#/definitions/LinkedPaymentID'
type: array
paymentGatewayId:
description: 'ID of the payment gateway of the payment schedule item.
'
type: string
paymentId:
description: |
ID of the payment to be linked to the payment schedule item.
**Note**: This feild is version controlled. To enable this field, you must set `zuora-version` to equal or smaller than `336.0`.
type: string
paymentMethodId:
description: 'ID of the payment method of the payment schedule item.
'
type: string
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
Here is an example:
```
"paymentOption": [
{
"type": "GatewayOptions",
"detail": {
"SecCode":"WEB"
}
}
]
```
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
runHour:
description: "At which hour of the day in the tenant\u2019s timezone this\
\ payment will be collected. If the payment `runHour` and `scheduledDate`\
\ are backdated, the system will collect the payment when the next runHour\
\ occurs.\n"
type: integer
scheduledDate:
description: 'The scheduled date when the payment is processed.
'
format: date
type: string
unlinkPayments:
description: 'Container for payments to be unlinked from the payment schedule
item.
'
items:
$ref: '#/definitions/LinkedPaymentID'
type: array
type: object
- $ref: '#/definitions/PaymentScheduleItemCustomFields'
PUTPaymentScheduleItemResponse:
allOf:
- properties:
accountId:
description: 'ID of the customer account that owns the payment schedule
item, for example `402880e741112b310149b7343ef81234`.
'
type: string
amount:
description: 'The amount of the payment schedule item.
'
format: decimal
type: number
balance:
description: "The remaining balance of payment schedule item. \n"
format: decimal
type: number
billingDocument:
properties:
id:
description: 'ID of the billing document. for example, `2c9890306fb2121e016fb21a6b550041`.
'
type: string
number:
description: 'The number of the billing docuemnt, for example, `INV00002345`.
'
type: string
type:
description: 'Indicates whether the associated billing document is a
debit memo or a invoice.
'
type: string
type: object
cancellationReason:
description: "The reason for the cancellation of payment schedule item.\
\ \n"
type: string
createdById:
description: 'The ID of the user who created the payment schedule item.
'
type: string
createdDate:
description: 'The date and time when the payment schedule item was created.
'
format: date
type: string
currency:
description: 'The currency of the payment.
'
type: string
description:
description: 'The description of the payment schedule item.
'
type: string
errorMessage:
description: 'The error message indicating if the error is related to the
configuration or the payment collection.
'
type: string
id:
description: 'ID of the payment schedule item. For example, `412880e749b72b310149b7343ef81346`.
'
type: string
number:
description: 'Number of the payment schedule item.
'
type: string
paymentGatewayId:
description: 'ID of the payment gateway of the payment schedule item.
'
type: string
paymentId:
description: "ID of the payment that is created by the payment schedule\
\ item, or linked to the payment schedule item. This field is only available\
\ if the request doesn\u2019t specify `zuora-version`, or `zuora-version`\
\ is set to a value equal to or smaller than\_`336.0`. \n"
type: string
paymentMethodId:
description: 'ID of the payment method of the payment schedule item.
'
type: string
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
paymentScheduleId:
description: 'ID of the payment schedule that contains the payment schedule
item, for example, `ID402880e749b72b310149b7343ef80005`,
'
type: string
paymentScheduleNumber:
description: 'Number of the payment schedule that contains the payment schedule
item, for example, `ID402880e749b72b310149b7343ef80005`,
'
type: string
psiPayments:
description: 'Container for payments linked to the payment schedule item.
'
items:
$ref: '#/definitions/LinkedPaymentID'
type: array
runHour:
description: "At which hour in the day in the tenant\u2019s timezone this\
\ payment will be collected.\n"
type: integer
scheduledDate:
description: 'The scheduled date when the payment is processed.
'
format: date
type: string
standalone:
description: 'Indicates if the payment created by the payment schedule item
is a standalone payment.
'
type: boolean
status:
description: |
ID of the payment method of the payment schedule item.
- `Pending`: Waiting for processing.
- `Processed`: The payment has been collected.
- `Error`: Failed to collect the payment.
- `Canceled`: After a pending payment schedule item is canceled by the user, the item is marked as `Canceled`.
enum:
- Pending
- Processed
- Error
- Canceled
type: string
success:
description: "Returns `true` if the request was processed successfully.\
\ \n"
type: boolean
updatedById:
description: 'The ID of the user who updated the payment schedule item.
'
type: string
updatedDate:
description: 'The date and time when the payment schedule item was last
updated.
'
format: date
type: string
type: object
- $ref: '#/definitions/PaymentScheduleItemCustomFields'
PUTPaymentScheduleRequest:
allOf:
- properties:
amount:
description: 'Indicates the updated amount of the pending payment schedule
items.
'
type: number
currency:
description: "Indicates the updated currency of the pending payment schedule\
\ items. \n"
type: string
occurrences:
description: "Indicates the updated number of payment schedule items that\
\ are created by the payment schedule.\n\n**Note:**\n - If \"updated\
\ `occurrences` > existing `occurrences`\", the following number of pending\
\ payment schedule item will be added to the payment schedule: \u201C\
updated `occurrences` - existing `occurrences`\u201D.\n - If \"existing\
\ `occurrences` > updated `occurrences` >= the number of `processed`/`errored`/`canceled`\
\ payment schedule items\", the following number of pending items will\
\ be removed by descending order of the schedule dates: \"existing `occurrences`\
\ - updated `occurrences`\".\n - If \"updated `occurrences` < the number\
\ of `processed`/`erroed`/`canceled` payment schedule items\", a validation\
\ error will be returned.\n"
type: integer
paymentGatewayId:
description: 'Indicates the updated payment gateway ID of the pending payment
schedule items.
'
type: string
paymentMethodId:
description: "Indicates the updated payment method ID of the pending payment\
\ schedule items. \n"
type: string
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
Here is an example:
```
"paymentOption": [
{
"type": "GatewayOptions",
"detail": {
"SecCode":"WEB"
}
}
]
```
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
**Note:** To enable this field, submit a request at [Zuora Global Support](https://support.zuora.com/).
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
period:
description: 'Indicates the updated period of the pending payment schedule
items.
'
enum:
- Monthly
- Weekly
- BiWeekly
type: string
periodStartDate:
description: 'Indicates the updated collection date for the next pending
payment schedule item.
'
format: date
type: string
runHour:
description: "Specifies at which hour of the day in the tenant\u2019s time\
\ zone this payment will be collected. Available values: `[0,1,2,~,22,23]`.\n\
\ \nIf the time difference between your tenant\u2019s timezone and the\
\ timezone where Zuora servers are is not in full hours, for example,\
\ 2.5 hours, the payment schedule items will be triggered half hour later\
\ than your scheduled time. If the payment `runHour` and `scheduledDate`\
\ are backdated, the system will collect the payment when the next runHour\
\ occurs.\n"
format: date
type: integer
type: object
- $ref: '#/definitions/PaymentScheduleCustomFields'
PUTPreviewPaymentScheduleRequest:
allOf:
- properties:
amount:
description: 'Indicates the updated amount of the pending payment schedule
items.
'
type: number
currency:
description: "Indicates the updated currency of the pending payment schedule\
\ items. \n"
type: string
occurrences:
description: 'Indicates the updated number of payment schedule items that
are created by the payment schedule.
'
type: integer
paymentGatewayId:
description: 'Indicates the updated payment gateway ID of the pending payment
schedule items.
'
type: string
paymentMethodId:
description: "Indicates the updated payment method ID of the pending payment\
\ schedule items. \n"
type: string
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
Here is an example:
```
"paymentOption": [
{
"type": "GatewayOptions",
"detail": {
"SecCode":"WEB"
}
}
]
```
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
period:
description: 'Indicates the updated period of the pending payment schedule
items.
'
enum:
- Monthly
- Weekly
- BiWeekly
type: string
periodStartDate:
description: 'Indicates the updated collection date for the next pending
payment schedule item.
'
format: date
type: string
runHour:
description: "Specifies at which hour of the day in the tenant\u2019s time\
\ zone this payment will be collected. Available values: `[0,1,2,~,22,23]`.\n\
\ \nIf the time difference between your tenant\u2019s timezone and the\
\ timezone where Zuora servers are is not in full hours, for example,\
\ 2.5 hours, the payment schedule items will be triggered half hour later\
\ than your scheduled time. If the payment `runHour` and `scheduledDate`\
\ are backdated, the system will collect the payment when the next runHour\
\ occurs.\n"
format: date
type: integer
type: object
- $ref: '#/definitions/PaymentScheduleCustomFields'
PUTPriceBookItemRequest:
example:
intervalPrices:
- duration: 2
price: 10
sequence: 1
type: Month
- price: 100
sequence: 2
type: Infinity
properties:
defaultQuantity:
description: "The default quantity of the price book item. \n\nThis field\
\ is only applicable for one-time and recurring charges.\n"
type: number
includedUnits:
description: "The number of units included in the price book item. \n\nThis\
\ field is only applicable for charges with the Overage pricing charge model.\n"
type: number
intervalPrices:
description: "Container for the interval prices of the product rate plan charge.\
\ \n\nThis field is applicable only if you want to use interval prices for\
\ different periods.\n"
items:
$ref: '#/definitions/POSTPriceBookItemIntervalPrice'
type: array
listPriceBase:
description: "The list price base of the price book item. \n\nThis field is\
\ only applicable for recurring charges.\n"
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
type: string
overagePrice:
description: "The overage price of the price book item. \n\nThis field is\
\ only applicable for charges with the Overage or Tiered with Overage pricing\
\ charge model.\n"
type: number
price:
description: "The price of the price book item. \n\nThis field is only applicable\
\ for charges with the Flat Fee, Per Unit, or Delivery Pricing charge model.\n"
type: number
tiers:
description: "Container for the tiers of the price book item. \n\nThis field\
\ is only applicable for charges with the Tiered, Volume, or Tiered with\
\ Overage pricing charge model.\n"
items:
$ref: '#/definitions/POSTPriceBookItemTier'
type: array
type: object
PUTProductChargeDefinitionBulkRequest:
example:
productChargeDefinitions:
- billingPeriod: Specific_Months
chargeModel: FlatFee
defaultQuantity: 10
listPriceBase: Per_Billing_Period
prices:
- currency: USD
price: 10
productChargeDefinitionKey: CD-00000037
specificBillingPeriod: 10
specificListPriceBase: 101
taxCode: a valid tax code
taxMode: TaxExclusive
taxable: false
term: 24
termPeriodType: Month
termType: TERMED
uom: Each
properties:
productChargeDefinitions:
description: 'The list of updated product charge definitions.
'
items:
$ref: '#/definitions/PUTBulkProductChargeDefinitionRequest'
title: productChargeDefinitions
type: array
type: object
PUTProductChargeDefinitionRequest:
example:
billingPeriod: Specific_Months
defaultQuantity: 10
effectiveEndDate: '2024-07-01 00:00:00'
effectiveStartDate: '2024-01-01 00:00:00'
listPriceBase: Per_Billing_Period
prices:
- currency: USD
price: 15
specificBillingPeriod: 5
specificListPriceBase: 10
term: 12
termPeriodType: Month
termType: TERMED
uom: Each
properties:
billingPeriod:
description: 'The override value of the billingPeriod for the product charge
definition.
'
type: string
billingTiming:
description: 'The override value of the billingTiming for the product charge
definition.
'
enum:
- IN_ADVANCE
- IN_ARREARS
type: string
chargeModel:
description: 'Determines how to calculate charges. Charge models must be individually
activated in Zuora Billing administration.
'
enum:
- DiscountFixedAmount
- DiscountPercentage
- FlatFee
- PerUnit
- Tiered
- Volume
- Delivery
type: string
defaultQuantity:
description: "The default quantity. \n\nThis field is applicable only for\
\ one-time and recurring charges.\n"
type: number
effectiveEndDate:
description: 'The effective end date of the product charge definition.
'
format: date-time
type: string
effectiveStartDate:
description: 'The effective start date of the product charge definition.
'
format: date-time
type: string
excludeItemBillingFromRevenueAccounting:
description: "Indicates whether to exclude the related invoice items, invoice\
\ item adjustments, credit memo items, and debit memo items from revenue\
\ accounting.\n\n**Note**: This field is only available if you have the\
\ Order to Revenue or Billing - Revenue Integration feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
description: |
Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.
**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.
type: boolean
isAllocationEligible:
description: |
Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `false`.
**Values**: `true`, `false`
**Note**: This field is available only if you have the Additional Revenue Fields property enabled.
type: boolean
isUnbilled:
description: "Specifies how to perform the accounting during revenue recognition.\
\ The default value is `false`.\n\n**Values**: `true`, `false`\n\n**Note**:\
\ This field is available only if you have the Additional Revenue Fields\
\ property enabled. \n"
type: boolean
listPriceBase:
description: "The list price base. \n\nThis field is applicable only for recurring\
\ charges.\n\n**Note**: The `Per_Year` enum value is available only if you\
\ have the Annual List Price feature enabled.\n"
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
type: string
prices:
description: 'Container for the new prices to override the existing prices
of the product charge definition.
'
items:
$ref: '#/definitions/POSTProductChargeDefinitionPricing'
type: array
productCategory:
description: "This field is used to maintain the product category for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
productClass:
description: "This field is used to maintain the product class for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
productFamily:
description: "This field is used to maintain the product family for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled.\n"
type: string
productLine:
description: "This field is used to maintain the product line for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled.\n"
type: string
specificBillingPeriod:
description: 'The override value of the specificBillingPeriod for the product
charge definition.
'
type: number
specificListPriceBase:
description: "The number of months for the list price base of the charge definition.\
\ \nThe field is `null` if the `listPriceBase` field is not set to `Per_Specific_Months`.\n"
format: int32
maximum: 200
minimum: 1
type: integer
taxCode:
description: |
Specifies the tax code for taxation rules. This field is equired when the `Taxable` field is set to `True`.
**Note**: This value affects the tax calculation of the charge.
maxLength: 64
type: string
taxMode:
description: |
Determines how to define taxation for the charge. This field is equired when the `Taxable` field is set to `True`.
**Note**: This value affects the tax calculation of the charge.
enum:
- TaxExclusive
- TaxInclusive
type: string
taxable:
description: |
Determines whether the charge definition is taxable. When this field is set to `True`, the `TaxMode` and `TaxCode` fields are required.
**Character limit**: 5
**Values**: `True`, `False`
**Note**: This value affects the tax calculation of the charge.
type: boolean
term:
description: "The number of periods of a termed subscription that is eligible\
\ for this charge definition. This field is applicable when the `termType`\
\ field is set to `TERMED`, \nand is to be used together with the `termPeriodType`\
\ field.\n"
type: number
termPeriodType:
description: 'Specifies the period type for the subscription term that is
eligible for this charge definition.
'
enum:
- Month
- Year
- Day
- Week
type: string
termType:
description: 'The type of the subscription that is eligible for this charge
definition.
'
enum:
- TERMED
- EVERGREEN
type: string
uom:
description: |
Describes the unit of measure (UOM) configured in **Settings > Billing**.
**Values**: `Each`, `License`, `Seat`, or `null`
type: string
type: object
PUTPublicEmailTemplateRequest:
example:
active: true
bccEmailAddress: user@example.com
ccEmailAddress: user@example.com
ccEmailType: SpecificEmails
description: Email when an account is edited
emailBody: Dear user,the account has been edited. Example
Co. Ltd.
emailSubject: Account has been edited
encodingType: UTF8
fromEmailAddress: null
fromEmailType: TenantEmail
fromName: Example Co. Ltd.
isHtml: true
name: Account Edit Email
replyToEmailAddress: null
replyToEmailType: TenantEmail
toEmailAddress: null
toEmailType: BillToContact
properties:
active:
description: The status of the email template.
type: boolean
bccEmailAddress:
description: Email bcc address.
format: email
type: string
ccEmailAddress:
description: Email cc address.
type: string
ccEmailType:
default: SpecificEmails
description: "Email CC type.\n* When the base object for the event is associated\
\ with `Account`, `ccEmailType` can be any values in the enum list. \n*\
\ When the base object for the event is not associated with `Account`, `ccEmailType`\
\ must be `TenantAdmin`, `RunOwner`, or `SpecificEmail`. "
enum:
- BillToContact
- SoldToContact
- SpecificEmails
- TenantAdmin
- BillToAndSoldToContacts
- RunOwner
- AllContacts
- InvoiceOwnerBillToContact
- InvoiceOwnerSoldToContact
- InvoiceOwnerBillToAndSoldToContacts
- InvoiceOwnerAllContacts
type: string
description:
description: The description of the email template.
maxLength: 255
type: string
emailBody:
description: "The email body. You can add merge fields in the email object\
\ using angle brackets. \nUser can also embed html tags if `isHtml` is `true`."
type: string
emailSubject:
description: The email subject. You can add merge fields in the email subject
using angle brackets.
type: string
encodingType:
description: The endcode type of the email body.
enum:
- UTF8
- Shift_JIS
- ISO_2022_JP
- EUC_JP
- X_SJIS_0213
type: string
fromEmailAddress:
description: If fromEmailType is SpecificEmail, this field is required
type: string
fromEmailType:
description: The type of fromEmail.
enum:
- TenantEmail
- RunOwner
- SpecificEmail
type: string
fromName:
description: The name of email sender.
type: string
isHtml:
description: Indicates whether the style of email body is HTML.
type: boolean
name:
description: The name of the email template.
maxLength: 255
type: string
replyToEmailAddress:
description: If replyToEmailType is SpecificEmail, this field is required.
type: string
replyToEmailType:
description: The type of the reply email.
enum:
- TenantEmail
- RunOwner
- SpecificEmail
type: string
toEmailAddress:
description: If toEmailType is SpecificEmail, this field is required.
type: string
toEmailType:
description: "Email receive type.\n* When the base object for the event is\
\ associated with `Account`, `toEmailType` can be any values in the enum\
\ list. \n* When the base object for the event is not associated with `Account`,\
\ `toEmailType` must be `TenantAdmin`, `RunOwner`, or `SpecificEmail`. "
enum:
- BillToContact
- SoldToContact
- SpecificEmails
- TenantAdmin
- BillToAndSoldToContacts
- RunOwner
- AllContacts
- InvoiceOwnerBillToContact
- InvoiceOwnerSoldToContact
- InvoiceOwnerBillToAndSoldToContacts
- InvoiceOwnerAllContacts
type: string
type: object
PUTPublicNotificationDefinitionRequest:
example:
active: true
callout:
active: true
calloutAuth:
domain: example_domain
password: example_password
preemptive: true
username: example_user
calloutBaseurl: https://www.example.com/callout/AccountEdit
calloutParams:
AccountName:
AccountNumber:
calloutRetry: true
description: Callout when an account is edited
httpMethod: POST
name: Callout for Account Edited
requiredAuth: true
calloutActive: true
communicationProfileId: 6e569e1e05f040eda51a927b140c0ac5
description: Notification sent out when an account is edited
emailActive: true
emailTemplateId: 6e569e1e05f040eda51a927b140c0ac6
filterRule:
condition: Account.Balance >= _VIP_BALANCE_AMOUNT && Account.Status == _ACCOUNT_STATUS
description: Filter rule to test if an account is a VIP account
parameters:
_ACCOUNT_STATUS:
description: The status of the VIP Account
displayName: VIP Account Status
options:
- Draft
- Active
- Canceled
valueType: STRING
_VIP_BALANCE_AMOUNT:
description: The minimum account balance
displayName: VIP Account Balance
options: null
valueType: BIG_DECIMAL
filterRuleParams:
_ACCOUNT_STATUS: Active
_VIP_BALANCE_AMOUNT: '100000'
name: Account Edit Notification
properties:
active:
default: true
description: The status of the notification definition. The default value
is `true`.
type: boolean
associatedAccount:
description: "Indicates with which type of account this notification is associated.\
\ Depending on your environment, you can use one of the following values:\n\
* `Account.Id`: ID of the primary customer account related to the notification.\
\ It is also the default value.\n* `ParentAccount.Id`: this option is available\
\ only if you have Customer Hierarchy enabled for your tenant.\n* `SubscriptionOwnerAccount.Id`:\
\ this option is available if the base object of the notification is Order\
\ Action.\n\n**Note:** before specifying this field, we recommend that you\
\ use [Data Source](https://knowledgecenter.zuora.com/Billing/Reporting/D_Data_Sources_and_Exports/C_Data_Source_Reference)\
\ to check the available types of accounts for the current notification.\
\ \n"
type: string
callout:
properties:
active:
default: true
description: The status of the callout. The default value is `true`.
type: boolean
calloutAuth:
$ref: '#/definitions/CalloutAuth'
calloutBaseurl:
description: The callout URL. It must start with 'https://'
example: https://***
format: url
minLength: 10
type: string
calloutParams:
$ref: '#/definitions/CalloutMergeFields'
calloutRetry:
default: true
description: Specified whether to retry the callout when the callout fails.
The default value is `true`.
type: boolean
description:
description: Description for the callout.
maxLength: 255
type: string
httpMethod:
description: The HTTP method of the callout.
enum:
- GET
- PUT
- POST
- DELETE
example: POST
type: string
name:
description: The name of the created callout.
maxLength: 255
type: string
oauth2ProviderId:
description: |
The ID of the OAuth 2.0 provider in your tenant that provides access tokens for the callout. This field is required if `requiredOauth2` is `true`.
For more information about how to get the ID of an OAuth 2.0 provider, see Retrieve the ID of an OAuth 2.0 provider .
type: string
requiredAuth:
description: |
Indicates whether Basic authentication is enabled for the callout. If this field is `true`, you must specify the username and password in `calloutAuth`.
The `requiredAuth` and `requiredOauth2` fields cannot be `true` at the same time.
type: boolean
requiredOauth2:
description: |
Indicates whether OAuth 2.0 authentication is enabled for the callout. If this field is `true`, you must specify the OAuth 2.0 provider ID in `oauth2ProviderId`.
The `requiredAuth` and `requiredOauth2` fields cannot be `true` at the same time.
type: boolean
required:
- eventTypeName
type: object
calloutActive:
default: false
description: The status of the callout action. The default value is `false`.
type: boolean
communicationProfileId:
description: |
The profile that notification definition belongs to. If you want to
update the notification to a system notification, you should pass
'SystemNotification'. '
format: uuid
type: string
description:
description: The description of the notification definition.
maxLength: 255
type: string
emailActive:
default: false
description: The status of the email action. The default value is `false`.
type: boolean
emailTemplateId:
description: |
The ID of the email template. If emailActive is updated from
false to true, an email template is required, and the EventType of
the email template MUST be the same as the EventType of the notification definition.
format: uuid
type: string
filterRule:
description: ''
properties:
condition:
description: "The filter rule conditions, written in [JEXL](http://commons.apache.org/proper/commons-jexl/).\n\
The rule might contain event context merge fields and data source merge\
\ fields. Data source merge fields must be from [the base object of\
\ the event or from the joined objects of the base object](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL#Data_Sources_and_Objects).\
\ Notifications with invalid merge fields will fail to evaluate, thus\
\ will not be invoked. For example, to trigger an event when an invoice\
\ is posted with the amount over 1000, you would define the following\
\ condition on the `Invoice` object:\n\n```changeType == 'UPDATE' &&\
\ Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted' && Invoice.Amount\
\ > 1000```\n\nThere are conventions and keywords you need to be aware\
\ of. For example:\n\n* `changeType` is a keyword to specify what kind\
\ of change happened to the object. Allowed values are `INSERT`, `UPDATE`\
\ or `DELETE`.\n\n* `Invoice.Status` refers to field `Status` of the\
\ Zuora object `Invoice`.\n\n* A variable with the `_old` suffix means\
\ it\u2019s a previous value of the corresponding object field. The\
\ \"_old\" fields are only available on the base objects.\n"
example: Account.Balance >= _VIP_BALANCE_AMOUNT && Account.Status == _ACCOUNT_STATUS
type: string
description:
description: The description of the filter rule.
maxLength: 255
type: string
parameters:
$ref: '#/definitions/FilterRuleParameterDefinitions'
required:
- eventTypeName
- condition
- parameters
type: object
filterRuleParams:
$ref: '#/definitions/FilterRuleParameterValues'
name:
description: The name of the notification definition, which is unique in the
profile.
maxLength: 255
type: string
type: object
PUTPublishOpenPaymentMethodTypeResponse:
properties:
entityId:
description: 'If an entity UUID is provided, this custom payment method type
is specific to this entity only. If no entity UUID is provided, the custom
payment method type is available to the global entity and all the sub entities
in the tenant.
'
type: string
fields:
description: 'An array containing field metadata of the custom payment method
type.
'
items:
$ref: '#/definitions/OpenPaymentMethodTypeResponseFields'
type: array
internalName:
description: |
A string to identify the custom payment method type in the API name of the payment method type.
This field is used along with the `tenantId` field by the system to construct and generate the API name of the custom payment method type in the following way:
`__c_`
For example, if `internalName` is `AmazonPay`, and `tenantId` is `12368`, the API name of the custom payment method type will be `AmazonPay__c_12368`.
type: string
label:
description: 'The label that is used to refer to this type in the Zuora UI.
'
type: string
methodReferenceIdField:
description: |
The identification reference of the custom payment method.
This field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Payment Method Data Source Exports and Data Query.
type: string
revision:
description: 'The revision number of the custom payment method type, which
starts from 1 and increases by 1 when you update a published revision for
the first time.
'
type: integer
status:
description: 'The status of the custom payment method type.
'
type: string
subTypeField:
description: |
The identification reference indicating the subtype of the custom payment method.
This field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.
type: string
tenantId:
description: 'Zuora tenant ID. If multi-entity is enabled in your tenant,
this is the ID of the parent tenant of all the sub entities.
'
type: string
userReferenceIdField:
description: |
The identification reference of the user or customer account.
This field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.
type: string
version:
description: 'The time when the custom payment method type was first published.
'
type: string
PUTRefundType:
allOf:
- properties:
comment:
description: 'Comments about the refund.
'
maxLength: 255
minLength: 0
type: string
financeInformation:
description: 'Container for the finance information related to the refund.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
transferredToAccounting:
description: "Whether the payment was transferred to an external accounting\
\ system. Use this field for integration with accounting systems,\
\ such as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
maxLength: 100
minLength: 0
type: string
type: object
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty. If you do not specify a value,
Zuora uses the default reason code.
'
type: string
referenceId:
description: |
The transaction ID returned by the payment gateway. Use this field to reconcile refunds between your gateway and Zuora Payments.
You can only update the reference ID for external refunds.
maxLength: 100
minLength: 0
type: string
type: object
- $ref: '#/definitions/RefundObjectNSFields'
- $ref: '#/definitions/RefundObjectCustomFields'
example:
comment: update comment
financeInformation:
transferredToAccounting: 'No'
PUTRenewSubscriptionResponseType:
properties:
creditMemoId:
description: |
The credit memo ID, if a credit memo is generated during the subscription process.
**Note:** This container is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header, and you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: string
invoiceId:
description: 'Invoice ID, if one is generated.
'
type: string
paidAmount:
description: 'Payment amount, if payment is collected.
'
type: number
paymentId:
description: 'Payment ID, if payment is collected.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
termEndDate:
description: 'Date the new subscription term ends, as yyyy-mm-dd.
'
format: date
type: string
termStartDate:
description: 'Date the new subscription term begins, as yyyy-mm-dd.
'
format: date
type: string
totalDeltaMrr:
description: 'Change in the subscription monthly recurring revenue as a result
of the update. For a renewal, this is the MRR of the subscription in the
new term.
'
type: number
totalDeltaTcv:
description: 'Change in the total contracted value of the subscription as
a result of the update. For a renewal, this is the TCV of the subscription
in the new term.
'
type: number
type: object
PUTRenewSubscriptionType:
example:
collect: false
creditMemoReasonCode: Unsatisfactory service
runBilling: true
properties:
applicationOrder:
description: |
The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.
**Note:**
- This field is valid only if the `applyCredit` field is set to `true`.
- If no value is specified for this field, the default priority order is used, ["CreditMemo", "UnappliedPayment"], to apply credit memos first and then apply unapplied payments.
- If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `["CreditMemo"]`, only credit memos are used to apply to invoices.
items:
type: string
type: array
applyCredit:
description: |
If the value is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices.
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: boolean
applyCreditBalance:
description: "Whether to automatically apply a credit balance to an invoice.\n\
\nIf the value is `true`, the credit balance is applied to the invoice.\
\ If the value is `false`, no action is taken.\n\n\nTo view the credit balance\
\ adjustment, retrieve the details of the invoice using the Get Invoices\
\ method.\n\nPrerequisite: `invoice` must be `true`. \n\n**Note:** \n -\
\ If you are using the field `invoiceCollect` rather than the field `invoice`,\
\ the `invoiceCollect` value must be `true`.\n - This field is deprecated\
\ if you have the Invoice Settlement feature enabled.\n"
type: boolean
collect:
default: false
description: "Collects an automatic payment for a subscription. The collection\
\ generated in this operation is only for this subscription, not for the\
\ entire customer account.\n\nIf the value is `true`, the automatic payment\
\ is collected. If the value is `false`, no action is taken.\n\nPrerequisite:\
\ The `invoice` or `runBilling` field must be `true`. \n\n**Note**: This\
\ field is only available if you set the `zuora-version` request header\
\ to `196.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
type: boolean
creditMemoReasonCode:
description: A code identifying the reason for the credit memo transaction
that is generated by the request. The value must be an existing reason code.
If you do not pass the field or pass the field with empty value, Zuora uses
the default reason code.
type: string
documentDate:
description: "The date of the billing document, in `yyyy-mm-dd` format. It\
\ represents the invoice date for invoices, credit memo date for credit\
\ memos, and debit memo date for debit memos.\n\n- If this field is specified,\
\ the specified date is used as the billing document date. \n- If this field\
\ is not specified, the date specified in the `targetDate` is used as the\
\ billing document date.\n"
format: date
type: string
invoice:
description: "**Note:** This field has been replaced by the `runBilling` field.\
\ The\n`invoice` field is only available for backward compatibility.\n\n\
\nCreates an invoice for a subscription. The invoice generated in this\n\
operation is only for this subscription, not for the entire customer\naccount.\n\
\n\nIf the value is `true`, an invoice is created. If the value is\n`false`,\
\ no action is taken. The default value is `false`. \n\n\nThis field is\
\ in Zuora REST API version control. Supported minor\nversions are `196.0`\
\ and `207.0`. To use this field in the method, you\nmust set the zuora-version\
\ parameter to the minor version number in\nthe request header.\n"
type: boolean
invoiceCollect:
default: true
description: |
**Note:** This field has been replaced by the `invoice` field
and the `collect` field. `invoiceCollect` is available only for backward compatibility.
If this field is set to `true`, an invoice is generated and payment collected automatically during the subscription process. If `false`, no invoicing or payment takes place. The invoice generated in this operation is only for this subscription, not for the entire customer account.
**Note**: This field is only available if you set the `zuora-version` request header to `186.0`, `187.0`, `188.0`, or `189.0`.
type: boolean
invoiceTargetDate:
description: |
**Note:** This field has been replaced by the `targetDate` field. The
`invoiceTargetDate` field is only available for backward
compatibility.
Date through which to calculate charges if an invoice is generated, as
yyyy-mm-dd. Default is current date.
This field is in Zuora REST API version control. Supported minor
versions are `207.0` and earlier [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: date
type: string
orderDate:
description: |
The date when the order is signed. If no additinal contractEffectiveDate is provided, this order will use this order date as the contract effective date.
This field must be in the `yyyy-mm-dd` format.
This field is required for Orders customers only, not applicable to Orders Harmonization customers.
format: date
type: string
runBilling:
default: false
description: "Creates an invoice for a subscription. If you have the Invoice\
\ Settlement feature enabled, a credit memo might also be created based\
\ on the [invoice and credit memo generation rule](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/Credit_and_Debit_Memos/Rules_for_Generating_Invoices_and_Credit_Memos).\
\ \n\n\nThe billing documents generated\nin this operation is only for\
\ this subscription, not for the entire\ncustomer account.\n\n\nPossible\
\ values:\n\n- `true`: An invoice is created. If you have the Invoice Settlement\
\ feature enabled, a credit memo might also be created.\n\n\n- `false`:\
\ No invoice is created.\n\n\n**Note:** This field is in Zuora REST API\
\ version control. Supported\nminor versions are `211.0` or later [available\
\ versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ To use this field in the method,\nyou must set the `zuora-version` parameter\
\ to the minor version number\nin the request header.\n"
enum:
- true
- false
type: boolean
targetDate:
description: |
Date through which to calculate charges if an invoice or a credit memo is generated, as
yyyy-mm-dd. Default is current date.
**Note:** The credit memo is only available if you have the Invoice Settlement feature enabled.
This field is in Zuora REST API version control. Supported minor
versions are `211.0` and later. To use this field in the method, you
must set the `zuora-version` parameter to the minor version number in
the request header.
format: date
type: string
type: object
PUTRevproAccCodeResponse:
properties:
success:
description: ''
type: boolean
type: object
PUTScAddType:
allOf:
- properties:
amendedByOrderOn:
description: |
The date when the rate plan charge is amended through an order or amendment. This field is not updatable.
This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sale order line in Zuora Revenue.
type: string
applyDiscountTo:
description: |
Specifies the type of charges that you want a specific discount to apply to.
Values:
* `ONETIME`
* `RECURRING`
* `USAGE`
* `ONETIMERECURRING`
* `ONETIMEUSAGE`
* `RECURRINGUSAGE`
* `ONETIMERECURRINGUSAGE`
Available for the following charge type for the Discount-Fixed Amount and Discount-Percentage charge models:
* Recurring
type: string
billCycleDay:
description: |
Sets the bill cycle day (BCD) for the charge. The BCD determines which day of the month customer is billed.
Values: `1`-`31`
Available for the following charge types:
* Recurring
* Usage-based
type: string
billCycleType:
description: |
Specifies how to determine the billing day for the charge. When this field is set to `SpecificDayofMonth`, set the `BillCycleDay` field. When this field is set to `SpecificDayofWeek`, set the `weeklyBillCycleDay` field.
Values:
* `DefaultFromCustomer`
* `SpecificDayofMonth`
* `SubscriptionStartDay`
* `ChargeTriggerDay`
* `SpecificDayofWeek`
Available for the following charge types:
* Recurring
* Usage-based
type: string
billingPeriod:
description: "Billing period for the charge. The start day of the billing\
\ period is also called the bill cycle day (BCD). When you renew a subscription,\
\ the current subscription term is extended by creating a new term. If\
\ any charge in your subscription has the billing period set as `SubscriptionTerm`\uFF0C\
\ a new charge segment is generated for the new term.\n\nValues:\n\n*\
\ `Month`\n* `Quarter`\n* `Semi_Annual`\n* `Annual`\n* `Eighteen_Months`\n\
* `Two_Years`\n* `Three_Years`\n* `Five_Years`\n* `Specific_Months`\n\
* `Subscription_Term`\n* `Week`\n* `Specific_Weeks`\n\nAvailable for the\
\ following charge types:\n\n* Recurring\n* Usage-based\n"
type: string
billingPeriodAlignment:
description: |
Aligns charges within the same subscription if multiple charges begin on different dates.
Values:
* `AlignToCharge`
* `AlignToSubscriptionStart`
* `AlignToTermStart`
Available for the following charge types:
* Recurring
* Usage-based
type: string
billingTiming:
description: |
Billing timing for the charge for recurring charge types. Not avaliable for one time, usage and discount charges.
Values:
* `IN_ADVANCE` (default)
* `IN_ARREARS`
type: string
chargeModelConfiguration:
$ref: '#/definitions/ChargeModelConfigurationType'
description:
description: 'Description of the charge.
'
type: string
discountAmount:
description: |
Specifies the amount of fixed-amount discount.
Available for the following charge type for the Discount-Fixed Amount charge model:
* Recurring
type: number
discountLevel:
description: |
Specifies if the discount applies to the product rate plan only , the entire subscription, or to any activity in the account.
Values:
* `rateplan`
* `subscription`
* `account`
Available for the following charge type for the Discount-Fixed Amount and Discount-Percentage charge models:
* Recurring
type: string
discountPercentage:
description: "Specifies the percentage of a percentage discount. \n\nAvailable\
\ for the following charge type for the Discount-Percentage charge model:\n\
\n* Recurring\n"
type: number
endDateCondition:
description: |
Defines when the charge ends after the charge trigger date. If the subscription ends before the charge end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the charge end date.
Values:
* `Subscription_End`
* `Fixed_Period`
* `Specific_End_Date`
* `One_Time`
type: string
excludeItemBillingFromRevenueAccounting:
default: false
description: |
The flag to exclude rate plan charge related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: boolean
excludeItemBookingFromRevenueAccounting:
default: false
description: |
The flag to exclude rate plan charges from revenue accounting.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: boolean
includedUnits:
description: |
Specifies the number of units in the base set of units for this charge. Must be >=`0`.
Available for the following charge type for the Overage charge model:
* Usage-based
type: number
isAllocationEligible:
description: |
This field is used to identify if the charge segment is allocation eligible in revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
isUnbilled:
description: |
This field is used to dictate how to perform the accounting during revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
listPriceBase:
description: |
The list price base for the product rate plan charge.
Values:
* `Per_Billing_Period`
* `Per_Month`
* `Per_Week`
* `Per_Year`
* `Per_Specific_Months`
Available for the following charge type for the Flat Fee, Per Unit, Volume Pricing, and Tiered Pricing charge models:
* Recurring
type: string
number:
description: 'Unique number that identifies the charge. System-generated
if not provided.
'
type: string
numberOfPeriods:
description: |
Specifies the number of periods to use when calculating charges in an overage smoothing charge model.
Available for the following charge type for the Overage and Tiered with Overage charge models:
* Usage-based
format: int64
type: integer
originalOrderDate:
description: |
The date when the rate plan charge is created through an order or amendment. This field is not updatable.
This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sale order line in Zuora Revenue.
format: date
type: string
overagePrice:
description: "Price for units over the allowed amount. \n\nAvailable for\
\ the following charge type for the Overage and Tiered with Overage charge\
\ models:\n\n* Usage-based\n"
type: number
overageUnusedUnitsCreditOption:
description: |
Determines whether to credit the customer with unused units of usage.
Values:
* `NoCredit`
* `CreditBySpecificRate`
Available for the following charge type for the Overage and Tiered with Overage charge models:
* Usage-based
type: string
price:
description: |
Price for units in the subscription rate plan.
Supports all charge types for the Flat Fee and Per Unit charge models
type: number
priceChangeOption:
description: |
Applies an automatic price change when a termed subscription is renewed. The Zuora Billing Admin setting Enable Automatic Price Change When Subscriptions are Renewed? must be set to Yes to use this field. See Define Default Subscription Settings for more information on setting this option.
Values:
* `NoChange` (default)
* `SpecificPercentageValue`
* `UseLatestProductCatalogPricing`
Available for the following charge types:
* Recurring
* Usage-based
* Not available for the Fixed-Amount Discount charge model.
type: string
priceIncreasePercentage:
description: |
Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Required if you set the `PriceChangeOption` field to `SpecificPercentageValue`.
Decimal between -100 and 100.
Available for the following charge types:
* Recurring
* Usage-based
Not available for the Fixed-Amount Discount charge model.
type: number
productRatePlanChargeId:
description: ''
type: string
productRatePlanChargeNumber:
description: 'Number of a product rate-plan charge for this subscription. '
type: string
quantity:
description: |
Number of units. Must be >=`0`.
Available for the following charge types for the Per Unit, Volume Pricing, and Tiered Pricing charge models:
* One-time
* Recurring
type: number
ratingGroup:
description: "Specifies a rating group based on which usage records are\
\ rated.\n\nPossible values:\n\n- `ByBillingPeriod` (default): The rating\
\ is based on all the usages in a billing period.\n- `ByUsageStartDate`:\
\ The rating is based on all the usages on the same usage start date.\
\ \n- `ByUsageRecord`: The rating is based on each usage record.\n- `ByUsageUpload`:\
\ The rating is based on all the usages in a uploaded usage file (`.xls`\
\ or `.csv`).\n- `ByGroupId`: The rating is based on all the usages in\
\ a custom group.\n\n**Note:** \n- The `ByBillingPeriod` value can be\
\ applied for all charge models. \n- The `ByUsageStartDate`, `ByUsageRecord`,\
\ and `ByUsageUpload` values can only be applied for per unit, volume\
\ pricing, and tiered pricing charge models. \n- The `ByGroupId` value\
\ is only available if you have the Active Rating feature enabled.\n-\
\ Use this field only for Usage charges. One-Time Charges and Recurring\
\ Charges return `NULL`.\n"
type: string
specificBillingPeriod:
description: |
Specifies the number of month or week for the charges billing period. Required if you set the value of the `billingPeriod` field to `Specific_Months` or `Specific_Weeks`.
Available for the following charge types:
* Recurring
* Usage-based
format: int64
type: integer
specificEndDate:
description: |
Defines when the charge ends after the charge trigger date.
This field is only applicable when the `endDateCondition` field is set to `Specific_End_Date`.
If the subscription ends before the specific end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the specific end date.
format: date
type: string
specificListPriceBase:
description: "The number of months for the list price base of the charge.\
\ This field is required if you set the value of the `listPriceBase` field\
\ to `Per_Specific_Months`.\n\n**Note**: \n - This field is available\
\ only if you have the Annual List Price feature enabled.\n - The value\
\ of this field is `null` if you do not set the value of the `listPriceBase`\
\ field to `Per_Specific_Months`.\n"
format: int32
maximum: 200
minimum: 1
type: integer
tiers:
description: |
Container for Volume, Tiered or Tiered with Overage charge models. Supports the following charge types:
* One-time
* Recurring
* Usage-based
items:
$ref: '#/definitions/POSTTierType'
type: array
triggerDate:
description: 'Specifies when to start billing the customer for the charge.
Required if the `triggerEvent` field is set to `USD`.
'
format: date
type: string
triggerEvent:
description: |
Specifies when to start billing the customer for the charge.
Values:
* `UCE`
* `USA`
* `UCA`
* `USD`
type: string
unusedUnitsCreditRates:
description: |
Specifies the rate to credit a customer for unused units of usage. This field applies only for overage charge models when the `OverageUnusedUnitsCreditOption` field is set to `CreditBySpecificRate`.
Available for the following charge type for the Overage and Tiered with Overage charge models:
* Usage-based
type: number
upToPeriods:
description: "The period type used to define when the charge ends. \n\n\
Values:\n\n* `Billing_Periods`\n* `Days`\n* `Weeks`\n* `Months`\n* `Years`\n\
\nYou must use this field together with the `upToPeriods` field to specify\
\ the time period.\n\nThis field is applicable only when the `endDateCondition`\
\ field is set to `Fixed_Period`. \n"
format: int64
type: integer
upToPeriodsType:
description: "The period type used to define when the charge ends. \n\n\
Values:\n\n* `Billing_Periods`\n* `Days`\n* `Weeks`\n* `Months`\n* `Years`\n\
\nYou must use this field together with the `upToPeriods` field to specify\
\ the time period.\n\nThis field is applicable only when the `endDateCondition`\
\ field is set to `Fixed_Period`. \n"
type: string
required:
- productRatePlanChargeId
type: object
- $ref: '#/definitions/RatePlanChargeObjectCustomFields'
title: chargeOverrides
PUTScUpdateType:
allOf:
- properties:
billingPeriodAlignment:
description: |
Aligns charges within the same subscription if multiple charges begin on different dates.
Values:
* `AlignToCharge`
* `AlignToSubscriptionStart`
* `AlignToTermStart`
Available for the following charge types:
* Recurring
* Usage-based
type: string
chargeModelConfiguration:
$ref: '#/definitions/ChargeModelConfigurationType'
description:
description: 'Description of the charge.
'
type: string
includedUnits:
description: |
Specifies the number of units in the base set of units for this charge. Must be >=0.
Available for the following charge type for the Overage charge model:
* Usage-based
type: number
overagePrice:
description: "Price for units over the allowed amount. \n\nAvailable for\
\ the following charge type for the Overage and Tiered with Overage charge\
\ models:\n\n* Usage-based\n"
type: number
price:
description: |
Price for units in the subscription rate plan.
Supports all charge types for the Flat Fee and Per Unit charge models
type: number
priceChangeOption:
description: |
Applies an automatic price change when a termed subscription is renewed. The Billing Admin setting **Enable Automatic Price Change When Subscriptions are Renewed?** must be set to Yes to use this field.
Values:
* `NoChange` (default)
* `SpecificPercentageValue`
* `UseLatestProductCatalogPricing`
Available for the following charge types:
* Recurring
* Usage-based
Not available for the Fixed-Amount Discount charge model.
type: string
priceIncreasePercentage:
description: |
Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Required if you set the `PriceChangeOption` field to `SpecificPercentageValue`.
Decimal between `-100` and `100`.
Available for the following charge types:
* Recurring
* Usage-based
Not available for the Fixed-Amount Discount charge model.
type: number
quantity:
description: 'Quantity of units; must be greater than zero.
'
type: number
ratePlanChargeId:
description: 'ID of a rate-plan charge for this subscription. It can be
the latest version or any history version of ID.
'
type: string
tiers:
description: |
Container for Volume, Tiered or Tiered with Overage charge models. Supports the following charge types:
* One-time
* Recurring
* Usage-based
items:
$ref: '#/definitions/POSTTierType'
type: array
triggerDate:
description: |
Specifies when to start billing the customer for the charge. Required if the `triggerEvent` field is set to USD.
`triggerDate` cannot be updated for the following using the REST update subscription call:
* One-time charge type
* Discount-Fixed Amount charge model
* Discount-Percentage charge model
format: date
type: string
triggerEvent:
description: |
Specifies when to start billing the customer for the charge.
Values:
* `UCE`
* `USA`
* `UCA`
* `USD`
This is the date when charge changes in the REST request become effective.
`triggerEvent` cannot be updated for the following using the REST update subscription call:
* One-time charge type
* Discount-Fixed Amount charge model
* Discount-Percentage charge model
type: string
required:
- ratePlanChargeId
type: object
- $ref: '#/definitions/RatePlanChargeObjectCustomFields'
title: chargeUpdateDetails
PUTSequenceSetRequest:
description: ''
example:
creditMemo:
prefix: FR-CM
invoice:
startNumber: 100
name: FR
payment:
prefix: FR-P-
properties:
creditMemo:
$ref: '#/definitions/CreditMemoEntityPrefix'
debitMemo:
$ref: '#/definitions/DebitMemoEntityPrefix'
invoice:
$ref: '#/definitions/InvoiceEntityPrefix'
name:
description: 'The name of the sequence set configured for billing documents,
payments, and refunds.
'
type: string
payment:
$ref: '#/definitions/PaymentEntityPrefix'
refund:
$ref: '#/definitions/RefundEntityPrefix'
type: object
PUTSequenceSetResponse:
description: ''
properties:
success:
description: 'Indicates whether the call succeeded.
'
type: boolean
type: object
PUTSkipPaymentScheduleItemResponse:
allOf:
- properties:
amount:
description: 'The amount of the payment.
'
format: decimal
type: number
billingDocument:
properties:
id:
description: 'ID of the billing document. for example, `2c9890306fb2121e016fb21a6b550041`.
'
type: string
number:
description: 'The number of the billing docuemnt, for example, `INV00002345`.
'
type: string
type:
description: 'Indicates whether the associated billing document is a
debit memo or a invoice.
'
type: string
type: object
cancellationReason:
description: "The reason for the cancellation of payment schedule item.\
\ \n"
type: string
createdById:
description: 'The ID of the user who created the payment schedule item.
'
type: string
createdDate:
description: 'The date and time when the payment schedule item was created.
'
format: date
type: string
currency:
description: 'The currency of the payment.
'
type: string
description:
description: 'The description of the payment schedule item.
'
type: string
errorMessage:
description: 'The error message indicating if the error is related to the
configuration or the payment collection.
'
type: string
id:
description: 'ID of the newly-created payment schedule item. For example,
`412880e749b72b310149b7343ef81346`.
'
type: string
number:
description: 'Number of the newly-created payment schedule item.
'
type: string
paymentGatewayId:
description: 'ID of the payment gateway of the payment schedule item.
'
type: string
paymentId:
description: "ID of the payment that is created by the payment schedule\
\ item\uFF0C or linked to the payment schedule item. This field is only\
\ available if the request doesn\u2019t specify `zuora-version`, or `zuora-version`\
\ is set to a value equal to or smaller than\_`336.0`. \n"
type: string
paymentMethodId:
description: 'ID of the payment method of the payment schedule item.
'
type: string
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
paymentScheduleId:
description: 'ID of the payment schedule that contains the payment schedule
item, for example, `ID402880e749b72b310149b7343ef80005`,
'
type: string
paymentScheduleNumber:
description: "Number of the payment schedule that contains the payment schedule\
\ item, for example, `ID402880e749b72b310149b7343ef80005`,\n \n"
type: string
psiPayments:
description: "Container for payments linked to the payment schedule item.\
\ \n"
items:
$ref: '#/definitions/LinkedPaymentID'
type: array
runHour:
description: "At which hour in the day in the tenant\u2019s timezone this\
\ payment will be collected.\n"
type: integer
scheduledDate:
description: 'The scheduled date when the payment is processed.
'
format: date
type: string
standalone:
description: 'Indicates if the payment created by the payment schedule item
is a standalone payment.
'
type: boolean
status:
description: |
ID of the payment method of the payment schedule item.
- `Pending`: Waiting for processing.
- `Processed`: The payment has been collected.
- `Error`: Failed to collect the payment.
- `Canceled`: After a pending payment schedule item is canceled by the user, the item is marked as `Canceled`.
enum:
- Pending
- Processed
- Error
- Canceled
type: string
success:
description: "Returns `true` if the request was processed successfully.\
\ \n"
type: boolean
updatedById:
description: 'The ID of the user who updated the payment schedule item.
'
type: string
updatedDate:
description: 'The date and time when the payment schedule item was last
updated.
'
format: date
type: string
type: object
- $ref: '#/definitions/PaymentScheduleItemCustomFields'
PUTSrpAddType:
allOf:
- properties:
bookingDate:
description: "The booking date that you want to set for the amendment contract.\
\ The booking date of an amendment is the equivalent of the order date\
\ of an order. This field must be in the `yyyy-mm-dd` format. The default\
\ value is the current date when you make the API call. \n"
format: date
type: string
chargeOverrides:
description: 'This optional container is used to override the quantity of
one or more product rate plan charges for this subscription.
'
items:
$ref: '#/definitions/PUTScAddType'
type: array
contractEffectiveDate:
description: |
The date when the amendment changes take effect. The format of the date is yyyy-mm-dd.
If there is already a future-dated Update Product amendment on the subscription, the `specificUpdateDate` field will be used instead of this field to specify when the Update Product amendment takes effect.
format: date
type: string
customerAcceptanceDate:
description: |
The date when the customer accepts the contract in yyyy-mm-dd format.
If this field is not set:
* If the `serviceActivationDate` field is not set, the value of this field is set to be the contract effective date.
* If the `serviceActivationDate` field is set, the value of this field is set to be the service activation date.
The billing trigger dates must follow this rule:
contractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate
format: date
type: string
externalCatalogPlanId:
description: |
An external ID of the product rate plan to be added. You can use this field to specify a product rate plan that is imported from an external system. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan.
**Note:** If both `externalCatalogPlanId` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
externalIdSourceSystem:
description: |
The ID of the external source system. You can use this field and `externalCatalogPlanId` to specify a product rate plan that is imported from an external system.
**Note:** If both `externalCatalogPlanId`, `externalIdSourceSystem` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
externallyManagedPlanId:
description: 'Indicates the unique identifier for the rate plan purchased
on a third-party store. This field is used to represent a subscription
rate plan created through third-party stores.
'
type: string
productRatePlanId:
description: 'ID of a product rate plan for this subscription
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription
'
type: string
serviceActivationDate:
description: |
The date when the new product in the subscription is activated in yyyy-mm-dd format.
You must specify a Service Activation date if the Customer Acceptance date is set. If the Customer Acceptance date is not set, the value of the `serviceActivationDate` field defaults to be the Contract Effective Date.
The billing trigger dates must follow this rule:
contractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate
format: date
type: string
required:
- contractEffectiveDate
type: object
- $ref: '#/definitions/RatePlanObjectCustomFields'
title: add
PUTSrpChangeType:
allOf:
- properties:
bookingDate:
description: "The booking date that you want to set for the amendment contract.\
\ The booking date of an amendment is the equivalent of the order date\
\ of an order. This field must be in the `yyyy-mm-dd` format. The default\
\ value is the current date when you make the API call. \n"
format: date
type: string
chargeOverrides:
description: This optional container is used to override one or more product
rate plan charges for this subscription.
items:
$ref: '#/definitions/PUTScAddType'
type: array
contractEffectiveDate:
description: Effective date of the new subscription, as yyyy-mm-dd.
format: date
type: string
customerAcceptanceDate:
description: |
The date when the customer accepts the contract in yyyy-mm-dd format.
When this field is not set:
* If the `serviceActivationDate` field is not set, the value of this field
is set to be the contract effective date.
* If the `serviceActivationDate` field is set, the value of this field is
set to be the service activation date.
The billing trigger dates must follow this rule: contractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate
format: date
type: string
effectivePolicy:
description: "The default value for the `effectivePolicy` field is as follows:\n\
\ * If the rate plan change (from old to new) is an upgrade, the effective\
\ policy is `EffectiveImmediately` by default.\n * If the rate plan change\
\ (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod`\
\ by default.\n * Otherwise, the effective policy is `SpecificDate` by\
\ default.\n\n**Notes**: \n * When setting this field to `EffectiveEndOfBillingPeriod`,\
\ you cannot set the billing trigger dates for the subscription as\
\ the system will automatically set the trigger dates to the end of billing\
\ period.\n * When setting this field to `SpecificDate`, you must also\
\ set the `contractEffectiveDate` field.\n"
enum:
- EffectiveImmediately
- EffectiveEndOfBillingPeriod
- SpecificDate
type: string
externalCatalogPlanId:
description: |
An external ID of the rate plan to be removed. You can use this field to specify an existing rate plan in your subscription. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan. However, if there are multiple rate plans with the same `productRatePlanId` value existing in the subscription, you must use the `ratePlanId` field to remove the rate plan. The `externalCatalogPlanId` field cannot be used to distinguish multiple rate plans in this case.
**Note:** Provide only one of `externalCatalogPlanId`, `ratePlanId` or `productRatePlanId`. If more than one field is provided then the request would fail.
type: string
externalIdSourceSystem:
description: |
The ID of the external source system. You can use this field and `externalCatalogPlanId` to specify a product rate plan that is imported from an external system.
**Note:** If both `externalCatalogPlanId`, `externalIdSourceSystem` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
newExternalCatalogPlanId:
description: |
An external ID of the product rate plan to be added. You can use this field to specify a product rate plan that is imported from an external system. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan.
**Note:** Provide only one of `newExternalCatalogPlanId` or `newProductRatePlanId`. If both fields are provided then the request would fail.
type: string
newExternalIdSourceSystem:
description: |
The ID of the external source system. You can use this field and `newExternalCatalogPlanId` to specify a product rate plan that is imported from an external system.
**Note:** If both `newExternalCatalogPlanId`, `newExternalIdSourceSystem` and `newProductRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
newProductRatePlanId:
description: ID of a product rate plan for this subscription.
type: string
newProductRatePlanNumber:
description: Number of a product rate plan for this subscription.
type: string
productRatePlanId:
description: 'ID of the product rate plan that the removed rate plan is
based on.
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription. '
type: string
ratePlanId:
description: 'ID of a rate plan to remove. Note that the removal of a rate
plan through the Change Plan amendment supports the function of removal before future-dated removals , as in a Remove
Product amendment.
'
type: string
resetBcd:
default: false
description: 'If resetBcd is true then reset the Account BCD to the effective
date; if it is false keep the original BCD.
'
type: boolean
serviceActivationDate:
description: 'The date when the change in the subscription is activated
in yyyy-mm-dd format. You must specify a Service Activation date if the
Customer Acceptance date is set. If the Customer Acceptance date is not
set, the value of the `serviceActivationDate` field defaults to be the
Contract Effective Date. The billing trigger dates must follow this rule:
contractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate'
format: date
type: string
subType:
description: "Use this field to choose the sub type for your change plan\
\ amendment. \n\nHowever, if you do not set this field, the field will\
\ be automatically generated by the system according to the following\
\ rules:\n\nWhen the old and new rate plans are within the same Grading\
\ catalog group:\n* If the grade of new plan is greater than that of the\
\ old plan, this is an \"Upgrade\".\n* If the grade of new plan is less\
\ than that of the old plan, this is a \"Downgrade\".\n* If the grade\
\ of new plan equals that of the old plan, this is a \"Crossgrade\".\n\
\nWhen the old and new rate plans are not in the same Grading catalog\
\ group, or either has no group, this is \"PlanChanged\".\n"
enum:
- Upgrade
- Downgrade
- Crossgrade
- PlanChanged
type: string
subscriptionRatePlanNumber:
description: 'Number of a rate plan for this subscription. '
type: string
type: object
- $ref: '#/definitions/RatePlanObjectCustomFields'
title: change
PUTSrpRemoveType:
properties:
bookingDate:
description: "The booking date that you want to set for the amendment contract.\
\ The booking date of an amendment is the equivalent of the order date of\
\ an order. This field must be in the `yyyy-mm-dd` format. The default value\
\ is the current date when you make the API call. \n"
format: date
type: string
contractEffectiveDate:
description: 'Effective date of the new subscription, as yyyy-mm-dd.
'
format: date
type: string
customerAcceptanceDate:
description: |
The date when the customer accepts the contract in yyyy-mm-dd format.
If this field is not set:
* If the `serviceActivationDate` field is not set, the value of this field is set to be the contract effective date.
* If the `serviceActivationDate` field is set, the value of this field is set to be the service activation date.
The billing trigger dates must follow this rule:
contractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate
format: date
type: string
externalCatalogPlanId:
description: |
An external ID of the rate plan to be removed. You can use this field to specify an existing rate plan in your subscription. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan. However, if there are multiple rate plans with the same `productRatePlanId` value existing in the subscription, you must use the `ratePlanId` field to remove the rate plan. The `externalCatalogPlanId` field cannot be used to distinguish multiple rate plans in this case.
**Note:** If both `externalCatalogPlanId` and `ratePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
externalIdSourceSystem:
description: |
The ID of the external source system. You can use this field and `externalCatalogPlanId` to specify a product rate plan that is imported from an external system.
**Note:** If both `externalCatalogPlanId`, `externalIdSourceSystem` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
ratePlanId:
description: 'ID of a rate plan for this subscription. This can be the latest
version or any history version of ID.
'
type: string
serviceActivationDate:
description: |
The date when the remove amendment is activated in yyyy-mm-dd format.
You must specify a Service Activation date if the Customer Acceptance date is set. If the Customer Acceptance date is not set, the value of the `serviceActivationDate` field defaults to be the Contract Effective Date.
The billing trigger dates must follow this rule:
contractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate
format: date
type: string
subscriptionRatePlanNumber:
description: 'Number of a rate plan for this subscription.
'
type: string
required:
- contractEffectiveDate
title: remove
type: object
PUTSrpUpdateType:
allOf:
- properties:
bookingDate:
description: "The booking date that you want to set for the amendment contract.\
\ The booking date of an amendment is the equivalent of the order date\
\ of an order. This field must be in the `yyyy-mm-dd` format. The default\
\ value is the current date when you make the API call. \n"
format: date
type: string
chargeUpdateDetails:
description: "Container for one or more product rate plan charges. \n"
items:
$ref: '#/definitions/PUTScUpdateType'
type: array
contractEffectiveDate:
description: |
The date when the amendment changes take effect. The format of the date is yyyy-mm-dd.
If there is already a future-dated Update Product amendment on the subscription, the `specificUpdateDate` field will be used instead of this field to specify when the Update Product amendment takes effect.
format: date
type: string
customerAcceptanceDate:
description: |
The date when the customer accepts the contract in yyyy-mm-dd format.
If this field is not set:
* If the `serviceActivationDate` field is not set, the value of this field is set to be the contract effective date.
* If the `serviceActivationDate` field is set, the value of this field is set to be the service activation date.
The billing trigger dates must follow this rule:
contractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate
format: date
type: string
externalCatalogPlanId:
description: |
An external ID of the rate plan to be updated. You can use this field to specify an existing rate plan in your subscription. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan. However, if there are multiple rate plans with the same `productRatePlanId` value existing in the subscription, you must use the `ratePlanId` field to update the rate plan. The `externalCatalogPlanId` field cannot be used to distinguish multiple rate plans in this case.
**Note:** If both `externalCatalogPlanId` and `ratePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
externalIdSourceSystem:
description: |
The ID of the external source system. You can use this field and `externalCatalogPlanId` to specify a product rate plan that is imported from an external system.
**Note:** If both `externalCatalogPlanId`, `externalIdSourceSystem` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
externallyManagedPlanId:
description: 'Indicates the unique identifier for the rate plan purchased
on a third-party store. This field is used to represent a subscription
rate plan created through third-party stores.
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
ratePlanId:
description: 'ID of a rate plan for this subscription. This can be the latest
version or any history version of ID.
'
type: string
serviceActivationDate:
description: |
The date when the update amendment is activated in yyyy-mm-dd format.
You must specify a Service Activation date if the Customer Acceptance date is set. If the Customer Acceptance date is not set, the value of the `serviceActivationDate` field defaults to be the Contract Effective Date.
The billing trigger dates must follow this rule:
contractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate
format: date
type: string
specificUpdateDate:
description: |
The date when the Update Product amendment takes effect. This field is only applicable if there is already a future-dated Update Product amendment on the subscription. The format of the date is yyyy-mm-dd.
Required only for Update Product amendments if there is already a future-dated Update Product amendment on the subscription.
format: date
type: string
subscriptionRatePlanNumber:
description: 'Number of a rate plan for this subscription.
'
type: string
required:
- contractEffectiveDate
type: object
- $ref: '#/definitions/RatePlanObjectCustomFields'
title: update
PUTSubscriptionPatchRequestType:
example:
customFields:
sub_cf__c: subscription custom field
ratePlans:
- charges:
- chargeNumber: C-00000016
customFields:
sub_rpc__c: rate plan charge custom field
customFields:
sub_rate_plan__c: rate plan custom field
ratePlanId: 8a8081085d834928015da220da08207f
properties:
customFields:
$ref: '#/definitions/SubscriptionObjectCustomFields'
ratePlans:
items:
properties:
charges:
items:
properties:
chargeId:
description: 'Use either this field or the `chargeNumber` field
to specify the charge for which you will be updating the custom
fields. By using this field you actually specify a specific
charge segment of a charge. See Segmented rate plan charges for more information
about charge segments.
'
type: string
chargeNumber:
description: 'Use either this field or the `chargeId` field to
specify the charge for which you will be updating the custom
fields. By using this field you actually specify the last charge
segment of a charge. See Segmented rate plan charges for more information
about charge segments.
'
type: string
customFields:
$ref: '#/definitions/RatePlanChargeObjectCustomFields'
type: object
type: array
customFields:
$ref: '#/definitions/OrdersRatePlanObjectCustomFields'
ratePlanId:
description: The rate plan id in any version of the subscription. This
will be linked to the only one rate plan in the current version.
type: string
type: object
type: array
type: object
PUTSubscriptionPatchSpecificVersionRequestType:
example:
customFields:
sub_cf__c: subscription custom field
ratePlans:
- charges:
- chargeNumber: C-00000016
customFields:
sub_rpc__c: rate plan charge custom field
customFields:
sub_rate_plan__c: rate plan custom field
ratePlanId: 8a8081085d834928015da220da08207f
properties:
customFields:
$ref: '#/definitions/SubscriptionObjectCustomFields'
ratePlans:
items:
properties:
charges:
items:
properties:
chargeId:
description: 'Use either this field or the `chargeNumber` field
to specify the charge for which you will be updating the custom
fields. By using this field you actually specify a specific
charge segment of a charge. See [Segmented rate plan charges](https://knowledgecenter.zuora.com/Central_Platform/API/G_SOAP_API/E1_SOAP_API_Object_Reference/RatePlanCharge#Segmented_rate_plan_charges)
for more information about charge segments.
'
type: string
chargeNumber:
description: 'Use either this field or the `chargeId` field to
specify the charge for which you will be updating the custom
fields. By using this field you actually specify the last charge
segment of a charge. See [Segmented rate plan charges](https://knowledgecenter.zuora.com/Central_Platform/API/G_SOAP_API/E1_SOAP_API_Object_Reference/RatePlanCharge#Segmented_rate_plan_charges)
for more information about charge segments.
'
type: string
customFields:
$ref: '#/definitions/RatePlanChargeObjectCustomFields'
type: object
type: array
customFields:
$ref: '#/definitions/RatePlanObjectCustomFields'
ratePlanId:
description: The rate plan id in any version of the subscription. This
will be linked to the only one rate plan in the current version.
type: string
required:
- ratePlanId
type: object
type: array
type: object
PUTSubscriptionPreviewInvoiceItemsType:
properties:
chargeAmount:
description: 'The amount of the charge. This amount doesn''t include taxes
unless the charge''s tax mode is inclusive.
'
type: number
chargeDescription:
description: 'Description of the charge.
'
type: string
chargeName:
description: 'Name of the charge
'
type: string
productName:
description: 'Name of the product associated with this item.
'
type: string
productRatePlanChargeId:
description: ''
type: string
quantity:
description: 'Quantity of this item.
'
type: number
serviceEndDate:
description: 'End date of the service period for this item, i.e., the last
day of the period, as yyyy-mm-dd.
'
format: date
type: string
serviceStartDate:
description: 'Service start date as yyyy-mm-dd. If the charge is a one-time
fee, this is the date of that charge.
'
format: date
type: string
taxationItems:
description: "List of taxation items.\n**Note**: This field is only available\
\ if you set the `zuora-version` request header to `315.0` or later [available\
\ versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version). "
items:
$ref: '#/definitions/POSTSubscriptionPreviewTaxationItemsType'
type: array
unitOfMeasure:
description: ''
type: string
title: invoiceItems
type: object
PUTSubscriptionResponseType:
properties:
amount:
description: 'Invoice amount. Preview mode only.
'
type: number
amountWithoutTax:
description: 'Invoice amount minus tax. Preview mode only.
'
type: number
chargeMetrics:
description: 'Container for charge metrics.
'
properties:
dmrr:
description: 'Change in total contract value.
'
type: string
dtcv:
description: 'Change in monthly recurring revenue.
'
type: string
mrr:
description: 'Monthly recurring revenue.
'
type: string
number:
description: 'The charge number of the subscription. Only available for
update subscription.
'
type: string
originRatePlanId:
description: 'The origin rate plan ID. Only available for update subscription.
'
type: string
originalId:
description: 'The original rate plan charge ID. Only available for update
subscription.
'
type: string
productRatePlanChargeId:
description: ''
type: string
productRatePlanId:
description: ''
type: string
tcv:
description: 'Total contract value.
'
type: string
type: object
creditMemo:
description: "Container for credit memos.\n\n**Note:** This container is only\
\ available if you set the Zuora REST API minor version to 207.0 or later\
\ [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version)\
\ in the request header, and you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n"
properties:
amount:
description: Credit memo amount.
format: double
type: number
amountWithoutTax:
description: Credit memo amount minus tax.
format: double
type: number
creditMemoItems:
description: ''
items:
$ref: '#/definitions/POSTSubscriptionPreviewCreditMemoItemsType'
type: array
taxAmount:
description: Tax amount on the credit memo.
format: double
type: number
type: object
creditMemoId:
description: |
The credit memo ID, if a credit memo is generated during the subscription process.
**Note:** This container is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header, and you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: string
invoice:
description: "Container for invoices.\n\n\n **Note:** This field is only available\
\ if you set the Zuora REST API minor version to 207.0 or later [available\
\ versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version)\
\ in the request header. Also, the response structure is changed and the\
\ following invoice related response fields are moved to this **invoice**\
\ container:\n \n * amount\n * amountWithoutTax\n * taxAmount\n \
\ * invoiceItems\n * targetDate\n"
properties:
amount:
description: Invoice amount.
format: double
type: number
amountWithoutTax:
description: 'Invoice amount minus tax.
'
format: double
type: number
invoiceItems:
description: 'Container for invoice items.
'
items:
$ref: '#/definitions/PUTSubscriptionPreviewInvoiceItemsType'
type: array
targetDate:
description: |
Date through which to calculate charges if an invoice is generated, as yyyy-mm-dd. Default is current date.
**Note:** This field is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header.
format: date
type: string
taxAmount:
description: 'The tax amount of the invoice.
'
format: double
type: number
type: object
invoiceId:
description: 'Invoice ID, if an invoice is generated during the update.
'
type: string
invoiceItems:
description: 'Container for invoice items.
'
items:
$ref: '#/definitions/PUTSubscriptionPreviewInvoiceItemsType'
type: array
invoiceTargetDate:
description: |
Date through which charges are calculated on the invoice, as yyyy-mm-dd. Preview mode only.
**Note:** This field is only available if you do not specify the Zuora REST API minor version or specify the minor version to 186.0, 187.0, 188.0, 189.0, and 196.0. .
format: date
type: string
paidAmount:
description: 'Payment amount, if a payment is collected
'
type: number
paymentId:
description: 'Payment ID, if a payment is collected.
'
type: string
subscriptionId:
description: 'The ID of the resulting new subscription.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
targetDate:
description: |
Date through which to calculate charges if an invoice is generated, as yyyy-mm-dd. Default is current date.
**Note:** This field is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header.
format: date
type: string
taxAmount:
description: 'Tax amount on the invoice.
'
type: number
totalDeltaMrr:
description: 'Change in the subscription monthly recurring revenue as a result
of the update.
'
type: number
totalDeltaTcv:
description: 'Change in the total contracted value of the subscription as
a result of the update.
'
type: number
type: object
PUTSubscriptionResumeResponseType:
properties:
creditMemoId:
description: |
The credit memo ID, if a credit memo is generated during the subscription process.
**Note:** This container is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header, and you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: string
invoiceId:
description: 'Invoice ID, if an invoice is generated during the subscription
process.
'
type: string
paidAmount:
description: 'Payment amount, if a payment is collected.
'
type: number
paymentId:
description: 'Payment ID, if a payment is collected.
'
type: string
resumeDate:
description: 'The date when subscription resumption takes effect, as yyyy-mm-dd.
'
format: date
type: string
subscriptionId:
description: 'The subscription ID.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
termEndDate:
description: 'The date when the new subscription term ends, as yyyy-mm-dd.
'
format: date
type: string
totalDeltaTcv:
description: 'Change in the total contracted value of the subscription as
a result of the update.
'
type: number
type: object
PUTSubscriptionResumeType:
example:
collect: false
contractEffectiveDate: '2019-02-01'
creditMemoReasonCode: Unsatisfactory service
extendsTerm: true
resumePolicy: SpecificDate
resumeSpecificDate: '2019-10-01'
runBilling: true
properties:
applicationOrder:
description: |
The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.
**Note:**
- This field is valid only if the `applyCredit` field is set to `true`.
- If no value is specified for this field, the default priority order is used, ["CreditMemo", "UnappliedPayment"], to apply credit memos first and then apply unapplied payments.
- If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `["CreditMemo"]`, only credit memos are used to apply to invoices.
items:
type: string
type: array
applyCredit:
description: |
If the value is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices.
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: boolean
applyCreditBalance:
description: "Whether to automatically apply a credit balance to an invoice.\n\
\nIf the value is `true`, the credit balance is applied to the invoice.\
\ If the value is `false`, no action is taken.\n\n\nTo view the credit balance\
\ adjustment, retrieve the details of the invoice using the Get Invoices\
\ method.\n\nPrerequisite: `invoice` must be `true`. \n\n**Note:** \n -\
\ If you are using the field `invoiceCollect` rather than the field `invoice`,\
\ the `invoiceCollect` value must be `true`.\n - This field is deprecated\
\ if you have the Invoice Settlement feature enabled.\n"
type: boolean
bookingDate:
description: "The booking date that you want to set for the amendment contract\
\ when you resume the subscription. If `extendsTerm` is `true`, which means\
\ you also extend the term, then this field is also the booking date for\
\ the Terms and Conditions amendment contract.\n\nThis field must be in\
\ the `yyyy-mm-dd` format. The default value of this field is the current\
\ date when you make the API call. \n"
format: date
type: string
collect:
default: false
description: "Collects an automatic payment for a subscription. The collection\
\ generated in this operation is only for this subscription, not for the\
\ entire customer account.\n\nIf the value is `true`, the automatic payment\
\ is collected. If the value is `false`, no action is taken.\n\nPrerequisite:\
\ The `invoice` or `runBilling` field must be `true`. \n\n**Note**: This\
\ field is only available if you set the `zuora-version` request header\
\ to `196.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
type: boolean
contractEffectiveDate:
description: 'The date when the customer notifies you that they want to resume
their subscription.
'
format: date
type: string
creditMemoReasonCode:
description: A code identifying the reason for the credit memo transaction
that is generated by the request. The value must be an existing reason code.
If you do not pass the field or pass the field with empty value, Zuora uses
the default reason code.
type: string
documentDate:
description: "The date of the billing document, in `yyyy-mm-dd` format. It\
\ represents the invoice date for invoices, credit memo date for credit\
\ memos, and debit memo date for debit memos.\n\n- If this field is specified,\
\ the specified date is used as the billing document date. \n- If this field\
\ is not specified, the date specified in the `targetDate` is used as the\
\ billing document date.\n"
format: date
type: string
extendsTerm:
description: |
Whether to extend the subscription term by the length of time the suspension is in effect.
Values: `true`, `false`.
type: boolean
invoice:
description: |
**Note:** This field has been replaced by the `runBilling` field. The
`invoice` field is only available for backward compatibility.
Creates an invoice for a subscription. The invoice generated in this
operation is only for this subscription, not for the entire customer
account.
If the value is `true`, an invoice is created. If the value is
`false`, no action is taken. The default value is `false`.
This field is in Zuora REST API version control. Supported minor
versions are `196.0` and `207.0`. To use this field in the method, you
must set the `zuora-version` parameter to the minor version number in
the request header.
type: boolean
invoiceCollect:
default: false
description: |
**Note:** This field has been replaced by the `invoice` field
and the `collect` field. `invoiceCollect` is available only for backward
compatibility.
If `true`, an invoice is generated and payment collected automatically during
the subscription process. If `false`, no invoicing or payment
takes place. The invoice generated in this operation is only for this subscription,
not for the entire customer account.
**Note**: This field is only available if you set the `zuora-version` request header to `186.0`, `187.0`, `188.0`, or `189.0`.
type: boolean
invoiceTargetDate:
description: |
**Note:** This field has been replaced by the `targetDate` field. The
`invoiceTargetDate` field is only available for backward
compatibility.
Date through which to calculate charges if an invoice is generated, as
yyyy-mm-dd. Default is current date.
This field is in Zuora REST API version control. Supported minor
versions are `207.0` and earlier [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: date
type: string
orderDate:
description: |
The date when the order is signed. If no additinal contractEffectiveDate is provided, this order will use this order date as the contract effective date.
This field must be in the `yyyy-mm-dd` format.
This field is required for Orders customers only, not applicable to Orders Harmonization customers.
format: date
type: string
resumePeriods:
description: |
The length of the period used to specify when the subscription is resumed. The subscription resumption takes effect after a specified period based on the suspend date or today's date. You must use this field together with the `resumePeriodsType` field to specify the period.
**Note:** This field is only applicable when the `suspendPolicy` field is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`.
type: string
resumePeriodsType:
description: |
The period type used to define when the subscription resumption takes effect. The subscription resumption takes effect after a specified period based on the suspend date or today's date. You must use this field together with the `resumePeriods` field to specify the period.
Values: `Day`, `Week`, `Month`, `Year`
**Note:** This field is only applicable when the `suspendPolicy` field is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`.
type: string
resumePolicy:
description: |
Resume methods. Specify a way to resume a subscription.
Values:
* `Today`: The subscription resumption takes effect on today's date.
* `FixedPeriodsFromSuspendDate`: The subscription resumption takes effect after a specified period based on the suspend date. You must specify the `resumePeriods` and `resumePeriodsType` fields to define the period.
* `SpecificDate`: The subscription resumption takes effect on a specific date. You must define the specific date in the `resumeSpecificDate` field.
* `FixedPeriodsFromToday`: The subscription resumption takes effect after a specified period based on the today's date. You must specify the `resumePeriods` and `resumePeriodsType` fields to define the period.
* `suspendDate`: The subscription resumption takes effect on the date of suspension of the subscription.
type: string
resumeSpecificDate:
description: |
A specific date when the subscription resumption takes effect, in the format yyyy-mm-dd.
**Note:** This field is only applicable only when the `resumePolicy` field is set to `SpecificDate`.
The value should not be earlier than the subscription suspension date.
format: date
type: string
runBilling:
default: false
description: "Creates an invoice for a subscription. If you have the Invoice\
\ Settlement feature enabled, a credit memo might also be created based\
\ on the [invoice and credit memo generation rule](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/Credit_and_Debit_Memos/Rules_for_Generating_Invoices_and_Credit_Memos).\
\ \n\n\nThe billing documents generated\nin this operation is only for\
\ this subscription, not for the entire\ncustomer account.\n\n\nPossible\
\ values:\n\n- `true`: An invoice is created. If you have the Invoice Settlement\
\ feature enabled, a credit memo might also be created.\n\n\n- `false`:\
\ No invoice is created.\n\n\n**Note:** This field is in Zuora REST API\
\ version control. Supported\nminor versions are `211.0` or later [available\
\ versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ To use this field in the method,\nyou must set the `zuora-version` parameter\
\ to the minor version number\nin the request header.\n"
enum:
- true
- false
type: boolean
targetDate:
description: |
Date through which to calculate charges if an invoice or a credit memo is generated, as
yyyy-mm-dd. Default is current date.
**Note:** The credit memo is only available if you have the Invoice Settlement feature enabled.
This field is in Zuora REST API version control. Supported minor
versions are `211.0` and later. To use this field in the method, you
must set the `zuora-version` parameter to the minor version number in
the request header.
format: date
type: string
required:
- resumePolicy
type: object
PUTSubscriptionSuspendResponseType:
properties:
creditMemoId:
description: |
The credit memo ID, if a credit memo is generated during the subscription process.
**Note:** This container is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header, and you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: string
invoiceId:
description: 'Invoice ID, if an invoice is generated during the subscription
process.
'
type: string
paidAmount:
description: 'Payment amount, if a payment is collected.
'
type: number
paymentId:
description: 'Payment ID, if a payment is collected.
'
type: string
resumeDate:
description: 'The date when subscription resumption takes effect, in the format
yyyy-mm-dd.
'
format: date
type: string
subscriptionId:
description: 'The subscription ID.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
suspendDate:
description: 'The date when subscription suspension takes effect, in the format
yyyy-mm-dd.
'
format: date
type: string
termEndDate:
description: 'The date when the new subscription term ends, in the format
yyyy-mm-dd.
'
format: date
type: string
totalDeltaTcv:
description: 'Change in the total contracted value of the subscription as
a result of the update.
'
type: number
type: object
PUTSubscriptionSuspendType:
example:
collect: false
contractEffectiveDate: '2019-02-01'
creditMemoReasonCode: Unsatisfactory service
extendsTerm: true
resume: true
resumePolicy: SpecificDate
resumeSpecificDate: '2019-06-01'
runBilling: true
suspendPeriods: 10
suspendPeriodsType: Day
suspendPolicy: FixedPeriodsFromToday
properties:
applicationOrder:
description: |
The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.
**Note:**
- This field is valid only if the `applyCredit` field is set to `true`.
- If no value is specified for this field, the default priority order is used, ["CreditMemo", "UnappliedPayment"], to apply credit memos first and then apply unapplied payments.
- If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `["CreditMemo"]`, only credit memos are used to apply to invoices.
items:
type: string
type: array
applyCredit:
description: |
If the value is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices.
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: boolean
applyCreditBalance:
description: "Whether to automatically apply a credit balance to an invoice.\n\
\nIf the value is `true`, the credit balance is applied to the invoice.\
\ If the value is `false`, no action is taken.\n\n\nTo view the credit balance\
\ adjustment, retrieve the details of the invoice using the Get Invoices\
\ method.\n\nPrerequisite: `invoice` must be `true`. \n\n**Note:** \n -\
\ If you are using the field `invoiceCollect` rather than the field `invoice`,\
\ the `invoiceCollect` value must be `true`.\n - This field is deprecated\
\ if you have the Invoice Settlement feature enabled.\n"
type: boolean
bookingDate:
description: "The booking date that you want to set for the amendment contract\
\ when you suspend the subscription. If `resume` is `true`, which means\
\ you also choose to resume the subscription at some point, then this field\
\ is also the booking date for the Resume amendment contract.\n\nThis field\
\ must be in the `yyyy-mm-dd` format. The default value of this field is\
\ the current date when you make the API call. \n"
format: date
type: string
collect:
default: false
description: "Collects an automatic payment for a subscription. The collection\
\ generated in this operation is only for this subscription, not for the\
\ entire customer account.\n\nIf the value is `true`, the automatic payment\
\ is collected. If the value is `false`, no action is taken.\n\nPrerequisite:\
\ The `invoice` or `runBilling` field must be `true`. \n\n**Note**: This\
\ field is only available if you set the `zuora-version` request header\
\ to `196.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
type: boolean
contractEffectiveDate:
description: 'The date when the customer notifies you that they want to amend
their subscription.
'
format: date
type: string
creditMemoReasonCode:
description: A code identifying the reason for the credit memo transaction
that is generated by the request. The value must be an existing reason code.
If you do not pass the field or pass the field with empty value, Zuora uses
the default reason code.
type: string
documentDate:
description: "The date of the billing document, in `yyyy-mm-dd` format. It\
\ represents the invoice date for invoices, credit memo date for credit\
\ memos, and debit memo date for debit memos.\n\n- If this field is specified,\
\ the specified date is used as the billing document date. \n- If this field\
\ is not specified, the date specified in the `targetDate` is used as the\
\ billing document date.\n"
format: date
type: string
extendsTerm:
description: 'Whether to extend the subscription term by the length of time
the suspension is in effect. Values: `true`, `false`.
'
type: boolean
invoice:
description: "**Note:** This field has been replaced by the `runBilling` field.\
\ The\n`invoice` field is only available for backward compatibility.\n\n\
\nCreates an invoice for a subscription. The invoice generated in this\n\
operation is only for this subscription, not for the entire customer\naccount.\n\
\n\nIf the value is `true`, an invoice is created. If the value is\n`false`,\
\ no action is taken. The default value is `false`. \n\n\nThis field is\
\ in Zuora REST API version control. Supported minor\nversions are `196.0`\
\ and `207.0`. To use this field in the method, you\nmust set the zuora-version\
\ parameter to the minor version number in\nthe request header.\n"
type: boolean
invoiceCollect:
description: |
**Note:** This field has been replaced by the `invoice` field
and the `collect` field. `invoiceCollect` is available only for backward
compatibility.
**Note**: This field is only available if you set the `zuora-version` request header to `186.0`, `187.0`, `188.0`, or `189.0`.
type: boolean
invoiceTargetDate:
description: |
**Note:** This field has been replaced by the `targetDate` field. The
`invoiceTargetDate` field is only available for backward
compatibility.
Date through which to calculate charges if an invoice is generated, as
yyyy-mm-dd. Default is current date.
This field is in Zuora REST API version control. Supported minor
versions are `207.0` and earlier [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: date
type: string
orderDate:
description: |
The date when the order is signed. If no additinal contractEffectiveDate is provided, this order will use this order date as the contract effective date.
This field must be in the `yyyy-mm-dd` format.
This field is required for Orders customers only, not applicable to Orders Harmonization customers.
format: date
type: string
resume:
description: 'Whether to set when to resume a subscription when creating a
suspend amendment. Values: `true`, `false`.
'
type: boolean
resumePeriods:
description: |
The length of the period used to specify when the subscription is resumed. The subscription resumption takes effect after a specified period based on the suspend date or today's date. You must use this field together with the `resumePeriodsType` field to specify the period.
**Note:** This field is only applicable when the `suspendPolicy` field is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`.
type: string
resumePeriodsType:
description: |
The period type used to define when the subscription resumption takes effect. The subscription resumption takes effect after a specified period based on the suspend date or today's date. You must use this field together with the resumePeriods field to specify the period.
Values: `Day`, `Week`, `Month`, `Year`
**Note:** This field is only applicable when the `suspendPolicy` field is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`.
type: string
resumePolicy:
description: |
Resume methods. Specify a way to resume a subscription. Values:
* `Today`: The subscription resumption takes effect on today's date.
* `FixedPeriodsFromSuspendDate`: The subscription resumption takes effect after a specified period based on the suspend date. You must specify the `resumePeriods` and `resumePeriodsType` fields to define the period.
* `SpecificDate`: The subscription resumption takes effect on a specific date. You must define the specific date in the `resumeSpecificDate` field.
* `FixedPeriodsFromToday`: The subscription resumption takes effect after a specified period based on the today's date. You must specify the `resumePeriods` and `resumePeriodsType` fields to define the period.
* `suspendDate`: The subscription resumption takes effect on the date of suspension of the subscription.
type: string
resumeSpecificDate:
description: |
A specific date when the subscription resumption takes effect, in the format yyyy-mm-dd.
**Note:** This field is only applicable only when the `resumePolicy` field is set to `SpecificDate`.
The value should not be earlier than the subscription suspension date.
format: date
type: string
runBilling:
default: false
description: "Creates an invoice for a subscription. If you have the Invoice\
\ Settlement feature enabled, a credit memo might also be created based\
\ on the [invoice and credit memo generation rule](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/Credit_and_Debit_Memos/Rules_for_Generating_Invoices_and_Credit_Memos).\
\ \n\n\nThe billing documents generated\nin this operation is only for\
\ this subscription, not for the entire\ncustomer account.\n\n\nPossible\
\ values:\n\n- `true`: An invoice is created. If you have the Invoice Settlement\
\ feature enabled, a credit memo might also be created.\n\n\n- `false`:\
\ No invoice is created.\n\n\n**Note:** This field is in Zuora REST API\
\ version control. Supported\nminor versions are `211.0` or later [available\
\ versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ To use this field in the method,\nyou must set the `zuora-version` parameter\
\ to the minor version number\nin the request header.\n"
enum:
- true
- false
type: boolean
suspendPeriods:
description: |
The length of the period used to specify when the subscription suspension takes effect. The subscription suspension takes effect after a specified period based on today's date. You must use this field together with the `suspendPeriodsType` field to specify the period.
**Note:** This field is only applicable only when the suspendPolicy field is set to FixedPeriodsFromToday.
type: string
suspendPeriodsType:
description: |
The period type used to define when the subscription suspension takes effect. The subscription suspension takes effect after a specified period based on today's date. You must use this field together with the suspendPeriods field to specify the period.
Type: string (enum)
Values: `Day`, `Week`, `Month`, `Year`
**Note:** This field is only applicable only when the suspendPolicy field is set to FixedPeriodsFromToday.
type: string
suspendPolicy:
description: "Suspend methods. Specify a way to suspend a subscription. \n\
\nValue:\n\n* `Today`: The subscription suspension takes effect on today's\
\ date.\n* `EndOfLastInvoicePeriod`: The subscription suspension takes effect\
\ at the end of the last invoice period. The suspend date defaults to a\
\ date that is one day after the last invoiced period. You can choose this\
\ option to avoid any negative invoices (credits) issued back to the customer\
\ after the subscription suspension. \n* `SpecificDate`: The subscription\
\ suspension takes effect on a specific date. You must define the specific\
\ date in the `suspendSpecificDate` field.\n* `FixedPeriodsFromToday`: The\
\ subscription suspension takes effect after a specified period based on\
\ today's date. You must specify the `suspendPeriods` and `suspendPeriodsType`\
\ fields to define the period.\n"
type: string
suspendSpecificDate:
description: |
A specific date when the subscription suspension takes effect, in the format yyyy-mm-dd.
**Note:** This field is only applicable only when the suspendPolicy field is set to SpecificDate.
The value should not be earlier than the subscription contract effective date, later than the subscription term end date, or within a period for which the customer has been invoiced.
format: date
type: string
targetDate:
description: |
Date through which to calculate charges if an invoice or a credit memo is generated, as
yyyy-mm-dd. Default is current date.
**Note:** The credit memo is only available if you have the Invoice Settlement feature enabled.
This field is in Zuora REST API version control. Supported minor
versions are `211.0` and later. To use this field in the method, you
must set the `zuora-version` parameter to the minor version number in
the request header.
format: date
type: string
required:
- suspendPolicy
type: object
PUTSubscriptionType:
allOf:
- properties:
add:
description: 'Container for adding one or more rate plans.
'
items:
$ref: '#/definitions/PUTSrpAddType'
type: array
applicationOrder:
description: |
The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.
**Note:**
- This field is valid only if the `applyCredit` field is set to `true`.
- If no value is specified for this field, the default priority order is used, ["CreditMemo", "UnappliedPayment"], to apply credit memos first and then apply unapplied payments.
- If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `["CreditMemo"]`, only credit memos are used to apply to invoices.
items:
type: string
type: array
applyCredit:
description: |
Whether to automatically apply credit memos or unapplied payments, or both to an invoice.
If the value is `true`, the credit memo or unapplied payment, or both will be automatically applied to the invoice. If no value is specified or the value is `false`, no action is taken.
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: boolean
applyCreditBalance:
description: "Whether to automatically apply a credit balance to an invoice.\n\
\nIf the value is `true`, the credit balance is applied to the invoice.\
\ If the value is `false`, no action is taken.\n\n\nTo view the credit\
\ balance adjustment, retrieve the details of the invoice using the Get\
\ Invoices method.\n\nPrerequisite: `invoice` must be `true`. \n\n**Note:**\
\ \n - If you are using the field `invoiceCollect` rather than the field\
\ `invoice`, the `invoiceCollect` value must be `true`.\n - This field\
\ is deprecated if you have the Invoice Settlement feature enabled.\n"
type: boolean
autoRenew:
description: 'If `true`, this subscription automatically renews at the end
of the subscription term. Default is `false`.
'
type: boolean
bookingDate:
description: "The booking date that you want to set for the contract when\
\ you change the `termType` field of the subscription and as a result\
\ get a new version of subscription created. The booking date of an amendment\
\ is the equivalent of the order date of an order. This field must be\
\ in the `yyyy-mm-dd` format. The default value is the current date when\
\ you make the API call. \n"
format: date
type: string
change:
description: |
Use this field to change one or more rate plans - to replace the existing rate plans in a subscription with other rate plans.
**Note**: Changing rate plans is currently not supported for Billing - Revenue Integration. When Billing - Revenue Integration is enabled, changing rate plans will no longer be applicable in Zuora Billing.
items:
$ref: '#/definitions/PUTSrpChangeType'
type: array
collect:
default: false
description: "Collects an automatic payment for a subscription. The collection\
\ generated in this operation is only for this subscription, not for the\
\ entire customer account.\n\nIf the value is `true`, the automatic payment\
\ is collected. If the value is `false`, no action is taken.\n\nPrerequisite:\
\ The `invoice` or `runBilling` field must be `true`. \n\n**Note**: This\
\ field is only available if you set the `zuora-version` request header\
\ to `196.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
type: boolean
creditMemoReasonCode:
description: A code identifying the reason for the credit memo transaction
that is generated by the request. The value must be an existing reason
code. If you do not pass the field or pass the field with empty value,
Zuora uses the default reason code.
type: string
currentTerm:
description: 'The length of the period for the current subscription term.
If `termType` is `TERMED`, this field is required and must be greater
than `0`. If `termType` is `EVERGREEN`, this value is ignored.
'
format: int64
type: integer
currentTermPeriodType:
description: |
The period type for the current subscription term.
This field is used with the `CurrentTerm` field to specify the current subscription term.
Values are:
* `Month` (default)
* `Year`
* `Day`
* `Week`
type: string
documentDate:
description: "The date of the billing document, in `yyyy-mm-dd` format.\
\ It represents the invoice date for invoices, credit memo date for credit\
\ memos, and debit memo date for debit memos.\n\n- If this field is specified,\
\ the specified date is used as the billing document date. \n- If this\
\ field is not specified, the date specified in the `targetDate` is used\
\ as the billing document date.\n"
format: date
type: string
externallyManagedBy:
description: 'An enum field on the Subscription object to indicate the name
of a third-party store. This field is used to represent subscriptions
created through third-party stores.
'
enum:
- Amazon
- Apple
- Google
- Roku
type: string
includeExistingDraftDocItems:
description: |
Specifies whether to include draft invoice items in subscription previews.
Values are:
* `true` (default). Includes draft invoice items in the preview result.
* `false`. Excludes draft invoice items in the preview result.
**Note:** This field is in Zuora REST API version control. Supported minor versions are 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version). To use this field in the method, you must set the **zuora-version** parameter to the minor version number in the request header.
type: boolean
includeExistingDraftInvoiceItems:
description: |
Specifies whether to include draft invoice items in subscription previews.
Values are:
* `true` (default). Includes draft invoice items in the preview result.
* `false`. Excludes draft invoice items in the preview result.
**Note:** This field is in Zuora REST API version control. Supported minor versions are 186.0, 187.0, 188.0, 189.0, 196.0, and 206.0. .
type: boolean
invoice:
description: "**Note:** This field has been replaced by the `runBilling`\
\ field. The\n`invoice` field is only available for backward compatibility.\n\
\n\nCreates an invoice for a subscription. The invoice generated in this\n\
operation is only for this subscription, not for the entire customer\n\
account.\n\n\nIf the value is `true`, an invoice is created. If the value\
\ is\n`false`, no action is taken. The default value is `false`. \n\n\n\
This field is in Zuora REST API version control. Supported minor\nversions\
\ are `196.0` and `207.0`. To use this field in the method, you\nmust\
\ set the zuora-version parameter to the minor version number in\nthe\
\ request header.\n"
type: boolean
invoiceCollect:
default: false
description: |
**Note:** This field has been replaced by the `invoice` field
and the `collect` field. `invoiceCollect` is available only for backward
compatibility.
If `true`, an invoice is generated and payment collected automatically during
the subscription process. If `false`, no invoicing or payment
takes place. The invoice generated in this operation is only for this subscription,
not for the entire customer account.
**Note**: This field is only available if you set the `zuora-version` request header to `186.0`, `187.0`, `188.0`, or `189.0`.
type: boolean
invoiceSeparately:
description: "Separates a single subscription from other subscriptions and\
\ invoices the charge independently. \n\nIf the value is `true`, the subscription\
\ is billed separately from other subscriptions. If the value is `false`,\
\ the subscription is included with other subscriptions in the account\
\ invoice.\n\nThe default value is `false`.\nPrerequisite: The default\
\ subscription setting Enable Subscriptions to be Invoiced Separately\
\ must be set to Yes.\n"
type: boolean
invoiceTargetDate:
description: |
**Note:** This field has been replaced by the `targetDate` field. The
`invoiceTargetDate` field is only available for backward
compatibility.
Date through which to calculate charges if an invoice is generated, as
yyyy-mm-dd. Default is current date.
This field is in Zuora REST API version control. Supported minor
versions are `207.0` and earlier [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: date
type: string
notes:
description: 'String of up to 500 characters.
'
type: string
preview:
description: 'If `true` the update is made in preview mode. The default
setting is `false`.
'
type: boolean
previewType:
description: "The type of preview you will receive. \n\nThis field is in\
\ Zuora REST API version control. The supported values of this field depend\
\ on the REST API minor version you specified in the request header.\n\
\n\n* If you do not specify the REST API minor version or specify the\
\ minor version number to one of following values in the request header:\n\
\n * 186.0\n * 187.0\n * 188.0\n * 189.0\n * 196.0\n * 206.0\n\n\
\ The following values are supported in the **previewType** field:\n\n\
\ * InvoiceItem\n * ChargeMetrics\n * InvoiceItemChargeMetrics\n\n\
\ The default value is InvoiceItem.\n\n* If you specify the REST API\
\ minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version)\
\ in the request header, the following values are supported in the **previewType**\
\ field:\n\n - LegalDoc\n - ChargeMetrics\n - LegalDocChargeMetrics\n\
\n The default value is LegalDoc.\n\n.\n"
type: string
remove:
description: 'Container for removing one or more rate plans.
'
items:
$ref: '#/definitions/PUTSrpRemoveType'
type: array
renewalSetting:
description: "Specifies whether a termed subscription will remain `TERMED`\
\ or change to `EVERGREEN` when it is renewed. \n\nValues are:\n\n* `RENEW_WITH_SPECIFIC_TERM`\
\ (default)\n* `RENEW_TO_EVERGREEN`\n"
type: string
renewalTerm:
description: 'The length of the period for the subscription renewal term.
Default is `0`.
'
format: int64
type: integer
renewalTermPeriodType:
description: |2
The period type for the subscription renewal term.
This field is used with the `renewalTerm` field to specify the subscription renewal term.
Values are:
* `Month` (default)
* `Year`
* `Day`
* `Week`
type: string
runBilling:
default: false
description: "Creates an invoice for a subscription. If you have the Invoice\
\ Settlement feature enabled, a credit memo might also be created based\
\ on the [invoice and credit memo generation rule](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/Credit_and_Debit_Memos/Rules_for_Generating_Invoices_and_Credit_Memos).\
\ \n\n\nThe billing documents generated\nin this operation is only for\
\ this subscription, not for the entire\ncustomer account.\n\n\nPossible\
\ values:\n\n- `true`: An invoice is created. If you have the Invoice\
\ Settlement feature enabled, a credit memo might also be created.\n\n\
\n- `false`: No invoice is created.\n\n\n**Note:** This field is in Zuora\
\ REST API version control. Supported\nminor versions are `211.0` or later\
\ [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ To use this field in the method,\nyou must set the `zuora-version` parameter\
\ to the minor version number\nin the request header.\n"
enum:
- true
- false
type: boolean
targetDate:
description: |
Date through which to calculate charges if an invoice or a credit memo is generated, as
yyyy-mm-dd. Default is current date.
**Note:** The credit memo is only available if you have the Invoice Settlement feature enabled.
This field is in Zuora REST API version control. Supported minor
versions are `211.0` and later. To use this field in the method, you
must set the `zuora-version` parameter to the minor version number in
the request header.
format: date
type: string
termStartDate:
description: "Date the subscription term begins, as yyyy-mm-dd. If this\
\ is a renewal subscription, this date is different from the subscription\
\ start date. \n"
format: date
type: string
termType:
description: 'Possible values are: `TERMED`, `EVERGREEN`.
'
type: string
update:
description: 'Container for updating one or more rate plans.
'
items:
$ref: '#/definitions/PUTSrpUpdateType'
type: array
type: object
- $ref: '#/definitions/SubscriptionObjectQTFields'
- $ref: '#/definitions/SubscriptionObjectNSFields'
- $ref: '#/definitions/SubscriptionObjectCustomFields'
example:
autoRenew: false
bookingDate: '2022-01-01'
collect: false
creditMemoReasonCode: Unsatisfactory service
currentTerm: '10'
currentTermPeriodType: Month
notes: Test UPDATE subscription from z-ruby-sdk
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerm: '4'
renewalTermPeriodType: Month
runBilling: true
termType: TERMED
update:
- bookingDate: '2022-01-02'
chargeUpdateDetails:
- quantity: 12
ratePlanChargeId: 2c92c8f83dcbd8b1013dcce0eb510075
contractEffectiveDate: '2013-04-28'
ratePlanId: 2c92c8f83dcbd8b1013dcce0ea7e006f
PUTTaxationItemType:
allOf:
- properties:
exemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
financeInformation:
description: 'Container for the finance information related to the taxation
item.
'
properties:
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
salesTaxPayableAccountingCode:
description: 'The accounting code for the sales taxes payable.
'
maxLength: 100
minLength: 0
type: string
type: object
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: "The identifier for the location based on the value of the\
\ `taxCode` field. \n"
type: string
name:
description: 'The name of the taxation item to be updated.
'
type: string
taxAmount:
description: 'The amount of the tax applied to the credit or debit memo.
'
format: double
type: number
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific credit or debit memo.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date when the tax is applied to the credit or debit memo.
'
format: date
type: string
taxRate:
description: 'The tax rate applied to the credit or debit memo.
'
format: double
type: number
taxRateDescription:
description: "The description of the tax rate. \n"
type: string
taxRateType:
description: 'The type of the tax rate applied to the credit or debit memo.
'
enum:
- Percentage
- FlatFee
type: string
type: object
- $ref: '#/definitions/TaxationItemObjectCustomFields'
example:
exemptAmount: 0.0
financeInformation:
onAccountAccountingCode: Check
salesTaxPayableAccountingCode: ''
jurisdiction: CALIFORNIA
locationCode: '06'
name: STATE TAX
taxAmount: 1.0
taxCode: ServiceTaxCode
taxCodeDescription: This is tax code description!
taxDate: '2016-06-05'
taxRate: 0.0625
taxRateDescription: This is tax rate description!
taxRateType: Percentage
PUTUpdateInvoiceScheduleRequest:
allOf:
- properties:
additionalSubscriptionsToBill:
description: "A list of the numbers of the subscriptions that need to be\
\ billed together with the invoice schedule. \n\nOne invoice schedule\
\ can have at most 600 additional subscriptions.\n"
items:
type: string
type: array
invoiceSeparately:
description: 'Whether the invoice items created from the invoice schedule
appears on a separate invoice when Zuora generates invoices.
'
type: boolean
nextRunDate:
description: "The run date of the next execution of the invoice schedule.\
\ \n\nBy default, the next run date is the same as the run date of next\
\ pending invoice schedule item. The date can be overwritten by a different\
\ date other than the default value. If the invoice schedule has completed\
\ the execution, the next run date is `null`.\n"
format: date
type: string
notes:
description: 'Comments on the invoice schedule.
'
maxLength: 255
type: string
orders:
description: |
A list of the IDs or numbers of the orders associated with the invoice schedule. One invoice schedule can be associated with at most 10 orders.
The orders specified in this field override all the existing orders associated with the invoice schedule.
items:
type: string
type: array
scheduleItems:
description: |
Container for invoice schedule items. The maximum number of schedule items is 50.
The invoice schedule items specified in this field override all the existing invoice schedule items.
items:
$ref: '#/definitions/UpdateScheduleItems'
type: array
specificSubscriptions:
description: "A list of the numbers of specific subscriptions associated\
\ with the invoice schedule.\n\n- If the subscriptions specified in this\
\ field belong to the orders specified in the `orders` field, only the\
\ specific subscriptions instead of the orders are associated with the\
\ invoice schedule. \n- If only the `orders` field is specified, all the\
\ subscriptions from the order are associated with the invoice schedule.\n\
\ \nThe specific subscriptions specified in this field override all the\
\ existing specific subscriptions associated with the invoice schedule.\n\
\nExample:\n```\n{\n \"orders\": [\n \"O-00000001\", \"O-00000002\"\
\n ],\n \"specificSubscriptions\": [\n {\n \"orderKey\": \"\
O-00000001\",\n \"subscriptionKey\": \"S-00000001\"\n }\n ]\n\
}\n```\n- For the order with number O-00000001, only subscription S-00000001\
\ contained in the order is associated with the invoice schedule.\n- For\
\ the order with number O-00000002, all subscriptions contained in the\
\ order are associated with the invoice schedule.\n"
items:
$ref: '#/definitions/InvoiceScheduleSpecificSubscriptions'
type: array
type: object
- $ref: '#/definitions/InvoiceScheduleCustomFields'
- {}
example:
additionalSubscriptionsToBill:
- S-00000001
- S-00000002
invoiceSeparately: false
nextRunDate: '2022-02-01'
notes: 2022 Billing Schedule - V2
orders:
- O-00000007
- O-00000008
scheduleItems:
- amount: 54000
id: 8a8881aa82118bec018211daf9f01680
runDate: '2022-02-24'
targetDateForAdditionalSubscriptions: '2022-02-24'
- amount: 10000
id: 8a8881aa82118bec018211daf9f11681
runDate: '2022-10-17'
targetDateForAdditionalSubscriptions: '2022-10-17'
- amount: 6200
id: 8a8881aa82118bec018211daf9f11682
runDate: '2022-11-14'
targetDateForAdditionalSubscriptions: '2022-11-14'
specificSubscriptions:
- orderKey: O-00000008
subscriptionKey: S-00000008
PUTUpdateOpenPaymentMethodTypeRequest:
example:
entityId: ''
fields:
- checksum: true
defaultValue: null
description: The Token value
editable: true
index: 1
label: AmazonToken
maxLength: 100
minLength: 1
name: AmazonToken
representer: true
required: true
type: string
visible: true
- checksum: true
defaultValue: null
description: The Type of Token, e.g. GoCardlessToken
editable: true
index: 2
label: Amazon TokenType
maxLength: 100
minLength: 1
name: AmazonTokenType
representer: true
required: true
type: string
visible: true
internalName: AmazonPay
label: ZuoraQA Amazon Pay
methodReferenceIdField: AmazonToken
subTypeField: AmazonTokenType
tenantId: '9'
userReferenceIdField: ''
properties:
entityId:
description: |
If this custom payment method type is specific to one entity only, specify the entity ID in UUID format when creating the draft payment method type, such as `123e4567-e89b-12d3-a456-426614174000`.
You can only update this field to be empty, indicating that this custom payment method type is available to the global entity and all the sub entities in the tenant.
type: string
fields:
description: "An array containing field metadata of the custom payment method\
\ type.\n\nNotes:\n - All the following nested metadata fields must be\
\ provided in the request to define a field. \n - At least one field must\
\ be defined in the fields array for a custom payment method type. \n -\
\ Up to 20 fields can be defined in the fields array for a custom method\
\ type.\n"
items:
$ref: '#/definitions/OpenPaymentMethodTypeRequestFields'
type: array
internalName:
description: |
A string to identify the custom payment method type in the API name of the payment method type.
The value of this field must be the same as the value specified when creating the draft revision of this custom payment method type.
This field cannot be updated after the creation of the custom payment method type.
This field is used along with the `tenantId` field by the system to construct and generate the API name of the custom payment method type in the following way:
`__c_`
For example, if `internalName` is `AmazonPay`, and `tenantId` is `12368`, the API name of the custom payment method type will be `AmazonPay__c_12368`.
maxLength: 19
type: string
label:
description: "The label that is used to refer to this type in the Zuora UI.\n\
\nThis value must be alphanumeric, excluding JSON preserved characters such\
\ as * \\ \u2019 \u201D \n"
maxLength: 40
type: string
methodReferenceIdField:
description: |
The identification reference of the custom payment method.
This field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Payment Method Data Source Exports and Data Query.
The value of this field must be the same as the value specified when creating the draft revision of this custom payment method type.
This field cannot be updated after the creation of the custom payment method type.
type: string
subTypeField:
description: |
The identification reference indicating the subtype of the custom payment method.
This field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.
This field cannot be updated after the creation of the custom payment method type.
type: string
tenantId:
description: |
Zuora tenant ID. If multi-entity is enabled in your tenant, this is the ID of the parent tenant of all the sub entities.
This field cannot be updated after the creation of the custom payment method type.
type: string
userReferenceIdField:
description: |
The identification reference of the user or customer account.
This field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.
This field cannot be updated after the creation of the custom payment method type.
type: string
required:
- internalName
- tenantId
- label
- methodReferenceIdField
- fields
PUTUpdateOpenPaymentMethodTypeResponse:
properties:
paymentMethodType:
description: 'The API name of the custom payment method type.
'
type: string
publishDate:
description: 'The date when the custom payment method type was published.
It is emptry if the custom payment method type has not been published yet.
'
type: string
revision:
description: 'The revision number of the custom payment method type, which
starts from 1 and increases by 1 when you update a published revision for
the first time.
'
type: integer
status:
description: 'The status of the custom payment method type.
'
type: string
PUTVerifyPaymentMethodResponseType:
properties:
paymentMethodId:
description: 'The ID of the verified payment method.
'
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
PUTVerifyPaymentMethodType:
example:
gatewayOptions:
Comments: test
IPAddress: 192.168.1.1
paymentGatewayName: Adyen
securityCode: '737'
properties:
currencyCode:
description: "The currency used for payment method authorization. \n"
type: string
gatewayOptions:
description: |
The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).
Zuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.
properties:
key:
description: 'The name of a gateway-specific parameter.
'
type: string
value:
description: 'The value of the gateway-specific parameter.
'
type: string
type: object
paymentGatewayName:
description: 'The name of the payment gateway instance. If no value is specified
for this field, the default payment gateway of the customer account will
be used.
'
type: string
securityCode:
description: 'The CVV or CVV2 security code for the credit card or debit card.
To ensure PCI compliance, the value of this field is not stored and cannot
be queried.
'
type: string
type: object
PUTWriteOffInvoiceRequest:
allOf:
- properties:
comment:
description: 'Comments about the write-off. The comment is used as the comment
of the credit memo generated by writing off the specified invoice.
'
maxLength: 255
minLength: 0
type: string
items:
description: "Container for items. This field is optional. \n**Note:** If\
\ specified, you must specify ALL the items of the invoice. The entire\
\ balance of the invoice will be written off, you cannot just write off\
\ some items of the invoice.\n"
items:
$ref: '#/definitions/CreditMemoItemFromWriteOffInvoice'
type: array
memoDate:
description: |
The date when the credit memo was created, in `yyyy-mm-dd` format. The memo date must be later than or equal to the invoice date.
The default value is the date when you write off the invoice.
format: date
type: string
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty. If you do not specify a value,
Zuora uses the default reason code `Write-off`.
'
type: string
type: object
- $ref: '#/definitions/CreditMemoObjectCustomFields'
- $ref: '#/definitions/CreditMemoObjectNSFields'
example:
memoDate: '2019-01-02'
type: object
PUTWriteOffInvoiceResponse:
properties:
creditMemo:
description: 'Container for the credit memo that is automatically generated
when writing off invoices.
'
properties:
id:
description: 'The ID of the credit memo that is created when the invoice
is written off.
'
type: string
type: object
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
PUT_BasicSummaryJournalEntryType:
allOf:
- properties:
journalEntryItems:
description: 'Key name that represents the list of journal entry items.
'
items:
$ref: '#/definitions/PUTJournalEntryItemType'
type: array
notes:
description: |
Additional information about this record.
***Character limit:*** 2,000
type: string
transferredToAccounting:
description: "Status shows whether the journal entry has been transferred\
\ to an accounting system. \n\nThis field cannot be changed after the\
\ summary journal entry has been canceled.\n\n**Note:** The Zuora Finance\
\ ***Override Transferred to Accounting*** permission is required to change\
\ `transferredToAccounting` from `Yes` to any other value.\n"
enum:
- 'No'
- Processing
- 'Yes'
- Error
- Ignore
type: string
type: object
- $ref: '#/definitions/JournalEntryObjectCustomFields'
example:
journalEntryItems:
- accountingCodeName: Accounts Receivable
type: Credit
- accountingCodeName: ''
type: Debit
notes: Transfer to accounting system
transferredToAccounting: 'Yes'
PaymentCollectionResponseType:
properties:
nextPage:
description: 'URL to retrieve the next page of the response if it exists;
otherwise absent.
'
format: URL
type: string
payments:
description: 'Container for payments.
'
items:
$ref: '#/definitions/GETARPaymentTypewithSuccess'
type: array
success:
description: Returns `true` if the request was processed successfully.
type: boolean
type: object
PaymentData:
properties:
authTransactionId:
description: 'The authorization transaction ID from the payment gateway.
'
type: string
authorizedAmount:
description: 'The amount that is authorized before this API call. Only used
for the Delay Capture function.
'
format: double
type: number
authorizedCurrency:
description: The authorization of currency code that occurs before this API
call. We will verify whether it is same as the account's currency.
type: string
type: object
PaymentDebitMemoApplicationApplyRequestType:
properties:
amount:
description: 'The amount that is applied from the payment to the debit memo.
'
format: double
type: number
debitMemoId:
description: 'The unique ID of the debit memo that the payment is applied
to.
'
type: string
debitMemoNumber:
description: 'The number of the debit memo that the payment is applied to.
'
type: string
items:
description: |
Container for debit memo items. The maximum number of items is 1,000.
**Note:** This field is only available if you have the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) feature enabled. Invoice Item Settlement must be used together with other Invoice Settlement features (Unapplied Payments, and Credit and Debit memos). If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
items:
$ref: '#/definitions/PaymentDebitMemoApplicationItemApplyRequestType'
type: array
required:
- amount
title: debitMemos
type: object
PaymentDebitMemoApplicationCreateRequestType:
properties:
amount:
description: 'The amount of the payment associated with the debit memo.
'
format: double
type: number
debitMemoId:
description: 'The unique ID of the debit memo that the payment is created
on.
'
type: string
items:
description: |
Container for debit memo items. The maximum number of items is 1,000.
**Note:** This field is only available if you have the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) feature enabled. Invoice Item Settlement must be used together with other Invoice Settlement features (Unapplied Payments, and Credit and Debit memos). If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
items:
$ref: '#/definitions/PaymentDebitMemoApplicationItemCreateRequestType'
type: array
required:
- amount
title: debitMemos
type: object
PaymentDebitMemoApplicationItemApplyRequestType:
properties:
amount:
description: 'The amount of the payment that is applied to the specific debit
memo or taxation item.
'
format: double
type: number
debitMemoItemId:
description: 'The ID of the specific debit memo item.
'
type: string
taxItemId:
description: 'The ID of the specific taxation item.
'
type: string
required:
- amount
title: items
type: object
PaymentDebitMemoApplicationItemCreateRequestType:
properties:
amount:
description: 'The amount of the payment associated with the specific debit
memo or taxation item.
'
format: double
type: number
debitMemoItemId:
description: 'The ID of the specific debit memo item.
'
type: string
taxItemId:
description: 'The ID of the specific taxation item.
'
type: string
required:
- amount
title: items
type: object
PaymentDebitMemoApplicationItemUnapplyRequestType:
properties:
amount:
description: 'The amount of the payment that is unapplied from the specific
debit mem or taxation item.
'
format: double
type: number
debitMemoItemId:
description: 'The ID of the specific debit memo item.
'
type: string
taxItemId:
description: 'The ID of the specific taxation item.
'
type: string
required:
- amount
title: items
type: object
PaymentDebitMemoApplicationUnapplyRequestType:
properties:
amount:
description: 'The amount of the payment that is unapplied from the debit memo.
'
format: double
type: number
debitMemoId:
description: 'The unique ID of the debit memo that the payment is unapplied
from.
'
type: string
debitMemoNumber:
description: 'The number of the debit memo that the payment is unapplied from.
'
type: string
items:
description: |
Container for debit memo items. The maximum number of items is 1,000.
**Note:** This field is only available if you have the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) feature enabled. Invoice Item Settlement must be used together with other Invoice Settlement features (Unapplied Payments, and Credit and Debit memos). If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
items:
$ref: '#/definitions/PaymentDebitMemoApplicationItemUnapplyRequestType'
type: array
required:
- amount
title: debitMemos
type: object
PaymentEntityPrefix:
description: 'Container for the prefix and starting number of payments.
'
properties:
prefix:
description: 'The prefix of payments.
'
example: P-
type: string
startNumber:
description: 'The starting number of payments.
'
example: 10
type: integer
title: payment
type: object
PaymentInvoiceApplicationApplyRequestType:
properties:
amount:
description: 'The amount that is applied from the payment to the invoice.
'
format: double
type: number
invoiceId:
description: 'The unique ID of the invoice that the payment is applied to.
'
type: string
invoiceNumber:
description: "The number of the invoice that the payment is applied to. For\
\ example, `INV00000001`. \n\n**Note:** When both the `invoiceNumber` and\
\ `invoiceId` fields are specified, the two fields must match with each\
\ other.\n"
type: string
items:
description: |
Container for invoice items. The maximum number of items is 1,000.
**Note:** This field is only available if you have the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) feature enabled. Invoice Item Settlement must be used together with other Invoice Settlement features (Unapplied Payments, and Credit and Debit memos). If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
items:
$ref: '#/definitions/PaymentInvoiceApplicationItemApplyRequestType'
type: array
required:
- amount
title: invoices
type: object
PaymentInvoiceApplicationCreateRequestType:
properties:
amount:
description: 'The amount of the payment associated with the invoice. This
amount must be equal to or lesser than the balance of the invoice.
'
format: double
type: number
invoiceId:
description: 'The unique ID of the invoice that the payment is created on.
The balance of the invoice specified must not be `0`.
'
type: string
items:
description: |
Container for invoice items. The maximum number of items is 1,000.
**Note:** This field is only available if you have the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) feature enabled. Invoice Item Settlement must be used together with other Invoice Settlement features (Unapplied Payments, and Credit and Debit memos). If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
items:
$ref: '#/definitions/PaymentInvoiceApplicationItemCreateRequestType'
type: array
required:
- amount
title: invoices
type: object
PaymentInvoiceApplicationItemApplyRequestType:
properties:
amount:
description: 'The amount of the payment that is applied to the specific invoice
or taxation item.
'
format: double
type: number
invoiceItemId:
description: 'The ID of the specific invoice item.
'
type: string
taxItemId:
description: 'The ID of the specific taxation item.
'
type: string
required:
- amount
title: items
type: object
PaymentInvoiceApplicationItemCreateRequestType:
properties:
amount:
description: 'The amount of the payment associated with the specific invoice
or taxation item.
'
format: double
type: number
invoiceItemId:
description: 'The ID of the specific invoice item.
'
type: string
taxItemId:
description: 'The ID of the specific taxation item.
'
type: string
required:
- amount
title: items
type: object
PaymentInvoiceApplicationItemUnapplyRequestType:
properties:
amount:
description: 'The amount of the payment that is unapplied from the specific
invoice or taxation item.
'
format: double
type: number
invoiceItemId:
description: 'The ID of the specific invoice item.
'
type: string
taxItemId:
description: 'The ID of the specific taxation item.
'
type: string
required:
- amount
title: items
type: object
PaymentInvoiceApplicationUnapplyRequestType:
properties:
amount:
description: 'The amount of the payment that is unapplied from the invoice.
'
format: double
type: number
invoiceId:
description: 'The unique ID of the invoice that the payment is unapplied from.
'
type: string
invoiceNumber:
description: "The number of the invoice that the payment is unapplied from.\
\ For example, `INV00000001`. \n\n**Note:** When both the `invoiceNumber`\
\ and `invoiceId` fields are specified, the two fields must match with each\
\ other.\n"
type: string
items:
description: |
Container for invoice items. The maximum number of items is 1,000.
**Note:** This field is only available if you have the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) feature enabled. Invoice Item Settlement must be used together with other Invoice Settlement features (Unapplied Payments, and Credit and Debit memos). If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
items:
$ref: '#/definitions/PaymentInvoiceApplicationItemUnapplyRequestType'
type: array
required:
- amount
title: invoices
type: object
PaymentMethodObjectCustomFields:
additionalProperties:
description: 'Custom fields of the payment method. The name of each custom field
has the form *customField*__c
. Custom field names are case sensitive.
See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a payment method object.
'
title: paymentMethodFieldsCustom
type: object
PaymentMethodObjectCustomFieldsForAccount:
additionalProperties:
description: 'Custom fields of the payment method. The name of each custom field
has the form *customField*__c
. Custom field names are case sensitive.
See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a payment method object.
'
title: paymentMethodFieldsCustom
type: object
PaymentObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Payment object. The name of each custom field
has the form *customField*__c
. Custom field names are case sensitive.
See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Payment object.
'
title: paymentFieldsCustom
type: object
PaymentObjectNSFields:
description: 'Container for Payment fields provided by the [Zuora Connector for
NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
properties:
IntegrationId__NS:
description: 'ID of the corresponding object in NetSuite. Only available if
you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IntegrationStatus__NS:
description: 'Status of the payment''s synchronization with NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
Origin__NS:
description: 'Origin of the corresponding object in NetSuite. Only available
if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
SyncDate__NS:
description: 'Date when the payment was synchronized with NetSuite. Only available
if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
Transaction__NS:
description: 'Related transaction in NetSuite. Only available if you have
installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
title: paymentFieldsNS
type: object
PaymentRunStatistic:
description: Payment run statistic.
properties:
completedOn:
description: 'The date and time the payment run is completed.
'
format: date-time
type: string
executedOn:
description: 'The date and time the payment run is executed.
'
format: date-time
type: string
number:
description: 'Payment run number.
'
type: string
numberOfErrors:
description: 'Number of errored payments
'
type: integer
numberOfPayments:
description: 'Number of processed payments.
'
type: integer
status:
description: 'Payment run status.
'
type: string
type: object
PaymentScheduleCommonResponse:
allOf:
- properties:
accountId:
description: 'ID of the account that owns the payment schedule.
'
type: string
accountNumber:
description: 'Number of the account that owns the payment schedule.
'
type: string
billingDocument:
properties:
id:
description: 'ID of the billing document. for example, `2c9890306fb2121e016fb21a6b550041`.
'
type: string
number:
description: 'The number of the billing docuemnt, for example, `INV00002345`.
'
type: string
type:
description: 'Indicates whether the associated billing document is a
debit memo or a invoice.
'
type: string
type: object
createdById:
description: 'The ID of the user who created this payment schedule.
'
type: string
createdDate:
description: 'The date and time the payment schedule is created.
'
format: date
type: string
description:
description: 'The description of the payment schedule.
'
type: string
id:
description: 'ID of the payment schedule.
'
type: string
isCustom:
description: 'Indicates if the payment schedule is a custom payment schedule.
'
type: boolean
items:
description: 'Container for payment schedule items.
'
items:
$ref: '#/definitions/PaymentScheduleItemCommonResponse'
type: array
nextPaymentDate:
description: 'The date the next payment will be processed.
'
format: date
type: string
occurrences:
description: 'The number of payment schedule items that are created by this
payment schedule.
'
type: integer
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
paymentScheduleNumber:
description: 'Number of the payment schedule.
'
type: string
period:
description: |
For recurring payment schedule only. The period of payment generation. Available values include: `Monthly`, `Weekly`, `BiWeekly`.
Returns `null` for custom payment schedules.
type: string
prepayment:
description: 'Indicates whether the payments created by the payment schedule
are used as a reserved payment. This field is available only if the prepaid
cash drawdown permission is enabled. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown)
for more information.
'
type: boolean
recentPaymentDate:
description: 'The date the last payment was processed.
'
format: date
type: string
runHour:
description: "[0,1,2,~,22,23]\n\nAt which hour in the day in the tenant\u2019\
s timezone the recurring payment schedule items will be collected.\nReturn\
\ `0` for custom payment schedules.\n"
type: integer
standalone:
description: 'Indicates if the payments that the payment schedule created
are standalone payments or not.
'
type: boolean
startDate:
description: 'The date when the first payment of this payment schedule is
proccessed.
'
format: date
type: string
status:
description: |
The status of the payment schedule.
- Active: There is still payment schedule item to process.
- Canceled: After a payment schedule is canceled by the user, the schedule is marked as `canceled`.
- Completed: After all payment schedule items are processed, the schedule is marked as `Completed`.
enum:
- Active
- Canceled
- Completed
type: string
totalAmount:
description: "The total amount that will be collected by the payment schedule.\
\ \n"
type: number
totalPaymentsErrored:
description: 'The number of errored payments.
'
type: integer
totalPaymentsProcessed:
description: 'The number of processed payments.
'
type: integer
updatedById:
description: 'The ID of the user who last updated this payment schedule.
'
type: string
updatedDate:
description: 'The date and time the payment schedule is last updated.
'
format: date
type: string
type: object
- $ref: '#/definitions/PaymentScheduleCustomFields'
PaymentScheduleCustomFields:
additionalProperties:
description: |
Custom fields of the Payment Schedule object. The name of each custom field has the form *customField*__c
. Custom field names are case-sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields) for more information.
**Note:**
The values will automatically be pushed to payment schedule items level if the same fields exist at the payment schedule item level.
description: 'Container for custom fields of a Payment Schedule object.
'
title: paymentScheduleFieldsCustom
type: object
PaymentScheduleItemCommon:
allOf:
- properties:
amount:
description: 'The amount that needs to be collected by this payment schedule
item.
'
type: number
currency:
description: |
The currency of the payment.
**Note**:
- This field is optional. If not specified, the default value is the currency set for the account.
type: string
description:
description: 'Description of the payment schedule item.
'
type: string
paymentGatewayId:
description: |
The ID of the payment gateway.
**Note**:
- This field is optional. If not specified, the default value is the payment gateway id set for the account.
required:
- type
type: string
paymentMethodId:
description: |
The ID of the payment method.
**Note**:
- This field is optional. If not specified, the default value is the payment method id set for the account.
type: string
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
Here is an example:
```
"paymentOption": [
{
"type": "GatewayOptions",
"detail": {
"SecCode":"WEB"
}
}
]
```
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
runHour:
description: "At which hour of the day in the tenant\u2019s timezone this\
\ payment will be collected. Available values:`[0,1,2,~,22,23]`.\nIf the\
\ payment `runHour` and `scheduledDate` are backdated, the system will\
\ collect the payment when the next runHour occurs.\nThe default value\
\ is `0`.\n"
type: string
scheduledDate:
description: 'The date to collect the payment.
'
format: date
type: string
required:
- scheduledDate
- amount
type: object
- $ref: '#/definitions/PaymentScheduleItemCustomFields'
PaymentScheduleItemCommonResponse:
allOf:
- properties:
accountId:
description: 'ID of the customer account that owns the payment schedule
item, for example `402880e741112b310149b7343ef81234`.
'
type: string
amount:
description: 'The total amount of the payment schedule.
'
format: decimal
type: number
balance:
description: 'The remaining balance of payment schedule item.
'
format: decimal
type: number
billingDocument:
properties:
id:
description: 'ID of the billing document. for example, `2c9890306fb2121e016fb21a6b550041`.
'
type: string
number:
description: 'Number of the billing docuemnt, for example, `INV00002345`.
'
type: string
type:
description: 'Indicates whether the associated billing document is a
debit memo or a invoice.
'
type: string
type: object
createdById:
description: 'The ID of the user who created the payment schedule item.
'
type: string
createdDate:
description: 'The date and time when the payment schedule item was created.
'
format: date
type: string
currency:
description: 'The currency of the payment.
'
type: string
description:
description: 'The description of the payment schedule item.
'
type: string
errorMessage:
description: 'The error message indicating if the error is related to configuration
or payment collection.
'
type: string
id:
description: 'ID of the payment schedule item. For example, `412880e749b72b310149b7343ef81346`.
'
type: string
number:
description: 'Number of the payment schedule item.
'
type: string
paymentGatewayId:
description: 'ID of the payment gateway of the payment schedule item.
'
type: string
paymentId:
description: "ID of the payment that is created by the payment schedule\
\ item\uFF0C or ID of the first payment linked to the payment schedule\
\ item. This field is only available if the request doesn\u2019t specify\
\ `zuora-version`, or `zuora-version` is set to a value equal to or smaller\
\ than\_`336.0`. \n"
type: string
paymentMethodId:
description: 'ID of the payment method of the payment schedule item.
'
type: string
paymentOption:
description: |
Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.
`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.
items:
$ref: '#/definitions/PaymentSchedulePaymentOptionFields'
type: array
paymentScheduleId:
description: 'ID of the payment schedule that contains the payment schedule
item, for example, `ID402880e749b72b310149b7343ef80005`.
'
type: string
paymentScheduleNumber:
description: 'Number of the payment schedule that contains the payment schedule
item, for example, `ID402880e749b72b310149b7343ef80005`.
'
type: string
psiPayments:
description: "Container for payments linked to the payment schedule item.\
\ \n"
items:
$ref: '#/definitions/LinkedPaymentID'
type: array
runHour:
description: "At which hour in the day in the tenant\u2019s timezone this\
\ payment will be collected.\n"
type: integer
scheduledDate:
description: 'The scheduled date when the payment is processed.
'
format: date
type: string
standalone:
description: 'Indicates if the payment created by the payment schedule item
is a standalone payment or not.
'
type: boolean
status:
description: |
ID of the payment method of the payment schedule item.
- `Pending`: Payment schedule item is waiting for processing.
- `Processed`: The payment has been collected.
- `Error`: Failed to collect the payment.
- `Canceled`: After a pending payment schedule item is canceled by the user, the item is marked as `Canceled`.
enum:
- Pending
- Processed
- Error
- Canceled
type: string
updatedById:
description: 'The ID of the user who updated the payment schedule item.
'
type: string
updatedDate:
description: 'The date and time when the payment schedule item was last
updated.
'
format: date
type: string
type: object
- $ref: '#/definitions/PaymentScheduleItemCustomFields'
PaymentScheduleItemCustomFields:
additionalProperties:
description: 'Custom fields of the Payment Schedule Item object. The name of
each custom field has the form *customField*__c
. Custom field
names are case-sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Payment Schedule Item object.
'
title: paymentScheduleItemFieldsCustom
type: object
PaymentSchedulePaymentOptionFields:
properties:
detail:
description: 'The field used to pass the transactional payment data to the
gateway side in the key-value format.
'
properties:
key:
description: 'The name of the field.
'
type: string
value:
description: 'The value of the field.
'
type: string
type: object
type:
description: 'The type of the payment option. Currently, only `GatewayOptions`
is supported for specifying Gateway Options fields supported by a payment
gateway.
'
type: string
title: paymentOption
type: object
PaymentVolumeSummaryRecord:
allOf:
- properties:
error:
description: 'The count of failed payments of above `paymentGatewayType`
and `paymentMethodType`.
'
type: integer
paymentGatewayType:
description: 'The payment gateway type.
'
type: string
paymentMethodType:
description: 'The payment method type.
'
type: string
success:
description: 'The count of successful payments of above `paymentGatewayType`
and `paymentMethodType`.
'
type: integer
total:
description: 'The count of total payments of above `paymentGatewayType`
and `paymentMethodType`. '
type: integer
type: object
description: 'A volume summary record.
'
title: volumeSummaryRecord
PaymentWithCustomRatesType:
allOf:
- properties:
currency:
description: |
The currency code for either Reporting or Home currency.
**Note**: This field is only available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
type: string
customFxRate:
description: |
The Custom FX conversion rate between Home/Reporting and Transactional currency items.
**Note**: This field is only available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: decimal
type: number
rateDate:
description: |
The date on which a particular currency rate is fixed or obtained on.
**Note**: This field is only available if you set the `zuora-version` request header to `224.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).
format: date
type: string
required:
- currency
- customFxRate
type: object
title: customRates
PostAccountEInvoiceProfile:
allOf:
- properties:
businessName:
description: 'The full official name that the Buyer is registered with the
relevant legal authority.
'
maxLength: 255
type: string
businessNumber:
description: |
The unique identifier number of the legal entity or person that you do business with.
For example, you must use a GSTIN for India.
type: string
businessNumberSchemeId:
description: 'The identification scheme identifier that an official registrar
issues to identify the Buyer as a legal entity or person.
'
type: string
enabled:
description: |
Whether to enable the e-invoicing profile for the customer account.
If the following conditions are met, all billing documents for one account can be submitted to an e-invoicing service provider to be generated in electronic format:
- The account must be configured to generate e-invoice files for billing documents.
- The billing document must be in Posted status.
- A business region must be created for the billing country contact, and be linked to an e-invoicing service provider.
type: boolean
endpointId:
description: 'The Buyer''s electronic address, to which the application-level
response to the billing document might be delivered.
'
type: string
endpointSchemeId:
description: "The identification scheme identifier of the Buyer\u2019s electronic\
\ address.\n"
type: string
taxRegisterNumber:
description: "The Buyer's VAT identifier (also known as the Buyer's VAT\
\ identification number) or the local identification (defined by the Buyer\u2019\
s address) of the Buyer for tax purposes, or a reference that enables\
\ the Buyer to state the registered tax status.\n"
type: string
type: object
description: |
Container for e-invoicing profile information for this account.
**Note**: This field is available only if you have the E-Invoicing feature in **Early Adopter** phase enabled.
title: einvoiceProfile
PostBatchInvoiceItemResponse:
allOf:
- properties:
success:
description: 'Indicates whether the invoice is created successfully.
'
type: boolean
type: object
- $ref: '#/definitions/PostInvoiceResponse'
PostBatchInvoiceResponse:
properties:
invoices:
items:
$ref: '#/definitions/PostBatchInvoiceItemResponse'
type: array
success:
description: 'Indicates whether the call succeeded.
'
type: boolean
type: object
PostBatchInvoicesType:
example:
invoices:
- accountId: ff8080817cda56fa017cda87aaa2071e
autoPay: false
comments: comments
currency: EUR
invoiceDate: '2020-02-01'
invoiceItems:
- amount: 100
bookingReference: bookingReference
chargeDate: '2020-02-01 00:00:00'
description: description
discountItems:
- amount: -10
bookingReference: discountBookingReference
chargeDate: '2020-02-01 11:00:00'
chargeName: discount
description: description
sku: SKU-0002
taxItems:
- exemptAmount: 0
jurisdiction: jurisdiction
locationCode: locationCode
name: country tax
taxAmount: -1
taxCode: country tax code
taxCodeDescription: country tax code, tax rate 10%
taxDate: '2021-02-08'
taxMode: TaxExclusive
taxRate: 0.1
taxRateDescription: country tax
taxRateType: Percentage
productRatePlanChargeId: ff8080817cda56fa017cda87999d071b
purchaseOrderNumber: PO-000303
quantity: 1
serviceEndDate: '2020-02-10'
serviceStartDate: '2020-02-01'
taxItems:
- exemptAmount: 0
jurisdiction: juristiction
locationCode: locationCode
name: country tax
taxAmount: 10
taxCode: tax code
taxCodeDescription: tax code description
taxDate: '2020-02-01'
taxMode: TaxExclusive
taxRate: 0.01
taxRateDescription: tax rate description
taxRateType: Percentage
- amount: 100
bookingReference: bookingReference
chargeDate: '2020-02-01 00:00:00'
chargeName: charge name
description: description
purchaseOrderNumber: PO-000303
quantity: 1
serviceEndDate: '2020-02-10'
serviceStartDate: '2020-02-01'
sku: sku-001
uom: each
- accountId: ff8080817cda56fa017cda87aaa2071e
autoPay: false
comments: comments
currency: EUR
invoiceDate: '2020-02-01'
invoiceItems:
- amount: 100
bookingReference: bookingReference
chargeDate: '2020-02-01 00:00:00'
description: description
productRatePlanChargeId: ff8080817cda56fa017cda87999d071b
purchaseOrderNumber: PO-000303
quantity: 1
serviceEndDate: '2020-02-10'
serviceStartDate: '2020-02-01'
taxItems:
- exemptAmount: 0
jurisdiction: juristiction
locationCode: locationCode
name: country tax
taxAmount: 10
taxCode: tax code
taxCodeDescription: tax code description
taxDate: '2020-02-01'
taxMode: TaxExclusive
taxRate: 0.01
taxRateDescription: tax rate description
taxRateType: Percentage
- amount: 100
bookingReference: bookingReference
chargeDate: '2020-02-01 00:00:00'
chargeName: charge name
description: description
purchaseOrderNumber: PO-000303
quantity: 1
serviceEndDate: '2020-02-10'
serviceStartDate: '2020-02-01'
sku: sku-001
uom: each
useSingleTransaction: false
properties:
invoices:
description: 'Container for standalone invoices.
'
items:
$ref: '#/definitions/PostInvoiceType'
type: array
useSingleTransaction:
description: |
Whether a batch request is handled with a single transaction.
- `true` indicates that a batch request will be handled with a single transaction.
- `false` indicates that the standalone invoices to be created in a batch request will be handled with separated transactions.
If the field is set to `false`, a failure in the batch request will not cause the whole request to fail, so you have to retry the whole batch request.
type: boolean
type: object
PostBillingPreviewParam:
example:
accountNumber: A00000001
assumeRenewal: None
chargeTypeToExclude: ''
includingEvergreenSubscription: 'true'
targetDate: '2017-05-10'
properties:
accountId:
description: |
The ID of the customer account to which the billing preview applies.
**Note**: When posting billing preview, you must specify either `accountId` or `accountNumber` in the request body.
maxLength: 255
type: string
accountNumber:
description: |
The number of the customer account to which the billing preview applies.
**Note**: When posting billing preview, you must specify either `accountId` or `accountNumber` in the request body.
type: string
assumeRenewal:
description: "Indicates whether to generate a preview of future invoice items\
\ and credit memo items with the assumption that the subscriptions are renewed.\n\
\nSet one of the following values in this field to decide how the assumption\
\ is applied in the billing preview.\n\n * **All:** The assumption is applied\
\ to all the subscriptions. Zuora generates preview invoice item data and\
\ credit memo item data from the first day of the customer's next billing\
\ period to the target date.\n \n * **None:** (Default) The assumption\
\ is not applied to the subscriptions. Zuora generates preview invoice item\
\ data and credit memo item data based on the current term end date and\
\ the target date.\n \n * If the target date is later than the current\
\ term end date, Zuora generates preview invoice item data and credit memo\
\ item data from the first day of the customer's next billing period to\
\ the current term end date.\n\n * If the target date is earlier than\
\ the current term end date, Zuora generates preview invoice item data and\
\ credit memo item data from the first day of the customer's next billing\
\ period to the target date.\n\n * **Autorenew:** The assumption is applied\
\ to the subscriptions that have auto-renew enabled. Zuora generates preview\
\ invoice item data and credit memo item data from the first day of the\
\ customer's next billing period to the target date.\n\n**Note:** \n -\
\ This field can only be used if the subscription renewal term is not set\
\ to 0. \n \n \n - The credit memo item data is only available if you\
\ have Invoice Settlement feature enabled. The Invoice Settlement feature\
\ is generally available as of Zuora Billing Release 296 (March 2021). This\
\ feature includes Unapplied Payments, Credit and Debit Memo, and Invoice\
\ Item Settlement. If you want to enable Invoice Settlement, see [Invoice\
\ Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n"
type: string
chargeTypeToExclude:
description: |
The charge types to exclude from the billing preview.
**Possible values:** OneTime, Recurring, Usage, and any combination of these values.
type: string
includingDraftItems:
description: "Whether draft document items are included in the billing preview\
\ run. By default, draft document items are not included.\n\nThis field\
\ loads draft invoice items and credit memo items. The `chargeTypeToExclude`,\
\ `targetDate`, `includingEvergreenSubscription`, and `assumeRenewal` fields\
\ do not affect the behavior of the `includingDraftItems` field. \
\ \n"
type: boolean
includingEvergreenSubscription:
description: 'Indicates if evergreen subscriptions are included in the billingPreview
call.
'
type: boolean
targetDate:
description: "The target date for the billingPreview call. The billingPreview\
\ call generates preview invoice item data and credit memo item data from\
\ the first day of the customer's next billing period to the TargetDate.\
\ \n\nIf the TargetDate is later than the subscription current term end\
\ date, the preview invoice item data and credit memo item data is generated\
\ from the first day of the customer's next billing period to the current\
\ term end date. If you want to generate preview invoice item data and credit\
\ memo item data past the end of the subscription current term, specify\
\ the `AssumeRenewal` field in the request.\n\n\n**Note:** The credit memo\
\ item data is only available if you have Invoice Settlement feature enabled.\
\ The Invoice Settlement feature is generally available as of Zuora Billing\
\ Release 296 (March 2021). This feature includes Unapplied Payments, Credit\
\ and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice\
\ Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n"
format: date
type: string
required:
- targetDate
type: object
PostBillingPreviewRunParam:
example:
assumeRenewal: None
batches: Batch1, Batch2
chargeTypeToExclude: ''
includingDraftItems: 'false'
includingEvergreenSubscription: 'true'
targetDate: '2017-01-10'
properties:
assumeRenewal:
description: "Indicates whether to generate a preview of future invoice items\
\ and credit memo items with the assumption that the subscriptions are renewed.\n\
\nSet one of the following values in this field to decide how the assumption\
\ is applied in the billing preview.\n\n * **All:** The assumption is applied\
\ to all the subscriptions. Zuora generates preview invoice item data and\
\ credit memo item data from the first day of the customer's next billing\
\ period to the target date.\n \n * **None:** (Default) The assumption\
\ is not applied to the subscriptions. Zuora generates preview invoice item\
\ data and credit memo item data based on the current term end date and\
\ the target date.\n \n * If the target date is later than the current\
\ term end date, Zuora generates preview invoice item data and credit memo\
\ item data from the first day of the customer's next billing period to\
\ the current term end date.\n\n * If the target date is earlier than\
\ the current term end date, Zuora generates preview invoice item data and\
\ credit memeo item data from the first day of the customer's next billing\
\ period to the target date.\n\n * **Autorenew:** The assumption is applied\
\ to the subscriptions that have auto-renew enabled. Zuora generates preview\
\ invoice item data and credit memo item data from the first day of the\
\ customer's next billing period to the target date.\n \n**Note:** \n \
\ - This field can only be used if the subscription renewal term is not\
\ set to 0. \n \n \n - The credit memo item data is only available if\
\ you have Invoice Settlement feature enabled. The Invoice Settlement feature\
\ is generally available as of Zuora Billing Release 296 (March 2021). This\
\ feature includes Unapplied Payments, Credit and Debit Memo, and Invoice\
\ Item Settlement. If you want to enable Invoice Settlement, see [Invoice\
\ Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information. \n"
type: string
batch:
description: "The customer batch to include in the billing preview run. If\
\ not specified, all customer batches are included. \n\n**Note**: \n -\
\ **Note**: By default, you have 50 configurable account batches. To increase\
\ the limit to 200 batches, you must have the Performance Booster Elite package.\n - This field\
\ is not available if you set the `zuora-version` request header to `314.0`\
\ or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
maxLength: 255
type: string
batches:
description: "The customer batches to include in the billing preview run.\
\ You can specify multiple batches separated by comma. If not specified,\
\ all customer batches are included.\n\n**Note**: \n - By default, you\
\ have 50 configurable account batches. To increase the limit to 200 batches,\
\ you must have the Performance Booster Elite package.\n - This field\
\ is only available if you set the `zuora-version` request header to `314.0`\
\ or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"
maxLength: 1000
type: string
chargeTypeToExclude:
description: |
The charge types to exclude from the forecast run.
**Possible values:** OneTime, Recurring, Usage, and any comma-separated combination of these values.
type: string
includingDraftItems:
description: |
Whether draft document items are included in the billing preview run. By default, draft document items are not included.
This field loads draft invoice items and credit memo items. The `chargeTypeToExclude`, `targetDate`, `includingEvergreenSubscription`, and `assumeRenewal` fields do not affect the behavior of the `includingDraftItems` field.
type: boolean
includingEvergreenSubscription:
description: 'Whether evergreen subscriptions are included in the billing
preview run. By default, evergreen subscriptions are not included.
'
type: boolean
organizationLabels:
description: "The organization(s) that this billing preview run is created\
\ for. \n\nFor each item in the array, either the `organizationId` or the\
\ `organizationName` field is required.\n\nThis field is only required when\
\ you have already turned on Multi-Org feature.\n"
items:
properties:
organizationId:
description: 'The organization ID.
'
type: string
organizationName:
description: 'The organization name.
'
type: string
type: object
type: array
storageOption:
description: 'The saving options. The default value is `Csv`.
'
enum:
- Csv
- Database
type: string
targetDate:
description: "The target date for the billing preview run. The billing preview\
\ run generates preview invoice item data and credit memo item data from\
\ the first day of the customer's next billing period to the target date.\
\ \n\nThe value for the `targetDate` field must be in _`YYYY-MM-DD`_ format.\n\
\nIf the target date is later than the subscription current term end date,\
\ the preview invoice item data and credit memo item data is generated from\
\ the first day of the customer's next billing period to the current term\
\ end date. If you want to generate preview invoice item data and credit\
\ memo item data past the end of the subscription current term, specify\
\ the AssumeRenewal field in the request.\n\n**Note:** The credit memo item\
\ data is only available if you have Invoice Settlement feature enabled.\
\ The Invoice Settlement feature is generally available as of Zuora Billing\
\ Release 296 (March 2021). This feature includes Unapplied Payments, Credit\
\ and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice\
\ Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n"
format: date
type: string
required:
- targetDate
type: object
PostCreateInvoiceContactType:
allOf:
- properties:
address1:
description: 'First address line, 255 characters or less.
'
maxLength: 255
type: string
address2:
description: 'Second address line, 255 characters or less.
'
type: string
city:
description: 'City, 40 characters or less.
'
maxLength: 40
type: string
country:
description: 'Country; must be a valid country name or abbreviation. If
using Zuora Tax, you must specify a country in the sold-to contact to
calculate tax. A bill-to contact may be used if no sold-to contact is
provided.
'
type: string
county:
description: 'County; 32 characters or less. May optionally be used by Zuora
Tax to calculate county tax.
'
maxLength: 32
type: string
fax:
description: 'Fax phone number, 40 characters or less.
'
maxLength: 40
type: string
firstName:
description: 'First name, 100 characters or less.
'
maxLength: 100
type: string
homePhone:
description: 'Home phone number, 40 characters or less.
'
maxLength: 40
type: string
lastName:
description: 'Last name, 100 characters or less.
'
maxLength: 100
type: string
mobilePhone:
description: 'Mobile phone number, 40 characters or less.
'
maxLength: 40
type: string
nickname:
description: 'Nickname for this contact
'
type: string
otherPhone:
description: 'Other phone number, 40 characters or less.
'
maxLength: 40
type: string
otherPhoneType:
description: 'Possible values are: `Work`, `Mobile`, `Home`, `Other`.
'
type: string
personalEmail:
description: 'Personal email address, 80 characters or less.
'
maxLength: 80
type: string
state:
description: 'State; must be a valid state or province name or 2-character
abbreviation. If using Zuora Tax, be aware that Zuora Tax requires a state
(in the US) or province (in Canada) in this field for the sold-to contact
to calculate tax, and that a bill-to contact may be used if no sold-to
contact is provided.
'
type: string
taxRegion:
description: 'If using Zuora Tax, a region string as optionally defined
in your tax rules. Not required.
'
type: string
workEmail:
description: 'Work email address, 80 characters or less.
'
maxLength: 80
type: string
workPhone:
description: 'Work phone number, 40 characters or less.
'
maxLength: 40
type: string
zipCode:
description: 'Zip code, 20 characters or less.
'
maxLength: 20
type: string
required:
- firstName
- lastName
type: object
- $ref: '#/definitions/ContactCustomFields'
description: "Container for bill-to or sold-to contact information. A new Contact\
\ will be created under the invoice owner account.\n \n**Note**:\
\ If you have the Flexible Billing Attributes feature disabled, this field\
\ is unavailable in the request body.\n"
title: Contact
PostCreditMemoEmailRequestType:
example:
emailAddresses: contact1@example.com,contact2@example.com
includeAdditionalEmailAddresses: false
pdfFileId: 162297b6f8d94edc81373f6037af76fa
useEmailTemplateSetting: false
properties:
emailAddresses:
description: |
The valid email addresses you want to email a credit memo to. Use commas to separate email addresses.
**Note:** This field is only applicable if you set the `useEmailTemplateSetting` field to `false`.
type: string
includeAdditionalEmailAddresses:
default: false
description: "Indicates whether to send a credit memo to the additional email\
\ addresses of the memo account. \n\n\nYou can set the additional email\
\ addresses in the **Additional Email Addresses** field on the account detail\
\ page from the Zuora UI. See [Create a Customer Account](https://knowledgecenter.zuora.com/BC_Subscription_Management/Customer_Accounts/B_Create_a_Customer_Account#section_2)\
\ for more information.\n"
enum:
- true
- false
type: boolean
pdfFileId:
description: "The ID of the PDF file that you want to send in the email. \n\
\nIf you do not specify any PDF file ID, the latest PDF file generated for\
\ the credit memo is sent in the email.\n"
type: string
useEmailTemplateSetting:
default: false
description: "Indicates whether to email a credit memo based on the email\
\ template setting. \n\nIf you set this field to `true`, the credit memo\
\ is sent to the email addresses specified in the **To Email** field of\
\ the email template. The email template is the one you set in the **Delivery\
\ Options** panel of the **Edit notification** dialog from the Zuora UI.\
\ See [Edit Email Templates](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/Create_Email_Templates)\
\ for more information about how to edit the **To Email** field in the email\
\ template.\n"
enum:
- true
- false
type: boolean
type: object
PostCustomObjectDefinitionFieldDefinitionRequest:
properties:
displayName:
description: |
Indicates whether to use this field as the display name of the custom object when being linked to another custom object.
This field applies only to the Text custom field type:
- The `type` field is `string`.
- The `enum` field is not specified.
type: boolean
format:
description: The data format of the custom field
type: string
label:
description: The UI label of the custom field
type: string
maxLength:
description: |
The maximum length of string that can be stored in the custom field.
This field applies only to the following custom field types:
- Text:
- The `type` field is `string`.
- The `format` field is not specified or is `url`.
- The `enum` field is not specified.
- Picklist:
- The `type` field is `string`.
- The `enum` field is specified.
- The `multiselect` field is not specified or is `false`.
- Multiselect:
- The `type` field is `string`.
- The `enum` field is specified.
- The `multiselect` field is `true`.
If the custom field is filterable, the value of `maxLength` must be 512 or less.
type: integer
multiselect:
description: |
Indicates whether this is a multiselect custom field.
This field applies only to the Picklist or Multiselect custom field types:
- The `type` field is `string`.
- The `maxLength` field is specified.
- The `enum` field is specified.
type: boolean
type:
description: The data type of the custom field
type: string
required:
- type
- label
title: customObjectCustomFieldDefinition
type: object
PostCustomObjectDefinitionFieldsDefinitionRequest:
additionalProperties:
$ref: '#/definitions/PostCustomObjectDefinitionFieldDefinitionRequest'
title: customObjectCustomFieldDefinitions
type: object
PostCustomObjectDefinitionsRequest:
example:
definitions:
Delivery:
description: Delivery schedule for shipping products based on customer's
subscription.
filterable:
- Quantity__c
- ProductName__c
- Cancelled__c
- ShippingStatus__c
label: Delivery
object: Delivery
properties:
CancellationTime__c:
description: The time at which customer cancelled this particular shipment.
format: date-time
label: Cancellation Time
type: string
Cancelled__c:
default: false
description: Indicator is true when the customer has cancelled this
particular shipment.
label: Shipment Cancelled
type: boolean
ContactEmail__c:
description: The customer's email address.
label: Customer Email
maxLength: 128
type: string
ContactId__c:
description: The customer contact who will receive the shipment.
format: uuid
label: Ship To Customer
type: string
ProductName__c:
description: The name of the product that is being shipped to customer.
label: Product Name
type: string
Quantity__c:
description: The quantity of product that is being shipped to customer.
label: Quantity
maximum: 20
minimum: 1
type: integer
ShippingDate__c:
description: The date the product will be sent to shipping vendor for
delivery.
format: date
label: Shipping Date
type: string
ShippingStatus__c:
default: Pending
description: The status of the shipment - e.g. Pending, Preparing shipment,
Waiting for tracking information, or Shipped.
enum:
- Pending
- Preparing shipment
- Waiting for tracking information
- Shipped
label: Shipping Status
type: string
SubscriptionId__c:
description: The subscription that is associated with the shipment record.
format: uuid
label: Subscription
type: string
TotalWeight__c:
description: The total weight of the product and packaging that is being
shipped to customer.
label: Total Weight (lbs.)
minimum: 0
type: number
relationships:
- cardinality: manyToOne
fields:
SubscriptionId__c: Id
namespace: com_zuora
object: subscription
recordConstraints:
create:
enforceValidMapping: false
- cardinality: manyToOne
fields:
ContactId__c: Id
namespace: com_zuora
object: contact
recordConstraints:
create:
enforceValidMapping: false
required:
- SubscriptionId__c
- ContactId__c
- ProductName__c
- Quantity__c
- ShippingDate__c
birth_place_custom_object:
filterable:
- city__c
label: Birth Place Custom Object
object: birth_place_custom_object
properties:
ContactId__c:
format: uuid
label: Contact
type: string
city__c:
label: city label
type: string
country__c:
label: country label
type: string
state__c:
label: state label
type: string
relationships:
- cardinality: manyToOne
fields:
ContactId__c: Id
namespace: com_zuora
object: contact
recordConstraints:
create:
enforceValidMapping: false
required:
- city__c
- state__c
- country__c
type: object
properties:
definitions:
$ref: '#/definitions/PostCustomObjectDefinitionsRequestDefinitions'
type: object
PostCustomObjectDefinitionsRequestDefinition:
properties:
auditable:
description: The set of fields which Audit Trail tracks and records changes
of. You can change auditable fields to non-auditable, and vice versa. One
custom object can have a maximum of five auditable fields.
items:
type: string
type: array
enableCreateRecordAuditing:
default: false
description: |
Indicates whether to audit the creation of custom object records of this custom object definition.
Note that you must enable the **Custom Object Definition** audit trail setting in your Zuora tenant before auditing custom object record creation. For more information, see Manage audit trail settings .
type: boolean
enableDeleteRecordAuditing:
default: false
description: |
Indicates whether to audit the deletion of custom object records of this custom object definition.
Note that you must enable the **Custom Object Definition** audit trail setting in your Zuora tenant before auditing custom object record deletion. For more information, see Manage audit trail settings .
type: boolean
filterable:
description: The set of fields that are allowed to be queried on. Queries
on non-filterable fields will be rejected. You can not change a non-filterable
field to filterable.
items:
type: string
type: array
label:
description: A UI label for the custom object
type: string
object:
description: The API name of the custom object
type: string
properties:
$ref: '#/definitions/PostCustomObjectDefinitionFieldsDefinitionRequest'
description: The custom field of the custom object
type: object
relationships:
description: An array of relationships with Zuora objects or other custom
objects. You can add at most 2 `manyToOne` relationships when creating a
custom field definition.
items:
additionalProperties: false
properties:
cardinality:
description: |
The cardinality of the relationship from this object to another object.
Only the `manyToOne` cardinality can be used when creating relationships. A relationship with `oneToMany` cardinality is created implicitly when a `manyToOne` relationship is created.
A custom object definition can have a maximum of 2 `manyToOne` relationships.
enum:
- manyToOne
type: string
fields:
$ref: '#/definitions/FieldsAdditionalPropertiesForPostDefinition'
namespace:
description: The namespace where the related object is located
type: string
object:
description: The API name of the related object
type: string
recordConstraints:
description: 'Specifies contraints to apply to custom object records.
'
properties:
create:
properties:
enforceValidMapping:
default: true
description: |
Specifies whether Zuora validates the values of mapped fields
in custom object records.
By default, Zuora validates the values of mapped fields
in custom object records. For example, if the
custom object definition has a field called `AccountId__c`
that is mapped to the `Id` field of the `account` object,
Zuora verifies that the value of `AccountId__c` is a valid
account ID when a custom object record is created.
If the value of `AccountId__c` is not a valid account ID,
the operation fails.
type: boolean
type: object
type: object
required:
- namespace
- object
- fields
type: object
type: array
required:
description: The required fields of the custom object. You can change required
fields to optional. However, you can only change optional fields to required
on the custom objects with no records.
items:
type: string
type: array
unique:
description: The fields with unique constraints. You can remove the unique
constraint on a field. However, you can only add a unique constraint to
a filterable field if the custom object contains no record. One custom object
can have a maximum of five fields with unique constraints.
items:
type: string
type: array
required:
- object
- label
title: customObjectDefinition
type: object
PostCustomObjectDefinitionsRequestDefinitions:
additionalProperties:
$ref: '#/definitions/PostCustomObjectDefinitionsRequestDefinition'
description: 'The custom object definitions. This object maps types to custom
object definitions.
'
title: customObjectDefinitions
type: object
PostCustomObjectRecordsRequest:
example:
allowPartialSuccess: true
records:
- GrossAmount__c: 123
ItemName__c: test
ItemNumber__c: '1'
ItemState__c: PendingCreation
ItemType__c: Product
OrderId__c: c086028c-5df8-427d-a3c8-7a7fb5d32d3d
- GrossAmount__c: '123'
ItemName__c: test
ItemNumber__c: '1'
ItemState__c: PendingCreation
ItemType__c: Product
OrderId__c: c086028c-5df8-427d-a3c8-7a7fb5d32d3d
properties:
allowPartialSuccess:
default: false
description: Indicates whether the records that pass the schema validation
should be created when not all records in the request pass the schema validation.
example: true
type: boolean
records:
description: A list of custom object records to be created
items:
$ref: '#/definitions/CustomObjectRecordWithOnlyCustomFields'
type: array
required:
- records
type: object
PostCustomObjectRecordsResponse:
example:
error:
code: 71012520
details:
- code: 71012524
message: 'Json input does not match schema. Error: Field [GrossAmount] should
be number type but received string.'
record:
GrossAmount__c: '123'
Id: ca0b22f3-7bea-4a19-b4fc-7712c24c6516
ItemName__c: test
ItemNumber__c: '1'
ItemState__c: PendingCreation
ItemType__c: Product
OrderId__c: c086028c-5df8-427d-a3c8-7a7fb5d32d3d
message: Request contains invalid record that failed validation against the
object schema.
records:
- CreatedById: 11e65ead-0ead-4025-bd2d-002590fc20f6
CreatedDate: '2021-05-11T17:55:17.854Z'
GrossAmount__c: 123
Id: 46b79af2-9892-4937-80a0-6f5841a85f19
ItemName__c: test
ItemNumber__c: '1'
ItemState__c: PendingCreation
ItemType__c: Product
OrderId__c: c086028c-5df8-427d-a3c8-7a7fb5d32d3d
UpdatedById: 11e65ead-0ead-4025-bd2d-002590fc20f6
UpdatedDate: '2021-05-11T17:55:17.854Z'
type: OrderLineItem
properties:
error:
$ref: '#/definitions/CustomObjectRecordsErrorResponse'
description: 'If the `allowPartialSuccess` flag is set to true, this field
will capture the failures that occurred in the partially successful creation
operation.
'
type: object
records:
description: The custom object records that are succesfully created and stored
items:
$ref: '#/definitions/CustomObjectRecordWithAllFields'
type: array
type: object
PostDebitMemoEmailType:
example:
emailAddresses: contact1@example.com,contact2@example.com
includeAdditionalEmailAddresses: false
pdfFileId: 162297b6f8d94edc81373f6037af76fa
useEmailTemplateSetting: false
properties:
emailAddresses:
description: |
The valid email addresses you want to email a debit memo to. Use commas to separate email addresses.
**Note:** This field is only applicable if you set the `useEmailTemplateSetting` field to `false`.
type: string
includeAdditionalEmailAddresses:
default: false
description: "Indicates whether to send a debit memo to the additional email\
\ addresses of the memo account. \n\n\nYou can set the additional email\
\ addresses in the **Additional Email Addresses** field on the account detail\
\ page from the Zuora UI. See [Create a Customer Account](https://knowledgecenter.zuora.com/BC_Subscription_Management/Customer_Accounts/B_Create_a_Customer_Account#section_2)\
\ for more information.\n"
enum:
- true
- false
type: boolean
pdfFileId:
description: "The ID of the PDF file that you want to send in the email. \n\
\nIf you do not specify any PDF file ID, the latest PDF file generated for\
\ the debit memo is sent in the email.\n"
type: string
useEmailTemplateSetting:
default: false
description: "Indicates whether to email a debit memo based on the email template\
\ setting. \n\nIf you set this field to `true`, the debit memo is sent to\
\ the email addresses specified in the **To Email** field of the email template.\
\ The email template is the one you set in the **Delivery Options** panel\
\ of the **Edit notification** dialog from the Zuora UI. See [Edit Email\
\ Templates](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/Create_Email_Templates)\
\ for more information about how to edit the **To Email** field in the email\
\ template.\n"
enum:
- true
- false
type: boolean
type: object
PostDiscountItemType:
allOf:
- properties:
accountingCode:
description: 'The accounting code associated with the discount item.
'
type: string
accountsReceivableAccountingCode:
description: 'The accounting code for accounts receivable.
'
type: string
adjustmentLiabilityAccountingCode:
description: |
The accounting code for adjustment liability.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: string
adjustmentRevenueAccountingCode:
description: |
The accounting code for adjustment revenue.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: string
amount:
description: |
The amount of the discount item.
- Should be a negative number. For example, `-10`.
- Always a fixed amount no matter whether the discount charge associated with the discount item uses the [fixed-amount model or percentage model](https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models#Fixed_amount_model_and_percentage_model).
- For tax-exclusive discount items, this amount indicates the discount item amount excluding tax.
- For tax-inclusive discount items, this amount indicates the discount item amount including tax.
format: number
type: string
bookingReference:
description: 'The booking reference of the discount item.
'
type: string
chargeDate:
description: 'The date when the discount item is charged, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
chargeName:
description: |
The name of the charge associated with the discount item.
This field is required if the `productRatePlanChargeId` field is not specified in the request body.
type: string
contractAssetAccountingCode:
description: |
The accounting code for contract asset.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: string
contractLiabilityAccountingCode:
description: |
The accounting code for contract liability.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: string
contractRecognizedRevenueAccountingCode:
description: |
The accounting code for contract recognized revenue.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: string
deferredRevenueAccountingCode:
description: |
The accounting code for the deferred revenue, such as Monthly Recurring Liability.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
description:
description: 'The description of the discount item.
'
type: string
itemType:
description: 'The type of the discount item.
'
type: string
productRatePlanChargeId:
description: |
The ID of the product rate plan charge that the discount item is created from.
If you specify a value for the `productRatePlanChargeId` field in the request, Zuora directly copies the values of the following fields from the corresponding product rate plan charge, regardless of the values specified in the request body:
- `chargeName`
- `sku`
If you specify a value for the `productRatePlanChargeId` field in the request, Zuora directly copies the values of the following fields from the corresponding discount charge that [uses discount specific accounting codes, rule and segment to manage revenue](https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/B_Charge_Models/Manage_Discount_Charges#Use_discount_specific_accounting_codes.2C_rule_and_segment_to_manage_revenue), regardless of the values specified in the request body:
- `accountingCode`
- `deferredRevenueAccountingCode`
- `recognizedRevenueAccountingCode`
If you specify a value for the `productRatePlanChargeId` field in the request, Zuora directly copies the values of the following fields from the corresponding invoice item charge if the discount charge DOES NOT [use discount specific accounting codes, rule and segment to manage revenue](https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/B_Charge_Models/Manage_Discount_Charges#Use_discount_specific_accounting_codes.2C_rule_and_segment_to_manage_revenue), regardless of the values specified in the request body:
- `accountingCode`
- `deferredRevenueAccountingCode`
- `recognizedRevenueAccountingCode`
type: string
purchaseOrderNumber:
description: 'The purchase order number associated with the discount item.
'
type: string
recognizedRevenueAccountingCode:
description: |
The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
revRecCode:
description: 'The revenue recognition code.
'
type: string
revRecTriggerCondition:
description: 'The date when revenue recognition is triggered.
'
enum:
- ContractEffectiveDate
- ServiceActivationDate
- CustomerAcceptanceDate
type: string
revenueRecognitionRuleName:
description: |
The name of the revenue recognition rule governing the revenue schedule.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
sku:
description: 'The SKU of the invoice item. The SKU of the discount item
must be different from the SKU of any existing product.
'
type: string
taxItems:
description: |
Container for taxation items. The maximum number of taxation items is 5.
**Note**: This field is only available only if you have Taxation enabled.
items:
$ref: '#/definitions/PostTaxationItemType'
type: array
unbilledReceivablesAccountingCode:
description: |
The accounting code for unbilled receivables.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: string
unitPrice:
description: |
The per-unit price of the discount item.
If the discount charge associated with the discount item uses the percentage model, the unit price will display as a percentage amount in PDF. For example: if unit price is 5.00, it will display as 5.00% in PDF.
format: number
type: string
required:
- amount
title: invoiceItems
type: object
- $ref: '#/definitions/DiscountItemObjectNSFields'
- $ref: '#/definitions/DiscountItemObjectCustomFields'
PostEventTriggerRequest:
example:
active: true
baseObject: Invoice
condition: changeType == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old
!= 'Posted' && Invoice.Amount > 1000
description: Trigger an event when an invoice is posted with amount over 1000
eventType:
description: An invoice is posted with amount over 1000
displayName: Large Invoice Posted
name: LargeInvoicePosted
properties:
active:
description: The status of the event trigger.
type: boolean
baseObject:
description: |
The base object that the trigger rule is defined upon. The format of the value in this field depends on the base object type:
- Standard object: object name, which should follow the pattern ^[A-Z][\w\-]*$. For example, `Invoice`.
- Custom object: `default__`. For example, `default__vehicle`.
maxLength: 100
minLength: 1
type: string
condition:
description: The JEXL expression to be evaluated against object changes. See
above for more information and an example.
maxLength: 5000
minLength: 1
type: string
description:
description: The description of the event trigger.
maxLength: 1000
type: string
eventType:
$ref: '#/definitions/EventType'
required:
- baseObject
- condition
- eventType
- active
type: object
PostFulfillmentItemsRequestType:
example:
fulfillmentItems:
- customFields:
PICKLIST_CF__c: option_1
description: description1
fulfillmentNumber: F-00000001
itemIdentifier: 0c27b769-5bba-46a5-80aa-cdd95f931216
- customFields:
PICKLIST_CF__c: option_2
description: description2
fulfillmentNumber: F-00000001
itemIdentifier: 456d3812-33d2-454c-b272-4c5a9a3e2742
properties:
fulfillmentItems:
items:
$ref: '#/definitions/FulfillmentItemPost'
type: array
type: object
PostFulfillmentItemsResponseType:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
fulfillmentItems:
items:
properties:
id:
description: 'The sytem generated Id.
'
format: UUID
type: string
type: object
type: array
type: object
PostFulfillmentsRequestType:
example:
fulfillments:
- billTargetDate: '2022-01-01'
fulfillmentDate: '2022-01-01'
fulfillmentType: Delivery
orderLineItemId: 4028828c82819b740182821bb23e15c4
quantity: 5
state: SentToBilling
- billTargetDate: '2022-01-01'
fulfillmentDate: '2022-01-01'
fulfillmentType: Delivery
orderLineItemId: 4028828c82819b740182821bb23e15c4
quantity: 5
state: SentToBilling
processingOptions:
billingOptions:
documentDate: '2022-01-01'
targetDate: '2022-01-01'
collectPayment: true
runBilling: true
properties:
fulfillments:
items:
$ref: '#/definitions/FulfillmentPost'
type: array
processingOptions:
$ref: '#/definitions/ProcessingOptions'
type: object
PostFulfillmentsResponseType:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
creditMemoNumbers:
description: 'An array of the credit memo numbers generated in this request.
The credit memo is only available if you have the Invoice Settlement feature
enabled.
'
items:
type: string
type: array
fulfillments:
items:
properties:
fulfillmentItems:
items:
properties:
id:
description: 'The sytem generated Id.
'
format: UUID
type: string
type: object
type: array
fulfillmentNumber:
description: 'The sytem generated number for the Fulfillment.
'
type: string
id:
description: 'The sytem generated Id.
'
format: UUID
type: string
type: object
type: array
invoiceNumbers:
description: 'An array of the invoice numbers generated in this request.
Normally it includes one invoice number only.
'
items:
type: string
type: array
paidAmount:
description: 'The total amount collected in this request.
'
type: number
paymentNumber:
description: 'The payment number collected in this request.
'
type: string
type: object
PostGenerateBillingDocumentType:
example:
autoPost: false
creditMemoReasonCode: Unsatisfactory service
effectiveDate: '2017-05-23'
subscriptionIds:
- 4028905558b483220158b48983dd0015
- 6028905558b483220158b68983dd0016
targetDate: '2017-08-23'
properties:
autoPost:
default: false
description: "Whether to automatically post the billing documents after the\
\ draft billing documents are generated. \n\nIf an error occurs during posting\
\ billing documents, the draft billing documents are not generated too.\n"
enum:
- true
- false
type: boolean
autoRenew:
default: false
description: "Whether to automatically renew the subscriptions with **Auto\
\ Renew** set to **Yes**. \n"
enum:
- true
- false
type: boolean
chargeTypeToExclude:
description: "The types of the charges to be excluded from the generation\
\ of billing documents. The field values are case insensitive. Supported\
\ values include `onetime`, `recurring`, and `usage`. \n"
items:
type: string
type: array
creditMemoReasonCode:
description: A code identifying the reason for the credit memo transaction
that is generated by the request. The value must be an existing reason code.
If you do not pass the field or pass the field with empty value, Zuora uses
the default reason code.
type: string
effectiveDate:
description: 'The date on which to generate the billing documents, in `yyyy-mm-dd`
format.
'
format: date
type: string
subscriptionIds:
description: 'The IDs of the subscriptions that you want to create the billing
documents for. Each value must be the ID of the latest version of an active
subscription.
'
items:
type: string
type: array
targetDate:
description: 'The date used to determine which charges are to be billed, in
`yyyy-mm-dd` format.
'
format: date
type: string
type: object
PostInvoiceEmailRequestType:
example:
emailAddresses: contact1@example.com,contact2@example.com
includeAdditionalEmailAddresses: false
useEmailTemplateSetting: false
properties:
emailAddresses:
description: |
The valid email addresses you want to email an invoice to. Use commas to separate email addresses.
**Note:** This field is only applicable if you set the `useEmailTemplateSetting` field to `false`.
type: string
includeAdditionalEmailAddresses:
default: false
description: "Whether to send an invoice to the additional email addresses\
\ of the invoice account. \nYou can set the additional email addresses in\
\ the **Additional Email Addresses** field on the account detail page from\
\ the Zuora UI. See [Create a Customer Account](https://knowledgecenter.zuora.com/BC_Subscription_Management/Customer_Accounts/B_Create_a_Customer_Account#section_2)\
\ for more information.\n"
enum:
- true
- false
type: boolean
useEmailTemplateSetting:
default: false
description: "Indicates whether to email an invoice based on the email template\
\ setting. \nIf you set this field to `true`, the invoice is sent to the\
\ email addresses specified in the **To Email** field of the email template.\
\ The email template is the one you set in the **Delivery Options** panel\
\ of the **Edit notification** dialog from the Zuora UI. See [Edit Email\
\ Templates](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/Create_Email_Templates)\
\ for more information about how to edit the **To Email** field in the email\
\ template.\n"
enum:
- true
- false
type: boolean
type: object
PostInvoiceItemType:
allOf:
- properties:
accountingCode:
description: 'The accounting code associated with the invoice item.
'
type: string
adjustmentLiabilityAccountingCode:
description: "The accounting code for adjustment liability. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
adjustmentRevenueAccountingCode:
description: "The accounting code for adjustment revenue. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
amount:
description: "The amount of the invoice item. \n\n- For tax-inclusive invoice\
\ items, the amount indicates the invoice item amount including tax. \n\
- For tax-exclusive invoice items, the amount indicates the invoice item\
\ amount excluding tax.\n"
format: number
type: string
bookingReference:
description: 'The booking reference of the invoice item.
'
type: string
chargeDate:
description: 'The date when the invoice item is charged, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
chargeName:
description: "The name of the charge associated with the invoice item. \n\
\nThis field is required if the `productRatePlanChargeId` field is not\
\ specified in the request.\n"
type: string
contractAssetAccountingCode:
description: "The accounting code for contract asset. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
contractLiabilityAccountingCode:
description: "The accounting code for contract liability. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
contractRecognizedRevenueAccountingCode:
description: "The accounting code for contract recognized revenue. \n \
\ \n**Note**: This field is only available if you have the Billing\
\ - Revenue Integration feature enabled. \n"
type: string
deferredRevenueAccountingCode:
description: |
The accounting code for the deferred revenue, such as Monthly Recurring Liability.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
description:
description: 'The description of the invoice item.
'
type: string
discountItems:
description: 'Container for discount items. The maximum number of discount
items is 10.
'
items:
$ref: '#/definitions/PostDiscountItemType'
type: array
excludeItemBillingFromRevenueAccounting:
description: "The flag to exclude the invoice item from revenue accounting.\n\
\n**Note**: This field is only available if you have the Billing - Revenue\
\ Integration feature enabled. \n"
type: boolean
itemType:
description: 'The type of the invoice item.
'
type: string
productRatePlanChargeId:
description: "The ID of the product rate plan charge that the invoice item\
\ is created from.\n\nIf you specify a value for the `productRatePlanChargeId`\
\ field in the request, Zuora directly copies the values of the following\
\ fields from the corresponding product rate plan charge, regardless of\
\ the values specified in the request body:\n- `chargeName`\n- `sku`\n\
- `uom`\n- `taxCode`\n- `taxMode`\n- `accountingCode`\n- `deferredRevenueAccountingCode`\
\ \n- `recognizedRevenueAccountingCode`\n"
type: string
purchaseOrderNumber:
description: 'The purchase order number associated with the invoice item.
'
type: string
quantity:
default: '1'
description: 'The number of units for the invoice item.
'
format: number
type: string
recognizedRevenueAccountingCode:
description: |
The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
revRecCode:
description: 'The revenue recognition code.
'
type: string
revRecTriggerCondition:
description: 'The date when revenue recognition is triggered.
'
enum:
- ContractEffectiveDate
- ServiceActivationDate
- CustomerAcceptanceDate
type: string
revenueRecognitionRuleName:
description: |
The name of the revenue recognition rule governing the revenue schedule.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
serviceEndDate:
description: 'The service end date of the invoice item.
'
format: date
type: string
serviceStartDate:
description: 'The service start date of the invoice item.
'
format: date
type: string
sku:
description: 'The SKU of the invoice item. The SKU of the invoice item must
be different from the SKU of any existing product.
'
type: string
taxCode:
description: |
The tax code identifies which tax rules and tax rates to apply to the invoice item.
**Note**: This field is only available only if you have Taxation enabled.
type: string
taxItems:
description: |
Container for taxation items. The maximum number of taxation items is 5.
**Note**: This field is only available only if you have Taxation enabled.
items:
$ref: '#/definitions/PostTaxationItemType'
type: array
taxMode:
description: |
The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.
**Note**: This field is only available only if you have Taxation enabled.
enum:
- TaxInclusive
- TaxExclusive
type: string
unbilledReceivablesAccountingCode:
description: "The accounting code for unbilled receivables. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
unitPrice:
description: 'The per-unit price of the invoice item. To pass Level 3 data
to the gateway, this field is required and must be greater than zero.
'
format: number
type: string
uom:
description: 'The unit of measure.
'
type: string
required:
- amount
- serviceStartDate
title: invoiceItems
type: object
- $ref: '#/definitions/InvoiceItemObjectNSFields'
- $ref: '#/definitions/InvoiceItemObjectCustomFields'
PostInvoiceResponse:
allOf:
- properties:
accountId:
description: 'The ID of the customer account associated with the invoice.
'
type: string
adjustmentAmount:
description: 'The amount of the invoice adjustments associated with the
invoice.
'
format: number
type: string
amount:
description: 'The total amount of the invoice.
'
format: number
type: string
amountWithoutTax:
description: 'The invoice amount excluding tax.
'
format: number
type: string
autoPay:
description: 'Whether invoices are automatically picked up for processing
in the corresponding payment run.
'
type: boolean
balance:
description: 'The remaining balance of the invoice after all payments, adjustments,
and refunds are applied.
'
format: number
type: string
billRunId:
description: 'The id of bill run if the invoice is generated by a bill run.
'
type: string
billToContactId:
description: 'The ID of the bill-to contact associated with the invoice.
'
type: string
billToContactSnapshotId:
description: 'The ID of the bill-to contact snapshot associated with the
invoice.
'
type: string
comments:
description: 'Comments about the invoice.
'
type: string
createdById:
description: 'The user ID of the person who created the invoice. If a bill
run generated the invoice, then the value is the user ID of person who
created the bill run.
'
type: string
createdDate:
description: 'The date and time when the invoice was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
creditBalanceAdjustmentAmount:
description: |
The currency amount of the adjustment applied to the customer's credit balance.
**Note:** This field is only available if you have the Credit Balance feature enabled and the Invoice Settlement feature disabled.
format: number
type: string
creditMemoAmount:
description: |
The currency amount of all credit memos applied to this invoice.
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
format: number
type: string
currency:
description: |
The currency of the invoice.
**Note**: This field is available only if you have the Multiple Currencies feature in the **Early Adopter** phase enabled.
type: string
discount:
description: 'the invoice discount amount.
'
format: number
type: string
dueDate:
description: 'The date by which the payment for this invoice is due, in
`yyyy-mm-dd` format.
'
format: date
type: string
einvoiceErrorCode:
description: 'The error code when status is "Failed". This code can either
be a Zuora-generated error code or one returned by a third-party e-invoice
vendor.
'
type: string
einvoiceErrorMessage:
description: 'The error message when status is "Failed". This message can
either be a Zuora-generated error code or one returned by a third-party
e-invoice vendor.
'
type: string
einvoiceFileId:
description: 'The ID of the e-invoice file.
'
type: string
einvoiceStatus:
description: "It could be Processing, Success, Failed. If it\u2019s Failed,\
\ it will have an error code and message. If it\u2019s Success, both error\
\ code and message are empty, and eInvoiceFileId stores the file id of\
\ e-invoice.\n"
enum:
- Processing
- Success
- Failed
type: string
id:
description: 'The unique ID of the invoice.
'
type: string
includesOneTime:
description: 'Specifies whether the invoice includes one-time charges.
'
type: boolean
includesRecurring:
description: 'Specifies whether the invoice includes recurring charges.
'
type: boolean
includesUsage:
description: 'Specifies whether the invoice includes usage charges.
'
type: boolean
invoiceDate:
description: 'The date that appears on the invoice being created.
'
format: date
type: string
invoiceNumber:
description: 'The unique identification number of the invoice.
'
type: string
lastEmailSentDate:
description: 'The date when the invoice was last emailed.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentAmount:
description: 'The amount of payments applied to the invoice.
'
format: number
type: string
paymentTerm:
description: 'The name of payment term associated with the invoice.
'
type: string
postedBy:
description: 'The user ID of the person who moved the invoice to Posted
status.
'
type: string
postedDate:
description: 'The date when the invoice was posted.
'
format: date
type: string
refundAmount:
description: 'Specifies the amount of a refund that was applied against
an earlier payment on the invoice.
'
format: number
type: string
sequenceSetId:
description: 'The ID of the sequence set associated with the invoice.
'
type: string
soldToContactId:
description: 'The ID of the sold-to contact associated with the invoice.
'
type: string
soldToContactSnapshotId:
description: 'The ID of the sold-to contact snapshot associated with the
invoice.
'
type: string
source:
description: 'The source of the invoice.
'
enum:
- BillRun
- API
- ApiSubscribe
- ApiAmend
type: string
sourceId:
description: |
The ID of the invoice source.
If an invoice is generated from a bill run, the value is the number of the corresponding bill run.Otherwise, the value is `null`.
type: string
sourceType:
description: 'The type of the invoice source.
'
enum:
- Subscription
- Standalone
- Order
- Consolidation
type: string
status:
description: 'The status of the invoice.
'
enum:
- Draft
- Posted
type: string
targetDate:
description: 'This date is used to determine which charges are to be billed.
All charges that are to be billed on this date or prior will be included
in this bill run.
'
format: date
type: string
taxAmount:
description: 'The amount of taxation.
'
format: number
type: string
taxExemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: number
type: string
taxMessage:
description: 'The message that the tax engine return if it calculates the
taxes of this invoice fails.
'
type: string
taxStatus:
description: 'The status that the tax engine return after it calculates
the taxes of this invoice.
'
enum:
- Complete
- Error
- UnknownError
- DuplicateDoc
- InvalidRequest
- InvalidResponse
- TaxEngineError
- ConcurrentModify
- InternalServerError
- TaxCodeTemplateError
type: string
templateId:
description: "The ID of the invoice template.\n\n- If you have the Flexible Billing Attributes feature enabled, the\
\ value of this field depends on the configuration of the invoice template.\
\ \n - If you specify an invoice template at the subscription level,\
\ the value of this field is automatically populated from the corresponding\
\ subscription.\n - If you do not specify any invoice template at the\
\ subscription level, the value of this field is automatically populated\
\ from the corresponding account.\n- If you have the Flexible Billing\
\ Attributes feature disabled, the value of this field is `null`.\n"
type: string
transferredToAccounting:
description: 'Whether the invoice was transferred to an external accounting
system.
'
enum:
- Processing
- Error
- Ignore
- 'Yes'
- 'No'
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the invoice.
'
type: string
updatedDate:
description: 'The date when the invoice was last updated.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/InvoiceObjectNSFields'
- $ref: '#/definitions/InvoiceObjectCustomFields'
PostInvoiceType:
allOf:
- properties:
accountId:
description: "The ID of the account associated with the invoice. \n\nYou\
\ must specify either `accountNumber` or `accountId` for a customer account.\
\ If both of them are specified, they must refer to the same customer\
\ account.\n"
type: string
accountNumber:
description: |
The Number of the account associated with the invoice.
You must specify either `accountNumber` or `accountId` for a customer account. If both of them are specified, they must refer to the same customer account.
type: string
autoPay:
default: false
description: 'Whether invoices are automatically picked up for processing
in the corresponding payment run.
'
type: boolean
billToContact:
$ref: '#/definitions/PostCreateInvoiceContactType'
billToContactId:
description: |
The ID of the bill-to contact associated with the invoice. This field is mutually exclusive with the `billToContact` field.
**Note**: If you have the Flexible Billing Attributes feature disabled, this field is unavailable in the request body.
type: string
comments:
description: 'Comments about the invoice.
'
type: string
currency:
description: |
The code of a currency as defined in Billing Settings through the Zuora UI.
If you do not specify a currency during standalone invoice creation, the default account currency is applied. The currency that you specify in the request must be configured and activated in Billing Settings.
**Note**: This field is available only if you have the Multiple Currencies feature in the **Early Adopter** phase enabled.
type: string
customRates:
description: "It contains Home currency and Reporting currency custom rates\
\ currencies. The maximum number of items is 2 (you can pass the Home\
\ currency item or Reporting currency item or both).\n \n**Note**:\
\ The API custom rate feature is permission controlled.\n"
items:
$ref: '#/definitions/InvoiceWithCustomRatesType'
maxItems: 2
type: array
dueDate:
description: 'The date by which the payment for this invoice is due, in
`yyyy-mm-dd` format.
'
format: date
type: string
invoiceDate:
description: 'The date that appears on the invoice being created, in `yyyy-mm-dd`
format. The value cannot fall in a closed accounting period.
'
format: date
type: string
invoiceItems:
description: 'Container for invoice items. The maximum number of invoice
items is 1,000.
'
items:
$ref: '#/definitions/PostInvoiceItemType'
type: array
invoiceNumber:
description: "A customized invoice number with the following format requirements:\n\
- Max length: 32 characters\n- Acceptable characters: a-z,A-Z,0-9,-,_,\n\
\nPurely numerical prefixes or prefixes ending with a number are supported\
\ for standalone invoices. For example, you can use `202310000300`, `2003`,\
\ `INV202310000300`, or `2023-09-100009785` as invoice numbers.\n\nThe\
\ value must be unique in the system, otherwise it may cause issues with\
\ bill runs and subscribe/amend. Check out [things to note and troubleshooting\
\ steps](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/IA_Invoices/Unified_Invoicing/Import_external_invoices_as_standalone_invoices?#Customizing_invoice_number).\
\ \n"
type: string
paymentTerm:
description: |
The ID or name of the payment term associated with the invoice. For example, `Net 30`. The payment term determines the due dates of invoices.
**Note**: If you have the Flexible Billing Attributes feature disabled, this field is unavailable in the request body.
type: string
sequenceSet:
description: |
The ID or name of the sequence set associated with the invoice.
**Note**: If you have the Flexible Billing Attributes feature disabled, this field is unavailable in the request body.
type: string
soldToContact:
$ref: '#/definitions/PostCreateInvoiceContactType'
soldToContactId:
description: |
The ID of the sold-to contact associated with the invoice. This field is mutually exclusive with the `soldToContact` field.
**Note**: If you have the Flexible Billing Attributes feature disabled, this field is unavailable in the request body.
type: string
soldToSameAsBillTo:
default: false
description: "Whether the sold-to contact and bill-to contact are the same\
\ entity. This field is mutually exclusive with the `soldToContact` and\
\ `soldToContactId` fields.\n\nThe created invoice has the same bill-to\
\ contact and sold-to contact entity only when all the following conditions\
\ are met in the request body:\n\n- This field is set to `true`. \n- A\
\ bill-to contact or bill-to contact ID is specified.\n- Neither sold-to\
\ contact nor sold-to contact ID is specified.\n\n**Note**: If you have\
\ the Flexible Billing Attributes feature disabled,\
\ this field is unavailable in the request body.\n"
type: boolean
status:
default: Draft
description: |
The status of invoice. By default, the invoice status is Draft.
When creating an invoice, if you set this field to `Posted`, the invoice is created and posted directly.
enum:
- Draft
- Posted
type: string
templateId:
description: |
The ID of the invoice template associated with the invoice.
**Note**: If you have the Flexible Billing Attributes feature disabled, this field is unavailable in the request body.
type: string
transferredToAccounting:
enum:
- Processing
- Error
- Ignore
- 'Yes'
- 'No'
type: string
required:
- invoiceDate
title: invoices
type: object
- $ref: '#/definitions/InvoiceObjectNSFields'
- $ref: '#/definitions/InvoiceObjectCustomFields'
example:
accountId: 2c9890207863df710178642433c407a5
autoPay: false
comments: comments
currency: EUR
customRates:
- currency: CAD
customFxRate: 2.22
rateDate: '2022-10-21'
- currency: EUR
customFxRate: 2.22
rateDate: '2022-10-21'
invoiceDate: '2020-02-01'
invoiceItems:
- amount: 300
bookingReference: bookingReference
chargeDate: '2020-02-01 11:00:00'
chargeName: charge with tax amount 9
description: description
discountItems:
- amount: -10
bookingReference: discountBookingReference
chargeDate: '2020-02-01 11:00:00'
chargeName: discount
description: description
sku: SKU-0002
taxItems:
- exemptAmount: 0
jurisdiction: jurisdiction
locationCode: locationCode
name: country tax
taxAmount: -1
taxCode: country tax code
taxCodeDescription: country tax code, tax rate 10%
taxDate: '2021-02-08'
taxMode: TaxExclusive
taxRate: 0.1
taxRateDescription: country tax
taxRateType: Percentage
excludeItemBillingFromRevenueAccounting: true
quantity: 2
serviceEndDate: '2020-02-10'
serviceStartDate: '2020-02-01'
taxItems:
- exemptAmount: 0
jurisdiction: juristiction
locationCode: locationCode
name: country tax
taxAmount: 9
taxCode: tax code
taxCodeDescription: tax code description
taxDate: '2020-02-01'
taxMode: TaxExclusive
taxRate: 0.03
taxRateDescription: tax rate description
taxRateType: Percentage
invoiceNumber: 6LU5F8NW00001
PostNonRefRefundType:
allOf:
- properties:
comment:
description: 'Comments about the refund.
'
maxLength: 255
minLength: 0
type: string
customRates:
description: |
It contains Home currency and Reporting currency custom rates currencies. The maximum number of items is 2 (you can pass the Home currency item, Reporting currency item, or both).
**Note**: The API custom rate feature is permission controlled.
items:
$ref: '#/definitions/CreditMemoFromChargeCustomRatesType'
maxItems: 2
type: array
financeInformation:
description: 'Container for the finance information related to the refund.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
transferredToAccounting:
description: "Whether the refund was transferred to an external accounting\
\ system. Use this field for integration with accounting systems,\
\ such as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
maxLength: 100
minLength: 0
type: string
type: object
gatewayId:
description: "The ID of the gateway instance that processes the refund.\
\ This field can be specified only for electronic refunds. The ID must\
\ be a valid gateway instance ID, and this gateway must support the specific\
\ payment method. \n\nIf no gateway ID is specified, the default gateway\
\ in the billing account configuration will be used. If no gateway is\
\ specified in the billing account, the default gateway of the corresponding\
\ tenant will be used.\n"
type: string
gatewayOptions:
description: 'The field used to pass gateway-specific parameters and parameter
values.
'
properties:
key:
description: 'The name of a gateway-specific parameter.
'
type: string
value:
description: 'The value of the gateway-specific parameter.
'
type: string
type: object
items:
description: |
Container for credit memo items. The maximum number of items is 1,000.
**Note:** This field is only available if you have the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) feature enabled. Invoice Item Settlement must be used together with other Invoice Settlement features (Unapplied Payments, and Credit and Debit memos). If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
items:
$ref: '#/definitions/RefundCreditMemoItemType'
type: array
methodType:
description: 'How an external refund was issued to a customer. This field
is required for an external refund and must be left empty for an electronic
refund. You can issue an external refund on a credit memo.
'
enum:
- ACH
- Cash
- Check
- CreditCard
- PayPal
- WireTransfer
- DebitCard
- CreditCardReferenceTransaction
- BankTransfer
- Other
type: string
paymentMethodId:
description: "The ID of the payment method used for the refund. This field\
\ is required for an electronic refund, and the value must be an electronic\
\ payment method ID. This field must be left empty for an external refund.\
\ \n"
type: string
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty. If you do not specify a value,
Zuora uses the default reason code.
'
type: string
referenceId:
description: 'The transaction ID returned by the payment gateway for an
electronic refund. Use this field to reconcile refunds between your gateway
and Zuora Payments.
'
maxLength: 100
minLength: 0
type: string
refundDate:
description: 'The date when the refund takes effect, in `yyyy-mm-dd` format.
The date of the refund cannot be before the credit memo date. Specify
this field only for external refunds. Zuora automatically generates this
field for electronic refunds.
'
format: date
type: string
secondRefundReferenceId:
description: 'The transaction ID returned by the payment gateway if there
is an additional transaction for the refund. Use this field to reconcile
payments between your gateway and Zuora Payments.
'
maxLength: 100
minLength: 0
type: string
softDescriptor:
description: A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
maxLength: 35
type: string
softDescriptorPhone:
description: A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
maxLength: 20
type: string
totalAmount:
description: 'The total amount of the refund. The amount cannot exceed the
unapplied amount of the associated credit memo. If the original credit
memo was applied to one or more invoices or debit memos, you have to unapply
a full or partial credit memo from the invoices or debit memos, and then
refund the full or partial unapplied credit memo to your customers.
'
format: double
type: number
type:
description: 'The type of the refund.
'
enum:
- External
- Electronic
type: string
required:
- totalAmount
- type
type: object
- $ref: '#/definitions/RefundObjectNSFields'
- $ref: '#/definitions/RefundObjectCustomFields'
example:
customRates:
- currency: CAD
customFxRate: 2.22
rateDate: '2022-10-21'
- currency: EUR
customFxRate: 1.5
rateDate: '2022-10-21'
gatewayOptions:
Comments: test
IPAddress: 192.168.1.1
items:
- amount: 7
creditMemoItemId: 4028905f5a890526015a8d73f74b0016
- amount: 0.1
creditTaxItemId: 4028905f5a890526015a8d73f90c0018
methodType: CreditCard
refundDate: '2017-03-02'
totalAmount: 7.1
type: External
PostOrderAccountPaymentMethod:
allOf:
- properties:
type:
description: |
Type of payment method. The following types of the payment method are supported:
* `CreditCard` - Credit card payment method.
* `CreditCardReferenceTransaction` - Credit Card Reference Transaction. See [Supported payment methods](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Supported_Payment_Methods) for payment gateways that support this type of payment method.
* `ACH` - ACH payment method.
* `SEPA` - Single Euro Payments Area.
* `Betalingsservice` - Direct Debit DK.
* `Autogiro` - Direct Debit SE.
* `Bacs` - Direct Debit UK.
* `Becs` - Direct Entry AU.
* `Becsnz` - Direct Debit NZ.
* `PAD` - Pre-Authorized Debit.
* `PayPalCP` - PayPal Commerce Platform payment method. Use this type if you are using a [PayPal Commerce Platform Gateway](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Commerce_Platform_Gateway) instance.
* `PayPalEC` - PayPal Express Checkout payment method. Use this type if you are using a [PayPal Payflow Pro Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Payflow_Pro%2C_Website_Payments_Payflow_Edition%2C_Website_Pro_Payment_Gateway) instance.
* `PayPalNativeEC` - PayPal Native Express Checkout payment method. Use this type if you are using a [PayPal Express Checkout Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Express_Checkout_Gateway) instance.
* `PayPalAdaptive` - PayPal Adaptive payment method. Use this type if you are using a [PayPal Adaptive Payment Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Adaptive_Payments_Gateway) instance.
* `AdyenApplePay` - Apple Pay on Adyen Integration v2.0. See [Set up Adyen Apple Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Apple_Pay_on_Web/Set_up_Adyen_Apple_Pay) for details.
* `AdyenGooglePay` - Google Pay on Adyen Integration v2.0. See [Set up Adyen Google Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Adyen_Google_Pay) for details.
* `GooglePay` - Google Pay on Chase Paymentech Orbital gateway integration. See [Set up Google Pay on Chase](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Google_Pay_on_Chase) for details.
* You can also specify a custom payment method type. 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 details.
type: string
required:
- type
type: object
- $ref: '#/definitions/CreatePMPayPalECPayPalNativeECPayPalCP'
- $ref: '#/definitions/CreatePaymentMethodPayPalAdaptive'
- $ref: '#/definitions/CreatePaymentMethodCreditCard'
- $ref: '#/definitions/CreatePaymentMethodACH'
- $ref: '#/definitions/CreatePaymentMethodCommon'
- $ref: '#/definitions/PaymentMethodObjectCustomFields'
- $ref: '#/definitions/CreatePaymentMethodBankTransfer'
- $ref: '#/definitions/CreatePaymentMethodCCReferenceTransaction'
- $ref: '#/definitions/CreatePaymentMethodApplePayAdyen'
- $ref: '#/definitions/CreatePaymentMethodGooglePayAdyenChase'
description: 'Payment method to create for this new account. Supports all the
payment methods that are supported in the "Create a payment method" operation.
See [Create a payment method](https://developer.zuora.com/api-references/api/operation/POST_PaymentMethods)
for more information.
'
PostOrderLineItemUpdateType:
allOf:
- properties:
id:
description: 'The sytem generated Id for the Order Line Item(OLI). Use this
field to specify which OLI to update.
'
format: UUID
type: string
required:
- id
type: object
- $ref: '#/definitions/OrderLineItemCommon'
PostOrderLineItemsRequestType:
properties:
orderLineItems:
items:
$ref: '#/definitions/PostOrderLineItemUpdateType'
type: array
processingOptions:
$ref: '#/definitions/ProcessingOptions'
type: object
PostOrderPreviewResponseType:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
previewResult:
$ref: '#/definitions/PreviewResult'
type: object
PostOrderResponseType:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
accountId:
description: The account ID for the order. This field is returned instead
of the `accountNumber` field if the `returnIds` query parameter is set
to `true`.
maxLength: 32
type: string
accountNumber:
description: The account number for the order.
maxLength: 50
type: string
creditMemoIds:
description: An array of the credit memo IDs generated in this order request.
The credit memo is only available if you have the Invoice Settlement feature
enabled. This field is returned instead of the `creditMemoNumbers` field
if the `returnIds` query parameter is set to `true`.
items:
type: string
maxLength: 32
type: array
creditMemoNumbers:
description: An array of the credit memo numbers generated in this order
request. The credit memo is only available if you have the Invoice Settlement
feature enabled.
items:
type: string
maxLength: 255
type: array
invoiceIds:
description: An array of the invoice IDs generated in this order request.
Normally it includes one invoice ID only, but can include multiple items
when a subscription was tagged as invoice separately. This field is returned
instead of the `invoiceNumbers` field if the `returnIds` query parameter
is set to `true`.
items:
type: string
maxLength: 32
type: array
invoiceNumbers:
description: An array of the invoice numbers generated in this order request.
Normally it includes one invoice number only, but can include multiple
items when a subscription was tagged as invoice separately.
items:
type: string
maxLength: 255
type: array
orderId:
description: The ID of the order created. This field is returned instead
of the `orderNumber` field if the `returnIds` query parameter is set to
`true`.
maxLength: 32
type: string
orderLineItems:
items:
properties:
id:
description: The sytem generated Id for the Order Line Item.
format: UUID
maxLength: 32
type: string
itemNumber:
description: The number for the Order Line Item.
format: UUID
maxLength: 100
type: string
type: object
type: array
orderNumber:
description: The order number of the order created.
maxLength: 100
type: string
paidAmount:
description: The total amount collected in this order request.
maxLength: 22
minLength: 9
type: string
paymentId:
description: The payment Id that is collected in this order request. This
field is returned instead of the `paymentNumber` field if the `returnIds`
query parameter is set to `true`.
maxLength: 32
type: string
paymentNumber:
description: The payment number that is collected in this order request.
maxLength: 32
type: string
ramps:
description: |
**Note**: This field is only available if you have the Ramps feature enabled. The [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders) feature must be enabled before you can access the [Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics) feature. The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information coming October 2020.
The ramp definitions created by this order request.
items:
properties:
rampNumber:
description: The number of the ramp definition.
maxLength: 50
type: string
subscriptionNumber:
description: The number of the subscription that this ramp deal definition
is applied to.
maxLength: 150
type: string
type: object
type: array
refunds:
items:
properties:
number:
description: The refund number. For example, `R-00009564`.
maxLength: 32
type: string
refundInvoiceNumbers:
description: An array of the refunded invoice numbers generated in
this order request.
items:
type: string
maxLength: 255
type: array
status:
description: The status of the refund.
enum:
- Success
- Error
type: string
type: object
type: array
status:
description: Status of the order. `Pending` is only applicable for an order
that contains a `CreateSubscription` order action.
enum:
- Draft
- Pending
- Completed
type: string
subscriptionIds:
description: Container for the subscription IDs of the subscriptions in
an order. This field is returned if the `returnIds` query parameter is
set to `true`.
items:
type: string
maxLength: 32
type: array
subscriptionNumbers:
description: Container for the subscription numbers of the subscriptions
in an order. Subscriptions in the response are displayed in the same sequence
as the subscriptions defined in the request.
items:
type: string
maxLength: 150
type: array
subscriptions:
description: "**Note:** This field is in Zuora REST API version control.\
\ Supported minor versions are 223.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\
\ To use this field in the method, you must set the\_`zuora-version` parameter\
\ to the minor version number in the request header.\n\nContainer for\
\ the subscription numbers and statuses in an order.\n"
items:
properties:
status:
description: Status of the subscription. `Pending Activation` and
`Pending Acceptance` are only applicable for an order that contains
a `CreateSubscription` order action.
enum:
- Active
- Pending Activation
- Pending Acceptance
- Cancelled
- Suspended
type: string
subscriptionId:
description: Subscription ID of the subscription included in this
order. This field is returned instead of the `subscriptionNumber`
field if the `returnIds` query parameter is set to `true`.
maxLength: 32
type: string
subscriptionNumber:
description: Subscription number of the subscription included in this
order.
maxLength: 150
type: string
type: object
type: array
writeOff:
items:
properties:
amount:
description: The amount written off from the invoice balance.
maximum: 22
minimum: 9
type: number
failedReason:
description: The reason of write-off failure.
type: string
invoiceNumber:
description: The number of the invoice that is written off. For example,
`INV00051208`.
maxLength: 255
type: string
status:
description: The status of the write-off.
enum:
- Success
- Failed
type: string
writeOffCreditMemoNumber:
description: The number of the credit memo that is written off.
maxLength: 255
type: string
type: object
type: array
type: object
PostRefundType:
allOf:
- properties:
comment:
description: 'Comments about the refund.
'
maxLength: 255
minLength: 0
type: string
customRates:
description: |
It contains Home currency and Reporting currency custom rates currencies. The maximum number of items is 2 (you can pass the Home currency item, Reporting currency item, or both).
**Note**: The API custom rate feature is permission controlled.
items:
$ref: '#/definitions/PaymentWithCustomRatesType'
maxItems: 2
type: array
financeInformation:
description: 'Container for the finance information related to the refund.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
transferredToAccounting:
description: "Whether the refund was transferred to an external accounting\
\ system. Use this field for integration with accounting systems,\
\ such as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
maxLength: 100
minLength: 0
type: string
type: object
gatewayOptions:
description: |
The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).
Zuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.
properties:
key:
description: 'The name of a gateway-specific parameter.
'
type: string
value:
description: 'The value of the gateway-specific parameter.
'
type: string
type: object
methodType:
description: 'How an external refund was issued to a customer. This field
is required for an external refund and must be left empty for an electronic
refund. You can issue an external refund on an electronic payment.
'
enum:
- ACH
- Cash
- Check
- CreditCard
- PayPal
- WireTransfer
- DebitCard
- CreditCardReferenceTransaction
- BankTransfer
- Other
type: string
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty. If you do not specify a value,
Zuora uses the default reason code.
'
type: string
referenceId:
description: 'The transaction ID returned by the payment gateway for an
electronic refund. Use this field to reconcile refunds between your gateway
and Zuora Payments.
'
maxLength: 100
minLength: 0
type: string
refundDate:
description: 'The date when the refund takes effect, in `yyyy-mm-dd` format.
The date of the refund cannot be before the payment date. Specify this
field only for external refunds. Zuora automatically generates this field
for electronic refunds.
'
format: date
type: string
secondRefundReferenceId:
description: 'The transaction ID returned by the payment gateway if there
is an additional transaction for the refund. Use this field to reconcile
payments between your gateway and Zuora Payments.
'
maxLength: 100
minLength: 0
type: string
softDescriptor:
description: A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
maxLength: 35
type: string
softDescriptorPhone:
description: A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
maxLength: 20
type: string
totalAmount:
description: "The total amount of the refund. The amount cannot exceed the\
\ unapplied amount of the associated payment. If the original payment\
\ was applied to one or more invoices or debit memos, you have to unapply\
\ a full or partial payment from the invoices or debit memos, and then\
\ refund the full or partial unapplied payment to your customers. \n"
format: double
type: number
type:
description: 'The type of the refund.
'
enum:
- External
- Electronic
type: string
required:
- totalAmount
- type
type: object
- $ref: '#/definitions/RefundObjectNSFields'
- $ref: '#/definitions/RefundObjectCustomFields'
example:
comment: Create a refund for unapplied payment.
customRates:
- currency: CAD
customFxRate: 2.22
rateDate: '2022-10-21'
- currency: EUR
customFxRate: 2.22
rateDate: '2022-10-21'
gatewayOptions:
Comments: test
IPAddress: 192.168.1.1
methodType: CreditCard
reasonCode: Standard Refund
refundDate: '2017-03-01'
totalAmount: 4
type: External
PostRefundwithAutoUnapplyType:
allOf:
- properties:
comment:
description: 'Comments about the refund.
'
maxLength: 255
minLength: 0
type: string
debitMemos:
description: 'Container for debit memos. The maximum number of debit memos
is 1,000.
'
items:
$ref: '#/definitions/PaymentDebitMemoApplicationApplyRequestType'
type: array
financeInformation:
description: 'Container for the finance information related to the refund.
'
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
transferredToAccounting:
description: "Whether the refund was transferred to an external accounting\
\ system. Use this field for integration with accounting systems,\
\ such as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
maxLength: 100
minLength: 0
type: string
type: object
gatewayOptions:
description: |
The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).
Zuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.
properties:
key:
description: 'The name of a gateway-specific parameter.
'
type: string
value:
description: 'The value of the gateway-specific parameter.
'
type: string
type: object
invoices:
description: 'Container for invoices. The maximum number of invoices is
1,000.
'
items:
$ref: '#/definitions/PaymentInvoiceApplicationApplyRequestType'
type: array
methodType:
description: 'How an external refund was issued to a customer. This field
is required for an external refund and must be left empty for an electronic
refund. You can issue an external refund on an electronic payment.
'
enum:
- ACH
- Cash
- Check
- CreditCard
- PayPal
- WireTransfer
- DebitCard
- CreditCardReferenceTransaction
- BankTransfer
- Other
type: string
reasonCode:
description: 'A code identifying the reason for the transaction. The value
must be an existing reason code or empty. If you do not specify a value,
Zuora uses the default reason code.
'
type: string
referenceId:
description: 'The transaction ID returned by the payment gateway for an
electronic refund. Use this field to reconcile refunds between your gateway
and Zuora Payments.
'
maxLength: 100
minLength: 0
type: string
refundDate:
description: 'The date when the refund takes effect, in `yyyy-mm-dd` format.
The date of the refund cannot be before the payment date. Specify this
field only for external refunds. Zuora automatically generates this field
for electronic refunds.
'
format: date
type: string
secondRefundReferenceId:
description: 'The transaction ID returned by the payment gateway if there
is an additional transaction for the refund. Use this field to reconcile
payments between your gateway and Zuora Payments.
'
maxLength: 100
minLength: 0
type: string
softDescriptor:
description: A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
maxLength: 35
type: string
softDescriptorPhone:
description: A payment gateway-specific field that maps to Zuora for the
gateways, Orbital, Vantiv and Verifi.
maxLength: 20
type: string
totalAmount:
description: "The total amount of the refund. If you do not specify a value,\
\ Zuora initiates a full refund of the payment amount, which is the sum\
\ of the applied and unapplied payment amounts.\n\n - `Full Refund`:\
\ If the refund amount and debit memo/ invoice are not specified, then\
\ the payment will be unapplied completely, followed by processing a full\
\ refund.\n - `Partial Refund`:\n - If the total amount is specified,\
\ and the debit memo/invoice is not specified, you can unapply the refund\
\ amount from the available debit memo/invoice and refund the unapplied\
\ payment to the customer.\n - If the total amount is specified,\
\ along with the debit memo and the invoice, you can unapply the applied\
\ payments from the mentioned invoices and debit memos, and refund the\
\ unapplied payments to customers. \n"
format: double
type: number
type:
description: 'The type of the refund.
'
enum:
- External
- Electronic
type: string
writeOff:
default: false
description: |
Indicates whether to write off a document.
**Note:** If you want to have access to this feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
type: boolean
writeOffOptions:
default: false
description: |
Container for the write-off information to create credit memo.
**Note:** If you want to have access to this feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
properties:
comment:
description: 'Comments about the credit memo which is created as a result
of the write off.
'
maxLength: 100
type: string
memoDate:
description: 'The date when the credit memo takes effect.
'
format: date
type: string
reasonCode:
description: 'A code identifying the reason for the credit memo.
'
type: string
type: object
required:
- type
type: object
- $ref: '#/definitions/RefundObjectNSFields'
- $ref: '#/definitions/RefundObjectCustomFields'
example:
comment: Create a refund for unapplied payment.
gatewayOptions:
Comments: test
IPAddress: 192.168.1.1
methodType: CreditCard
reasonCode: Standard Refund
refundDate: '2017-03-01'
totalAmount: 100
type: External
PostScheduledEventRequest:
description: namespace.name pair should be unique universally
example:
active: true
apiField: TermEndDate
apiObject: Subscription
condition: Subscription.Status == _SUBSCRIPTION_STATUS
description: Trigger a scheduled event at 10:30 AM based on TermEndDate of subscription
objects.
displayName: Term End Date Scheduled Event
hours: 10
minutes: 30
name: TermEndDateScheduledEvent
parameters:
_SUBSCRIPTION_STATUS:
description: The status of the subscription
displayName: Subscription Status
options:
- Draft
- Active
- Pending
- Expired
- Cancelled
valueType: STRING
properties:
active:
default: true
description: Indicate whether the scheduled event is active or inactive.
type: boolean
apiField:
description: "The base field of the base object in the `apiObject` field,\
\ should be in date or timestamp format. The scheduled event notifications\
\ are triggered based on this date and the event parameters (before or after\
\ a specified number of days) from notification definitions. Should be specified\
\ in the pattern: ^[A-Z][\\\\w\\\\-]*$\n \nSee [Custom Scheduled Events](https://knowledgecenter.zuora.com/Central_Platform/Events_and_Notifications/A_Z_Custom_Scheduled_Events)\
\ for all available base fields.\n"
type: string
apiObject:
description: "The base object that the scheduled event is defined upon. The\
\ base object should contain a date or timestamp format field. Should be\
\ specified in the pattern: ^[A-Z][\\\\w\\\\-]*$\n \nSee [Custom\
\ Scheduled Events](https://knowledgecenter.zuora.com/Central_Platform/Events_and_Notifications/A_Z_Custom_Scheduled_Events)\
\ for all available base objects.\n"
type: string
condition:
description: |
The filter rule conditions, written in [JEXL](http://commons.apache.org/proper/commons-jexl/). The scheduled event is triggered only if the condition is evaluated as true.
The rule might contain event context merge fields and data source merge fields. Data source merge fields must be from [the base object of the event or from the joined objects of the base object](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL#Data_Sources_and_Objects).
Scheduled events with invalid merge fields will fail to evaluate, thus will not be triggered. For example, to trigger an invoice due date scheduled event to only invoices with an amount over 1000, you would define the following condition:
```Invoice.Amount > 1000```
`Invoice.Amount` refers to the `Amount` field of the Zuora object `Invoice`.
maxLength: 65535
type: string
description:
description: The description of the scheduled event.
maxLength: 1000
type: string
displayName:
description: The display name of the scheduled event.
maxLength: 500
minLength: 1
type: string
hours:
description: The scheduled time (hour) that the scheduled event notifications
are sent. This time is based on the localized timezone of your tenant.
maximum: 23
minimum: 0
type: integer
minutes:
description: The scheduled time (minute) that the scheduled event notifications
are sent. This time is based on the localized timezone of your tenant.
maximum: 59
minimum: 0
type: integer
name:
description: 'The name of the scheduled event. Should be unique, contain no
space, and be in the pattern: ^[A-Za-z]{1,}[\\w\\-]*$'
maxLength: 200
minLength: 1
type: string
parameters:
additionalProperties:
description: Definition of a filter rule parameter.
properties:
description:
description: The description of the parameter.
maxLength: 255
type: string
displayName:
description: The display name of the parameter.
maxLength: 255
type: string
options:
description: The option values of the parameter.
items:
type: string
type: array
valueType:
description: The type of the value.
enum:
- STRING
- BYTE
- SHORT
- CHARACTER
- INTEGER
- LONG
- FLOAT
- DOUBLE
- BOOLEAN
- BIG_INTEGER
- BIG_DECIMAL
- LOCAL_DATE
- LOCAL_DATE_TIME
- TIMESTAMP
- BYTE_ARRAY
- SHORT_ARRAY
- CHARACTER_ARRAY
- INTEGER_ARRAY
- FLOAT_ARRAY
- DOUBLE_ARRAY
- BOOLEAN_ARRAY
- STRING_ARRAY
- BIG_INTEGER_ARRAY
- BIG_DECIMAL_ARRAY
- LOCAL_DATE_ARRAY
- LOCAL_DATE_TIME_ARRAY
- TIMESTAMP_ARRAY
type: string
type: object
description: The parameter definitions of the filter rule. The names of the
parameters must match with the filter rule and can't be duplicated. You
should specify all the parameters when creating scheduled event notifications.
type: object
required:
- name
- displayName
- apiObject
- apiField
- hours
- minutes
type: object
PostTaxationItemType:
allOf:
- properties:
exemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: number
type: string
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of the
`taxCode` field.
'
type: string
name:
description: 'The name of taxation.
'
type: string
taxAmount:
description: 'The amount of the taxation item in the invoice item.
'
format: number
type: string
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific invoice item.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date that the tax is applied to the invoice item, in `yyyy-mm-dd`
format.
'
format: date
type: string
taxMode:
description: 'The tax mode of the invoice item, indicating whether the amount
of the invoice item includes tax.
'
enum:
- TaxInclusive
- TaxExclusive
type: string
taxRate:
description: 'The tax rate applied to the invoice item.
'
format: number
type: string
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'The type of the tax rate applied to the invoice item.
'
enum:
- Percentage
- FlatFee
type: string
required:
- name
- taxAmount
- taxCode
- taxDate
- taxMode
- taxRate
- taxRateType
title: taxItems
type: object
- $ref: '#/definitions/TaxationItemObjectCustomFields'
PreviewAccountInfo:
description: 'Information about the account that will own the order.
'
properties:
billCycleDay:
description: Day of the month that the account prefers billing periods to
begin on. If set to 0, the bill cycle day will be set as "AutoSet".
maximum: 31
minimum: 0
type: integer
currency:
description: 'ISO 3-letter currency code (uppercase). For example, USD.
'
maxLength: 3
type: string
customFields:
$ref: '#/definitions/AccountObjectCustomFields'
soldToContact:
$ref: '#/definitions/PreviewContactInfo'
taxInfo:
$ref: '#/definitions/TaxInfo'
required:
- currency
- billCycleDay
title: previewAccountInfo
type: object
PreviewContactInfo:
properties:
city:
maxLength: 40
type: string
country:
description: Country; must be a valid country name or abbreviation. If using
Zuora Tax, you must specify a country to calculate tax.
maxLength: 64
type: string
county:
maxLength: 32
type: string
postalCode:
maxLength: 20
type: string
state:
maxLength: 40
type: string
taxRegion:
maxLength: 32
type: string
type: object
PreviewOptions:
properties:
previewNumberOfPeriods:
description: 'The number of periods to preview when the value of the `previewThroughType`
field is set to `NumberOfPeriods`.
'
minLength: 1
type: integer
previewThruType:
description: "The options on how the preview through date is calculated. Available\
\ for preview only. \n- If you set this field to `SpecificDate`, you must\
\ specify a specific date in the `specificPreviewThruDate` field. If you\
\ also set `billTargetDate` in the `orderLineItems` field, order line items\
\ whose `billTargetDate` is no later than `specificPreviewThruDate` are\
\ returned.\n\n- If you set this field to `NumberOfPeriods`, you must use\
\ the `previewNumberOfPeriods` field to specify how many periods you want\
\ to preview. In case the order only contains an order line item but not\
\ contains a subscription, if you also set `billTargetDate` in the `orderLineItems`\
\ field, order line items whose `billTargetDate` is no later than today\
\ are returned.\n\n- The `TermEnd` option is invalid when any subscription\
\ included in this order is evergreen. In case the order only contains an\
\ order line item but not contains a subscription, if you set this field\
\ to `TermEnd` and set `billTargetDate` in the `orderLineItems` field, order\
\ line items whose `billTargetDate` is no later than today are returned.\n"
enum:
- SpecificDate
- TermEnd
- NumberOfPeriods
type: string
previewTypes:
description: |
One or more types of the preview. It can include:
* ChargeMetrics: charge level metrics will be returned in the response, including: `cmrr`, `tcv`, `tcb`, and `tax`.
* BillingDocs: `invoices` and `creditMemos` will be returned in the response. Note `creditMemos` is only available if the Invoice Settlement feature is enabled.
* OrderDeltaMetrics: order delta metrics will be returned in the response, including: `orderDeltaMrr`, `orderDeltaTcb` and `orderDeltaTcv`.
* OrderMetrics: order metrics will be returned in the response, including: `quantity`, `mrr`, `tcb`, `tcv`, and `elp`. **Note:** As of Zuora Billing Release 306, Zuora has upgraded the methodologies for calculating metrics in [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders). The new methodologies are reflected in the OrderDeltaMetrics. It is recommended that all customers use the [Order Delta Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/AA_Overview_of_Order_Delta_Metrics). If you are an existing [Order Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders/Key_Metrics_for_Orders) customer and want to migrate to Order Delta Metrics, submit a request at [Zuora Global Support](https://support.zuora.com/). Whereas new customers, and existing customers not currently on [Order Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders/Key_Metrics_for_Orders), will no longer have access to Order Metrics, existing customers currently using Order Metrics will continue to be supported.
* RampMetrics: ramp metrics will be returned in the response, including: `quantity`, `mrr`, `tcb`, `tcv` metrics for each charge and each ramp interval.
* RampDeltaMetrics: ramp metrics changes will be returned in the response, including: `deltaQuantity`, `deltaMrr`, `deltaTcb`, `deltaTcv` metrics for each charge and each ramp interval.
items:
enum:
- ChargeMetrics
- BillingDocs
- OrderDeltaMetrics
- OrderMetrics
- RampMetrics
- RampDeltaMetrics
type: string
type: array
specificPreviewThruDate:
description: |
The end date of the order preview. You can preview the invoice charges through the preview through date. (Invoice preview only)
**Note:** This field is only applicable if the 'previewThruType' field is set to 'SpecificDate'.
format: date
type: string
type: object
PreviewOrderChargeOverride:
description: 'Charge associated with a rate plan.
'
properties:
accountReceivableAccountingCode:
description: |
The accountReceivableAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders , Zuora Finance , and Invoice Settlement features are enabled.
type: string
adjustmentLiabilityAccountingCode:
description: |
The adjustmentLiabilityAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
adjustmentRevenueAccountingCode:
description: |
The adjustmentRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
billing:
description: 'Billing information about the charge.
'
properties:
billCycleDay:
description: 'Day of the month that each billing period begins on. Only
applicable if the value of the `billCycleType` field is `SpecificDayofMonth`.
'
maximum: 31
minimum: 0
type: integer
billCycleType:
description: |
Specifies how Zuora determines the day that each billing period begins on.
* `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.
* `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.
* `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.
* `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.
* `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.
enum:
- DefaultFromCustomer
- SpecificDayofMonth
- SubscriptionStartDay
- ChargeTriggerDay
- SpecificDayofWeek
type: string
billingPeriod:
description: |
Billing frequency of the charge. The value of this field controls the duration of each billing period.
If the value of this field is `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.
enum:
- Month
- Quarter
- Semi_Annual
- Annual
- Eighteen_Months
- Two_Years
- Three_Years
- Five_Years
- Specific_Months
- Subscription_Term
- Week
- Specific_Weeks
type: string
billingPeriodAlignment:
description: |
Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.
* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.
* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.
* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.
See the `billCycleType` field for information about how Zuora determines the billing day.
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
type: string
billingTiming:
description: 'Specifies whether to invoice for a billing period on the
first day of the billing period (billing in advance) or the first day
of the next billing period (billing in arrears).
'
enum:
- IN_ADVANCE
- IN_ARREARS
type: string
specificBillingPeriod:
description: 'Duration of each billing period in months or weeks, depending
on the value of the `billingPeriod` field. Only applicable if the value
of the `billingPeriod` field is `Specific_Months` or `Specific_Weeks`.
'
type: integer
weeklyBillCycleDay:
description: 'Day of the week that each billing period begins on. Only
applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.
'
enum:
- Sunday
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
type: string
type: object
chargeModel:
description: |
The chargeModel of a standalone charge.
Supported charge models:
* `FlatFee`
* `PerUnit`
* `Volume`
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
chargeNumber:
description: |
Charge number of the charge. For example, C-00000307.
If you do not set this field, Zuora will generate the charge number.
maxLength: 50
type: string
chargeType:
description: |
The chargeType of a standalone charge.
Supported charge types:
* `OneTime`
* `Recurring`
* `Usage`
* `DiscountFixedAmount`
* `DiscountPercentage`
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
contractAssetAccountingCode:
description: |
The contractAssetAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
contractLiabilityAccountingCode:
description: |
The contractLiabilityAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
contractRecognizedRevenueAccountingCode:
description: |
The contractRecognizedRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
customFields:
$ref: '#/definitions/RatePlanChargeObjectCustomFields'
deferredRevenueAccountingCode:
description: |
The deferredRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders and Zuora Finance features are enabled.
type: string
description:
description: 'Description of the charge.
'
maxLength: 500
type: string
drawdownRate:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).
type: number
endDate:
$ref: '#/definitions/EndConditions'
excludeItemBillingFromRevenueAccounting:
default: false
description: |
The flag to exclude rate plan charge related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.
If both the following features in Advanced Consumption Billing are enabled in your tenant, you must ensure the `excludeItemBillingFromRevenueAccounting` field is set consistently for a prepayment charge and the corresponding drawdown charge. In addition, if the `excludeItemBookingFromRevenueAccounting` field in a Create Subscription or Add Product order action is set to `false`, you must also set the `excludeItemBillingFromRevenueAccounting` field in this order action to `false`.
* Prepaid with Drawdown
* Unbilled Usage
**Note**: This field is only available if you have the Order to Revenue or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled.
type: boolean
excludeItemBookingFromRevenueAccounting:
default: false
description: |
The flag to exclude rate plan charges from revenue accounting.
If both the following features in Advanced Consumption Billing are enabled in your tenant, you must ensure the `excludeItemBookingFromRevenueAccounting` field is set consistently for a prepayment charge and the corresponding drawdown charge.
* Prepaid with Drawdown
* Unbilled Usage
**Note**: This field is only available if you have the Order to Revenue or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled.
type: boolean
isAllocationEligible:
description: |
This field is used to identify if the charge segment is allocation eligible in revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
isRollover:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The value is either "True" or "False". It determines whether the rollover fields are needed.
type: boolean
isUnbilled:
description: |
This field is used to dictate how to perform the accounting during revenue recognition.
**Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at Zuora Global Support , and we will evaluate whether the feature is suitable for your use cases.
type: boolean
name:
description: |
The name of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
pobPolicy:
description: |
The pobPolicy of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
prepaidQuantity:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).
type: number
pricing:
description: 'Pricing information about the charge.
'
properties:
chargeModelData:
$ref: '#/definitions/ChargeModelDataOverride'
discount:
$ref: '#/definitions/DiscountPricingOverride'
oneTimeFlatFee:
$ref: '#/definitions/OneTimeFlatFeePricingOverride'
oneTimePerUnit:
$ref: '#/definitions/OneTimePerUnitPricingOverride'
oneTimeTiered:
$ref: '#/definitions/OneTimeTieredPricingOverride'
oneTimeVolume:
$ref: '#/definitions/OneTimeVolumePricingOverride'
recurringDeliveryBased:
$ref: '#/definitions/RecurringDeliveryPricingOverride'
recurringFlatFee:
$ref: '#/definitions/RecurringFlatFeePricingOverride'
recurringPerUnit:
$ref: '#/definitions/RecurringPerUnitPricingOverride'
recurringTiered:
$ref: '#/definitions/RecurringTieredPricingOverride'
recurringVolume:
$ref: '#/definitions/RecurringVolumePricingOverride'
usageFlatFee:
$ref: '#/definitions/UsageFlatFeePricingOverride'
usageOverage:
$ref: '#/definitions/UsageOveragePricingOverride'
usagePerUnit:
$ref: '#/definitions/UsagePerUnitPricingOverride'
usageTiered:
$ref: '#/definitions/UsageTieredPricingOverride'
usageTieredWithOverage:
$ref: '#/definitions/UsageTieredWithOveragePricingOverride'
usageVolume:
$ref: '#/definitions/UsageVolumePricingOverride'
type: object
productCategory:
description: |
The productCategory of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productClass:
description: |
The productClass of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productFamily:
description: |
The productFamily of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productLine:
description: |
The productLine of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
productRatePlanChargeId:
description: 'Internal identifier of the product rate plan charge that the
charge is based on.
'
type: string
productRatePlanChargeNumber:
description: 'Number of a product rate-plan charge for this subscription.
'
type: string
recognizedRevenueAccountingCode:
description: |
The recognizedRevenueAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders and Zuora Finance features are enabled.
type: string
revRecCode:
description: 'Revenue Recognition Code
'
maxLength: 70
type: string
revRecTriggerCondition:
description: "Specifies the revenue recognition trigger condition.\n\n *\
\ `Contract Effective Date` \n * `Service Activation Date`\n * `Customer\
\ Acceptance Date`\n"
enum:
- Contract Effective Date
- Service Activation Date
- Customer Acceptance Date
type: string
revenueRecognitionRuleName:
description: 'Specifies the revenue recognition rule, such as `Recognize upon
invoicing` or `Recognize daily over time`.
'
type: string
rolloverApply:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
This field defines the priority of rollover, which is either first or last.
enum:
- ApplyFirst
- ApplyLast
type: string
rolloverPeriodLength:
default: null
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
The period length of the rollover fund.
type: integer
rolloverPeriods:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
This field defines the number of rollover periods, it is restricted to 3.
type: number
startDate:
$ref: '#/definitions/PreviewOrderTriggerParams'
taxCode:
description: |
The taxCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
taxMode:
description: "The taxMode of a standalone charge. \nValues:\n* `TaxExclusive`\n\
* `TaxInclusive`\n\n**Note:** This field is available when the Standalone Orders feature is enabled.\n"
type: string
unBilledReceivablesAccountingCode:
description: |
The unBilledReceivablesAccountingCode of a standalone charge.
**Note:** This field is available when the Standalone Orders feature and the Billing - Revenue Integration or Order to Revenue feature are enabled.
type: string
uniqueToken:
description: |
Unique identifier for the charge. This identifier enables you to refer to the charge before the charge has an internal identifier in Zuora.
For instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the charge. Then when you update the product, you can use the same unique identifier to specify which charge to modify.
maxLength: 50
type: string
validityPeriodType:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nThe period in which the prepayment units are valid\
\ to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\
\ \n"
enum:
- SUBSCRIPTION_TERM
- ANNUAL
- SEMI_ANNUAL
- QUARTER
- MONTH
type: string
required:
- productRatePlanChargeId
title: charge
type: object
PreviewOrderChargeUpdate:
properties:
billing:
$ref: '#/definitions/BillingUpdate'
chargeNumber:
description: 'The number of the charge to be updated. The value of this field
is inherited from the `subscriptions` > `orderActions` > `addProduct` >
`chargeOverrides` > `chargeNumber` field.
'
type: string
customFields:
$ref: '#/definitions/RatePlanChargeObjectCustomFields'
description:
type: string
effectiveDate:
$ref: '#/definitions/PreviewOrderTriggerParams'
prepaidQuantity:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\
\ Must be a positive number (>0). \n"
type: number
pricing:
allOf:
- $ref: '#/definitions/PreviewOrderPricingUpdate'
description: 'Pricing information about the charge.
'
uniqueToken:
description: 'A unique string to represent the rate plan charge in the order.
The unique token is used to perform multiple actions against a newly added
rate plan charge. For example, if you want to add and update a product in
the same order, assign a unique token to the newly added rate plan charge
and use that token in future order actions.
'
type: string
type: object
PreviewOrderCreateSubscription:
description: 'Information about an order action of type `CreateSubscription`.
'
properties:
billToContactId:
description: "The ID of the bill-to contact associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Contact from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
currency:
description: "The code of currency that is used for this subscription. If\
\ the currency is not selected, the default currency from the account will\
\ be used.\n\nAll subscriptions in the same order must use the same currency.\
\ The currency for a subscription cannot be changed.\n\n**Note**: \n This\
\ field is available only if you have the Multiple Currencies feature enabled.\n"
maxLength: 3
type: string
invoiceSeparately:
description: 'Specifies whether the subscription appears on a separate invoice
when Zuora generates invoices.
'
type: boolean
invoiceTemplateId:
description: "The ID of the invoice template associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Template from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
newSubscriptionOwnerAccount:
description: |
Information about a new account that will own the subscription. Only available if you have enabled the Owner Transfer feature.
**Note:** The Owner Transfer feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
If you do not set this field or the `subscriptionOwnerAccountNumber` field, the account that owns the order will also own the subscription. Zuora will return an error if you set this field and the `subscriptionOwnerAccountNumber` field.
properties:
accountNumber:
description: 'Account number. For example, A00000001.
'
maxLength: 70
type: string
additionalEmailAddresses:
description: 'List of additional email addresses to receive emailed invoices.
Values should be a comma-separated list of email addresses.
'
maxLength: 1200
type: string
allowInvoiceEdit:
description: "Indicates if associated invoices can be edited.\nValues\
\ are: \n\n* `true`\n* `false` (default)\n"
type: boolean
autoPay:
description: 'Specifies whether future payments are automatically billed
when they are due.
'
type: boolean
batch:
description: 'Name of the billing batch that the account belongs to. For
example, Batch1.
'
type: string
billCycleDay:
description: 'Day of the month that the account prefers billing periods
to begin on. If set to 0, the bill cycle day will be set as "AutoSet".
'
maximum: 31
minimum: 0
type: integer
billToContact:
$ref: '#/definitions/BillToContactPostOrder'
communicationProfileId:
description: 'Internal identifier of the communication profile that Zuora
uses when sending notifications to the account''s contacts.
'
type: string
creditCard:
$ref: '#/definitions/creditCard'
creditMemoTemplateId:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
The unique ID of the credit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08a6246fdf101626b1b3fe0144b.
type: string
crmId:
description: 'External identifier of the account in a CRM system.
'
maxLength: 100
type: string
currency:
description: 'ISO 3-letter currency code (uppercase). For example, USD.
'
type: string
customFields:
$ref: '#/definitions/AccountObjectCustomFields'
customerServiceRepName:
description: 'Name of the account''s customer service representative,
if applicable.
'
maxLength: 50
type: string
debitMemoTemplateId:
description: |
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
The unique ID of the debit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08d62470a8501626b19d24f19e2.
type: string
hpmCreditCardPaymentMethodId:
description: |
The ID of the payment method associated with this account. The payment method specified for this field will be set as the default payment method of the account.
If the `autoPay` field is set to `true`, you must provide the credit card payment method ID for either this field or the `creditCard` field,
but not both.
For a specified credit card payment method, it is recommended that [the support for stored credential transactions](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Stored_credential_transactions) for this payment method is already enabled.
type: string
invoiceDeliveryPrefsEmail:
description: "Specifies whether to turn on the invoice delivery method\
\ 'Email' for the new account. \nValues are: \n\n* `true` (default).\
\ Turn on the invoice delivery method 'Email' for the new account.\n\
* `false`. Turn off the invoice delivery method 'Email' for the new\
\ account. \n"
type: boolean
invoiceDeliveryPrefsPrint:
description: "Specifies whether to turn on the invoice delivery method\
\ 'Print' for the new account.\nValues are: \n\n* `true`. Turn on the\
\ invoice delivery method 'Print' for the new account.\n* `false` (default).\
\ Turn off the invoice delivery method 'Print' for the new account.\n"
type: boolean
invoiceTemplateId:
description: 'Internal identifier of the invoice template that Zuora uses
when generating invoices for the account.
'
type: string
name:
description: 'Account name.
'
maxLength: 255
type: string
notes:
description: 'Notes about the account. These notes are only visible to
Zuora users.
'
maxLength: 65535
type: string
parentId:
description: Identifier of the parent customer account for this Account
object. Use this field if you have Customer Hierarchy enabled.
type: string
paymentGateway:
description: 'The payment gateway that Zuora uses when processing electronic
payments and refunds for the account. If you do not specify this field
or if the value of this field is null, Zuora uses your default payment
gateway.
'
maxLength: 40
type: string
paymentMethod:
$ref: '#/definitions/PostOrderAccountPaymentMethod'
paymentTerm:
description: 'Name of the payment term associated with the account. For
example, "Net 30". The payment term determines the due dates of invoices.
'
type: string
purchaseOrderNumber:
description: 'The number of the purchase order associated with this account.
Purchase order information generally comes from customers.
'
maxLength: 100
type: string
salesRep:
description: 'The name of the sales representative associated with this
account, if applicable.
'
maxLength: 50
type: string
soldToContact:
$ref: '#/definitions/SoldToContactPostOrder'
taxInfo:
$ref: '#/definitions/TaxInfo'
required:
- name
- currency
- billCycleDay
- billToContact
type: object
notes:
description: 'Notes about the subscription. These notes are only visible to
Zuora users.
'
maxLength: 500
type: string
paymentTerm:
description: "The name of the payment term associated with the subscription.\
\ For example, `Net 30`. The payment term determines the due dates of invoices.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Term from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
sequenceSetId:
description: "The ID of the sequence set associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Set from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
soldToContactId:
description: "The ID of the sold-to contact associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Contact from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
subscribeToRatePlans:
description: 'List of rate plans associated with the subscription.
'
items:
$ref: '#/definitions/PreviewOrderRatePlanOverride'
type: array
subscriptionNumber:
description: |
Subscription number of the subscription. For example, A-S00000001.
If you do not set this field, Zuora will generate the subscription number.
maxLength: 100
type: string
subscriptionOwnerAccountNumber:
description: |
Account number of an existing account that will own the subscription. For example, A00000001.
If you do not set this field or the `newSubscriptionOwnerAccount` field, the account that owns the order will also own the subscription. Zuora will return an error if you set this field and the `newSubscriptionOwnerAccount` field.
maxLength: 70
type: string
terms:
description: 'Container for the terms and renewal settings of the subscription.
'
properties:
autoRenew:
description: 'Specifies whether the subscription automatically renews
at the end of the each term. Only applicable if the type of the first
term is `TERMED`.
'
type: boolean
initialTerm:
description: 'Information about the first term of the subscription.
'
properties:
period:
description: 'Duration of the first term in months, years, days, or
weeks, depending on the value of the `periodType` field. Only applicable
if the value of the `termType` field is `TERMED`.
'
type: integer
periodType:
description: 'Unit of time that the first term is measured in. Only
applicable if the value of the `termType` field is `TERMED`.
'
enum:
- Month
- Year
- Day
- Week
type: string
startDate:
description: 'Start date of the first term, in YYYY-MM-DD format.
'
format: date
type: string
termType:
description: 'Type of the first term. If the value of this field is
`TERMED`, the first term has a predefined duration based on the
value of the `period` field. If the value of this field is `EVERGREEN`,
the first term does not have a predefined duration.
'
enum:
- TERMED
- EVERGREEN
type: string
required:
- termType
type: object
renewalSetting:
description: |
Specifies the type of the terms that follow the first term if the subscription is renewed. Only applicable if the type of the first term is `TERMED`.
* `RENEW_WITH_SPECIFIC_TERM` - Each renewal term has a predefined duration. The first entry in `renewalTerms` specifies the duration of the second term of the subscription, the second entry in `renewalTerms` specifies the duration of the third term of the subscription, and so on. The last entry in `renewalTerms` specifies the ultimate duration of each renewal term.
* `RENEW_TO_EVERGREEN` - The second term of the subscription does not have a predefined duration.
enum:
- RENEW_WITH_SPECIFIC_TERM
- RENEW_TO_EVERGREEN
type: string
renewalTerms:
description: 'List of renewal terms of the subscription. Only applicable
if the type of the first term is `TERMED` and the value of the `renewalSetting`
field is `RENEW_WITH_SPECIFIC_TERM`.
'
items:
$ref: '#/definitions/RenewalTerm'
type: array
required:
- initialTerm
type: object
title: createSubscription
type: object
PreviewOrderOrderAction:
properties:
addProduct:
$ref: '#/definitions/PreviewOrderRatePlanOverride'
cancelSubscription:
$ref: '#/definitions/CancelSubscription'
changePlan:
$ref: '#/definitions/CreateChangePlan'
changeReason:
description: 'The change reason set for an order action when an order is created.
'
type: string
createSubscription:
$ref: '#/definitions/PreviewOrderCreateSubscription'
customFields:
$ref: '#/definitions/OrderActionObjectCustomFields'
ownerTransfer:
$ref: '#/definitions/OwnerTransfer'
removeProduct:
$ref: '#/definitions/RemoveProduct'
renewSubscription:
$ref: '#/definitions/RenewSubscription'
resume:
$ref: '#/definitions/CreateOrderResume'
suspend:
$ref: '#/definitions/CreateOrderSuspend'
termsAndConditions:
$ref: '#/definitions/CreateOrderTermsAndConditions'
triggerDates:
description: "Container for the contract effective, service activation, and\
\ customer acceptance dates of the order action. \n\nIf the service activation\
\ date is set as a required field in Default Subscription Settings, skipping\
\ this field in a `CreateSubscription` order action of your JSON request\
\ will result in a `Pending` order and a `Pending Activation` subscription.\n\
\nIf the customer acceptance date is set as a required field in Default\
\ Subscription Settings, skipping this field in a `CreateSubscription` order\
\ action of your JSON request will result in a `Pending` order and a `Pending\
\ Acceptance` subscription. If the service activation date field is at the\
\ same time required and skipped (or set as null), it will be a `Pending\
\ Activation` subscription.\n"
items:
$ref: '#/definitions/TriggerDate'
type: array
type:
description: |
Type of order action.
Unless the type of order action is `RenewSubscription`, you must use the corresponding field to provide information about the order action. For example, if the type of order action is `AddProduct`, you must set the `addProduct` field.
Zuora returns an error if you set a field that corresponds to a different type of order action. For example, if the type of order action is `AddProduct`, Zuora returns an error if you set the `updateProduct` field.
**Note**: The change plan type of order action is currently not supported for Billing - Revenue Integration. When Billing - Revenue Integration is enabled, the change plan type of order action will no longer be applicable in Zuora Billing.
enum:
- CreateSubscription
- TermsAndConditions
- AddProduct
- UpdateProduct
- RemoveProduct
- RenewSubscription
- CancelSubscription
- OwnerTransfer
- Suspend
- Resume
- ChangePlan
type: string
updateProduct:
$ref: '#/definitions/PreviewOrderRatePlanUpdate'
required:
- type
type: object
PreviewOrderPricingUpdate:
properties:
chargeModelData:
allOf:
- $ref: '#/definitions/ChargeModelDataOverride'
description: |
Container for charge model configuration data.
**Note**: This field is only available if you have the High Water Mark, Pre-Rated Pricing, or Multi-Attribute Pricing charge models enabled. The High Water Mark and Pre-Rated Pricing charge models are available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
discount:
allOf:
- $ref: '#/definitions/DiscountPricingUpdate'
description: 'Pricing information about a discount charge.
'
recurringFlatFee:
allOf:
- $ref: '#/definitions/RecurringFlatFeePricingUpdate'
description: 'Pricing information about a recurring charge that uses the "flat
fee" charge model. In this charge model, the charge has a fixed price.
'
recurringPerUnit:
allOf:
- $ref: '#/definitions/RecurringPerUnitPricingUpdate'
description: 'Pricing information about a recurring charge that uses the "per
unit" charge model. In this charge model, the charge has a fixed price per
unit purchased.
'
recurringTiered:
allOf:
- $ref: '#/definitions/RecurringTieredPricingUpdate'
description: 'Pricing information about a recurring charge that uses the "tiered
pricing" charge model. In this charge model, the charge has cumulative pricing
tiers that become effective as units are purchased.
'
recurringVolume:
allOf:
- $ref: '#/definitions/RecurringVolumePricingUpdate'
description: 'Pricing information about a recurring charge that uses the "volume
pricing" charge model. In this charge model, the charge has a variable price
per unit, depending on how many units are purchased.
'
usageFlatFee:
allOf:
- $ref: '#/definitions/UsageFlatFeePricingUpdate'
description: 'Pricing information about a usage charge that uses the "flat
fee" charge model. In this charge model, the charge has a fixed price.
'
usageOverage:
allOf:
- $ref: '#/definitions/UsageOveragePricingUpdate'
description: 'Pricing information about a usage charge that uses the "overage"
charge model. In this charge model, the charge has an allowance of free
units and a fixed price per additional unit consumed.
'
usagePerUnit:
allOf:
- $ref: '#/definitions/UsagePerUnitPricingUpdate'
description: 'Pricing information about a usage charge that uses the "per
unit" charge model. In this charge model, the charge has a fixed price per
unit consumed.
'
usageTiered:
allOf:
- $ref: '#/definitions/UsageTieredPricingUpdate'
description: 'Pricing information about a usage charge that uses the "tiered
pricing" charge model. In this charge model, the charge has cumulative pricing
tiers that become effective as units are consumed.
'
usageTieredWithOverage:
allOf:
- $ref: '#/definitions/UsageTieredWithOveragePricingUpdate'
description: 'Pricing information about a usage charge that uses the "tiered
with overage" charge model. In this charge model, the charge has cumulative
pricing tiers that become effective as units are consumed. The charge also
has a fixed price per unit consumed beyond the limit of the final tier.
'
usageVolume:
allOf:
- $ref: '#/definitions/UsageVolumePricingUpdate'
description: 'Pricing information about a usage charge that uses the "volume
pricing" charge model. In this charge model, the charge has a variable price
per unit, depending on how many units are consumed.
'
type: object
PreviewOrderRatePlanOverride:
description: 'Rate plan associated with a subscription.
'
properties:
chargeOverrides:
description: 'List of charges associated with the rate plan.
'
items:
$ref: '#/definitions/PreviewOrderChargeOverride'
type: array
clearingExistingFeatures:
description: 'Specifies whether all features in the rate plan will be cleared.
'
type: boolean
customFields:
$ref: '#/definitions/OrdersRatePlanObjectCustomFields'
isFromExternalCatalog:
description: |
Indicates whether the rate plan is created from the Zuora product catalog or from an external product catalog.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: boolean
productRatePlanId:
description: 'Internal identifier of the product rate plan that the rate plan
is based on.
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
ratePlanName:
description: |
Name of the standalone rate plan.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
subscriptionProductFeatures:
description: |
List of features associated with the rate plan.
The system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:
* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.
* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.
items:
$ref: '#/definitions/CreateOrderRatePlanFeatureOverride'
type: array
uniqueToken:
description: |
Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.
For instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.
maxLength: 50
type: string
required:
- productRatePlanId
title: ratePlan
type: object
PreviewOrderRatePlanUpdate:
description: 'Information about an order action of type `UpdateProduct`.
'
properties:
chargeUpdates:
description: |
Array of the JSON objects containing the information for a charge update in the `updateProduct` type of order action.
When previewing an `updateProduct` order action, either the `chargeNumber` or `uniqueToken` field is required to specify the charge to update.
items:
$ref: '#/definitions/PreviewOrderChargeUpdate'
type: array
clearingExistingFeatures:
description: 'Specifies whether all features in the rate plan will be cleared.
'
type: boolean
customFields:
$ref: '#/definitions/OrdersRatePlanObjectCustomFields'
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
ratePlanId:
description: 'The id of the rate plan to be updated. It can be the latest
version or any history version id.
'
type: string
specificUpdateDate:
description: |2
The date when the Update Product order action takes effect. This field is only applicable if there is already a future-dated Update Product order action on the subscription. The format of the date is yyyy-mm-dd.
See [Update a Product on Subscription with Future-dated Updates](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Update_a_Product_in_a_Subscription/Update_a_Product_on_Subscription_with_Future-dated_Updates) for more information about this feature.
format: date
type: string
subscriptionProductFeatures:
description: |
List of features associated with the rate plan.
The system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:
* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.
* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.
items:
$ref: '#/definitions/CreateOrderRatePlanFeatureOverride'
type: array
subscriptionRatePlanNumber:
description: 'Number of a rate plan for this subscription.
'
type: string
uniqueToken:
description: 'A unique string to represent the rate plan in the order. The
unique token is used to perform multiple actions against a newly added rate
plan. For example, if you want to add and update a product in the same order,
assign a unique token to the newly added rate plan and use that token in
future order actions.
'
type: string
title: updateProduct
type: object
PreviewOrderTriggerParams:
description: 'Specifies when a charge becomes active.
'
properties:
specificTriggerDate:
description: "Date in YYYY-MM-DD format. Only applicable if the value of the\
\ `triggerEvent` field is `SpecificDate`. \n\nWhile this field is applicable,\
\ if this field is not set, your `CreateSubscription` order action creates\
\ a `Pending` order and a `Pending Acceptance` subscription. If at the same\
\ time the service activation date is required and not set, a `Pending Activation`\
\ subscription is created.\n"
format: date
type: string
triggerEvent:
description: |
Condition for the charge to become active.
If the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.
enum:
- ContractEffective
- ServiceActivation
- CustomerAcceptance
- SpecificDate
type: string
title: startDate
type: object
PreviewResult:
description: The result of each type of preview. Returned only when the current
request is preview call.
properties:
chargeMetrics:
items:
properties:
charges:
items:
$ref: '#/definitions/ChargePreviewMetrics'
type: array
subscriptionNumber:
description: The number of the subscription that has been affected by
this order. When creating a subscription, this value will not show
if the subscription number was not specified in the request.
type: string
type: object
type: array
creditMemos:
description: This field is only available if you have the Invoice Settlement
feature enabled.
items:
properties:
amount:
type: number
amountWithoutTax:
type: number
creditMemoItems:
items:
$ref: '#/definitions/InvoiceItemPreviewResult'
type: array
targetDate:
format: date
type: string
taxAmount:
type: number
type: object
type: array
invoices:
items:
properties:
amount:
type: number
amountWithoutTax:
type: number
invoiceItems:
items:
$ref: '#/definitions/InvoiceItemPreviewResult'
type: array
targetDate:
format: date
type: string
taxAmount:
type: number
type: object
type: array
orderDeltaMetrics:
description: "**Note:** As of Zuora Billing Release 306, Zuora has upgraded\
\ the methodologies for calculating metrics in [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders).\
\ The new methodologies are reflected in the following Order Delta Metrics\
\ objects. \n* [Order Delta Mrr](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Mrr)\n\
* [Order Delta Tcv](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcv)\n\
* [Order Delta Tcb](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcb)\n\
\nIt is recommended that all customers use the new [Order Delta Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/AA_Overview_of_Order_Delta_Metrics).\
\ If you are an existing [Order Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders/Key_Metrics_for_Orders)\
\ customer and want to migrate to Order Delta Metrics, submit a request\
\ at [Zuora Global Support](https://support.zuora.com/).\n"
properties:
orderDeltaMrr:
items:
$ref: '#/definitions/OrderDeltaMrr'
type: array
orderDeltaTcb:
items:
$ref: '#/definitions/OrderDeltaTcb'
type: array
orderDeltaTcv:
items:
$ref: '#/definitions/OrderDeltaTcv'
type: array
type: object
orderMetrics:
description: "**Note:** As of Zuora Billing Release 306, Zuora has upgraded\
\ the methodologies for calculating metrics in [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders).\
\ The new methodologies are reflected in the following Order Delta Metrics\
\ objects. \n* [Order Delta Mrr](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Mrr)\
\ \n* [Order Delta Tcv](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcv)\
\ \n* [Order Delta Tcb](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcb)\
\ \n\nIt is recommended that all customers use the new [Order Delta Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/AA_Overview_of_Order_Delta_Metrics).\
\ If you are an existing [Order Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders/Key_Metrics_for_Orders)\
\ customer and want to migrate to Order Delta Metrics, submit a request\
\ at [Zuora Global Support](https://support.zuora.com/). \n\nWhereas new\
\ customers, and existing customers not currently on [Order Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders/Key_Metrics_for_Orders),\
\ will no longer have access to Order Metrics, existing customers currently\
\ using Order Metrics will continue to be supported.\n"
items:
properties:
orderActions:
items:
properties:
orderItems:
description: "The `orderItems` nested field is only available\
\ to existing Orders customers who already have access to the\
\ field.\n\n**Note:** The following Order Metrics have been\
\ deprecated. Any new customers who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization)\
\ will not get these metrics.\n* The Order ELP and Order Item\
\ objects \n* The \"Generated Reason\" and \"Order Item ID\"\
\ fields in the Order MRR, Order TCB, Order TCV, and Order Quantity\
\ objects\n\nExisting Orders customers who have these metrics\
\ will continue to be supported.\n"
items:
$ref: '#/definitions/OrderItem'
type: array
orderMetrics:
description: "The container for order metrics.\n\n**Note:** The\
\ following Order Metrics have been deprecated. Any new customers\
\ who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization)\
\ will not get these metrics.\n* The Order ELP and Order Item\
\ objects \n* The \"Generated Reason\" and \"Order Item ID\"\
\ fields in the Order MRR, Order TCB, Order TCV, and Order Quantity\
\ objects\n\nExisting Orders customers who have these metrics\
\ will continue to be supported.\n"
items:
$ref: '#/definitions/orderMetric'
type: array
sequence:
type: string
type:
type: string
type: object
type: array
subscriptionNumber:
type: string
type: object
type: array
rampMetrics:
description: |
**Note**: This field is only available if you have the Ramps feature enabled. The [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders) feature must be enabled before you can access the [Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics) feature. The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information coming October 2020.
The ramp metrics.
items:
$ref: '#/definitions/OrderRampMetrics'
type: array
type: object
PriceChangeParams:
properties:
priceChangeOption:
description: |
Specifies how Zuora changes the price of the charge each time the subscription renews.
If the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.
enum:
- NoChange
- SpecificPercentageValue
- UseLatestProductCatalogPricing
type: string
priceIncreasePercentage:
description: 'Specifies the percentage by which the price of the charge should
change each time the subscription renews. Only applicable if the value of
the `priceChangeOption` field is `SpecificPercentageValue`.
'
minimum: -100
type: number
type: object
PriceIntervalWithPrice:
properties:
duration:
description: 'Duration period of this interval.
'
minimum: 1
type: integer
price:
description: 'Price of this interval.
'
type: number
sequence:
description: 'Index of the interval in the interval pricing.
'
minimum: 1
type: integer
type:
description: 'Interval type of this pricing.
'
enum:
- Day
- Month
- Infinity
type: string
title: priceIntervalWithPrice
type: object
PriceIntervalWithTiers:
properties:
duration:
description: 'Duration period of this interval.
'
minimum: 1
type: integer
sequence:
description: 'Index of the interval in the interval pricing.
'
minimum: 1
type: integer
tiers:
description: 'List of cumulative pricing tiers in the charge.
'
items:
$ref: '#/definitions/ChargeTier'
type: array
type:
description: 'Interval type of this pricing.
'
enum:
- Day
- Month
- Infinity
type: string
title: priceIntervalWithTiers
type: object
PricingUpdate:
properties:
chargeModelData:
allOf:
- $ref: '#/definitions/ChargeModelDataOverride'
description: |
Container for charge model configuration data.
**Note**: This field is only available if you have the High Water Mark, Pre-Rated Pricing, or Multi-Attribute Pricing charge models enabled. The High Water Mark and Pre-Rated Pricing charge models are available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
discount:
allOf:
- $ref: '#/definitions/DiscountPricingUpdate'
description: 'Pricing information about a discount charge.
'
recurringDelivery:
allOf:
- $ref: '#/definitions/RecurringDeliveryPricingUpdate'
description: |
Pricing information about a recurring charge that uses the "delivery" charge model. This field is only available if you have the Delivery Pricing charge model enabled.
**Note**: The Delivery Pricing charge model is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Enable billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features) in the Knowledge Center. You can check **Delivery Pricing** in **Billing Settings** > **Enable Charge Types / Models**.
recurringFlatFee:
allOf:
- $ref: '#/definitions/RecurringFlatFeePricingUpdate'
description: 'Pricing information about a recurring charge that uses the "flat
fee" charge model. In this charge model, the charge has a fixed price.
'
recurringPerUnit:
allOf:
- $ref: '#/definitions/RecurringPerUnitPricingUpdate'
description: 'Pricing information about a recurring charge that uses the "per
unit" charge model. In this charge model, the charge has a fixed price per
unit purchased.
'
recurringTiered:
allOf:
- $ref: '#/definitions/RecurringTieredPricingUpdate'
description: 'Pricing information about a recurring charge that uses the "tiered
pricing" charge model. In this charge model, the charge has cumulative pricing
tiers that become effective as units are purchased.
'
recurringVolume:
allOf:
- $ref: '#/definitions/RecurringVolumePricingUpdate'
description: 'Pricing information about a recurring charge that uses the "volume
pricing" charge model. In this charge model, the charge has a variable price
per unit, depending on how many units are purchased.
'
usageFlatFee:
allOf:
- $ref: '#/definitions/UsageFlatFeePricingUpdate'
description: 'Pricing information about a usage charge that uses the "flat
fee" charge model. In this charge model, the charge has a fixed price.
'
usageOverage:
allOf:
- $ref: '#/definitions/UsageOveragePricingUpdate'
description: 'Pricing information about a usage charge that uses the "overage"
charge model. In this charge model, the charge has an allowance of free
units and a fixed price per additional unit consumed.
'
usagePerUnit:
allOf:
- $ref: '#/definitions/UsagePerUnitPricingUpdate'
description: 'Pricing information about a usage charge that uses the "per
unit" charge model. In this charge model, the charge has a fixed price per
unit consumed.
'
usageTiered:
allOf:
- $ref: '#/definitions/UsageTieredPricingUpdate'
description: 'Pricing information about a usage charge that uses the "tiered
pricing" charge model. In this charge model, the charge has cumulative pricing
tiers that become effective as units are consumed.
'
usageTieredWithOverage:
allOf:
- $ref: '#/definitions/UsageTieredWithOveragePricingUpdate'
description: 'Pricing information about a usage charge that uses the "tiered
with overage" charge model. In this charge model, the charge has cumulative
pricing tiers that become effective as units are consumed. The charge also
has a fixed price per unit consumed beyond the limit of the final tier.
'
usageVolume:
allOf:
- $ref: '#/definitions/UsageVolumePricingUpdate'
description: 'Pricing information about a usage charge that uses the "volume
pricing" charge model. In this charge model, the charge has a variable price
per unit, depending on how many units are consumed.
'
type: object
ProcessingOptions:
description: Processing options for generating billing documents.
properties:
billingOptions:
$ref: '#/definitions/BillingOptions'
runBilling:
description: Indicates if the current request needs to generate a billing
document. The billing document will be generated against all Order Line
Items included in this order.
type: boolean
type: object
ProductChargeDefinitionObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Product Charge Definition object. The name
of each custom field has the form of *customField*__c
. Custom
field names are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Product Charge Definition object.
'
title: productChargeDefinitionFieldsCustom
type: object
ProductFeatureObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Product Feature object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Product Feature object.
'
title: productFeatureFieldsCustom
type: object
ProductObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Product object. The name of each custom field
has the form *customField*__c
. Custom field names are case sensitive.
See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Product object.
'
title: productFieldsCustom
type: object
ProductObjectNSFields:
description: 'Container for Product fields provided by the [Zuora Connector for
NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
properties:
IntegrationId__NS:
description: 'ID of the corresponding object in NetSuite. Only available if
you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IntegrationStatus__NS:
description: 'Status of the product''s synchronization with NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
ItemType__NS:
description: 'Type of item that is created in NetSuite for the product. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
enum:
- Inventory
- Non Inventory
- Service
type: string
SyncDate__NS:
description: 'Date when the product was synchronized with NetSuite. Only available
if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
title: productFieldsNS
type: object
ProductRatePlanChargeObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Product Rate Plan Charge object. The name
of each custom field has the form *customField*__c
. Custom field
names are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Product Rate Plan Charge object.
'
title: productRatePlanChargeFieldsCustom
type: object
ProductRatePlanChargeObjectNSFields:
description: 'Container for Product Rate Plan Charge fields provided by the [Zuora
Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
properties:
Class__NS:
description: 'Class associated with the corresponding item in NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
DeferredRevAccount__NS:
description: 'Deferrred revenue account associated with the corresponding
item in NetSuite. Only available if you have installed the [Zuora Connector
for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
Department__NS:
description: 'Department associated with the corresponding item in NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IncludeChildren__NS:
description: 'Specifies whether the corresponding item in NetSuite is visible
under child subsidiaries. Only available if you have installed the [Zuora
Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
enum:
- 'Yes'
- 'No'
type: string
IntegrationId__NS:
description: 'ID of the corresponding object in NetSuite. Only available if
you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IntegrationStatus__NS:
description: 'Status of the product rate plan charge''s synchronization with
NetSuite. Only available if you have installed the [Zuora Connector for
NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
ItemType__NS:
description: 'Type of item that is created in NetSuite for the product rate
plan charge. Only available if you have installed the [Zuora Connector for
NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
enum:
- Inventory
- Non Inventory
- Service
type: string
Location__NS:
description: 'Location associated with the corresponding item in NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
RecognizedRevAccount__NS:
description: 'Recognized revenue account associated with the corresponding
item in NetSuite. Only available if you have installed the [Zuora Connector
for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
RevRecEnd__NS:
description: 'End date condition of the corresponding item in NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
enum:
- Charge Period Start
- Rev Rec Trigger Date
- Use NetSuite Rev Rec Template
type: string
RevRecStart__NS:
description: 'Start date condition of the corresponding item in NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
enum:
- Charge Period Start
- Rev Rec Trigger Date
- Use NetSuite Rev Rec Template
type: string
RevRecTemplateType__NS:
description: 'Only available if you have installed the [Zuora Connector for
NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
Subsidiary__NS:
description: 'Subsidiary associated with the corresponding item in NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
SyncDate__NS:
description: 'Date when the product rate plan charge was synchronized with
NetSuite. Only available if you have installed the [Zuora Connector for
NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
title: productRatePlanChargeFieldsNS
type: object
ProductRatePlanObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Product Rate Plan object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Product Rate Plan object.
'
title: productRatePlanFieldsCustom
type: object
ProductRatePlanObjectNSFields:
description: 'Container for Product Rate Plan fields provided by the [Zuora Connector
for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
properties:
BillingPeriod__NS:
description: 'Billing period associated with the corresponding item in NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
enum:
- Monthly
- Quarterly
- Annual
- Semi-Annual
type: string
Class__NS:
description: 'Class associated with the corresponding item in NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
Department__NS:
description: 'Department associated with the corresponding item in NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IncludeChildren__NS:
description: 'Specifies whether the corresponding item in NetSuite is visible
under child subsidiaries. Only available if you have installed the [Zuora
Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
enum:
- 'Yes'
- 'No'
type: string
IntegrationId__NS:
description: 'ID of the corresponding object in NetSuite. Only available if
you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IntegrationStatus__NS:
description: 'Status of the product rate plan''s synchronization with NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
ItemType__NS:
description: 'Type of item that is created in NetSuite for the product rate
plan. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
enum:
- Inventory
- Non Inventory
- Service
type: string
Location__NS:
description: 'Location associated with the corresponding item in NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
MultiCurrencyPrice__NS:
description: 'Multi-currency price associated with the corresponding item
in NetSuite. Only available if you have installed the [Zuora Connector for
NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
Price__NS:
description: 'Price associated with the corresponding item in NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
Subsidiary__NS:
description: 'Subsidiary associated with the corresponding item in NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
SyncDate__NS:
description: 'Date when the product rate plan was synchronized with NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
title: productRatePlanFieldsNS
type: object
ProxyActioncreateRequest:
example:
objects:
- AccountingCode: Accounts Receivable
AdjustmentDate: '2016-10-20'
Amount: 1.2
Comment: this is comments
InvoiceId: 2c93808457d787030157e03248c75142
InvoiceNumber: INV00000001
ReferenceId: refid-1476935174845
SourceId: 2c93808457d787030157e03248c95144
SourceType: InvoiceDetail
Type: Credit
type: InvoiceItemAdjustment
properties:
objects:
description: ''
items:
$ref: '#/definitions/zObject'
type: array
type:
description: ''
type: string
required:
- objects
- type
type: object
ProxyActiondeleteRequest:
example:
ids:
- 2c93808457d787030157e031fcd34e19
type: ProductRatePlanCharge
properties:
ids:
description: 'A list of one or more IDs for the objects you want to delete.
'
items:
type: string
type: array
type:
description: 'The type of object that you are deleting.
'
type: string
required:
- type
- ids
type: object
ProxyActionqueryMoreRequest:
example:
queryLocator: 2c92c0f9602fb240016049ac7e0b47e7-2000
properties:
conf:
description: Configuration of the query result.
properties:
batchSize:
description: 'Defines the batch size of the query result. The range is
1 - 2000 (inclusive). If a value higher than 2000 is submitted, only
2000 results are returned.
'
type: integer
type: object
queryLocator:
description: A marker passed to QueryMore to get the next set of results.
type: string
required:
- queryLocator
type: object
ProxyActionqueryMoreResponse:
properties:
done:
description: |
Indicates whether the returned records contain all the query results.
* If the `queryLocator` field is returned, this field is set to `false`.
* If no `queryLocator` field is returned, this field is set to `true`.
type: boolean
queryLocator:
description: A marker passed to QueryMore to get the next set of results.
type: string
records:
description: A list of queried results.
items:
$ref: '#/definitions/zObject'
type: array
size:
description: The number of the returned query results.
format: int32
type: integer
type: object
ProxyActionqueryRequest:
example:
queryString: select AccountId, AccountingCode, AdjustmentDate, AdjustmentNumber,
Amount, CancelledById, CancelledDate, Comment, CreatedById, CreatedDate, InvoiceId,
InvoiceItemName, InvoiceNumber, ReferenceId, ServiceEndDate, ServiceStartDate,
SourceId, SourceType, Status, TransferredToAccounting, Type, UpdatedById,
UpdatedDate, ReasonCode from InvoiceItemAdjustment where Id = '2c93808457d787030157e0324aea5158'
properties:
conf:
description: Configuration of the query result.
properties:
batchSize:
description: 'Defines the batch size of the query result. The range is
1 - 2000 (inclusive). If a value higher than 2000 is submitted, only
2000 results are returned.
'
type: integer
type: object
queryString:
description: |
[ZOQL](https://knowledgecenter.zuora.com/DC_Developers/K_Zuora_Object_Query_Language) expression that specifies the object to query, the fields to retrieve, and any filters.
**Note:** When querying one time charges from ProductRatePlanCharge, you need to specify the `ChargeType` value as `One-Time` rather than `OneTime`.
type: string
required:
- queryString
type: object
ProxyActionqueryResponse:
properties:
done:
description: |
Indicates whether the returned records contain all the query results.
* If the `queryLocator` field is returned, this field is set to `false`.
* If no `queryLocator` field is returned, this field is set to `true`.
type: boolean
queryLocator:
description: A marker passed to QueryMore to get the next set of results.
For more information, see [QueryMore](https://developer.zuora.com/api-references/api/operation/Action_POSTqueryMore/).
type: string
records:
description: A list of queried results.
items:
$ref: '#/definitions/zObject'
type: array
size:
description: The number of the returned query results.
format: int32
type: integer
type: object
ProxyActionupdateRequest:
example:
objects:
- AccountNumber: AN_1476935163869
AutoPay: true
Batch: Batch1
BillCycleDay: 1
BillToId: 2c93808457d787030157e03220684fac
CrmId: crmid
Currency: USD
DefaultPaymentMethodId: 2c93808457d787030157e03220ec4fad
Id: 2c93808457d787030157e0321fdf4fab
InvoiceTemplateId: 2c93808457d787030157e03208864f97
Name: AC_1476935163869
Notes: this is notes
PaymentTerm: Due Upon Receipt
SoldToId: 2c93808457d787030157e03220684fac
Status: Active
type: Account
properties:
objects:
description: ''
items:
$ref: '#/definitions/zObject_update'
type: array
type:
description: ''
type: string
required:
- objects
- type
type: object
ProxyBadRequestResponse:
properties:
Errors:
items:
properties:
Code:
description: ''
type: string
Message:
description: ''
type: string
type: object
type: array
Success:
description: ''
type: boolean
type: object
ProxyCreateOrModifyDeliverySchedule:
properties:
frequency:
description: 'The frequency of the delivery. Only supports weekly now
'
enum:
- Weekly
type: string
friday:
description: 'The flag to indicate should the delivery happen on Friday
'
type: boolean
monday:
description: 'The flag to indicate should the delivery happen on Monday
'
type: boolean
saturday:
description: 'The flag to indicate should the delivery happen on Saturday
'
type: boolean
sunday:
description: 'The flag to indicate should the delivery happen on Sunday
'
type: boolean
thursday:
description: 'The flag to indicate should the delivery happen on Thursday
'
type: boolean
tuesday:
description: 'The flag to indicate should the delivery happen on Tuesday
'
type: boolean
wendesday:
description: 'The flag to indicate should the delivery happen on Wendesday
'
type: boolean
title: DeliverySchedule
type: object
ProxyCreateOrModifyProductRatePlanChargeChargeModelConfiguration:
description: |
Container for charge model configuration data.
**Notes**:
- This field is only available if you have the Pre-Rated Pricing or Multi-Attribute Pricing charge models enabled. These charge models are available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
- To use this field, you must set the `X-Zuora-WSDL-Version` request header to `102` or later. Otherwise, an error occurs with "Code: INVALID_VALUE".
properties:
ConfigurationItem:
description: 'An array of Charge Model Configuration Key-Value pairs.
'
items:
$ref: '#/definitions/ProxyCreateOrModifyProductRatePlanChargeChargeModelConfigurationItem'
type: array
title: ChargeModelConfiguration
type: object
ProxyCreateOrModifyProductRatePlanChargeChargeModelConfigurationItem:
properties:
Key:
description: |
The name of the field that is specified for a specific charge model.
Configuration keys supported are as follows:
* `formula` (only available if you have the Multi-Attribute Pricing charge model enabled. The charge model is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.)
* `customFieldPerUnitRate` (only available if you have the Pre-Rated Per Unit Pricing charge model enabled. The charge model is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.)
* `customFieldTotalAmount` (only available if you have the Pre-Rated Pricing model enabled. The charge model is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.)
type: string
Value:
description: |
The value of the field that is specified in the `Key` field.
Possible values are follows:
* A valid pricing formula to calculate actual rating amount for each usage record. For example, `usageQuantity()*10`. Use it with Key `formula` when the Multi-Attribute Pricing charge model is used. The charge model is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
* A name of a usage custom field that carries the per-unit rate for a usage record. For example, `perUnitRate__c`. Use it with Key `customFieldPerUnitRate` when the Pre-Rated Per Unit Pricing charge model is used. The charge model is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
* A name of a usage custom field that carries the total amount for a usage record. For example, `totalAmount__c`. Use it with Key `customFieldTotalAmount` when the Pre-Rated Pricing model is used. The charge model is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions) for pricing information.
type: string
required:
- Key
- Value
title: ConfigurationItem
type: object
ProxyCreateOrModifyProductRatePlanChargeTierData:
description: 'Container for pricing information associated with the product rate
plan charge.
'
properties:
ProductRatePlanChargeTier:
description: |
Array of product rate plan charge tiers.
You should specify all relevant fields of all tiers, including pricing information for each currency.
For each currency, ensure that the tiers appear in ascending order of `StartingUnit`.
For example:
```
[
{
"StartingUnit": "1",
"EndingUnit": "150",
"Currency": "USD",
"Price": 1.95,
"PriceFormat": "Per Unit"
},
{
"StartingUnit": "151",
"EndingUnit": "300",
"Currency": "USD",
"Price": 1.45,
"PriceFormat": "Per Unit"
},
{
"StartingUnit": "1",
"EndingUnit": "150",
"Currency": "EUR",
"Price": 1.75,
"PriceFormat": "Per Unit"
},
{
"StartingUnit": "151",
"EndingUnit": "300",
"Currency": "EUR",
"Price": 1.30,
"PriceFormat": "Per Unit"
}
]
```
items:
properties:
Currency:
description: 'The code corresponding to the currency for the tier''s
price.
'
type: string
DiscountAmount:
description: 'The specific amount for a fixed discount. Required if
the charge model of the product rate plan charge is `Discount-Fixed
Amount`.
'
format: double
type: number
DiscountPercentage:
description: 'The percentage of discount for a percentage discount.
Required if the charge model of the product rate plan charge is `Discount-Percentage`.
'
format: double
type: number
EndingUnit:
description: 'The end number of a range of units for the tier. Required
if the charge model of the product rate plan charge is `Tiered Pricing`
or `Tiered with Overage Pricing`.
'
format: double
type: number
IsOveragePrice:
description: 'Indicates if the price is an overage price, which is the
price when usage surpasses the last defined tier.
'
type: boolean
Price:
description: 'The price of the tier if the charge is a flat fee, or
the price of each unit in the tier if the charge model is tiered pricing.
'
format: double
type: number
PriceFormat:
description: 'Indicates if pricing is a flat fee or is per unit. This
field is for tiered and volume pricing models only.
'
enum:
- Flat Fee
- Per Unit
type: string
StartingUnit:
description: 'The starting number of a range of units for the tier.
Required if the charge model of the product rate plan charge is `Tiered
Pricing` or `Tiered with Overage Pricing`.
'
format: double
type: number
type: object
type: array
title: productRatePlanChargeTierData
type: object
ProxyCreateOrModifyResponse:
properties:
Id:
description: ''
type: string
Success:
description: ''
type: boolean
type: object
ProxyCreateProduct:
allOf:
- properties:
AllowFeatureChanges:
description: |
Controls whether to allow your users to add or remove features while creating or amending a subscription.
**Values**: true, false (default)
type: boolean
Category:
description: "Category of the product. Used by Zuora Quotes Guided Product\
\ Selector.\n\n**Values**: \n - Base Products\n - Add On Services\n\
\ - Miscellaneous Products\n"
maxLength: 100
type: string
Description:
description: "A description of the product. \n"
maxLength: 500
type: string
EffectiveEndDate:
description: 'The date when the product expires and can''t be subscribed
to anymore, in `yyyy-mm-dd` format.
'
format: date
type: string
EffectiveStartDate:
description: 'The date when the product becomes available and can be subscribed
to, in `yyyy-mm-dd` format.
'
format: date
type: string
Name:
description: 'The name of the product. This information is displayed in
the product catalog pages in the web-based UI.
'
maxLength: 100
type: string
ProductNumber:
description: "The natural key of the product.\n\n**Values**: \n - leave\
\ null for automatically generated string\n - an alphanumeric string\
\ of 100 characters or fewer\n\n**Note**: This field is only available\
\ if you set the `X-Zuora-WSDL-Version` request header to `133` or later.\n"
maxLength: 100
type: string
SKU:
description: "The unique SKU for the product.\n\n**Values**: \n - leave\
\ null for automatically generated string\n - an alphanumeric string\
\ of 50 characters or fewer\n"
maxLength: 50
type: string
required:
- EffectiveEndDate
- EffectiveStartDate
- Name
type: object
- $ref: '#/definitions/ProductObjectNSFields'
- $ref: '#/definitions/ProductObjectCustomFields'
example:
Description: Create product via API
EffectiveEndDate: '2066-10-20'
EffectiveStartDate: '1966-10-20'
Name: P_1476935173677
SKU: API-SKU1476935173677
ProxyCreateProductRatePlan:
allOf:
- properties:
ActiveCurrencies:
description: |
A list of 3-letter currency codes representing active currencies for the product rate plan. Use a comma to separate each currency code.
When creating a product rate plan, you can use this field to specify default currency and at most four other active currencies.
items:
type: string
type: array
Description:
description: 'A description of the product rate plan.
'
maxLength: 500
type: string
EffectiveEndDate:
description: 'The date when the product rate plan expires and can''t be
subscribed to, in `yyyy-mm-dd` format.
'
format: date
maxLength: 29
type: string
EffectiveStartDate:
description: 'The date when the product rate plan becomes available and
can be subscribed to, in `yyyy-mm-dd` format.
'
format: date
maxLength: 29
type: string
Grade:
description: "The grade that is assigned for the product rate plan. The\
\ value of this field must be a positive integer. The greater the value,\
\ the higher the grade.\n\nA product rate plan to be added to a Grading\
\ catalog group must have one grade. You can specify a grade for a product\
\ rate plan in this request or update the product rate plan individually.\n\
\n**Notes**: \n - To use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to `116` or later. Otherwise, an error occurs.\n - This\
\ field is in the **Early Adopter** phase. We are actively soliciting\
\ feedback from a small set of early adopters before releasing it as generally\
\ available. If you want to join this early adopter program, submit a\
\ request at [Zuora Global Support](http://support.zuora.com/).\n"
type: number
Name:
description: 'The name of the product rate plan. The name doesn''t have
to be unique in a Product Catalog, but the name has to be unique within
a product.
'
maxLength: 255
type: string
ProductId:
description: 'The ID of the product that contains the product rate plan.
'
maxLength: 32
type: string
ProductRatePlanNumber:
description: |
The natural key of the product rate plan.
**Possible values**:
- leave null for automatically generated string
- an alphanumeric string of 100 characters or fewer
**Note**: This field is only available if you set the `X-Zuora-WSDL-Version` request header to `133` or later.
maxLength: 100
type: string
required:
- Name
- ProductId
type: object
- $ref: '#/definitions/ProductRatePlanObjectNSFields'
- $ref: '#/definitions/ProductRatePlanObjectCustomFields'
example:
Description: Test create product rateplan via API
EffectiveEndDate: '2066-10-20'
EffectiveStartDate: '1966-10-20'
Grade: 3
Name: ProductRatePlan1476935173957
ProductId: 2c93808457d787030157e03246ae5129
ProxyCreateProductRatePlanCharge:
allOf:
- properties:
AccountingCode:
description: 'The accounting code for the charge. Accounting codes group
transactions that contain similar accounting attributes.
'
maxLength: 100
type: string
ApplyDiscountTo:
description: 'Specifies the type of charges that you want a specific discount
to apply to. All field values are case sensitive and in all-caps.
'
enum:
- ONETIME (1)
- RECURRING (2)
- USAGE (4)
- ONETIMERECURRING (3)
- ONETIMEUSAGE (5)
- RECURRINGUSAGE (6)
- ONETIMERECURRINGUSAGE (7)
type: string
BillCycleDay:
description: |
Sets the bill cycle day (BCD) for the charge. The BCD determines which day of the month customer is billed. The BCD value in the account can override the BCD in this object.
**Character limit**: 2
**Values**: a valid BCD integer, 1 - 31
format: int32
type: integer
BillCycleType:
description: "Specifies how to determine the billing day for the charge.\
\ \n\n**Notes**:\n - If you set this field to `SpecificDayofMonth`, you\
\ must specify which day of the month as the billing day for the charge\
\ in the BillCycleDay field. \n - If you set this field to `SpecificDayofWeek`,\
\ you must specify which day of the week as the billing day for the charge\
\ in the WeeklyBillCycleDay field. \n - By default, `TermStartDay` and\
\ `TermEndDay` are only available for prepayment charges. But you can\
\ reach out to Zuora Global Support to request enabling it for non-prepaid\
\ recurring charges. Meanwhile, note the following rules applies to these\
\ options:\n - The Term End Day option of the Billing Day field must\
\ be coupled with the Align to Term End option of the Billing Period Alignment\
\ field.\n - For prepaid charges, the Term Start Day option of the\
\ Billing Day field must be coupled with the existing Align to Term Start\
\ option of the Billing Period Alignment field.\n - For non-prepaid\
\ recurring charges: If Billing Day is set to Term Start Day, Billing\
\ Period Alignment must be Align to Term Start; If Billing Day is set\
\ to Term End Day, Billing Period Alignment can be set to other values.\n"
enum:
- DefaultFromCustomer
- SpecificDayofMonth
- SubscriptionStartDay
- ChargeTriggerDay
- SpecificDayofWeek
- TermStartDay
- TermEndDay
type: string
BillingPeriod:
description: |
The billing period for the charge. The start day of the billing period is also called the bill cycle day (BCD).
**Notes**:
- Specify the number of months or weeks in the SpecificBillingPeriod field if you set this field to `Specific Months` or `Specific Weeks`.
- The `Subscription Term` value is in **Limited Availability**.
enum:
- Month
- Quarter
- Annual
- Semi-Annual
- Specific Months
- Subscription Term
- Week
- Specific Weeks
- Specific Days
type: string
BillingPeriodAlignment:
description: |
Aligns charges within the same subscription if multiple charges begin on different dates.
**Note:** The `AlignToTermEnd` value is only available for prepayment charges by default. Reach out to Zuora Global Support to enable it for non-prepaid recurring charges.
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
- AlignToTermEnd
type: string
BillingTiming:
description: "The billing timing for the charge. You can choose to bill\
\ in advance or in arrears for recurring charge types. This field is not\
\ used in one-time or usage based charge types.\n\nThis feature is in\
\ **Limited Availability**. If you wish to have access to the feature,\
\ submit a request at [Zuora Global Support](http://support.zuora.com/).\
\ \n"
enum:
- In Advance
- In Arrears
type: string
ChargeModel:
description: "Determines how to calculate charges. Charge models must be\
\ individually activated in Zuora Billing administration.\n\n**Notes:**\n\
\ - The `Delivery Pricing` value is available only if you have the Delivery\
\ Pricing charge model enabled.\n - The `MultiAttributePricing` value\
\ is available only if you have the Multi-Attribute Pricing charge model\
\ enabled. The charge model is available for customers with Enterprise\
\ and Nine editions by default. If you are a Growth customer, see [Zuora\
\ Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information. \n - The `PreratedPerUnit` and value\
\ is available only if you have the Pre-rated Per Unit Pricing charge\
\ model enabled. The charge model is available for customers with Enterprise\
\ and Nine editions by default. If you are a Growth customer, see [Zuora\
\ Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information. \n - The `PreratedPricing` value is\
\ available only if you have the Pre-rated Pricing charge model enabled.\
\ The charge model is available for customers with Enterprise and Nine\
\ editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information. \n - The `HighWatermarkVolumePricing`value\
\ is available only if you have the High Water Mark Volume Pricing charge\
\ model enabled. The charge model is available for customers with Enterprise\
\ and Nine editions by default. If you are a Growth customer, see [Zuora\
\ Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information. \n - The `HighWatermarkTieredPricing`\
\ value is available only if you have the High Water Mark Tiered Pricing\
\ charge model enabled. The charge model is available for customers with\
\ Enterprise and Nine editions by default. If you are a Growth customer,\
\ see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information.\n"
enum:
- Discount-Fixed Amount
- Discount-Percentage
- Flat Fee Pricing
- Per Unit Pricing
- Overage Pricing
- Tiered Pricing
- Tiered with Overage Pricing
- Volume Pricing
- Delivery Pricing
- MultiAttributePricing
- PreratedPerUnit
- PreratedPricing`
- HighWatermarkVolumePricing
- HighWatermarkTieredPricing
type: string
ChargeModelConfiguration:
$ref: '#/definitions/ProxyCreateOrModifyProductRatePlanChargeChargeModelConfiguration'
ChargeType:
description: 'Specifies the type of charge.
'
enum:
- OneTime
- Recurring
- Usage
type: string
CreditOption:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to 114 or higher. Otherwise, an error occurs. \n\nThe\
\ way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option)\
\ for more information. \n"
enum:
- TimeBased
- ConsumptionBased
- FullCreditBack
type: string
DefaultQuantity:
description: "The default quantity of units, such as the number of authors\
\ in a hosted wiki service. This field is required if you use a per-unit\
\ pricing model. \n\n**Character limit**: 16\n\n**Values**: a valid quantity\
\ value. \n\n**Note:** When the `ChargeModel` field is set to `Tiered\
\ Pricing` or `Volume Pricing`, if this field is not specified, the value\
\ will default to `0`.\n"
format: double
type: number
DeferredRevenueAccount:
description: "The name of the deferred revenue account for this charge.\n\
\nThis feature is in **Limited Availability**. If you wish to have access\
\ to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\
\ \n"
maxLength: 100
type: string
DeliverySchedule:
$ref: '#/definitions/ProxyCreateOrModifyDeliverySchedule'
Description:
description: 'A description of the charge.
'
maxLength: 500
type: string
DiscountLevel:
description: 'Specifies if the discount applies to just the product rate
plan, the entire subscription, or to any activity in the account.
'
enum:
- rateplan
- subscription
- account
type: string
DrawdownRate:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.
The [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). See [Fields related to Prepaid with Drawdown](https://knowledgecenter.zuora.com/Central_Platform/API/G_SOAP_API/E1_SOAP_API_Object_Reference/ProductRatePlanCharge#Fields_related_to_Prepaid_with_Drawdown) for more information.
type: number
DrawdownUom:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to 114 or higher. Otherwise, an error occurs. \n\nUnit\
\ of measurement for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge).\
\ \n"
type: string
EndDateCondition:
default: SubscriptionEnd
description: "Defines when the charge ends after the charge trigger date.\n\
\n**Values**: \n - `SubscriptionEnd`: The charge ends on the subscription\
\ end date after a specified period based on the trigger date of the charge.\
\ \n - `FixedPeriod`: The charge ends after a specified period based\
\ on the trigger date of the charge. If you set this field to `FixedPeriod`,\
\ you must specify the length of the period and a period type by defining\
\ the `UpToPeriods` and `UpToPeriodsType` fields. \n \n**Note**: If the\
\ subscription ends before the charge end date, the charge ends when the\
\ subscription ends. But if the subscription end date is subsequently\
\ changed through a Renewal, or Terms and Conditions amendment, the charge\
\ will end on the charge end date.\n"
enum:
- SubscriptionEnd
- FixedPeriod
type: string
ExcludeItemBillingFromRevenueAccounting:
default: false
description: "The flag to exclude the related invoice items, invoice item\
\ adjustments, credit memo items, and debit memo items from revenue accounting.\n\
\n**Notes**: \n - To use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to `115` or later. Otherwise, an error occurs.\n - This\
\ field is only available if you have the Order to Revenue or Billing\
\ - Revenue Integration feature enabled. \n"
type: boolean
ExcludeItemBookingFromRevenueAccounting:
default: false
description: "The flag to exclude the related rate plan charges and order\
\ line items from revenue accounting.\n\n**Notes**: \n - To use this\
\ field, you must set the `X-Zuora-WSDL-Version` request header to `115`\
\ or later. Otherwise, an error occurs.\n - This field is only available\
\ if you have the Order to Revenue or Billing - Revenue Integration feature\
\ enabled. \n"
type: boolean
IncludedUnits:
description: |
Specifies the number of units in the base set of units.
**Character limit**: 16
**Values**: a positive decimal value
format: double
type: number
IsAllocationEligible:
description: |
Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `False`.
**Values**: `True`, `False`
**Note**: This field is available only if you have the Additional Revenue Fields property enabled.
type: boolean
IsPrepaid:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to 114 or higher. Otherwise, an error occurs. \n\nIndicates\
\ whether this charge is a prepayment (topup) charge or a drawdown charge.\
\ \n\n**Values**: `true` or `false`.\n"
type: boolean
IsRollover:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.
The value is either "True" or "False". It determines whether the rollover fields are needed.
type: boolean
IsStackedDiscount:
description: |
**Note**: This field is only applicable to the Discount - Percentage charge model.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 130 or higher. Otherwise, an error occurs.
This field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:
- `True`: This is a stacked discount, which should be calculated by stacking with other discounts.
- `False`: This is not a stacked discount, which should be calculated in sequence with other discounts.
For more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).
type: boolean
IsUnbilled:
description: "Specifies how to perform the accounting during revenue recognition.\
\ The default value is `False`.\n\n**Values**: `True`, `False`\n\n**Note**:\
\ This field is available only if you have the Additional Revenue Fields\
\ property enabled. \n"
type: boolean
LegacyRevenueReporting:
description: ''
type: boolean
ListPriceBase:
description: 'The list price base for the product rate plan charge.
'
enum:
- Per Billing Period
- Per Month
- Per Week
- Per Year
- Per Specific Months
type: string
MaxQuantity:
description: |
Specifies the maximum number of units for this charge. Use this field and the `MinQuantity` field to create a range of units allowed in a product rate plan charge.
**Character limit**: 16
**Values**: a positive decimal value
format: double
type: number
MinQuantity:
description: |
Specifies the minimum number of units for this charge. Use this field and the `MaxQuantity` field to create a range of units allowed in a product rate plan charge.
**Character limit**: 16
**Values**: a positive decimal value
format: double
type: number
Name:
description: 'The name of the product rate plan charge.
'
maxLength: 100
type: string
NumberOfPeriod:
description: 'Specifies the number of periods to use when calculating charges
in an overage smoothing charge model. The valid value is a positive whole
number.
'
format: int64
type: integer
OverageCalculationOption:
description: "Determines when to calculate overage charges. If the value\
\ of the SmoothingMode field is not specified, the value of this field\
\ is ignored.\n\n**Values**: \n - `EndOfSmoothingPeriod`: This option\
\ is used by default. The overage is charged at the end of the smoothing\
\ period.\n - `PerBillingPeriod`: The overage is charged on-demand rather\
\ than waiting until the end of the smoothing period.\n"
enum:
- EndOfSmoothingPeriod
- PerBillingPeriod
type: string
OverageUnusedUnitsCreditOption:
description: 'Determines whether to credit the customer with unused units
of usage.
'
enum:
- NoCredit
- CreditBySpecificRate
type: string
PrepaidOperationType:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to 114 or higher. Otherwise, an error occurs. \n\nThe\
\ type of this charge. It is either a prepayment (topup) charge or a drawdown\
\ charge. \n"
enum:
- topup
- drawdown
type: string
PrepaidQuantity:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to 114 or higher. Otherwise, an error occurs. \n\nThe\
\ number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\
\ Must be a positive number.\n"
type: number
PrepaidTotalQuantity:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to 114 or higher. Otherwise, an error occurs. \n\nThe\
\ total amount of units that end customers can use during a validity period\
\ when they subscribe to a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"
type: number
PrepaidUom:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.
Unit of measurement for a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).
type: string
PriceChangeOption:
default: NoChange
description: 'Applies an automatic price change when a termed subscription
is renewed.
'
enum:
- NoChange
- SpecificPercentageValue
- UseLatestProductCatalogPricing
type: string
PriceIncreaseOption:
description: 'Applies an automatic price change when a termed subscription
is renewed.
'
enum:
- FromTenantPercentageValue
- SpecificPercentageValue
type: string
PriceIncreasePercentage:
description: |
Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the value to `SpecificPercentageValue`.
**Character limit**: 16
**Values**: a decimal value between -100 and 100
format: double
type: number
ProductCategory:
description: "This field is used to maintain the product category for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
ProductClass:
description: "This field is used to maintain the product class for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
ProductFamily:
description: "This field is used to maintain the product family for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled.\n"
type: string
ProductLine:
description: "This field is used to maintain the product line for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
ProductRatePlanChargeNumber:
description: |
The natural key of the product rate plan charge.
**Values**:
- leave null for automatically generated string
- an alphanumeric string of 100 characters or fewer
**Note**: This field is only available if you set the `X-Zuora-WSDL-Version` request header to `133` or later.
maxLength: 100
type: string
ProductRatePlanChargeTierData:
$ref: '#/definitions/ProxyCreateOrModifyProductRatePlanChargeTierData'
ProductRatePlanId:
description: 'The ID of the product rate plan associated with this product
rate plan charge.
'
maxLength: 32
type: string
RatingGroup:
default: ByBillingPeriod
description: "Specifies a rating group based on which usage records are\
\ rated.\n\nPossible values: \n - `ByBillingPeriod`: The\
\ rating is based on all the usages in a billing period. \n - `ByUsageStartDate`:\
\ The rating is based on all the usages on the same usage start date.\
\ \n - `ByUsageRecord`: The rating is based on each usage record.\n \
\ - `ByUsageUpload`: The rating is based on all the usages in a uploaded\
\ usage file (`.xls` or `.csv`).\n - `ByGroupId`: The rating is based\
\ on all the usages in a custom group.\n\n**Notes:** \n - The `ByBillingPeriod`\
\ value can be applied for all charge models. \n - The `ByUsageStartDate`,\
\ `ByUsageRecord`, and `ByUsageUpload` values can only be applied for\
\ per unit, volume pricing, and tiered pricing charge models. \n - The\
\ `ByGroupId` value is only available if you have the Active Rating feature\
\ enabled.\n - Use this field only for Usage charges. One-Time Charges\
\ and Recurring Charges return `NULL`.\n"
enum:
- ByBillingPeriod
- ByUsageStartDate
- ByUsageRecord
- ByUsageUpload
- ByGroupId
type: string
RecognizedRevenueAccount:
description: "The name of the recognized revenue account for this charge.\n\
\ - Required when the Allow Blank Accounting Code setting is No.\n -\
\ Optional when the Allow Blank Accounting Code setting is Yes.\n\n This\
\ feature is in **Limited Availability**. If you wish to have access to\
\ the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\
\ \n"
maxLength: 100
type: string
RevRecCode:
description: 'Associates this product rate plan charge with a specific revenue
recognition code.
'
maxLength: 70
type: string
RevRecTriggerCondition:
description: 'Specifies when revenue recognition begins.
'
enum:
- ContractEffectiveDate
- ServiceActivationDate
- CustomerAcceptanceDate
type: string
RevenueRecognitionRuleName:
description: 'Determines when to recognize the revenue for this charge.
'
enum:
- Recognize upon invoicing
- Recognize daily over time
type: string
RolloverApply:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.
This field defines the priority of rollover, which is either first or last.
enum:
- ApplyFirst
- ApplyLast
type: string
RolloverPeriods:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.
This field defines the number of rollover periods, it is restricted to 3.
type: number
SmoothingModel:
description: 'Specifies the smoothing model for an overage smoothing charge
model.
'
enum:
- RollingWindow
- Rollover
type: string
SpecificBillingPeriod:
description: |
Customizes the number of months or weeks for the charges billing period. This field is required if you set the value of the BillingPeriod field to `Specific Months` or `Specific Weeks`.
The valid value is a positive integer.
format: int64
type: integer
SpecificListPriceBase:
description: "The number of months for the list price base of the charge.\
\ This field is required if you set the value of the `ListPriceBase` field\
\ to `Per Specific Months`.\n\n**Notes**: \n - This field is available\
\ only if you have the Annual List Price feature enabled.\n - To use\
\ this field, you must set the `X-Zuora-WSDL-Version` request header to\
\ `129` or later. Otherwise, an error occurs.\n - The value of this field\
\ is `null` if you do not set the value of the `ListPriceBase` field to\
\ `Per Specific Months`.\n"
format: int32
maximum: 200
minimum: 1
type: integer
TaxCode:
description: |
Specifies the tax code for taxation rules. Required when the Taxable field is set to `True`.
**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.
maxLength: 64
type: string
TaxMode:
description: |
Determines how to define taxation for the charge. Required when the Taxable field is set to `True`.
**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.
enum:
- TaxExclusive
- TaxInclusive
type: string
Taxable:
description: |
Determines whether the charge is taxable. When set to `True`, the TaxMode and TaxCode fields are required when creating or updating th ProductRatePlanCharge object.
**Character limit**: 5
**Values**: `True`, `False`
**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.
type: boolean
TriggerEvent:
description: |
Specifies when to start billing the customer for the charge.
**Values**:
- `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.
- `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.
- `CustomerAcceptance` is when the customer accepts the services or products for a subscription.
enum:
- ContractEffective
- ServiceActivation
- CustomerAcceptance
type: string
UOM:
description: "Specifies a configured unit to measure usage. \n\n**Note**:\
\ You must specify this field when creating the following charge models:\n\
\ - Per Unit Pricing\n - Volume Pricing\n - Overage Pricing\n - Tiered\
\ Pricing\n - Tiered with Overage Pricing\n"
maxLength: 25
type: string
UpToPeriods:
description: "Specifies the length of the period during which the charge\
\ is active. If this period ends before the subscription ends, the charge\
\ ends when this period ends.\n\n**Character limit**: 5\n\n**Values**:\
\ a whole number between 0 and 65535, exclusive\n\n**Notes**:\n - You\
\ must use this field together with the `UpToPeriodsType` field to specify\
\ the time period. This field is applicable only when the `EndDateCondition`\
\ field is set to `FixedPeriod`. \n - If the subscription end date is\
\ subsequently changed through a Renewal, or Terms and Conditions amendment,\
\ the charge end date will change accordingly up to the original period\
\ end.\n"
format: int64
type: integer
UpToPeriodsType:
default: Billing Periods
description: "The period type used to define when the charge ends.\n\n**Notes**:\
\ \n - You must use this field together with the `UpToPeriods` field to\
\ specify the time period.\n - This field is applicable only when the\
\ `EndDateCondition` field is set to `FixedPeriod`. \n"
enum:
- Billing Periods
- Days
- Weeks
- Months
- Years
type: string
UsageRecordRatingOption:
default: EndOfBillingPeriod
description: "Determines how Zuora processes usage records for per-unit\
\ usage charges. \n"
enum:
- EndOfBillingPeriod
- OnDemand
type: string
UseDiscountSpecificAccountingCode:
description: |
Determines whether to define a new accounting code for the new discount charge.
**Character limit**: 5
**Values**: `True`, `False`
type: boolean
UseTenantDefaultForPriceChange:
description: "Applies the tenant-level percentage uplift value for an automatic\
\ price change to a termed subscription's renewal. \n\n**Character limit**:\
\ 5\n\n**Values**: `true`, `false`\n"
type: boolean
ValidityPeriodType:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to 114 or higher. Otherwise, an error occurs. \n\nThe\
\ period in which the prepayment units are valid to use as defined in\
\ a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"
enum:
- SUBSCRIPTION_TERM
- ANNUAL
- SEMI_ANNUAL
- QUARTER
- MONTH
type: string
WeeklyBillCycleDay:
description: "Specifies which day of the week as the bill cycle day (BCD)\
\ for the charge.\n\nThis feature is in **Limited Availability**. If you\
\ wish to have access to the feature, submit a request at [Zuora Global\
\ Support](http://support.zuora.com/). \n"
enum:
- Sunday
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
type: string
applyToBillingPeriodPartially:
description: |
Allow the discount duration to be aligned with the billing period partially.
**Note**: You must enable the [Enhanced Discount](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.
type: boolean
rolloverPeriodLength:
default: null
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 137 or higher. Otherwise, an error occurs.
The period length of the rollover fund. If this field is set as optional, then you can modify the value. The limit for the value should be 1 which should be lesser than equal to the specified period that is lesser than equal to the validity period's length.
type: integer
required:
- BillCycleType
- BillingPeriod
- ChargeModel
- ChargeType
- Name
- ProductRatePlanChargeTierData
- ProductRatePlanId
- TriggerEvent
- UseDiscountSpecificAccountingCode
type: object
- $ref: '#/definitions/ProductRatePlanChargeObjectNSFields'
- $ref: '#/definitions/ProductRatePlanChargeObjectCustomFields'
example:
AccountingCode: Deferred Revenue
BillCycleType: DefaultFromCustomer
BillingPeriod: Month
ChargeModel: Volume Pricing
ChargeType: Recurring
DeferredRevenueAccount: Deferred Revenue
Name: Recurring flat fee
ProductRatePlanChargeTierData:
ProductRatePlanChargeTier:
- Currency: USD
Price: 10
ProductRatePlanId: 2c92c0f8628e007901628f1dc06a453d
RecognizedRevenueAccount: Accounts Receivable
TriggerEvent: ContractEffective
UOM: each
UseDiscountSpecificAccountingCode: false
ProxyCreateTaxationItem:
allOf:
- properties:
AccountingCode:
description: ' The Chart of Accounts '
type: string
ExemptAmount:
description: " The calculated tax amount excluded due to the exemption.\n\
**Character limit**: 16 **Values**: a decimal value "
format: double
type: number
InvoiceItemId:
description: " The ID of the specific invoice item that the taxation information\
\ applies to.\n**Character limit**: 32 **Values**: a valid invoice item\
\ ID "
type: string
Jurisdiction:
description: " The jurisdiction that applies the tax or VAT. This value\
\ is typically a state, province, county, or city.\n**Character limit**:\
\ 32 **Values**: a string of 32 characterrs or fewer "
type: string
LocationCode:
description: " The identifier for the location based on the value of the\
\ `TaxCode` field.\n**Character limit**: 32 **Values**: automatically\
\ generated "
type: string
Name:
description: " The name of the tax rate, such as sales tax or GST. This\
\ name is displayed on invoices.\n**Character limit**: 128 **Values**:\
\ a string of 128 characters or fewer "
type: string
TaxAmount:
description: " The amount of the tax applied to the charge.\n**Character\
\ limit**: 16 **Values**: a decimal value "
format: double
type: number
TaxCode:
description: " The tax code identifies which tax rules and tax rates to\
\ apply to a specific charge.\n**Character limit**: 32 **Values**: a string\
\ of 32 characters or fewer "
type: string
TaxCodeDescription:
description: " The description for the tax code.\n**Character limit**: 255\
\ **Values**: a string of 255 characters or fewer "
type: string
TaxDate:
description: " The date that the tax is applied to the charge, in `yyyy-mm-dd`\
\ format.\n**Character limit**: 29 "
format: date
type: string
TaxRate:
description: " The tax rate applied to the charge.\n**Character limit**:\
\ 16 **Values**: a valid decimal value "
format: double
type: number
TaxRateDescription:
description: " The description of the tax rate.\n**Character limit**: 255\
\ **Values**: a string of 255 characters or fewer "
type: string
TaxRateType:
description: " The type of the tax rate applied to the charge.\n**Character\
\ limit**: 10 **Values**: `Percentage`, `FlatFee` "
type: string
required:
- InvoiceItemId
- Jurisdiction
- Name
- TaxAmount
- TaxRate
- TaxDate
- TaxRateType
type: object
- $ref: '#/definitions/TaxationItemObjectCustomFields'
example:
AccountingCode: Usage Revenue
ExemptAmount: 50
InvoiceItemId: 2c93808457d787030157e0306cd43a88
Jurisdiction: test
LocationCode: code - 001
Name: test
TaxAmount: 3
TaxCode: taxcode
TaxCodeDescription: description
TaxDate: '2016-10-20'
TaxMode: TaxExclusive
TaxRate: 3
TaxRateDescription: test
TaxRateType: FlatFee
ProxyCreateUsage:
allOf:
- properties:
AccountId:
description: " The ID of the account associated with the usage data. This\
\ field is only required if no value is specified for the `AccountNumber`\
\ field.\n**Character limit**: 32 **Values**: a valid account ID. "
type: string
AccountNumber:
description: " The number of the account associated with the usage data.\
\ This field is only required if no value is specified for the `AccountId`\
\ field.\n**Character limit**: 50 **Values**: a valid account number. "
type: string
ChargeId:
description: ' The OrginalId of the rate plan charge related to the usage
record, e.g., `2c9081a03c63c94c013c6873357a0117` **Character limit**:
32 **Values**: a valid rate plan charge OriginalID. '
type: string
ChargeNumber:
description: 'A unique number for the rate plan charge related to the usage
record. For example, C-00000007.
'
maxLength: 50
type: string
Description:
description: 'A description of the usage record.
'
maxLength: 200
type: string
EndDateTime:
description: " The end date and time of a range of time when usage is tracked.\
\ Use this field for reporting; this field doesn't affect usage calculation.\n\
**Character limit**: 29 **Values**: a valid date and time value. "
format: date-time
type: string
Quantity:
description: " Indicates the number of units used.\n**Character limit**:\
\ 16 **Values**: a valid decimal amount equal to or greater than 0 "
format: double
type: number
StartDateTime:
description: " The start date and time of a range of time when usage is\
\ tracked. Zuora uses this field value to determine the usage date. Unlike\
\ the `EndDateTime`, the `StartDateTime` field does affect usage calculation.\n\
**Character limit**: 29 **Values**: a valid date and time value "
format: date-time
type: string
SubscriptionId:
description: "The original ID of the subscription that contains the fees\
\ related to the usage data. \n\nThe ID of a subscription might change\
\ when you create amendments to the subscription. It is good practice\
\ to use the unique subscription number that you can specify in the `SubscriptionNumber`\
\ field.\n"
maxLength: 32
type: string
SubscriptionNumber:
description: |
The unique identifier number of the subscription that contains the fees related to the usage data.
It is good practice to use this field when creating usage records.
maxLength: 100
type: string
UOM:
description: " Specifies the units to measure usage. Units of measure are\
\ configured in the web-based UI. Your values depend on your configuration\
\ in **Billing Settings**.\n**Character limit**: **Values**: a valid unit\
\ of measure "
type: string
UniqueKey:
description: 'The unique external reference of the usage record. See [Upload
usage record with unique key](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage#Upload_usage_record_with_unique_key)
for information on how to use this field. **Note**: This field is only
available if you set the `X-Zuora-WSDL-Version` request header to `114`
or later.
'
type: string
required:
- Quantity
- StartDateTime
- UOM
type: object
- $ref: '#/definitions/UsageObjectCustomFields'
example:
AccountId: 2c92c0f956bc8fb40156d502fc3718b1
ChargeNumber: C-00000229
Description: test
Quantity: 9
StartDateTime: '2017-12-01T16:41:36.000+01:00'
SubscriptionNumber: A-S00000100
UOM: Each
UniqueKey: Test001
ProxyDeleteResponse:
properties:
id:
description: ''
type: string
success:
description: ''
type: boolean
type: object
ProxyGetImport:
properties:
CreatedById:
description: " The user ID of the person who created the import.\n\n**Character\
\ limit**: 32\n\n**Values**: automatically generated "
type: string
CreatedDate:
description: " The date when the import was created.\n\n**Character limit**:\
\ 29\n\n**Values**: automatically generated "
format: date-time
type: string
Id:
description: Object identifier.
type: string
ImportType:
description: " The type of item imported.\n\n**Character limit**: 7\n\n**Values**:\
\ Usage "
type: string
ImportedCount:
description: "The number of records successfully imported.\n\n**Values**:\
\ automatically generated "
format: int32
type: integer
Md5:
description: " A check to validate the import file's integrity.\n\n**Character\
\ limit:** 32\n\n**System-generated:** no\n\n**Values**: a string of 32\
\ characters or fewer "
type: string
Name:
description: |2
A descriptive name for the import.
**Character limit:** 100
**Values:** one of the following:
- a string of 100 characters or fewer
- if NULL default is: `import `
type: string
OriginalResourceUrl:
description: " The URL for your import file, which contains your records for\
\ upload. When you upload the file, Zuora assigns it to this address.\n\n\
**Values:** automatic dynamically-generated URL "
type: string
ResultResourceUrl:
description: " The URL for the import result file, which is a zipped CSV file.\n\
\n**Values**: automatic dynamically-generated URL "
type: string
Status:
description: |
The status of the import process.
**Values**: automatically generated using one of the following values:
- Pending
- Processing
- Completed
- Failed
type: string
StatusReason:
description: " The reason for the system-generated status. Use this information\
\ if the import fails.\n\n**Character limit**: 2000\n\n**Values**: automatically\
\ generated error message "
type: string
TotalCount:
description: " The number of records in the import file.\n\n**Character limit**:\n\
\n**Values**: automatically generated "
format: int32
type: integer
UpdatedById:
description: " The ID of the user who last updated the import.\n\n**Character\
\ limit**: 32\n\n**Values**: automatically generated "
type: string
UpdatedDate:
description: " The date when the import was last updated.\n**Character limit**:\
\ 29 **Values**: automatically generated "
format: date-time
type: string
type: object
ProxyGetPaymentMethodSnapshot:
properties:
AccountId:
description: The ID of the customer account associated with this payment method.
type: string
AchAbaCode:
description: The nine-digit routing number or ABA number used by banks. Applicable
to ACH payment methods.
type: string
AchAccountName:
description: The name of the account holder, which can be either a person
or a company. Applicable to ACH payment methods.
type: string
AchAccountNumberMask:
description: 'This is a masked displayable version of the ACH account number,
used for security purposes. For example: `XXXXXXXXX54321`.'
type: string
AchAccountType:
description: The type of bank account associated with the ACH payment.
enum:
- BusinessChecking
- Checking
- Saving
type: string
AchBankName:
description: The name of the bank where the ACH payment account is held.
type: string
BankBranchCode:
description: The branch code of the bank used for direct debit.
type: string
BankCheckDigit:
description: The check digit in the international bank account number, which
confirms the validity of the account. Applicable to direct debit payment
methods.
type: string
BankCity:
description: The city of the direct debit bank.
type: string
BankCode:
description: The sort code or number that identifies the bank. This is also
known as the sort code.
type: string
BankIdentificationNumber:
description: The first six or eight digits of the payment method's number,
such as the credit card number or account number. Banks use this number
to identify a payment method.
type: string
BankName:
description: The name of the direct debit bank.
type: string
BankPostalCode:
description: The zip code or postal code of the direct debit bank.
type: string
BankStreetName:
description: The name of the street of the direct debit bank.
type: string
BankStreetNumber:
description: The number of the direct debit bank.
type: string
BankTransferAccountName:
description: The name on the direct debit bank account.
type: string
BankTransferAccountNumberMask:
description: 'This is a masked displayable version of the bank account number,
used for security purposes. For example: `XXXXXXXXX54321`.'
type: string
BankTransferAccountType:
description: The type of the customer's bank account. Applicable to direct
debit payment methods.
type: string
BankTransferType:
description: "Specifies the type of direct debit transfer. The value of this\
\ field is dependent on the country of the user.\n\nPossible Values: \n\n\
\n* `AutomatischIncasso` (NL)\n\n* `LastschriftDE` (Germany)\n\n* `LastschriftAT`\
\ (Austria)\n\n* `DemandeDePrelevement` (FR)\n\n* `DirectDebitUK` (UK)\n\
\n* `Domicil` (Belgium)\n\n* `LastschriftCH` (CH)\n\n* `RID` (Italy)\n\n\
* `OrdenDeDomiciliacion` (Spain)\n* `Autogiro` (Sweden)\n* `Betalingsservice`\
\ (Denmark)\n"
enum:
- AutomatischIncasso
- LastschriftDE
- LastschriftAT
- DemandeDePrelevement
- DirectDebitUK
- Domicil
- LastschriftCH
- RID
- OrdenDeDomiciliacion
- Autogiro
- Betalingsservice
type: string
BusinessIdentificationCode:
description: The business identification code for Swiss direct payment methods
that use the Global Collect payment gateway. Only applicable to direct debit
payments in Switzerland with Global Collect.
type: string
City:
description: The city of the customer's address. Applicable to debit payment
methods.
type: string
CompanyName:
description: 'The name of the company.
'
type: string
Country:
description: The two-letter country code of the customer's address. Applicable
to direct debit payment methods.
type: string
CreditCardAddress1:
description: The first line of the card holder's address, which is often a
street address or business name. Applicable to credit card and direct debit
payment methods.
type: string
CreditCardAddress2:
description: The second line of the card holder's address. Applicable to credit
card and direct debit payment methods.
type: string
CreditCardCity:
description: The city of the card holder's address. Applicable to credit card
and direct debit payment methods.
type: string
CreditCardCountry:
description: The country of the card holder's address.
type: string
CreditCardExpirationMonth:
description: The expiration month of the credit card or debit card. Applicable
to credit card and direct debit payment methods.
format: int32
type: integer
CreditCardExpirationYear:
description: The expiration month of the credit card or debit card. Applicable
to credit card and direct debit payment methods.
format: int32
type: integer
CreditCardHolderName:
description: The full name of the card holder. Applicable to credit card and
direct debit payment methods.
type: string
CreditCardMaskNumber:
description: A masked version of the credit or debit card number.
type: string
CreditCardPostalCode:
description: The billing address's zip code.
type: string
CreditCardState:
description: The billing address's state. Applicable if `CreditCardCountry`
is either Canada or the US.
type: string
CreditCardType:
description: The type of credit card or debit card.
enum:
- AmericanExpress
- Discover
- MasterCard
- Visa
type: string
DeviceSessionId:
description: The session ID of the user when the `PaymentMethod` was created
or updated.
type: string
Email:
description: An email address for the payment method in addition to the bill
to contact email address.
type: string
ExistingMandate:
description: Indicates if the customer has an existing mandate or a new mandate.
Only applicable to direct debit payment methods.
enum:
- 'Yes'
- 'No'
type: string
FirstName:
description: The customer's first name. Only applicable to direct debit payment
methods.
type: string
IBAN:
description: The International Bank Account Number. Only applicable to direct
debit payment methods.
type: string
IPAddress:
description: The IP address of the user when the payment method was created
or updated.
type: string
Id:
description: Object identifier.
type: string
IdentityNumber:
description: "The unique identity number of the customer account. \n"
type: string
IsCompany:
description: 'Whether the customer account is a company.
'
type: boolean
LastFailedSaleTransactionDate:
description: The date of the last failed attempt to collect payment with this
payment method.
format: date-time
type: string
LastName:
description: The customer's last name. Only applicable to direct debit payment
methods.
type: string
LastTransactionDateTime:
description: The date of the most recent transaction.
format: date-time
type: string
LastTransactionStatus:
description: The status of the most recent transaction.
type: string
MandateCreationDate:
description: The date when the mandate was created, in `yyyy-mm-dd` format.
A mandate is a signed authorization for UK and NL customers. Only applicable
to direct debit payment methods.
format: date
type: string
MandateID:
description: The ID of the mandate. A mandate is a signed authorization for
UK and NL customers. Only applicable to direct debit payment methods.
type: string
MandateReceived:
description: Indicates if the mandate was received. A mandate is a signed
authorization for UK and NL customers. Only applicable to direct debit payment
methods.
type: string
MandateUpdateDate:
description: The date when the mandate was last updated, in `yyyy-mm-dd` format.
A mandate is a signed authorization for UK and NL customers. Only applicable
to direct debit payment methods.
format: date
type: string
MaxConsecutivePaymentFailures:
description: The number of allowable consecutive failures Zuora attempts with
the payment method before stopping.
type: integer
Name:
description: The name of the payment method.
type: string
NumConsecutiveFailures:
description: The number of consecutive failed payment for the payment method.
format: int32
type: integer
PaymentMethodId:
description: Object identifier of the payment method.
type: string
PaymentMethodStatus:
description: Specifies the status of the payment method.
enum:
- Active
- Closed
type: string
PaymentRetryWindow:
description: The retry interval setting, which prevents making a payment attempt
if the last failed attempt was within the last specified number of hours.
type: integer
PaypalBaid:
description: The PayPal billing agreement ID, which is a contract between
two PayPal accounts.
type: string
PaypalEmail:
description: The email address associated with the account holder's PayPal
account or of the PayPal account of the person paying for the service.
type: string
PaypalPreapprovalKey:
description: PayPal's Adaptive Payments API key.
type: string
PaypalType:
description: 'Specifies the PayPal gateway: PayFlow Pro (Express Checkout)
or Adaptive Payments.'
enum:
- ExpressCheckout
- AdaptivePayments
type: string
Phone:
description: The phone number that the account holder registered with the
bank. This field is used for credit card validation when passing to a gateway.
type: string
PostalCode:
description: The zip code of the customer's address. Only applicable to direct
debit payment methods.
type: string
SecondTokenId:
description: A gateway unique identifier that replaces sensitive payment method
data. Applicable to CC Reference Transaction payment methods.
type: string
State:
description: The state of the customer's address. Only applicable to direct
debit payment methods.
type: string
StreetName:
description: The street name of the customer's address. Only applicable to
direct debit payment methods.
type: string
StreetNumber:
description: The street number of the customer's address. Only applicable
to direct debit payment methods.
type: string
TokenId:
description: A gateway unique identifier that replaces sensitive payment method
data or represents a gateway's unique customer profile. Applicable to CC
Reference Transaction payment methods.
type: string
TotalNumberOfErrorPayments:
description: The number of error payments that used this payment method.
format: int32
type: integer
TotalNumberOfProcessedPayments:
description: The number of successful payments that used this payment method.
format: int32
type: integer
Type:
description: The type of payment method.
enum:
- ACH
- ApplePay
- BankTransfer
- Cash
- Check
- CreditCard
- CreditCardReferenceTransaction
- DebitCard
- Other
- PayPal
- WireTransfer
type: string
UseDefaultRetryRule:
description: Determines whether to use the default retry rules configured
in the Zuora Payments settings.
type: boolean
type: object
ProxyGetPaymentMethodTransactionLog:
properties:
Gateway:
description: ''
type: string
GatewayReasonCode:
description: ''
type: string
GatewayReasonCodeDescription:
description: ''
type: string
GatewayTransactionType:
description: ''
type: string
Id:
description: Object identifier.
type: string
PaymentMethodId:
description: ''
type: string
PaymentMethodType:
description: ''
type: string
RequestString:
description: ''
type: string
ResponseString:
description: ''
type: string
TransactionDate:
description: ''
format: date-time
type: string
TransactionId:
description: ''
type: string
type: object
ProxyGetPaymentTransactionLog:
properties:
AVSResponseCode:
description: 'The response code returned by the payment gateway referring
to the AVS international response of the payment transaction.
'
type: string
BatchId:
description: 'The ID of the batch used to send the transaction if the request
was sent in a batch.
'
type: string
CVVResponseCode:
description: 'The response code returned by the payment gateway referring
to the CVV international response of the payment transaction.
'
type: string
Gateway:
description: 'The name of the payment gateway used to transact the current
payment transaction log.
'
type: string
GatewayReasonCode:
description: 'The code returned by the payment gateway for the payment. This
code is gateway-dependent.
'
type: string
GatewayReasonCodeDescription:
description: "The message returned by the payment gateway for the payment.\
\ This message is gateway-dependent. \n"
type: string
GatewayState:
description: 'The state of the transaction at the payment gateway.
'
enum:
- MarkedForSubmission
- Submitted
- Settled
- NotSubmitted
- FailedToSettle
type: string
GatewayTransactionType:
description: "The type of the transaction, either making a payment, or canceling\
\ a payment. \n"
enum:
- Authorization
- Sale
- Void
- Inquiry
- VoidAuth
type: string
Id:
description: 'The ID of the payment transaction log.
'
type: string
PaymentId:
description: "The ID of the payment wherein the payment transaction log was\
\ recorded. \n"
type: string
RequestString:
description: "The payment transaction request string sent to the payment gateway.\
\ \n"
type: string
ResponseString:
description: "The payment transaction response string returned by the payment\
\ gateway. \n"
type: string
TransactionDate:
description: "The transaction date when the payment was performed. \n"
format: date-time
type: string
TransactionId:
description: 'The transaction ID returned by the payment gateway. This field
is used to reconcile payment transactions between the payment gateway and
records in Zuora.
'
type: string
type: object
ProxyGetProduct:
allOf:
- properties:
AllowFeatureChanges:
description: |
Controls whether to allow your users to add or remove features while creating or amending a subscription.
**Values**: true, false (default)
type: boolean
Category:
description: |
Category of the product. Used by Zuora Quotes Guided Product Selector.
**Values**:
- Base Products
- Add On Services
- Miscellaneous Products
maxLength: 100
type: string
CreatedById:
description: 'The automatically generated ID of the Zuora user who created
the `Product` object.
'
maxLength: 32
type: string
CreatedDate:
description: 'The date when the `Product` object was created.
'
format: date-time
type: string
Description:
description: "A description of the product. \n"
maxLength: 500
type: string
EffectiveEndDate:
description: 'The date when the product expires and can''t be subscribed
to anymore, in `yyyy-mm-dd` format.
'
format: date
type: string
EffectiveStartDate:
description: 'The date when the product becomes available and can be subscribed
to, in `yyyy-mm-dd` format.
'
format: date
type: string
Id:
description: Object identifier.
type: string
Name:
description: 'The name of the product. This information is displayed in
the product catalog pages in the web-based UI.
'
maxLength: 100
type: string
SKU:
description: 'The unique SKU for the product.
'
maxLength: 50
type: string
UpdatedById:
description: 'The ID of the last user to update the object.
'
maxLength: 32
type: string
UpdatedDate:
description: 'The date when the object was last updated.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/ProductObjectNSFields'
- $ref: '#/definitions/ProductObjectCustomFields'
ProxyGetProductRatePlan:
allOf:
- properties:
ActiveCurrencies:
description: "A list of 3-letter currency codes representing active currencies\
\ for the product rate plan. \n\nThis field cannot be queried in conjunction\
\ with any other fields except `id` at the same time. \n"
items:
type: string
type: array
CreatedById:
description: 'The automatically generated ID of the Zuora user who created
the `ProductRatePlan` object.
'
maxLength: 32
type: string
CreatedDate:
description: 'The date when the `ProductRatePlan` object was created.
'
format: date-time
maxLength: 29
type: string
Description:
description: 'A description of the product rate plan.
'
maxLength: 500
type: string
EffectiveEndDate:
description: 'The date when the product rate plan expires and can''t be
subscribed to, in `yyyy-mm-dd` format.
'
format: date
maxLength: 29
type: string
EffectiveStartDate:
description: 'The date when the product rate plan becomes available and
can be subscribed to, in `yyyy-mm-dd` format.
'
format: date
maxLength: 29
type: string
Grade:
description: "The grade that is assigned for the product rate plan.\n\n\
**Notes**: \n - To use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to `116` or later. Otherwise, an error occurs.\n - This\
\ field is in the **Early Adopter** phase. We are actively soliciting\
\ feedback from a small set of early adopters before releasing it as generally\
\ available. If you want to join this early adopter program, submit a\
\ request at [Zuora Global Support](http://support.zuora.com/).\n"
type: number
Id:
description: Object identifier.
type: string
Name:
description: 'The name of the product rate plan. The name doesn''t have
to be unique in a Product Catalog, but the name has to be unique within
a product.
'
maxLength: 255
type: string
ProductId:
description: 'The ID of the product that contains the product rate plan.
'
maxLength: 32
type: string
UpdatedById:
description: 'The automatically generated ID of the last user to update
the object.
'
maxLength: 32
type: string
UpdatedDate:
description: 'The date when the object was last updated.
'
format: date-time
maxLength: 29
type: string
type: object
- $ref: '#/definitions/ProductRatePlanObjectNSFields'
- $ref: '#/definitions/ProductRatePlanObjectCustomFields'
ProxyGetProductRatePlanCharge:
allOf:
- properties:
AccountingCode:
description: 'The accounting code for the charge. Accounting codes group
transactions that contain similar accounting attributes.
'
maxLength: 100
type: string
ApplyDiscountTo:
description: 'Specifies the type of charges that you want a specific discount
to apply to. All field values are case sensitive and in all-caps.
'
enum:
- ONETIME (1)
- RECURRING (2)
- USAGE (4)
- ONETIMERECURRING (3)
- ONETIMEUSAGE (5)
- RECURRINGUSAGE (6)
- ONETIMERECURRINGUSAGE (7)
type: string
BillCycleDay:
description: |
Sets the bill cycle day (BCD) for the charge. The BCD determines which day of the month customer is billed. The BCD value in the account can override the BCD in this object.
**Character limit**: 2
**Values**: a valid BCD integer, 1 - 31
format: int32
type: integer
BillCycleType:
description: "Specifies how to determine the billing day for the charge.\
\ \n"
enum:
- DefaultFromCustomer
- SpecificDayofMonth
- SubscriptionStartDay
- ChargeTriggerDay
- SpecificDayofWeek
- TermStartDay
- TermEndDay
type: string
BillingPeriod:
description: 'The billing period for the charge. The start day of the billing
period is also called the bill cycle day (BCD).
'
enum:
- Month
- Quarter
- Annual
- Semi-Annual
- Specific Months
- Subscription Term
- Week
- Specific Weeks
- Specific Days
type: string
BillingPeriodAlignment:
description: 'Aligns charges within the same subscription if multiple charges
begin on different dates.
'
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
- AlignToTermEnd
type: string
BillingTiming:
description: "The billing timing for the charge. You can choose to bill\
\ in advance or in arrears for recurring charge types. This field is not\
\ used in one-time or usage based charge types.\n\nThis feature is in\
\ **Limited Availability**. If you wish to have access to the feature,\
\ submit a request at [Zuora Global Support](http://support.zuora.com/).\
\ \n"
enum:
- In Advance
- In Arrears
type: string
ChargeModel:
description: 'Determines how to calculate charges. Charge models must be
individually activated in Zuora Billing administration.
'
enum:
- Discount-Fixed Amount
- Discount-Percentage
- Flat Fee Pricing
- Per Unit Pricing
- Overage Pricing
- Tiered Pricing
- Tiered with Overage Pricing
- Volume Pricing
- Delivery Pricing
- MultiAttributePricing
- PreratedPerUnit
- PreratedPricing`
- HighWatermarkVolumePricing
- HighWatermarkTieredPricing
type: string
ChargeType:
description: 'Specifies the type of charge.
'
enum:
- OneTime
- Recurring
- Usage
type: string
CreatedById:
description: 'The automatically generated ID of the Zuora user who created
the `ProductRatePlanCharge` object.
'
maxLength: 32
type: string
CreatedDate:
description: 'The date when the `ProductRatePlanCharge` object was created.
'
format: date-time
maxLength: 29
type: string
DefaultQuantity:
description: |
The default quantity of units, such as the number of authors in a hosted wiki service. This field is required if you use a per-unit pricing model.
**Character limit**: 16
**Values**: a valid quantity value.
**Note**: When `ChargeModel` is `Tiered Pricing` or `Volume Pricing`, if this field is not specified, the value will default to `0`.
format: double
type: number
DeferredRevenueAccount:
description: "The name of the deferred revenue account for this charge.\n\
\nThis feature is in **Limited Availability**. If you wish to have access\
\ to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\
\ \n"
maxLength: 100
type: string
Description:
description: 'A description of the charge.
'
maxLength: 500
type: string
DiscountLevel:
description: 'Specifies if the discount applies to just the product rate
plan, the entire subscription, or to any activity in the account.
'
enum:
- rateplan
- subscription
- account
type: string
EndDateCondition:
default: SubscriptionEnd
description: "Defines when the charge ends after the charge trigger date.\n\
\n**Values**: \n - `SubscriptionEnd`: The charge ends on the subscription\
\ end date after a specified period based on the trigger date of the charge.\
\ \n - `FixedPeriod`: The charge ends after a specified period based\
\ on the trigger date of the charge. If you set this field to `FixedPeriod`,\
\ you must specify the length of the period and a period type by defining\
\ the `UpToPeriods` and `UpToPeriodsType` fields. \n\n **Note**: If the\
\ subscription ends before the charge end date, the charge ends when the\
\ subscription ends. But if the subscription end date is subsequently\
\ changed through a Renewal, or Terms and Conditions amendment, the charge\
\ will end on the charge end date.\n"
enum:
- SubscriptionEnd
- FixedPeriod
type: string
ExcludeItemBillingFromRevenueAccounting:
description: "The flag to exclude the related invoice items, invoice item\
\ adjustments, credit memo items, and debit memo items from revenue accounting.\n\
\n**Notes**: \n - To use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to `115` or later. Otherwise, an error occurs.\n - This\
\ field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: boolean
ExcludeItemBookingFromRevenueAccounting:
description: "The flag to exclude the related rate plan charges and order\
\ line items from revenue accounting.\n\n**Notes**: \n - To use this\
\ field, you must set the `X-Zuora-WSDL-Version` request header to `115`\
\ or later. Otherwise, an error occurs.\n - This field is only available\
\ if you have the Billing - Revenue Integration feature enabled. \n"
type: boolean
Id:
description: Object identifier.
type: string
IncludedUnits:
description: |
Specifies the number of units in the base set of units.
**Character limit**: 16
**Values**: a positive decimal value
format: double
type: number
IsAllocationEligible:
description: |
Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `False`.
**Values**: `True`, `False`
**Note**: This field is available only if you have the Additional Revenue Fields property enabled.
type: boolean
IsUnbilled:
description: "Specifies how to perform the accounting during revenue recognition.\
\ The default value is `False`.\n\n**Values**: `True`, `False`\n\n**Note**:\
\ This field is available only if you have the Additional Revenue Fields\
\ property enabled. \n"
type: boolean
LegacyRevenueReporting:
description: ''
type: boolean
ListPriceBase:
description: 'The list price base for the product rate plan charge.
'
enum:
- Per Billing Period
- Per Month
- Per Week
- Per Year
- Per Specific Months
type: string
MaxQuantity:
description: |
Specifies the maximum number of units for this charge. Use this field and the `MinQuantity` field to create a range of units allowed in a product rate plan charge.
**Character limit**: 16
**Values**: a positive decimal value
format: double
type: number
MinQuantity:
description: |
Specifies the minimum number of units for this charge. Use this field and the `MaxQuantity` field to create a range of units allowed in a product rate plan charge.
**Character limit**: 16
**Values**: a positive decimal value
format: double
type: number
Name:
description: 'The name of the product rate plan charge.
'
maxLength: 100
type: string
NumberOfPeriod:
description: 'Specifies the number of periods to use when calculating charges
in an overage smoothing charge model. The valid value is a positive whole
number.
'
format: int64
type: integer
OverageCalculationOption:
description: "Determines when to calculate overage charges. If the value\
\ of the SmoothingMode field is not specified, the value of this field\
\ is ignored.\n\n**Values**: \n - `EndOfSmoothingPeriod`: This option\
\ is used by default. The overage is charged at the end of the smoothing\
\ period.\n - `PerBillingPeriod`: The overage is charged on-demand rather\
\ than waiting until the end of the smoothing period.\n"
enum:
- EndOfSmoothingPeriod
- PerBillingPeriod
type: string
OverageUnusedUnitsCreditOption:
description: 'Determines whether to credit the customer with unused units
of usage.
'
enum:
- NoCredit
- CreditBySpecificRate
type: string
PriceChangeOption:
default: NoChange
description: 'Applies an automatic price change when a termed subscription
is renewed.
'
enum:
- NoChange
- SpecificPercentageValue
- UseLatestProductCatalogPricing
type: string
PriceIncreasePercentage:
description: |
Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the value to `SpecificPercentageValue`.
**Character limit**: 16
**Values**: a decimal value between -100 and 100
format: double
type: number
ProductCategory:
description: "This field is used to maintain the product category for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
ProductClass:
description: "This field is used to maintain the product class for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
ProductFamily:
description: "This field is used to maintain the product family for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled.\n"
type: string
ProductLine:
description: |
This field is used to maintain the product line for integration with Zuora Revenue.
**Note**: This field is available only if you have the Additional Revenue Fields property enabled.
type: string
ProductRatePlanId:
description: 'The ID of the product rate plan associated with this product
rate plan charge.
'
maxLength: 32
type: string
RatingGroup:
description: "A rating group based on which usage records are rated. Only\
\ applicable to Usage charges.\n\nPossible values:\n - `ByBillingPeriod`:\
\ The rating is based on all the usages in a billing period.\n - `ByUsageStartDate`:\
\ The rating is based on all the usages on the same usage start date.\
\ \n - `ByUsageRecord`: The rating is based on each usage record.\n \
\ - `ByUsageUpload`: The rating is based on all the usages in a uploaded\
\ usage file (`.xls` or `.csv`).\n - `ByGroupId`: The rating is based\
\ on all the usages in a custom group.\n\nFor more information, see [Usage\
\ rating by group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group).\n"
enum:
- ByBillingPeriod
- ByUsageStartDate
- ByUsageRecord
- ByUsageUpload
- ByGroupId
type: string
RecognizedRevenueAccount:
description: "The name of the recognized revenue account for this charge.\n\
\ - Required when the Allow Blank Accounting Code setting is No.\n -\
\ Optional when the Allow Blank Accounting Code setting is Yes.\n\nThis\
\ feature is in **Limited Availability**. If you wish to have access to\
\ the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\
\ \n"
maxLength: 100
type: string
RevRecCode:
description: 'Associates this product rate plan charge with a specific revenue
recognition code.
'
maxLength: 70
type: string
RevRecTriggerCondition:
description: 'Specifies when revenue recognition begins.
'
enum:
- ContractEffectiveDate
- ServiceActivationDate
- CustomerAcceptanceDate
type: string
RevenueRecognitionRuleName:
description: 'Determines when to recognize the revenue for this charge.
'
enum:
- Recognize upon invoicing
- Recognize daily over time
type: string
SmoothingModel:
description: 'Specifies the smoothing model for an overage smoothing charge
model.
'
enum:
- RollingWindow
- Rollover
type: string
SpecificBillingPeriod:
description: |
Customizes the number of months or weeks for the charges billing period. This field is required if you set the value of the BillingPeriod field to `Specific Months` or `Specific Weeks`.
The valid value is a positive integer.
format: int64
type: integer
SpecificListPriceBase:
description: "The number of months for the list price base of the charge.\
\ The value of this field is `null` if you do not set the value of the\
\ `ListPriceBase` field to `Per Specific Months`.\n\n**Notes**: \n -\
\ This field is available only if you have the Annual List Price feature enabled.\n - To use\
\ this field, you must set the `X-Zuora-WSDL-Version` request header to\
\ `129` or later. Otherwise, an error occurs.\n - The value of this field\
\ is `null` if you do not set the value of the `ListPriceBase` field to\
\ `Per Specific Months`.\n"
TaxCode:
description: |
Specifies the tax code for taxation rules. Required when the Taxable field is set to `True`.
**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.
maxLength: 64
type: string
TaxMode:
description: |
Determines how to define taxation for the charge. Required when the Taxable field is set to `True`.
**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.
enum:
- TaxExclusive
- TaxInclusive
type: string
Taxable:
description: |
Determines whether the charge is taxable. When set to `True`, the TaxMode and TaxCode fields are required when creating or updating th ProductRatePlanCharge object.
**Character limit**: 5
**Values**: `True`, `False`
**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.
type: boolean
TriggerEvent:
description: |
Specifies when to start billing the customer for the charge.
**Values**:
- `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.
- `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.
- `CustomerAcceptance` is when the customer accepts the services or products for a subscription.
enum:
- ContractEffective
- ServiceActivation
- CustomerAcceptance
type: string
UOM:
description: "Specifies the units to measure usage. \n\n**Note**: You must\
\ specify this field when creating the following charge models:\n - Per\
\ Unit Pricing\n - Volume Pricin\n - Overage Pricing\n - Tiered Pricing\n\
\ - Tiered with Overage Pricing\n"
maxLength: 25
type: string
UpToPeriods:
description: "Specifies the length of the period during which the charge\
\ is active. If this period ends before the subscription ends, the charge\
\ ends when this period ends.\n\n**Character limit**: 5\n\n**Values**:\
\ a whole number between 0 and 65535, exclusive\n\n**Notes**:\n - You\
\ must use this field together with the `UpToPeriodsType` field to specify\
\ the time period. This field is applicable only when the `EndDateCondition`\
\ field is set to `FixedPeriod`. \n - If the subscription end date is\
\ subsequently changed through a Renewal, or Terms and Conditions amendment,\
\ the charge end date will change accordingly up to the original period\
\ end.\n"
format: int64
type: integer
UpToPeriodsType:
default: Billing Periods
description: "The period type used to define when the charge ends.\n\n**Notes**:\
\ \n - You must use this field together with the `UpToPeriods` field to\
\ specify the time period.\n - This field is applicable only when the\
\ `EndDateCondition` field is set to `FixedPeriod`. \n"
enum:
- Billing Periods
- Days
- Weeks
- Months
- Years
type: string
UpdatedById:
description: 'The ID of the last user to update the object.
'
maxLength: 32
type: string
UpdatedDate:
description: 'The date when the object was last updated.
'
format: date-time
maxLength: 29
type: string
UseDiscountSpecificAccountingCode:
description: |
Determines whether to define a new accounting code for the new discount charge.
**Character limit**: 5
**Values**: `True`, `False`
type: boolean
UseTenantDefaultForPriceChange:
description: "Applies the tenant-level percentage uplift value for an automatic\
\ price change to a termed subscription's renewal. \n\n**Character limit**:\
\ 5\n\n**Values**: `true`, `false`\n"
type: boolean
WeeklyBillCycleDay:
description: "Specifies which day of the week as the bill cycle day (BCD)\
\ for the charge.\n\nThis feature is in **Limited Availability**. If you\
\ wish to have access to the feature, submit a request at [Zuora Global\
\ Support](http://support.zuora.com/). \n"
enum:
- Sunday
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
type: string
applyToBillingPeriodPartially:
description: |
Allow the discount duration to be aligned with the billing period partially.
**Note**: You must enable the [Enhanced Discount](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.
type: boolean
type: object
- $ref: '#/definitions/ProductRatePlanChargeObjectNSFields'
- $ref: '#/definitions/ProductRatePlanChargeObjectCustomFields'
ProxyGetProductRatePlanChargeTier:
properties:
CreatedById:
description: 'The ID of the Zuora user who created the ProductRatePlanChargeTier
object.
'
maxLength: 32
type: string
CreatedDate:
description: 'The date when the ProductRatePlanChargeTier object was created.
'
format: date-time
maxLength: 29
type: string
Currency:
description: 'The valid code corresponding to the currency for the tier''s
price.
'
maxLength: 3
type: string
EndingUnit:
description: |
The end number of a range of units for the tier.
**Character limit**: 16
**Values**: any positive decimal value
format: double
type: number
Id:
description: Object identifier.
type: string
Price:
description: |
The price of the tier if the charge is a flat fee, or the price of each unit in the tier if the charge model is tiered pricing.
**Character limit**: 16
**Values**: a valid currency value
format: double
type: number
PriceFormat:
description: |
Indicates if pricing is a flat fee or is per unit. This field is for tiered and volume pricing models only.
**Values**: `FlatFee`, `PerUnit`
**Note:** The values `Flat Fee` and `Per Unit` (with spaces) is valid for create or update calls.
maxLength: 8
type: string
StartingUnit:
description: |
The starting number of a range of units for the tier.
**Character limit**: 16
**Values**: any positive decimal value
format: double
type: number
Tier:
description: |
A unique number that identifies the tier that the price applies to.
**Character limit**: 20
**Values**: automatically generated
format: int32
type: integer
UpdatedById:
description: 'The ID of the user who last updated the product rate plan charge
tier.
'
maxLength: 32
type: string
UpdatedDate:
description: 'The date when the product rate plan charge tier was last updated.
'
format: date-time
maxLength: 29
type: string
type: object
ProxyGetUsage:
allOf:
- properties:
AccountId:
description: " The ID of the account associated with the usage data. This\
\ field is required if no value is specified for the `AccountNumber` field.\n\
**Character limit**: 32 **Values**: a valid account ID "
type: string
AccountNumber:
description: " The number of the account associated with the usage data.\
\ This field is required if no value is specified for the `AccountId`\
\ field.\n**Character limit**: 50 **Values**: a valid account number "
type: string
ChargeId:
description: ' The OrginalId of the rate plan charge related to the usage
record, e.g., `2c9081a03c63c94c013c6873357a0117` **Character limit**:
32 **Values**: a valid rate plan charge OriginalID '
type: string
CreatedById:
description: " The user ID of the person who uploaded the usage records.\n\
**Character limit**: 32 **Values**: automatically generated "
type: string
CreatedDate:
description: " The date when the usage was generated.\n**Character limit**:\
\ 29 **Values**: automatically generated "
format: date-time
type: string
Description:
description: 'A description of the usage record.
'
type: string
EndDateTime:
description: " The end date and time of a range of time when usage is tracked.\
\ Use this field for reporting; this field doesn't affect usage calculation.\n\
**Character limit**: 29 **Values**: a valid date and time value "
format: date-time
type: string
Id:
description: Object identifier.
type: string
Quantity:
description: " Indicates the number of units used.\n**Character limit**:\
\ 16 **Values**: a valid decimal amount equal to or greater than 0 "
format: double
type: number
RbeStatus:
description: " Indicates if the rating and billing engine (RBE) processed\
\ usage data for an invoice.\n**Character limit**: 9 **Values**: automatically\
\ generated to be one of the following values: `Importing`, `Pending`,\
\ `Processed` "
type: string
SourceType:
description: " Indicates if the usage records were imported from the web-based\
\ UI or the API.\n**Character limit**: 6 **Values**: automatically generated\
\ to be one of the following values: `API`, `Import` "
type: string
StartDateTime:
description: " The start date and time of a range of time when usage is\
\ tracked. Zuora uses this field value to determine the usage date. Unlike\
\ the `EndDateTime`, the `StartDateTime` field does affect usage calculation.\n\
**Character limit**: 29 **Values**: a valid date and time value "
format: date-time
type: string
SubscriptionId:
description: " The original ID of the subscription that contains the fees\
\ related to the usage data.\n**Character limit**: 32 **Values**: a valid\
\ subscription ID "
type: string
SubscriptionNumber:
description: 'The unique identifier number of the subscription that contains
the fees related to the usage data.
'
type: string
UOM:
description: " Specifies the units to measure usage. Units of measure are\
\ configured in the web-based UI. Your values depend on your configuration\
\ in **Billing Settings**.\n**Character limit**: **Values**: a valid unit\
\ of measure "
type: string
UpdatedById:
description: " The ID of the user who last updated the usage upload.\n**Character\
\ limit**: 32 **Values**: automatically generated "
type: string
UpdatedDate:
description: " The date when the usage upload was last updated.\n**Character\
\ limit**: 29 **Values**: automatically generated "
format: date-time
type: string
type: object
- $ref: '#/definitions/UsageObjectCustomFields'
ProxyModifyProduct:
allOf:
- properties:
AllowFeatureChanges:
description: |
Controls whether to allow your users to add or remove features while creating or amending a subscription.
**Values**: true, false (default)
type: boolean
Category:
description: |
Category of the product. Used by Zuora Quotes Guided Product Selector.
**Values**:
- Base Products
- Add On Services
- Miscellaneous Products
maxLength: 100
type: string
Description:
description: "A description of the product. \n"
maxLength: 500
type: string
EffectiveEndDate:
description: 'The date when the product expires and can''t be subscribed
to anymore, in `yyyy-mm-dd` format.
'
format: date
type: string
EffectiveStartDate:
description: 'The date when the product becomes available and can be subscribed
to, in `yyyy-mm-dd` format.
'
format: date
type: string
Name:
description: 'The name of the product. This information is displayed in
the product catalog pages in the web-based UI.
'
maxLength: 100
type: string
ProductNumber:
description: "The natural key of the product. \n\nFor existing Product objects\
\ that are created before this field is introduced, this field will be\
\ null. Use this field to specify a value for only these objects. Zuora\
\ also provides a tool to help you automatically backfill this field with\
\ tenant ID for your existing product catalog. If you want to use this\
\ backfill tool, contact [Zuora Global Support](https://support.zuora.com/).\n\
\n**Note**: This field is only available if you set the `X-Zuora-WSDL-Version`\
\ request header to `133` or later.\n"
maxLength: 100
type: string
SKU:
description: 'The unique SKU for the product.
'
maxLength: 50
type: string
type: object
- $ref: '#/definitions/ProductObjectNSFields'
- $ref: '#/definitions/ProductObjectCustomFields'
example:
Description: Create product via API_new
EffectiveEndDate: '2066-10-20'
EffectiveStartDate: '1966-10-20'
Id: 2c93808457d787030157e02e7be22210
Name: P_1476934925293_new
SKU: API-SKU1476934925293
ProxyModifyProductRatePlan:
allOf:
- properties:
ActiveCurrencies:
description: |
A list of 3-letter currency codes representing active currencies for the product rate plan. Use a comma to separate each currency code.
If the request body contains this field, the value of this field must contain the desired list of active currencies. The new list can never have more than four differences from the existing list.
This field cannot be used to modify the status of more than four currencies in a single request. For example, in a single request, you can only activate four currencies, or deactivate four currencies, or activate two and deactivate two. Making more than four changes to currencies always requires more than one call.
When specifying this field in the update request, you must provide the full list of active currencies you want, not just incremental changes. For each active currency update, provide the following currencies in the list:
Current active currencies + at most four changes (additions or deletions)
items:
type: string
type: array
Description:
description: 'A description of the product rate plan.
'
maxLength: 500
type: string
EffectiveEndDate:
description: 'The date when the product rate plan expires and can''t be
subscribed to, in `yyyy-mm-dd` format.
'
format: date
maxLength: 29
type: string
EffectiveStartDate:
description: 'The date when the product rate plan becomes available and
can be subscribed to, in `yyyy-mm-dd` format.
'
format: date
maxLength: 29
type: string
Grade:
description: "The grade that is assigned for the product rate plan. The\
\ value of this field must be a positive integer. The greater the value,\
\ the higher the grade.\n\nA product rate plan to be added to a Grading\
\ catalog group must have one grade. You can specify a grade for a product\
\ rate plan in this request or update the product rate plan individually.\n\
\n**Notes**: \n - To use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to `116` or later. Otherwise, an error occurs.\n - This\
\ field is in the **Early Adopter** phase. We are actively soliciting\
\ feedback from a small set of early adopters before releasing it as generally\
\ available. If you want to join this early adopter program, submit a\
\ request at [Zuora Global Support](http://support.zuora.com/).\n"
type: number
Name:
description: 'The name of the product rate plan. The name doesn''t have
to be unique in a Product Catalog, but the name has to be unique within
a product.
'
maxLength: 255
type: string
ProductId:
description: 'The ID of the product that contains the product rate plan.
'
maxLength: 32
type: string
ProductRatePlanNumber:
description: "The natural key of the product rate plan. \n\nFor existing\
\ Product Rate Plan objects that are created before this field is introduced,\
\ this field will be null. Use this field to specify a value for only\
\ these objects. Zuora also provides a tool to help you automatically\
\ backfill this field with tenant ID for your existing product catalog.\
\ If you want to use this backfill tool, contact [Zuora Global Support](https://support.zuora.com/).\n\
\n**Note**: This field is only available if you set the `X-Zuora-WSDL-Version`\
\ request header to `133` or later.\n"
maxLength: 100
type: string
type: object
- $ref: '#/definitions/ProductRatePlanObjectNSFields'
- $ref: '#/definitions/ProductRatePlanObjectCustomFields'
example:
Id: 2c93808457d787030157e02da0d91852
Name: ProductRatePlan1476934869186_new
ProxyModifyProductRatePlanCharge:
allOf:
- properties:
AccountingCode:
description: 'The accounting code for the charge. Accounting codes group
transactions that contain similar accounting attributes.
'
maxLength: 100
type: string
ApplyDiscountTo:
description: 'Specifies the type of charges that you want a specific discount
to apply to. All field values are case sensitive and in all-caps.
'
enum:
- ONETIME (1)
- RECURRING (2)
- USAGE (4)
- ONETIMERECURRING (3)
- ONETIMEUSAGE (5)
- RECURRINGUSAGE (6)
- ONETIMERECURRINGUSAGE (7)
type: string
BillCycleDay:
description: |
Sets the bill cycle day (BCD) for the charge. The BCD determines which day of the month customer is billed. The BCD value in the account can override the BCD in this object.
**Character limit**: 2
**Values**: a valid BCD integer, 1 - 31
format: int32
type: integer
BillCycleType:
description: "Specifies how to determine the billing day for the charge.\n\
\n**Notes**:\n - If you set this field to `SpecificDayofMonth`, you must\
\ specify which day of the month as the billing day for the charge in\
\ the BillCycleDay field. \n - If you set this field to `SpecificDayofWeek`,\
\ you must specify which day of the week as the billing day for the charge\
\ in the WeeklyBillCycleDay field. \n - By default, `TermStartDay` and\
\ `TermEndDay` are only available for prepayment charges. But you can\
\ reach out to Zuora Global Support to request enabling it for non-prepaid\
\ recurring charges. Meanwhile, note the following rules applies to these\
\ options:\n - The Term End Day option of the Billing Day field must\
\ be coupled with the Align to Term End option of the Billing Period Alignment\
\ field.\n - For prepaid charges, the Term Start Day option of the\
\ Billing Day field must be coupled with the existing Align to Term Start\
\ option of the Billing Period Alignment field.\n - For non-prepaid\
\ recurring charges: If Billing Day is set to Term Start Day, Billing\
\ Period Alignment must be Align to Term Start; If Billing Day is set\
\ to Term End Day, Billing Period Alignment can be set to other values.\n"
enum:
- DefaultFromCustomer
- SpecificDayofMonth
- SubscriptionStartDay
- ChargeTriggerDay
- SpecificDayofWeek
- TermStartDay
- TermEndDay
type: string
BillingPeriod:
description: |
The billing period for the charge. The start day of the billing period is also called the bill cycle day (BCD).
**Notes**:
- Specify the number of months or weeks in the SpecificBillingPeriod field if you set this field to `Specific Months` or `Specific Weeks`.
- The `Subscription Term` value is in **Limited Availability**.
enum:
- Month
- Quarter
- Annual
- Semi-Annual
- Specific Months
- Subscription Term
- Week
- Specific Weeks
- Specific Days
type: string
BillingPeriodAlignment:
description: |
Aligns charges within the same subscription if multiple charges begin on different dates.
**Note:** The `AlignToTermEnd` value is only available for prepayment charges by default. Reach out to Zuora Global Support to enable it for non-prepaid recurring charges.
enum:
- AlignToCharge
- AlignToSubscriptionStart
- AlignToTermStart
- AlignToTermEnd
type: string
BillingTiming:
description: "The billing timing for the charge. You can choose to bill\
\ in advance or in arrears for recurring charge types. This field is not\
\ used in one-time or usage based charge types.\n\nThis feature is in\
\ **Limited Availability**. If you wish to have access to the feature,\
\ submit a request at [Zuora Global Support](http://support.zuora.com/).\
\ \n"
enum:
- In Advance
- In Arrears
type: string
ChargeModel:
description: "Determines how to calculate charges. Charge models must be\
\ individually activated in Zuora Billing administration.\n\n**Notes:**\n\
\ - The `Delivery Pricing` value is available only if you have the Delivery\
\ Pricing charge model enabled.\n - The `MultiAttributePricing` value\
\ is available only if you have the Multi-Attribute Pricing charge model\
\ enabled. The charge model is available for customers with Enterprise\
\ and Nine editions by default. If you are a Growth customer, see [Zuora\
\ Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information. \n - The `PreratedPerUnit` and value\
\ is available only if you have the Pre-rated Per Unit Pricing charge\
\ model enabled. The charge model is available for customers with Enterprise\
\ and Nine editions by default. If you are a Growth customer, see [Zuora\
\ Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information. \n - The `PreratedPricing` value is\
\ available only if you have the Pre-rated Pricing charge model enabled.\
\ The charge model is available for customers with Enterprise and Nine\
\ editions by default. If you are a Growth customer, see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information. \n - The `HighWatermarkVolumePricing`value\
\ is available only if you have the High Water Mark Volume Pricing charge\
\ model enabled. The charge model is available for customers with Enterprise\
\ and Nine editions by default. If you are a Growth customer, see [Zuora\
\ Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information. \n - The `HighWatermarkTieredPricing`\
\ value is available only if you have the High Water Mark Tiered Pricing\
\ charge model enabled. The charge model is available for customers with\
\ Enterprise and Nine editions by default. If you are a Growth customer,\
\ see [Zuora Editions](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions)\
\ for pricing information.\n"
enum:
- Discount-Fixed Amount
- Discount-Percentage
- Flat Fee Pricing
- Per Unit Pricing
- Overage Pricing
- Tiered Pricing
- Tiered with Overage Pricing
- Volume Pricing
- Delivery Pricing
- MultiAttributePricing
- PreratedPerUnit
- PreratedPricing`
- HighWatermarkVolumePricing
- HighWatermarkTieredPricing
type: string
ChargeModelConfiguration:
$ref: '#/definitions/ProxyCreateOrModifyProductRatePlanChargeChargeModelConfiguration'
CreditOption:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to 114 or higher. Otherwise, an error occurs. \n\nThe\
\ way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option)\
\ for more information. \n"
enum:
- TimeBased
- ConsumptionBased
- FullCreditBack
type: string
DefaultQuantity:
description: "The default quantity of units, such as the number of authors\
\ in a hosted wiki service. This field is required if you use a per-unit\
\ pricing model. \n\n**Character limit**: 16\n\n**Values**: a valid quantity\
\ value. \n\n**Note:** When the `ChargeModel` field is set to `Tiered\
\ Pricing` or `Volume Pricing`, if this field is not specified, the value\
\ will default to `0`.\n"
format: double
type: number
DeferredRevenueAccount:
description: "The name of the deferred revenue account for this charge.\n\
\nThis feature is in **Limited Availability**. If you wish to have access\
\ to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\
\ \n"
maxLength: 100
type: string
DeliverySchedule:
$ref: '#/definitions/ProxyCreateOrModifyDeliverySchedule'
Description:
description: 'A description of the charge.
'
maxLength: 500
type: string
DiscountLevel:
description: 'Specifies if the discount applies to just the product rate
plan, the entire subscription, or to any activity in the account.
'
enum:
- rateplan
- subscription
- account
type: string
DrawdownRate:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.
The [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). See [Fields related to Prepaid with Drawdown](https://knowledgecenter.zuora.com/Central_Platform/API/G_SOAP_API/E1_SOAP_API_Object_Reference/ProductRatePlanCharge#Fields_related_to_Prepaid_with_Drawdown) for more information.
type: number
DrawdownUom:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to 114 or higher. Otherwise, an error occurs. \n\nUnit\
\ of measurement for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge).\
\ \n"
type: string
EndDateCondition:
default: SubscriptionEnd
description: "Defines when the charge ends after the charge trigger date.\n\
\n**Values**:\n - `SubscriptionEnd`: The charge ends on the subscription\
\ end date after a specified period based on the trigger date of the charge.\
\ \n - `FixedPeriod`: The charge ends after a specified period based\
\ on the trigger date of the charge. If you set this field to `FixedPeriod`,\
\ you must specify the length of the period and a period type by defining\
\ the `UpToPeriods` and `UpToPeriodsType` fields. \n\n **Note**: If the\
\ subscription ends before the charge end date, the charge ends when the\
\ subscription ends. But if the subscription end date is subsequently\
\ changed through a Renewal, or Terms and Conditions amendment, the charge\
\ will end on the charge end date.\n"
enum:
- SubscriptionEnd
- FixedPeriod
type: string
ExcludeItemBillingFromRevenueAccounting:
default: false
description: "The flag to exclude the related invoice items, invoice item\
\ adjustments, credit memo items, and debit memo items from revenue accounting.\n\
\n**Notes**: \n - To use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to `115` or later. Otherwise, an error occurs.\n - This\
\ field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: boolean
ExcludeItemBookingFromRevenueAccounting:
default: false
description: "The flag to exclude the related rate plan charges and order\
\ line items from revenue accounting.\n\n**Notes**: \n - To use this\
\ field, you must set the `X-Zuora-WSDL-Version` request header to `115`\
\ or later. Otherwise, an error occurs.\n - This field is only available\
\ if you have the Billing - Revenue Integration feature enabled. \n"
type: boolean
IncludedUnits:
description: |
Specifies the number of units in the base set of units.
**Character limit**: 16
**Values**: a positive decimal value
format: double
type: number
IsAllocationEligible:
description: |
Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `False`.
**Values**: `True`, `False`
**Note**: This field is available only if you have the Additional Revenue Fields property enabled.
type: boolean
IsPrepaid:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to 114 or higher. Otherwise, an error occurs. \n\nIndicates\
\ whether this charge is a prepayment (topup) charge or a drawdown charge.\
\ \n\n**Values**: `true` or `false`.\n"
type: boolean
IsRollover:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.
The value is either "True" or "False". It determines whether the rollover fields are needed.
type: boolean
IsStackedDiscount:
description: "**Note**: This field is only applicable to the Discount -\
\ Percentage charge model.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to 130 or higher. Otherwise, an error occurs.\n\nThis\
\ field indicates whether the discount is to be calculated as stacked\
\ discount. Possible values are as follows:\n - `True`: This is a stacked\
\ discount, which should be calculated by stacking with other discounts.\n\
\ - `False`: This is not a stacked discount, which should be calculated\
\ in sequence with other discounts.\n\nFor more information, see [Stacked\
\ discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).\
\ \n"
type: boolean
IsUnbilled:
description: "Specifies how to perform the accounting during revenue recognition.\
\ The default value is `False`.\n\n**Values**: `True`, `False`\n\n**Note**:\
\ This field is available only if you have the Additional Revenue Fields\
\ property enabled. \n"
type: boolean
LegacyRevenueReporting:
description: ''
type: boolean
ListPriceBase:
description: 'The list price base for the product rate plan charge.
'
enum:
- Per Billing Period
- Per Month
- Per Week
- Per Year
- Per Specific Months
type: string
MaxQuantity:
description: |
Specifies the maximum number of units for this charge. Use this field and the `MinQuantity` field to create a range of units allowed in a product rate plan charge.
**Character limit**: 16
**Values**: a positive decimal value
format: double
type: number
MinQuantity:
description: |
Specifies the minimum number of units for this charge. Use this field and the `MaxQuantity` field to create a range of units allowed in a product rate plan charge.
**Character limit**: 16
**Values**: a positive decimal value
format: double
type: number
Name:
description: 'The name of the product rate plan charge.
'
maxLength: 100
type: string
NumberOfPeriod:
description: 'Specifies the number of periods to use when calculating charges
in an overage smoothing charge model. The valid value must be a positive
whole number.
'
format: int64
type: integer
OverageCalculationOption:
description: "Determines when to calculate overage charges. If the value\
\ of the SmoothingMode field is not specified, the value of this field\
\ is ignored.\n\n**Values**: \n - `EndOfSmoothingPeriod`: This option\
\ is used by default. The overage is charged at the end of the smoothing\
\ period.\n - `PerBillingPeriod`: The overage is charged on-demand rather\
\ than waiting until the end of the smoothing period.\n"
enum:
- EndOfSmoothingPeriod
- PerBillingPeriod
type: string
OverageUnusedUnitsCreditOption:
description: 'Determines whether to credit the customer with unused units
of usage.
'
enum:
- NoCredit
- CreditBySpecificRate
type: string
PrepaidQuantity:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to 114 or higher. Otherwise, an error occurs. \n\nThe\
\ number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\
\ Must be a positive number.\n"
type: number
PrepaidUom:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.
Unit of measurement for a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).
type: string
PriceChangeOption:
default: NoChange
description: 'Applies an automatic price change when a termed subscription
is renewed.
'
enum:
- NoChange
- SpecificPercentageValue
- UseLatestProductCatalogPricing
type: string
PriceIncreaseOption:
description: 'Applies an automatic price change when a termed subscription
is renewed.
'
enum:
- FromTenantPercentageValue
- SpecificPercentageValue
type: string
PriceIncreasePercentage:
description: |
Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the value to `SpecificPercentageValue`.
**Character limit**: 16
**Values**: a decimal value between -100 and 100
format: double
type: number
ProductCategory:
description: "This field is used to maintain the product category for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
ProductClass:
description: "This field is used to maintain the product class for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \n"
type: string
ProductFamily:
description: "This field is used to maintain the product family for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled.\n"
type: string
ProductLine:
description: "This field is used to maintain the product line for integration\
\ with Zuora Revenue. \n\n**Note**: This field is available only if you\
\ have the Additional Revenue Fields property enabled. \
\ \n"
type: string
ProductRatePlanChargeNumber:
description: "The natural key of the product rate plan charge. \n\nFor existing\
\ Product Rate Plan Charge objects that are created before this field\
\ is introduced, this field will be null. Use this field to specify a\
\ value for only these objects. Zuora also provides a tool to help you\
\ automatically backfill this field with tenant ID for your existing product\
\ catalog. If you want to use this backfill tool, contact [Zuora Global\
\ Support](https://support.zuora.com/).\n\n**Note**: This field is only\
\ available if you set the `X-Zuora-WSDL-Version` request header to `133`\
\ or later.\n"
maxLength: 100
type: string
ProductRatePlanChargeTierData:
$ref: '#/definitions/ProxyCreateOrModifyProductRatePlanChargeTierData'
ProductRatePlanId:
description: 'The ID of the product rate plan associated with this product
rate plan charge.
'
maxLength: 32
type: string
RatingGroup:
default: ByBillingPeriod
description: "Specifies a rating group based on which usage records are\
\ rated.\n\nPossible values:\n - `ByBillingPeriod`: The rating is based\
\ on all the usages in a billing period. \n - `ByUsageStartDate`: The\
\ rating is based on all the usages on the same usage start date. \n \
\ - `ByUsageRecord`: The rating is based on each usage record.\n - `ByUsageUpload`:\
\ The rating is based on all the usages in a uploaded usage file (`.xls`\
\ or `.csv`).\n - `ByGroupId`: The rating is based on all the usages\
\ in a custom group.\n\n**Note:** \n - The `ByBillingPeriod` value can\
\ be applied for all charge models. \n - The `ByUsageStartDate`, `ByUsageRecord`,\
\ and `ByUsageUpload` values can only be applied for per unit, volume\
\ pricing, and tiered pricing charge models. \n - The `ByGroupId` value\
\ is only available if you have the Active Rating feature enabled.\n \
\ - Use this field only for Usage charges. One-Time Charges and Recurring\
\ Charges return `NULL`.\n"
enum:
- ByBillingPeriod
- ByUsageStartDate
- ByUsageRecord
- ByUsageUpload
- ByGroupId
type: string
RecognizedRevenueAccount:
description: "The name of the recognized revenue account for this charge.\n\
\ - Required when the Allow Blank Accounting Code setting is No.\n -\
\ Optional when the Allow Blank Accounting Code setting is Yes.\n\n This\
\ feature is in **Limited Availability**. If you wish to have access to\
\ the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\
\ \n"
maxLength: 100
type: string
RevRecCode:
description: 'Associates this product rate plan charge with a specific revenue
recognition code.
'
maxLength: 70
type: string
RevRecTriggerCondition:
description: 'Specifies when revenue recognition begins.
'
enum:
- ContractEffectiveDate
- ServiceActivationDate
- CustomerAcceptanceDate
type: string
RevenueRecognitionRuleName:
description: 'Determines when to recognize the revenue for this charge.
'
enum:
- Recognize upon invoicing
- Recognize daily over time
type: string
RolloverApply:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.
This field defines the priority of rollover, which is either first or last.
enum:
- ApplyFirst
- ApplyLast
type: string
RolloverPeriods:
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.
This field defines the number of rollover periods, it is restricted to 3.
type: number
SmoothingModel:
description: 'Specifies the smoothing model for an overage smoothing charge
model.
'
enum:
- RollingWindow
- Rollover
type: string
SpecificBillingPeriod:
description: |
Customizes the number of months or weeks for the charges billing period. This field is required if you set the value of the BillingPeriod field to `Specific Months` or `Specific Weeks`.
The valid value is a positive integer.
format: int64
type: integer
SpecificListPriceBase:
description: "The number of months for the list price base of the charge.\
\ This field is required if you set the value of the `ListPriceBase` field\
\ to `Per Specific Months`.\n\n**Notes**: \n - This field is available\
\ only if you have the Annual List Price feature enabled.\n - To use\
\ this field, you must set the `X-Zuora-WSDL-Version` request header to\
\ `129` or later. Otherwise, an error occurs.\n - The value of this field\
\ is `null` if you do not set the value of the `ListPriceBase` field to\
\ `Per Specific Months`.\n"
format: int32
maximum: 200
minimum: 1
type: integer
TaxCode:
description: |
Specifies the tax code for taxation rules. Required when the Taxable field is set to `True`.
**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.
maxLength: 64
type: string
TaxMode:
description: |
Determines how to define taxation for the charge. Required when the Taxable field is set to `True`.
**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.
enum:
- TaxExclusive
- TaxInclusive
type: string
Taxable:
description: |
Determines whether the charge is taxable. When set to `True`, the TaxMode and TaxCode fields are required when creating or updating th ProductRatePlanCharge object.
**Character limit**: 5
**Values**: `True`, `False`
**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.
type: boolean
TriggerEvent:
description: |
Specifies when to start billing the customer for the charge.
**Values**:
- `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.
- `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.
- `CustomerAcceptance` is when the customer accepts the services or products for a subscription.
enum:
- ContractEffective
- ServiceActivation
- CustomerAcceptance
type: string
UOM:
description: "Specifies the units to measure usage. \n\n**Note**: You must\
\ specify this field when creating the following charge models:\n - Per\
\ Unit Pricing\n - Volume Pricing\n - Overage Pricing\n - Tiered Pricing\n\
\ - Tiered with Overage Pricing\n"
maxLength: 25
type: string
UpToPeriods:
description: "Specifies the length of the period during which the charge\
\ is active. If this period ends before the subscription ends, the charge\
\ ends when this period ends.\n\n**Character limit**: 5\n\n**Values**:\
\ a whole number between 0 and 65535, exclusive\n\n**Notes**:\n - You\
\ must use this field together with the `UpToPeriodsType` field to specify\
\ the time period. This field is applicable only when the `EndDateCondition`\
\ field is set to `FixedPeriod`. \n - If the subscription end date is\
\ subsequently changed through a Renewal, or Terms and Conditions amendment,\
\ the charge end date will change accordingly up to the original period\
\ end.\n"
format: int64
type: integer
UpToPeriodsType:
default: Billing Periods
description: "The period type used to define when the charge ends.\n\n**Notes**:\
\ \n - You must use this field together with the `UpToPeriods` field to\
\ specify the time period.\n - This field is applicable only when the\
\ `EndDateCondition` field is set to `FixedPeriod`. \n"
enum:
- Billing Periods
- Days
- Weeks
- Months
- Years
type: string
UsageRecordRatingOption:
default: EndOfBillingPeriod
description: "Determines how Zuora processes usage records for per-unit\
\ usage charges. \n"
enum:
- EndOfBillingPeriod
- OnDemand
type: string
UseDiscountSpecificAccountingCode:
description: |
Determines whether to define a new accounting code for the new discount charge.
**Character limit**: 5
**Values**: `True`, `False`
type: boolean
UseTenantDefaultForPriceChange:
description: "Applies the tenant-level percentage uplift value for an automatic\
\ price change to a termed subscription's renewal. \n\n**Character limit**:\
\ 5\n\n**Values**: `true`, `false`\n"
type: boolean
ValidityPeriodType:
description: "**Note**: This field is only available if you have the [Prepaid\
\ with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\
\ feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version`\
\ request header to 114 or higher. Otherwise, an error occurs. \n\nThe\
\ period in which the prepayment units are valid to use as defined in\
\ a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"
enum:
- SUBSCRIPTION_TERM
- ANNUAL
- SEMI_ANNUAL
- QUARTER
- MONTH
type: string
WeeklyBillCycleDay:
description: "Specifies which day of the week as the bill cycle day (BCD)\
\ for the charge.\n\nThis feature is in **Limited Availability**. If you\
\ wish to have access to the feature, submit a request at [Zuora Global\
\ Support](http://support.zuora.com/). \n"
enum:
- Sunday
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
type: string
applyToBillingPeriodPartially:
description: |
Allow the discount duration to be aligned with the billing period partially.
**Note**: You must enable the [Enhanced Discount](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.
type: boolean
rolloverPeriodLength:
default: null
description: |
**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.
To use this field, you must set the `X-Zuora-WSDL-Version` request header to 137 or higher. Otherwise, an error occurs.
The period length of the rollover fund.
type: integer
required:
- BillCycleType
- BillingPeriod
- ChargeModel
- ProductRatePlanChargeTierData
- ProductRatePlanId
- TriggerEvent
- UseDiscountSpecificAccountingCode
type: object
- $ref: '#/definitions/ProductRatePlanChargeObjectNSFields'
- $ref: '#/definitions/ProductRatePlanChargeObjectCustomFields'
example:
AccountingCode: Deferred Revenue
BillCycleType: DefaultFromCustomer
BillingPeriod: Month
ChargeModel: Flat fee Pricing
DeferredRevenueAccount: Deferred Revenue
Name: Recurring flat fee
ProductRatePlanChargeTierData:
ProductRatePlanChargeTier:
- Currency: USD
Price: 10
ProductRatePlanId: 2c92c0f8628e007901628f1dc06a453d
RecognizedRevenueAccount: Accounts Receivable
TriggerEvent: ContractEffective
UOM: each
UseDiscountSpecificAccountingCode: false
ProxyModifyProductRatePlanChargeTier:
example:
Price: 1.99
properties:
Price:
description: 'The price of the tier if the charge is a flat fee, or the price
of each unit in the tier if the charge model is tiered pricing.
'
format: double
type: number
type: object
ProxyModifyUsage:
allOf:
- properties:
EndDateTime:
description: " The end date and time of a range of time when usage is tracked.\
\ Use this field for reporting; this field doesn't affect usage calculation.\n\
**Character limit**: 29 **Values**: a valid date and time value "
format: date-time
type: string
Quantity:
description: " Indicates the number of units used.\n**Character limit**:\
\ 16 **Values**: a valid decimal amount equal to or greater than 0 "
format: double
type: number
RbeStatus:
description: " Indicates if the rating and billing engine (RBE) processed\
\ usage data for an invoice.\n**Character limit**: 9 **Values**: automatically\
\ generated to be one of the following values: `Importing`, `Pending`,\
\ `Processed` "
type: string
StartDateTime:
description: " The start date and time of a range of time when usage is\
\ tracked. Zuora uses this field value to determine the usage date. Unlike\
\ the `EndDateTime`, the `StartDateTime` field does affect usage calculation.\n\
**Character limit**: 29 **Values**: a valid date and time value "
format: date-time
type: string
UOM:
description: " Specifies the units to measure usage. Units of measure are\
\ configured in the web-based UI. Your values depend on your configuration\
\ in **Billing Settings**.\n**Character limit**: **Values**: a valid unit\
\ of measure "
type: string
type: object
- $ref: '#/definitions/UsageObjectCustomFields'
ProxyNoDataResponse:
properties:
done:
description: ''
type: boolean
records:
description: ''
items:
type: object
type: array
size:
description: ''
type: integer
type: object
ProxyPostImport:
properties:
Id:
description: 'The ID of the Import object that was created.
'
type: string
Success:
description: 'Indicates whether the call succeeded.
'
type: boolean
type: object
ProxyUnauthorizedResponse:
properties:
message:
description: |
Error message.
If the error message is "Authentication error", ensure that the `Authorization` request header contains valid authentication credentials, then retry the request. See [Authentication](https://developer.zuora.com/rest-api/general-concepts/authentication/) for more information.
If the error message is "Failed to get user info", retry the request.
type: string
type: object
PutBatchInvoiceType:
example:
invoices:
- autoPay: false
dueDate: '2017-12-16'
id: 2c93808457d787030157e031d86c4c57
transferredToAccounting: 'Yes'
- autoPay: false
dueDate: '2017-12-27'
id: 2c92c8955bd63cc1015bd7c151af02ab
transferredToAccounting: 'Yes'
- id: 2c92c8955bd63cc1015bd7c151af02dc
invoiceDate: '2017-11-27'
properties:
invoices:
description: 'Container for invoice update details.
'
items:
$ref: '#/definitions/BatchInvoiceType'
type: array
type: object
PutCreditMemoTaxItemType:
allOf:
- properties:
amount:
description: 'The amount of the taxation item in the credit memo item.
'
format: double
type: number
financeInformation:
description: 'Container for the finance information related to the taxation
item in the credit memo item.
'
properties:
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
salesTaxPayableAccountingCode:
description: 'The accounting code for the sales taxes payable.
'
maxLength: 100
minLength: 0
type: string
type: object
id:
description: 'The ID of the taxation item in the credit memo item.
'
type: string
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of the
`taxCode` field.
'
type: string
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific credit memo.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date that the tax is applied to the credit memo, in `yyyy-mm-dd`
format.
'
format: date
type: string
taxExemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
taxName:
description: 'The name of taxation.
'
type: string
taxRate:
description: 'The tax rate applied to the credit memo.
'
format: double
type: number
taxRateDescription:
description: "The description of the tax rate. \n"
type: string
taxRateType:
description: 'The type of the tax rate applied to the credit memo.
'
enum:
- Percentage
- FlatFee
type: string
required:
- id
type: object
- $ref: '#/definitions/CreditTaxationItemObjectCustomFields'
title: taxItems
PutDebitMemoTaxItemType:
allOf:
- properties:
amount:
description: 'The amount of the taxation item in the debit memo item.
'
format: double
type: number
financeInformation:
description: 'Container for the finance information related to the taxation
item in the debit memo item.
'
properties:
salesTaxPayableAccountingCode:
description: 'The accounting code for the sales taxes payable.
'
maxLength: 100
minLength: 0
type: string
type: object
id:
description: 'The ID of the taxation item in the debit memo item.
'
type: string
jurisdiction:
description: 'The jurisdiction that applies the tax or VAT. This value is
typically a state, province, county, or city.
'
type: string
locationCode:
description: 'The identifier for the location based on the value of the
`taxCode` field.
'
type: string
taxCode:
description: 'The tax code identifies which tax rules and tax rates to apply
to a specific debit memo.
'
type: string
taxCodeDescription:
description: 'The description of the tax code.
'
type: string
taxDate:
description: 'The date that the tax is applied to the debit memo, in `yyyy-mm-dd`
format.
'
format: date
type: string
taxExemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: double
type: number
taxName:
description: 'The name of taxation.
'
type: string
taxRate:
description: 'The tax rate applied to the debit memo.
'
format: double
type: number
taxRateDescription:
description: 'The description of the tax rate.
'
type: string
taxRateType:
description: 'The type of the tax rate applied to the debit memo.
'
enum:
- Percentage
- FlatFee
type: string
required:
- id
type: object
- $ref: '#/definitions/DebitTaxationItemObjectCustomFields'
title: taxItems
PutDiscountItemType:
allOf:
- properties:
accountingCode:
description: 'The accounting code associated with the discount item.
'
type: string
adjustmentLiabilityAccountingCode:
description: |
The accounting code for adjustment liability.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: string
adjustmentRevenueAccountingCode:
description: |
The accounting code for adjustment revenue.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: string
amount:
description: |
The amount of the discount item.
- Should be a negative number. For example, `-10`.
- Always a fixed amount no matter whether the discount charge associated with the discount item uses the [fixed-amount model or percentage model](https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models#Fixed_amount_model_and_percentage_model).
- For tax-exclusive discount items, this amount indicates the discount item amount excluding tax.
- For tax-inclusive discount items, this amount indicates the discount item amount including tax.
format: number
type: string
bookingReference:
description: 'The booking reference of the discount item.
'
type: string
chargeDate:
description: 'The date when the discount item is charged, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
chargeName:
description: |
The name of the charge associated with the discount item.
This field is required if the `productRatePlanChargeId` field is not specified in the request.
type: string
contractAssetAccountingCode:
description: |
The accounting code for contract asset.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: string
contractLiabilityAccountingCode:
description: |
The accounting code for contract liability.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: string
contractRecognizedRevenueAccountingCode:
description: |
The accounting code for contract recognized revenue.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: string
deferredRevenueAccountingCode:
description: |
The accounting code for the deferred revenue, such as Monthly Recurring Liability.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
description:
description: 'The description of the discount item.
'
type: string
id:
description: 'The unique ID of the discount item.
'
type: string
itemType:
description: 'The type of the discount item.
'
type: string
purchaseOrderNumber:
description: 'The purchase order number associated with the discount item.
'
type: string
recognizedRevenueAccountingCode:
description: |
The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
revRecCode:
description: 'The revenue recognition code.
'
type: string
revRecTriggerCondition:
description: 'The date when revenue recognition is triggered.
'
enum:
- ContractEffectiveDate
- ServiceActivationDate
- CustomerAcceptanceDate
type: string
revenueRecognitionRuleName:
description: |
The name of the revenue recognition rule governing the revenue schedule.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
sku:
description: 'The SKU of the invoice item. The SKU of the discount item
must be different from the SKU of any existing product.
'
type: string
unbilledReceivablesAccountingCode:
description: |
The accounting code for unbilled receivables.
**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.
type: string
unitPrice:
description: |
The per-unit price of the discount item.
If the discount charge associated with the discount item uses the percentage model, the unit price will display as a percentage amount in PDF. For example: if unit price is 5.00, it will display as 5.00% in PDF.
format: number
type: string
required:
- amount
title: invoiceItems
type: object
- $ref: '#/definitions/DiscountItemObjectNSFields'
- $ref: '#/definitions/DiscountItemObjectCustomFields'
PutEventTriggerRequest:
example:
condition: changeType == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old
!= 'Posted' && Invoice.Amount > 5000
description: Trigger an event when an invoice is posted with amount over 5000
eventType:
description: An invoice is posted with amount over 5000
properties:
active:
description: The status of the trigger.
type: boolean
condition:
description: The JEXL expression to be evaluated against object changes. See
above for more information and an example.
maxLength: 5000
minLength: 1
type: string
description:
description: The description of the trigger.
maxLength: 1000
type: string
eventType:
description: The type of events to be triggered.
properties:
description:
description: The description for the event type.
maxLength: 1000
type: string
displayName:
description: The display name for the event type.
maxLength: 500
minLength: 1
type: string
type: object
type: object
PutFulfillmentItemRequestType:
example:
customFields:
PICKLIST_CF__c: option_1
description: description1
itemIdentifier: 0c27b769-5bba-46a5-80aa-cdd95f931216
properties:
customFields:
$ref: '#/definitions/FulfillmentItemCustomFields'
description:
description: 'The description of the Fulfillment Item.
'
type: string
itemIdentifier:
description: 'The external identifier of the Fulfillment Item.
'
type: string
type: object
PutFulfillmentRequestType:
example:
billTargetDate: '2022-01-01'
fulfillmentDate: '2022-01-01'
fulfillmentType: Delivery
quantity: 5
state: SentToBilling
properties:
billTargetDate:
description: 'The target date for the Fulfillment to be picked up by bill
run for billing.
'
format: date
type: string
carrier:
description: 'The carrier of the Fulfillment. The available values can be
managed in the Fulfillment Settings page under Billing Settings.
'
type: string
customFields:
$ref: '#/definitions/FulfillmentCustomFields'
description:
description: 'The description of the Fulfillment.
'
type: string
excludeItemBillingFromRevenueAccounting:
description: "The flag to exclude Fulfillment related invoice items, invoice\
\ item adjustments, credit memo items, and debit memo items from revenue\
\ accounting.\n\n**Note**: This field is only available if you have the\
\ Billing - Revenue Integration feature enabled. \n"
type: boolean
excludeItemBookingFromRevenueAccounting:
description: "The flag to exclude Fulfillment from revenue accounting.\n\n\
**Note**: This field is only available if you have the Billing - Revenue\
\ Integration feature enabled. \n"
type: boolean
externalId:
description: 'The external id of the Fulfillment.
'
type: string
fulfillmentDate:
description: 'The date of the Fulfillment.
'
format: date
type: string
fulfillmentLocation:
description: 'The fulfillment location of the Fulfillment. The available values
can be managed in the Fulfillment Settings page under Billing Settings.
'
type: string
fulfillmentSystem:
description: 'The fulfillment system of the Fulfillment. The available values
can be managed in the Fulfillment Settings page under Billing Settings.
'
type: string
fulfillmentType:
description: "The type of the Fulfillment. \n"
enum:
- Delivery
- Return
type: string
orderLineItemId:
description: 'The reference id of the related Order Line Ite
'
format: UUID
type: string
quantity:
description: 'The quantity of the Fulfillment.
'
type: number
state:
description: 'The state of the Fulfillment. See [Order Line Item states, Order
states, and state transitions](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States)
for more information.
'
enum:
- Executing
- Booked
- SentToBilling
- Complete
- Cancelled
type: string
trackingNumber:
description: 'The tracking number of the Fulfillment.
'
type: string
type: object
PutInvoiceItemType:
allOf:
- properties:
accountingCode:
description: 'The accounting code associated with the invoice item.
'
type: string
adjustmentLiabilityAccountingCode:
description: "The accounting code for adjustment liability. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
adjustmentRevenueAccountingCode:
description: "The accounting code for adjustment revenue. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
amount:
description: "The amount of the invoice item. \n\n- For tax-inclusive invoice\
\ items, the amount indicates the invoice item amount including tax. \n\
- For tax-exclusive invoice items, the amount indicates the invoice item\
\ amount excluding tax.\n"
format: number
type: string
chargeDate:
description: 'The date when the invoice item is charged, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
chargeName:
description: "The name of the charge associated with the invoice item. \n\
\nThis field is required if the `productRatePlanChargeId` field is not\
\ specified in the request.\n"
type: string
contractAssetAccountingCode:
description: "The accounting code for contract asset. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
contractLiabilityAccountingCode:
description: "The accounting code for contract liability. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
contractRecognizedRevenueAccountingCode:
description: "The accounting code for contract recognized revenue. \n \
\ \n**Note**: This field is only available if you have the Billing\
\ - Revenue Integration feature enabled. \n"
type: string
deferredRevenueAccountingCode:
description: |
The accounting code for the deferred revenue, such as Monthly Recurring Liability.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
description:
description: 'The description of the invoice item.
'
type: string
discountItems:
description: 'Container for discount items. The maximum number of discount
items is 10.
'
items:
$ref: '#/definitions/PutDiscountItemType'
type: array
excludeItemBillingFromRevenueAccounting:
default: false
description: "The flag to exclude the invoice item from revenue accounting.\n\
\n**Note**: This field is only available if you have the Billing - Revenue\
\ Integration feature enabled. \n"
type: boolean
id:
description: 'The unique ID of the invoice item.
'
type: string
itemType:
description: 'The type of the invoice item.
'
type: string
purchaseOrderNumber:
description: 'The purchase order number associated the invoice item.
'
type: string
quantity:
description: 'The number of units for the invoice item.
'
format: number
type: string
recognizedRevenueAccountingCode:
description: |
The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
revRecCode:
description: 'The revenue recognition code.
'
type: string
revRecTriggerCondition:
description: 'The date when revenue recognition is triggered.
'
enum:
- ContractEffectiveDate
- ServiceActivationDate
- CustomerAcceptanceDate
type: string
revenueRecognitionRuleName:
description: |
The name of the revenue recognition rule governing the revenue schedule.
**Note:** This field is only available if you have Zuora Finance enabled.
type: string
serviceEndDate:
description: 'The service end date of the invoice item.
'
format: date
type: string
serviceStartDate:
description: 'The service start date of the invoice item.
'
format: date
type: string
sku:
description: 'The SKU of the invoice item. The SKU of the invoice item must
be different from the SKU of any existing product.
'
type: string
taxCode:
description: "The tax code identifies which tax rules and tax rates to apply\
\ to the invoice item.\n\n**Note:** \n- This field is only available if\
\ you have Taxation enabled.\n- If the values of both `taxCode` and `taxMode`\
\ fields are changed to `null` when updating a standalone invoice, the\
\ corresponding `invoiceItems` > `taxItems` field and its nested fields\
\ specified in the creation request will be removed.\n"
type: string
taxMode:
description: "The tax mode of the invoice item, indicating whether the amount\
\ of the invoice item includes tax.\n\n**Note:** \n- This field is only\
\ available if you have Taxation enabled.\n- If the values of both `taxCode`\
\ and `taxMode` fields are changed to `null` when updating a standalone\
\ invoice, the corresponding `invoiceItems` > `taxItems` field and its\
\ nested fields specified in the creation request will be removed.\n"
enum:
- TaxInclusive
- TaxExclusive
type: string
unbilledReceivablesAccountingCode:
description: "The accounting code for unbilled receivables. \n \n**Note**:\
\ This field is only available if you have the Billing - Revenue Integration\
\ feature enabled. \n"
type: string
unitPrice:
description: 'The per-unit price of the invoice item.
'
format: number
type: string
uom:
description: 'The unit of measure.
'
type: string
type: object
- $ref: '#/definitions/InvoiceItemObjectNSFields'
- $ref: '#/definitions/InvoiceItemObjectCustomFields'
PutInvoiceResponseType:
allOf:
- properties:
accountId:
description: 'The ID of the customer account associated with the invoice.
'
type: string
amount:
description: 'The total amount of the invoice.
'
format: BigDecimal
type: number
autoPay:
description: "Whether invoices are automatically picked up for processing\
\ in the corresponding payment run. \n"
type: boolean
balance:
description: 'The balance of the invoice.
'
format: BigDecimal
type: number
cancelledById:
description: 'The ID of the Zuora user who cancelled the invoice.
'
type: string
cancelledOn:
description: 'The date and time when the invoice was cancelled, in `yyyy-mm-dd
hh:mm:ss` format.
'
format: date-time
type: string
comment:
description: "Comments about the invoice. \n"
type: string
createdById:
description: 'The ID of the Zuora user who created the invoice.
'
type: string
createdDate:
description: 'The date and time when the invoice was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
creditBalanceAdjustmentAmount:
description: |
**Note:** This filed is only available if you have the Credit Balance feature enabled and the Invoice Settlement feature disabled.
The currency amount of the adjustment applied to the customer's credit balance.
format: BigDecimal
type: number
currency:
description: 'A currency defined in the web-based UI administrative settings.
'
type: string
discount:
description: 'The discount of the invoice.
'
format: BigDecimal
type: number
dueDate:
description: "The date by which the payment for this invoice is due. \n"
format: date
type: string
id:
description: 'The unique ID of the invoice.
'
type: string
invoiceDate:
description: 'The date on which to generate the invoice.
'
format: date
type: string
number:
description: 'The unique identification number of the invoice.
'
type: string
postedById:
description: 'The ID of the Zuora user who posted the invoice.
'
type: string
postedOn:
description: "The date and time when the invoice was posted, in `yyyy-mm-dd\
\ hh:mm:ss` format. \n"
format: date-time
type: string
status:
description: 'The status of the invoice.
'
enum:
- Draft
- Posted
- Canceled
- Error
type: string
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
targetDate:
description: "The target date for the invoice, in `yyyy-mm-dd` format. For\
\ example, 2017-07-20. \n"
format: date
type: string
taxAmount:
description: 'The amount of taxation.
'
format: BigDecimal
type: number
totalTaxExemptAmount:
description: 'The calculated tax amount excluded due to the exemption.
'
format: BigDecimal
type: number
transferredToAccounting:
description: 'Whether the invoice was transferred to an external accounting
system.
'
enum:
- Processing
- 'Yes'
- Error
- Ignore
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the invoice.
'
type: string
updatedDate:
description: 'The date and time when the invoice was last updated, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
- $ref: '#/definitions/InvoiceObjectNSFields'
- $ref: '#/definitions/InvoiceObjectCustomFields'
PutInvoiceType:
allOf:
- properties:
autoPay:
description: |
Whether invoices are automatically picked up for processing in the corresponding payment run.
By default, invoices are automatically picked up for processing in the corresponding payment run.
type: boolean
comments:
description: 'Additional information related to the invoice that a Zuora
user added to the invoice.
'
maxLength: 255
type: string
dueDate:
description: 'The date by which the payment for this invoice is due.
'
format: date
type: string
invoiceDate:
description: |
The new invoice date of the invoice. The new invoice date cannot fall in a closed accounting period.
You can only specify `invoiceDate` or `dueDate` in one request. Otherwise, an error occurs.
format: date
type: string
invoiceItems:
description: 'Container for invoice items, The maximum number of items is
1,000.
'
items:
$ref: '#/definitions/PutInvoiceItemType'
type: array
transferredToAccounting:
description: 'Whether the invoice was transferred to an external accounting
system.
'
enum:
- Processing
- 'Yes'
- Error
- Ignore
type: string
type: object
- $ref: '#/definitions/InvoiceObjectNSFields'
- $ref: '#/definitions/InvoiceObjectCustomFields'
example:
accountId: 2c9890207863df710178642433c407a5
autoPay: false
comments: comments
id: 2c9890207863df710178642433c307ab
invoiceDate: '2017-02-20'
invoiceItems:
- amount: 300
bookingReference: bookingReference
chargeDate: '2020-02-01 11:00:00'
chargeName: charge with tax amount 9
description: description
discountItems:
- amount: -10
bookingReference: discountBookingReference
chargeDate: '2020-02-01 11:00:00'
chargeName: discount
description: description
id: 2c9890207863df710178642433c3033b
sku: SKU-0002
unitPrice: -5.0
id: 2c9890207863df710178642433c306ba
quantity: 2
serviceEndDate: '2020-02-10'
serviceStartDate: '2020-02-01'
transferredToAccounting: 'Yes'
PutOrderCancelResponse:
allOf:
- $ref: '#/definitions/CommonResponseType'
- properties:
accountNumber:
description: The account number for the order.
type: string
cancelReason:
description: The reason for cancelling the order.
type: string
orderNumber:
description: The order number of the order created.
type: string
status:
description: Status of the order. `Cancelled` is only valid value.
enum:
- Cancelled
type: string
type: object
PutOrderLineItemResponseType:
allOf:
- $ref: '#/definitions/CommonResponseType'
PutOrderLineItemUpdateType:
allOf:
- $ref: '#/definitions/OrderLineItemCommon'
PutReverseCreditMemoResponseType:
properties:
creditMemo:
description: 'Container for the credit memo that is automatically generated
during the reversal of the invoice that is related to the credit memo. If
no related invoice is reversed, the value is null.
'
properties:
id:
description: The ID of the credit memo.
type: string
type: object
debitMemo:
description: 'Container for the debit memo that is automatically generated
during the credit memo reversal.
'
properties:
id:
description: The ID of the debit memo.
type: string
type: object
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
PutReverseCreditMemoType:
example:
applyEffectiveDate: '2017-02-20'
memoDate: '2017-02-20'
properties:
applyEffectiveDate:
description: |
The date when the to-be-reversed credit memo is applied to the newly generated debit memo, in `yyyy-mm-dd` format. The effective date must be later than or equal to the memo date.
The default value is the date when you reverse the credit memo and create the debit memo.
format: date
type: string
memoDate:
description: |
The date when the debit memo is created, in `yyyy-mm-dd` format. The memo date must be later than or equal to the credit memo's memo date.
The default value is the date when you reverse the credit memo and create the debit memo.
format: date
type: string
type: object
PutReverseInvoiceResponseType:
properties:
creditMemo:
description: 'Container for the credit memo that is automatically generated
when during the invoice reversal.
'
properties:
id:
description: The ID of the credit memo.
type: string
type: object
debitMemo:
description: 'Container for the debit memo that is automatically generated
during the reversal of the credit memo related to this invoice. If no related
credit memo is reversed, this field is not retruned in the response body.
'
properties:
id:
description: The ID of the debit memo.
type: string
type: object
success:
description: 'Returns `true` if the request was processed successfully.
'
type: boolean
type: object
PutReverseInvoiceType:
example:
applyEffectiveDate: '2017-02-20'
memoDate: '2017-02-20'
properties:
applyEffectiveDate:
description: |
The date when the credit memo is applied to the invoice that will be reversed, in `yyyy-mm-dd` format. The effective date must be later than or equal to the memo date.
The default value is the date when you reverse the invoice and create the credit memo.
format: date
type: string
memoDate:
description: |
The date when the credit memo was created, in `yyyy-mm-dd` format. The memo date must be later than or equal to the invoice date.
The default value is the date when you reverse the invoice and create the credit memo.
format: date
type: string
type: object
PutScheduledEventRequest:
example:
active: true
condition: Subscription.Status == _SUBSCRIPTION_STATUS
description: Trigger a scheduled event at 10:30 AM based on TermEndDate of subscription
objects.
displayName: Term End Date Scheduled Event
hours: 10
minutes: 30
parameters:
_SUBSCRIPTION_STATUS:
description: The status of the subscription
displayName: Subscription Status
options:
- Draft
- Active
- Pending
- Expired
- Cancelled
valueType: STRING
properties:
active:
description: Indicate whether the scheduled event is active or inactive
type: boolean
condition:
description: |
The filter rule conditions, written in [JEXL](http://commons.apache.org/proper/commons-jexl/). The scheduled event is triggered only if the condition is evaluated as true.
The rule might contain event context merge fields and data source merge fields. Data source merge fields must be from [the base object of the event or from the joined objects of the base object](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL#Data_Sources_and_Objects).
Scheduled events with invalid merge fields will fail to evaluate, thus will not be triggered. For example, to trigger an invoice due date scheduled event to only invoices with an amount over 1000, you would define the following condition:
```Invoice.Amount > 1000```
`Invoice.Amount` refers to the `Amount` field of the Zuora object `Invoice`.
maxLength: 65535
type: string
description:
description: The description of the scheduled event.
maxLength: 1000
type: string
displayName:
description: The display name of the scheduled event.
maxLength: 500
minLength: 1
type: string
hours:
description: The scheduled time (hour) that the scheduled event notifications
are sent. This time is based on the localized timezone of your tenant.
maximum: 23
minimum: 0
type: integer
minutes:
description: The scheduled time (minute) that the scheduled event notifications
are sent. This time is based on the localized timezone of your tenant.
maximum: 59
minimum: 0
type: integer
parameters:
additionalProperties:
description: Definition of a filter rule parameter.
properties:
description:
description: The description of the parameter.
maxLength: 255
type: string
displayName:
description: The display name of the parameter.
maxLength: 255
type: string
options:
description: The option values of the parameter.
items:
type: string
type: array
valueType:
description: The type of the value.
enum:
- STRING
- BYTE
- SHORT
- CHARACTER
- INTEGER
- LONG
- FLOAT
- DOUBLE
- BOOLEAN
- BIG_INTEGER
- BIG_DECIMAL
- LOCAL_DATE
- LOCAL_DATE_TIME
- TIMESTAMP
- BYTE_ARRAY
- SHORT_ARRAY
- CHARACTER_ARRAY
- INTEGER_ARRAY
- FLOAT_ARRAY
- DOUBLE_ARRAY
- BOOLEAN_ARRAY
- STRING_ARRAY
- BIG_INTEGER_ARRAY
- BIG_DECIMAL_ARRAY
- LOCAL_DATE_ARRAY
- LOCAL_DATE_TIME_ARRAY
- TIMESTAMP_ARRAY
type: string
type: object
description: The parameters of the filter rule. The names of the parameters
must match with the filter rule and can't be duplicated.
type: object
type: object
PutTasksRequest:
example:
data:
- action_type: If
call_type: SOAP
concurrent_limit: 9999999
id: 2771
name: If
object: null
object_id: null
status: Success
tags: []
workflow_id: 476
properties:
data:
description: 'The list of tasks to update.
'
items:
$ref: '#/definitions/UpdateTask'
maximum: 50
minimum: 1
type: array
type: object
QueryCustomObjectRecordsResponse:
properties:
count:
description: The record count of the given custom object type
example: 1
type: integer
records:
example:
- CreatedById: 58bcc694-0b01-4c38-83d9-679891aee4dc
CreatedDate: '2017-06-07T17:26:47.501Z'
Id: f4f3d0a8-9d45-43d6-956c-4820f2de7559
UpdatedById: 58bcc694-0b01-4c38-83d9-679891aee4dc
UpdatedDate: '2017-06-07T17:26:47.501Z'
age__c: 32
email__c: smith123@example.com
home_address__c: 59b38ad1-27d4-40e8-af66-8c138bc382ee
last_name__c: Smith
marital_status__c: Married
type: person
version: 1
work_address__c: 8a19f16a-2b5e-4a26-bb20-c79cd6984714
items:
$ref: '#/definitions/CustomObjectRecordWithAllFields'
type: array
required:
- count
- records
type: object
QuoteObjectFields:
description: 'The fields populated for a quote when a quote is sent to Zuora Billing
from Zuora Quote.
'
properties:
OpportunityCloseDate__QT:
description: |
The closing date of the Opportunity.
This field is used in Zuora Reporting Data Sources to report on Subscription metrics.
If the subscription was originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.
type: string
OpportunityName__QT:
description: "The unique identifier of the Opportunity. \n\nThis field is\
\ used in the Zuora Reporting Data Sources to report on Subscription metrics.\n\
\nIf the subscription was originated from Zuora Quotes, the value is populated\
\ with the value from Zuora Quotes.\n\n**Character limit**: 100\n"
type: string
QuoteBusinessType__QT:
description: |
The specific identifier for the type of business transaction the Quote represents such as New, Upsell, Downsell, Renewal or Churn.
This field is used in the Zuora Reporting Data Sources to report on Subscription metrics.
If the subscription was originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.
**Character limit**: 32
type: string
QuoteNumber__QT:
description: |
The unique identifier of the Quote.
This field is used in the Zuora Reporting Data Sources to report on Subscription metrics.
If the subscription was originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.
**Character limit**: 32
type: string
QuoteType__QT:
description: |
The Quote type that represents the subscription lifecycle stage such as New, Amendment, Renew or Cancel.
This field is used in the Zuora Reporting Data Sources to report on Subscription metrics.
If the subscription was originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.
**Character limit**: 32
type: string
title: quote
type: object
RampChargeRequest:
properties:
chargeNumber:
description: The number of the rate plan charge.
type: string
uniqueToken:
description: 'Unique identifier for the charge. This identifier enables you
to refer to the charge before the charge has an internal identifier in Zuora.
'
type: string
title: RampCharge
type: object
RampChargeResponse:
properties:
chargeNumber:
description: The number of the rate plan charge.
type: string
title: charges
type: object
RampIntervalChargeDeltaMetrics:
properties:
chargeNumber:
description: The number of the rate plan charge.
type: string
deltaDiscountTcb:
description: The discount delta amount for the TCB.
type: number
deltaDiscountTcv:
description: The discount delta amount for the TCV.
type: number
deltaGrossTcb:
description: The TCB delta value before discount charges are applied.
type: number
deltaGrossTcv:
description: The TCV delta value before discount charges are applied.
type: number
deltaMrr:
description: The MRR changing history of the current rate plan charge in the
current ramp interval.
items:
properties:
discount:
description: The discount delta amount for the MRR.
type: number
endDate:
description: The end date.
format: date
type: string
gross:
description: The MRR delta amount before discounts charges are applied.
type: number
net:
description: The MRR delta amount after discounts charges are applied.
type: number
startDate:
description: The start date.
format: date
type: string
type: object
type: array
deltaNetTcb:
description: The TCB delta value after discount charges are applied.
type: number
deltaNetTcv:
description: The TCV delta value after discount charges are applied.
type: number
deltaQuantity:
description: The charge quantity changing history of the current rate plan
charge in the current ramp interval.
items:
properties:
amount:
description: The delta amount of the charge quantity.
type: number
endDate:
description: The end date.
format: date
type: string
startDate:
description: The start date.
format: date
type: string
type: object
type: array
productRatePlanChargeId:
description: The ID of the corresponding product rate plan charge.
type: string
subscriptionNumber:
description: The number of the subscription that the current rate plan charge
belongs to.
type: string
title: intervalDeltaMetrics
type: object
RampIntervalChargeMetrics:
properties:
chargeNumber:
description: The number of the charge.
type: string
discountTcb:
description: The discount amount for the TCB.
type: number
discountTcv:
description: The discount amount for the TCV.
type: number
endDate:
description: The end date of the rate plan charge in the current ramp interval.
format: date
type: string
grossTcb:
description: The gross TCB value before discount charges are applied.
type: number
grossTcv:
description: The gross TCV value before discount charges are applied.
type: number
mrr:
description: The MRR changing history of the current rate plan charge in the
current ramp interval.
items:
properties:
discount:
description: The discount amount for the MRR.
type: number
endDate:
description: The end date.
format: date
type: string
gross:
description: The gross MRR amount before discounts charges are applied.
type: number
net:
description: The net MRR amount after discounts charges are applied.
type: number
startDate:
description: The start date.
format: date
type: string
type: object
type: array
netTcb:
description: The net TCB value after discount charges are applied.
type: number
netTcv:
description: The net TCV value after discount charges are applied.
type: number
productRatePlanChargeId:
description: The ID of the corresponding product rate plan charge.
type: string
quantity:
description: The quantity of the rate plan charge.
type: number
ratePlanChargeId:
description: The ID of the rate plan charge.
type: string
startDate:
description: The start date of the rate plan charge in the current ramp interval.
format: date
type: string
subscriptionNumber:
description: The number of the subscription that the current rate plan charge
belongs to.
type: string
title: intervalMetrics
type: object
RampIntervalMetrics:
properties:
description:
description: The short description of the interval.
type: string
discountTcb:
description: The discount amount for the TCB.
type: number
discountTcv:
description: The discount amount for the TCV.
type: number
endDate:
description: The end date of the interval.
format: date
type: string
grossTcb:
description: The gross TCB value before discount charges are applied.
type: number
grossTcv:
description: The gross TCV value before discount charges are applied.
type: number
intervalMetrics:
description: Container for the detailed metrics for each rate plan charge
in each ramp interval.
items:
$ref: '#/definitions/RampIntervalChargeMetrics'
type: array
name:
description: The name of the interval.
type: string
netTcb:
description: The net TCB value after discount charges are applied.
type: number
netTcv:
description: The net TCV value after discount charges are applied.
type: number
startDate:
description: The start date of the interval.
format: date
type: string
type: object
RampIntervalRequest:
description: 'Container for the intervals that the ramp is split into in its timeline.
Zuora can report metrics for this specific period.
'
properties:
description:
description: The short description of the interval.
type: string
endDate:
description: The end date of the interval.
format: date
type: string
name:
description: The name of the interval.
type: string
startDate:
description: The start date of the interval.
format: date
type: string
required:
- startDate
- endDate
title: intervals
type: object
RampIntervalResponse:
properties:
description:
description: The short description of the interval.
type: string
endDate:
description: The end date of the interval.
format: date
type: string
name:
description: The name of the interval.
type: string
startDate:
description: The start date of the interval.
format: date
type: string
title: intervals
type: object
RampMetrics:
properties:
description:
description: The short description of the ramp.
type: string
discountTcb:
description: The discount amount for the TCB.
type: number
discountTcv:
description: The discount amount for the TCV.
type: number
grossTcb:
description: The gross TCB value before discount charges are applied.
type: number
grossTcv:
description: The gross TCV value before discount charges are applied.
type: number
intervals:
description: Container for the intervals that the ramp is split into in its
timeline.
items:
$ref: '#/definitions/RampIntervalMetrics'
type: array
name:
description: The name of the ramp.
type: string
netTcb:
description: The net TCB value after discount charges are applied.
type: number
netTcv:
description: The net TCV value after discount charges are applied.
type: number
number:
description: The number of the ramp. It is automaticcally generated by the
billing system.
type: string
type: object
RampRequest:
description: 'Container of the ramp definitions. It is used to create, update,
or remove the ramp definition for the new subscription.
'
properties:
charges:
description: |
Container for the rate plan charges that are considered as part of the ramp deal.
* If this field is not specified, all the one-time and recurring regular charges of the new subscription are automatically considered as part of the ramp deal.
* If this field is specified, either 'chargeNumber' or 'uniqueToken' must be specified.
items:
$ref: '#/definitions/RampChargeRequest'
type: array
delete:
description: "Whether to remove the ramp definition from the new subscription.\
\ If you want to remove the ramp definition, this field is the only required\
\ field for the `ramp` object. \n"
type: boolean
description:
description: The short description of the ramp.
type: string
intervals:
description: "Container for the intervals that the ramp is split into in its\
\ timeline. \n\nIt is required when you want to create or update the ramp\
\ definition. The ramp intervals cannot have any overlap or gap between\
\ each other.\n"
items:
$ref: '#/definitions/RampIntervalRequest'
type: array
name:
description: The name of the ramp.
type: string
title: Ramp
type: object
RampResponse:
properties:
charges:
description: Container for the rate plan charges that are considered as part
of the ramp deal.
items:
$ref: '#/definitions/RampChargeResponse'
type: array
description:
description: The short description of the ramp.
type: string
id:
description: The ID of the ramp.
type: string
intervals:
description: Container for the intervals that the ramp is split into in its
timeline.
items:
$ref: '#/definitions/RampIntervalResponse'
type: array
name:
description: The name of the ramp.
type: string
number:
description: The number of the ramp. It is automaticcally generated by the
billing system.
type: string
subscriptionNumber:
description: The number of the subscription that is considered as part of
the ramp deal.
type: string
title: Ramp
type: object
RatePlan:
properties:
customFields:
$ref: '#/definitions/CustomFields'
productRatePlanId:
description: 'Internal identifier of the product rate plan that the rate plan
is based on.
'
type: string
type: object
RatePlanChargeObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Rate Plan Charge object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Rate Plan Charge object.
'
title: ratePlanChargeFieldsCustom
type: object
RatePlanFeatureOverride:
description: 'Information about feature in rate plan.
'
properties:
customFields:
$ref: '#/definitions/RatePlanFeatureOverrideCustomFields'
description:
description: A description of the feature.
maxLength: 500
type: string
featureId:
description: 'Internal identifier of the feature in the product catalog.
'
type: string
id:
description: 'Internal identifier of the rate plan feature override.
'
type: string
title: ratePlanFeature
type: object
RatePlanFeatureOverrideCustomFields:
additionalProperties:
description: 'Custom fields of the feature. The name of each custom field has
the form *customField*__c
. Custom field names are case sensitive.
See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'A container for custom fields of the feature.
'
title: ratePlanFeatureCustom
type: object
RatePlanObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Rate Plan object. The name of each custom
field has the form *customField*__c
. Custom field names are case
sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Rate Plan object.
'
title: ratePlanFieldsCustom
type: object
RatePlanOverride:
description: 'Rate plan associated with a subscription.
'
properties:
chargeOverrides:
description: 'List of charges associated with the rate plan.
'
items:
$ref: '#/definitions/ChargeOverride'
type: array
clearingExistingFeatures:
description: 'Specifies whether all features in the rate plan will be cleared.
'
type: boolean
customFields:
$ref: '#/definitions/OrdersRatePlanObjectCustomFields'
externallyManagedPlanId:
description: 'Indicates the unique identifier for the rate plan purchased
on a third-party store. This field is used to represent a subscription rate
plan created through third-party stores.
'
type: string
isFromExternalCatalog:
description: |
Indicates whether the rate plan is created from the Zuora product catalog or from an external product catalog.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: boolean
newRatePlanId:
description: 'Internal identifier of the rate plan.
'
type: string
productRatePlanId:
description: 'Internal identifier of the product rate plan that the rate plan
is based on.
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
ratePlanName:
description: |
Name of the standalone rate plan.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
subscriptionProductFeatures:
description: "List of features associated with the rate plan.\nThe system\
\ compares the `subscriptionProductFeatures` and `featureId` fields in the\
\ request with the counterpart fields in a rate plan. The comparison results\
\ are as follows:\n* If there is no `subscriptionProductFeatures` field\
\ or the field is empty, features in the rate plan remain unchanged. But\
\ if the `clearingExistingFeatures` field is additionally set to true, all\
\ features in the rate plan are cleared.\n* If the `subscriptionProductFeatures`\
\ field contains the `featureId` nested fields, as well as the optional\
\ `description` and `customFields` nested fields, the features indicated\
\ by the featureId nested fields in the request overwrite all features in\
\ the rate plan. \n"
items:
$ref: '#/definitions/RatePlanFeatureOverride'
type: array
uniqueToken:
description: |
Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.
For instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.
maxLength: 50
type: string
required:
- productRatePlanId
title: ratePlan
type: object
RatePlanUpdate:
description: 'Information about an order action of type `UpdateProduct`.
'
properties:
chargeUpdates:
description: 'Array of the JSON objects containing the information for a charge
update in the `updateProduct` type of order action.
'
items:
$ref: '#/definitions/ChargeUpdate'
type: array
clearingExistingFeatures:
description: 'Specifies whether all features in the rate plan will be cleared.
'
type: boolean
customFields:
$ref: '#/definitions/OrdersRatePlanObjectCustomFields'
externallyManagedPlanId:
description: 'Indicates the unique identifier for the rate plan purchased
on a third-party store. This field is used to represent a subscription rate
plan created through third-party stores.
'
type: string
newRatePlanId:
description: 'Internal identifier of the updated rate plan in the new subscription
version.
'
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
ratePlanId:
description: 'Internal identifier of the rate plan that was updated. It can
be the latest version or any history version id.
'
type: string
specificUpdateDate:
description: |2
The date when the Update Product order action takes effect. This field is only applicable if there is already a future-dated Update Product order action on the subscription. The format of the date is yyyy-mm-dd.
See [Update a Product on Subscription with Future-dated Updates](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Update_a_Product_in_a_Subscription/Update_a_Product_on_Subscription_with_Future-dated_Updates) for more information about this feature.
format: date
type: string
subscriptionProductFeatures:
description: |
List of features associated with the rate plan.
The system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:
* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.
* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.
items:
$ref: '#/definitions/RatePlanFeatureOverride'
type: array
subscriptionRatePlanNumber:
description: 'Number of a rate plan for this subscription.
'
type: string
uniqueToken:
description: 'A unique string to represent the rate plan in the order. The
unique token is used to perform multiple actions against a newly added rate
plan. For example, if you want to add and update a product in the same order,
assign a unique token to the newly added rate plan and use that token in
future order actions.
'
type: string
title: updateProduct
type: object
RatePlans:
items:
$ref: '#/definitions/RatePlan'
type: array
RecurringDeliveryPricingOverride:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
deliverySchedule:
$ref: '#/definitions/DeliveryScheduleParams'
listPrice:
description: 'Price of the charge in each recurring period.
'
type: number
priceIntervals:
description: "List of interval pricing in the charge. \nThe `priceIntervals`\
\ field is not supported for a charge subscribed via a RatePlan, you can\
\ only override the `priceIntervals` field for a charge subscribed via\
\ an offer.\n\n**Note**: You must enable the Offers feature to access\
\ this field. The Offers 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"
items:
$ref: '#/definitions/PriceIntervalWithPrice'
type: array
type: object
description: |
Pricing information about a recurring charge that uses the Delivery Pricing charge model. In this charge model, the charge has a fixed price. This field is only available if you have the Delivery Pricing charge model enabled.
**Note**: The Delivery Pricing charge model is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Enable billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features) in the Knowledge Center. You can check **Delivery Pricing** in **Billing Settings** > **Enable Charge Types / Models**.
title: recurringDelivery
RecurringDeliveryPricingUpdate:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
deliverySchedule:
$ref: '#/definitions/DeliveryScheduleParams'
listPrice:
type: number
type: object
RecurringFlatFeePricingOverride:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
listPrice:
description: 'Price of the charge in each recurring period.
'
type: number
listPriceBase:
description: 'Specifies the duration of each recurring period.
'
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
- Per_Specific_Months
type: string
originalListPrice:
description: 'The original list price is the price of a product or service
at which it is listed for sale by a manufacturer or retailer.
'
type: number
priceIntervals:
description: "List of interval pricing in the charge. \nThe `priceIntervals`\
\ field is not supported for a charge subscribed via a RatePlan, you can\
\ only override the `priceIntervals` field for a charge subscribed via\
\ an offer. \n\n**Note**: You must enable the Offers feature to access\
\ this field. The Offers 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"
items:
$ref: '#/definitions/PriceIntervalWithPrice'
type: array
specificListPriceBase:
description: "The number of months for the list price base of the charge.\
\ This field is required if you set the value of the `listPriceBase` field\
\ to `Per_Specific_Months`.\n\n**Note**: \n - This field is available\
\ only if you have the Annual List Price feature enabled.\n - The value\
\ of this field is `null` if you do not set the value of the `listPriceBase`\
\ field to `Per_Specific_Months`. \n"
format: int32
maximum: 200
minimum: 1
type: integer
type: object
description: 'Pricing information about a recurring charge that uses the "flat
fee" charge model. In this charge model, the charge has a fixed price.
'
title: recurringFlatFee
RecurringFlatFeePricingUpdate:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
listPrice:
type: number
originalListPrice:
description: 'The original list price is the price of a product or service
at which it is listed for sale by a manufacturer or retailer.
'
type: number
type: object
RecurringPerUnitPricingOverride:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
listPrice:
description: 'Per-unit price of the charge in each recurring period.
'
type: number
listPriceBase:
description: 'Specifies the duration of each recurring period.
'
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
- Per_Specific_Months
type: string
originalListPrice:
description: 'The original list price is the price of a product or service
at which it is listed for sale by a manufacturer or retailer.
'
type: number
priceIntervals:
description: "List of interval pricing in the charge. \nThe `priceIntervals`\
\ field is not supported for a charge subscribed via a RatePlan, you can\
\ only override the `priceIntervals` field for a charge subscribed via\
\ an offer. \n\n**Note**: You must enable the Offers feature to access\
\ this field. The Offers 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"
items:
$ref: '#/definitions/PriceIntervalWithPrice'
type: array
quantity:
description: 'Number of units purchased.
'
minimum: 0
type: number
specificListPriceBase:
description: "The number of months for the list price base of the charge.\
\ This field is required if you set the value of the `listPriceBase` field\
\ to `Per_Specific_Months`.\n\n**Note**: \n - This field is available\
\ only if you have the Annual List Price feature enabled.\n - The value\
\ of this field is `null` if you do not set the value of the `listPriceBase`\
\ field to `Per_Specific_Months`. \n"
format: int32
maximum: 200
minimum: 1
type: integer
uom:
description: |
Unit of measure of the standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: number
type: object
description: 'Pricing information about a recurring charge that uses the "per
unit" charge model. In this charge model, the charge has a fixed price per unit
purchased.
'
title: recurringPerUnit
RecurringPerUnitPricingUpdate:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
listPrice:
type: number
originalListPrice:
description: 'The original list price is the price of a product or service
at which it is listed for sale by a manufacturer or retailer.
'
type: number
quantity:
minimum: 0
type: number
type: object
RecurringTieredPricingOverride:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
listPriceBase:
description: 'Specifies the duration of each recurring period.
'
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
- Per_Specific_Months
type: string
priceIntervals:
description: "List of tier prices with intervals. \nThe `priceIntervals`\
\ field is not supported for a charge subscribed via a RatePlan, you can\
\ only override the `priceIntervals` field for a charge subscribed via\
\ an offer.\n\n**Note**: You must enable the Offers feature to access\
\ this field. The Offers 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"
items:
$ref: '#/definitions/PriceIntervalWithTiers'
type: array
quantity:
description: 'Number of units purchased.
'
minimum: 0
type: number
specificListPriceBase:
description: "The number of months for the list price base of the charge.\
\ This field is required if you set the value of the `listPriceBase` field\
\ to `Per_Specific_Months`.\n\n**Note**: \n - This field is available\
\ only if you have the Annual List Price feature enabled.\n - The value\
\ of this field is `null` if you do not set the value of the `listPriceBase`\
\ field to `Per_Specific_Months`. \n"
format: int32
maximum: 200
minimum: 1
type: integer
tiers:
description: 'List of cumulative pricing tiers in the charge.
'
items:
$ref: '#/definitions/ChargeTier'
type: array
type: object
description: 'Pricing information about a recurring charge that uses the "tiered
pricing" charge model. In this charge model, the charge has cumulative pricing
tiers that become effective as units are purchased.
'
title: recurringTiered
RecurringTieredPricingUpdate:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
quantity:
minimum: 0
type: number
tiers:
items:
$ref: '#/definitions/ChargeTier'
type: array
type: object
RecurringVolumePricingOverride:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
listPriceBase:
description: 'Specifies the duration of each recurring period.
'
enum:
- Per_Billing_Period
- Per_Month
- Per_Week
- Per_Year
- Per_Specific_Months
type: string
priceIntervals:
description: "List of tier prices with intervals. \nThe `priceIntervals`\
\ field is not supported for a charge subscribed via a RatePlan, you can\
\ only override the `priceIntervals` field for a charge subscribed via\
\ an offer.\n\n**Note**: You must enable the Offers feature to access\
\ this field. The Offers 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"
items:
$ref: '#/definitions/PriceIntervalWithTiers'
type: array
quantity:
description: 'Number of units purchased.
'
minimum: 0
type: number
specificListPriceBase:
description: "The number of months for the list price base of the charge.\
\ This field is required if you set the value of the `listPriceBase` field\
\ to `Per_Specific_Months`.\n\n**Note**: \n - This field is available\
\ only if you have the Annual List Price feature enabled.\n - The value\
\ of this field is `null` if you do not set the value of the `listPriceBase`\
\ field to `Per_Specific_Months`. \n"
format: int32
maximum: 200
minimum: 1
type: integer
tiers:
description: 'List of variable pricing tiers in the charge.
'
items:
$ref: '#/definitions/ChargeTier'
type: array
uom:
description: |
Unit of measure of the standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: number
type: object
description: 'Pricing information about a recurring charge that uses the "volume
pricing" charge model. In this charge model, the charge has a variable price
per unit, depending on how many units are purchased.
'
title: recurringVolume
RecurringVolumePricingUpdate:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
quantity:
minimum: 0
type: number
tiers:
items:
$ref: '#/definitions/ChargeTier'
type: array
type: object
RefundCreditMemoItemType:
properties:
amount:
description: 'The amount of the refund on the specific item.
'
format: double
type: number
creditMemoItemId:
description: 'The ID of the credit memo item that is refunded.
'
type: string
creditTaxItemId:
description: 'The ID of the credit memo taxation item that is refunded.
'
type: string
required:
- amount
title: items
type: object
RefundEntityPrefix:
description: 'Container for the prefix and starting number of refunds.
'
properties:
prefix:
description: 'The prefix of refunds.
'
example: R-
type: string
startNumber:
description: 'The starting number of refunds.
'
example: 10
type: integer
title: refund
type: object
RefundObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Refund object. The name of each custom field
has the form *customField*__c
. Custom field names are case sensitive.
See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Refund object.
'
title: refundFieldsCustom
type: object
RefundObjectNSFields:
description: 'Container for Refund fields provided by the [Zuora Connector for
NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
properties:
IntegrationId__NS:
description: 'ID of the corresponding object in NetSuite. Only available if
you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IntegrationStatus__NS:
description: 'Status of the refund''s synchronization with NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
Origin__NS:
description: 'Origin of the corresponding object in NetSuite. Only available
if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
SyncDate__NS:
description: 'Date when the refund was synchronized with NetSuite. Only available
if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
SynctoNetSuite__NS:
description: 'Specifies whether the refund should be synchronized with NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
title: refundFieldsNS
type: object
RefundPartResponseType:
properties:
amount:
description: 'The amount of the refund part.
'
format: double
type: number
createdById:
description: 'The ID of the Zuora user who created the refund part.
'
type: string
createdDate:
description: 'The date and time when the refund part was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
creditMemoId:
description: 'The ID of the credit memo associated with the refund part.
'
type: string
id:
description: 'The ID of the refund part.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentId:
description: 'The ID of the payment associated with the refund part.
'
type: string
success:
description: Returns `true` if the request was processed successfully.
type: boolean
updatedById:
description: 'The ID of the Zuora user who last updated the refund part.
'
type: string
updatedDate:
description: 'The date and time when the refund part was last updated, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
type: object
RefundPartResponseTypewithSuccess:
properties:
amount:
description: 'The amount of the refund part.
'
format: double
type: number
createdById:
description: 'The ID of the Zuora user who created the refund part.
'
type: string
createdDate:
description: 'The date and time when the refund part was created, in `yyyy-mm-dd
hh:mm:ss` format. For example, 2017-03-01 15:31:10.
'
format: date-time
type: string
creditMemoId:
description: 'The ID of the credit memo associated with the refund part.
'
type: string
id:
description: 'The ID of the refund part.
'
type: string
organizationLabel:
description: |
The organization that this object belongs to.
Note: This field is available only when the Multi-Org feature is enabled.
type: string
paymentId:
description: 'The ID of the payment associated with the refund part.
'
type: string
updatedById:
description: 'The ID of the Zuora user who last updated the refund part.
'
type: string
updatedDate:
description: 'The date and time when the refund part was last updated, in
`yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.
'
format: date-time
type: string
title: parts
type: object
RegenerateBillingRequest:
example:
number: CM00000001
type: CreditMemo
properties:
documentId:
description: 'Id of Invoice, CreditMemo, DebitMemo, or InvoiceItemAdjustment
'
type: string
number:
description: 'Number of Invoice, CreditMemo, DebitMemo, or InvoiceItemAdjustment
'
type: string
type:
description: 'The type of business object for which you want to generate the
transactions.
'
enum:
- Invoice
- CreditMemo
- DebitMemo
- InvoiceItemAdjustment
type: string
type: object
RegenerateBookingRequest:
example:
subscriptionName: A-S00000001
subscriptionVersion: 1
type: Subscription
properties:
itemNumber:
description: 'The item number.
'
type: string
orderLineItemId:
description: 'The order line item ID.
'
type: string
orderNumber:
description: 'The order number.
'
type: string
subscriptionId:
description: 'The subscription ID.
'
type: string
subscriptionNumber:
description: 'The subscription number.
'
type: string
subscriptionVersion:
description: 'The subscription version.
'
type: integer
type:
description: 'The type of business object for which you want to generate the
transactions.
'
enum:
- Subscription
- OrderLineItem
type: string
type: object
RegenerateRevRecEventsResponse:
properties:
reasons:
items:
$ref: '#/definitions/ResponseReasons'
type: array
success:
description: 'Indicates whether the call succeeded.
'
type: boolean
type: object
RegenerateTransactionObjectResponse:
properties:
idList:
description: "A list of the IDs for the business objects for which you generate\
\ the transactions. \n"
items:
type: string
type: array
reasons:
items:
$ref: '#/definitions/ResponseReasons'
type: array
success:
description: 'Indicates whether the call succeeded.
'
type: boolean
type: object
RemoveProduct:
description: |
Information about an order action of type `RemoveProduct`.
Either a rate plan or offer can be removed from a subscription through one order action, but not both; otherwise, an error occurs.
- If you remove a rate plan, specify the following fields:
- `externalCatalogPlanId`
- `ratePlanId`
- `subscriptionRatePlanNumber`
- `productRatePlanNumber`
- `uniqueToken`
- If you remove an offer, specify the following fields:
- `subscriptionOfferNumber`
- `subscriptionOfferId`
- `subscriptionOfferUniqueToken`
properties:
externalCatalogPlanId:
description: |
An external ID of the rate plan to be removed. You can use this field to specify an existing rate plan in your subscription. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan. However, if there are multiple rate plans with the same `productRatePlanId` value existing in the subscription, you must use the `ratePlanId` field to remove the rate plan. The `externalCatalogPlanId` field cannot be used to distinguish multiple rate plans in this case.
**Note:** If both `externalCatalogPlanId` and `ratePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.
type: string
productRatePlanNumber:
description: 'Number of a product rate plan for this subscription.
'
type: string
ratePlanId:
description: 'ID of the rate plan to remove. This can be the latest version
or any history version of ID.
'
type: string
subscriptionOfferId:
description: "Internal identifier of the subscription offer. \n\n**Note**:\
\ You must enable the Offers feature to access this field. The Offers 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"
type: string
subscriptionOfferNumber:
description: "Number of the subscription offer. \n\n**Note**: You must enable\
\ the Offers feature to access this field. The Offers 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"
maxLength: 100
type: string
subscriptionOfferUniqueToken:
description: "Unique identifier of the subscription offer. \n\n**Note**: You\
\ must enable the Offers feature to access this field. The Offers 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"
type: string
subscriptionRatePlanNumber:
description: 'Number of a rate plan for this subscription.
'
type: string
uniqueToken:
description: Unique identifier for the rate plan. This identifier enables
you to refer to the rate plan before the rate plan has an internal identifier
in Zuora.
type: string
title: removeProduct
type: object
RenewSubscription:
description: 'Information about an order action of type `RenewSubscription`.
'
properties:
billToContactId:
description: "The ID of the bill-to contact associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Contact from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
clearingExistingBillToContact:
default: false
description: |
Whether to clear the existing bill-to contact ID at the subscription level. This field is mutually exclusive with the `billToContactId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingInvoiceTemplate:
default: false
description: |
Whether to clear the existing invoice template ID at the subscription level. This field is mutually exclusive with the `invoiceTemplateId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingPaymentTerm:
default: false
description: |
Whether to clear the existing payment term at the subscription level. This field is mutually exclusive with the `paymentTerm` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingSequenceSet:
default: false
description: |
Whether to clear the existing sequence set ID at the subscription level. This field is mutually exclusive with the `sequenceSetId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingSoldToContact:
default: false
description: |
Whether to clear the existing sold-to contact ID at the subscription level. This field is mutually exclusive with the `soldToContactId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
invoiceTemplateId:
description: "The ID of the invoice template associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Template from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
paymentTerm:
description: "The name of the payment term associated with the subscription.\
\ For example, `Net 30`. The payment term determines the due dates of invoices.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Term from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body..\n"
type: string
sequenceSetId:
description: "The ID of the sequence set associated with the subscription.\n\
\ \n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Set from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
soldToContactId:
description: "The ID of the sold-to contact associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Contact from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
title: RenewSubscription
type: object
RenewalTerm:
properties:
period:
description: 'Duration of the renewal term in months, years, days, or weeks,
depending on the value of the `periodType` field.
'
type: integer
periodType:
description: 'Unit of time that the renewal term is measured in.
'
enum:
- Month
- Year
- Day
- Week
type: string
type: object
ResendCalloutNotificationsFailedResponse:
additionalProperties:
description: |
The ID of a fail-to-resend callout notification history object, containing an object with the error code and message.
**Note:** Multiple records of this field are allowed in the response. Each of them represents a fail-to-resend callout notification history.
properties:
code:
description: 'The error code of response.
'
type: string
message:
description: The detail information of the error response
type: string
type: object
type: object
ResendEmailNotificationsFailedResponse:
additionalProperties:
description: |
The ID of a fail-to-resend email notification history object, containing an object with the error code and message.
**Note:** Multiple records of this field are allowed in the response. Each of them represents a fail-to-resend email notification history.
properties:
code:
description: 'The error code of response.
'
type: string
message:
description: The detail information of the error response
type: string
type: object
type: object
ResponseReasons:
properties:
code:
description: 'The error code of response.
'
type: string
message:
description: 'The detail information of the error response.
'
type: string
type: object
RevproAccountingCodes:
example:
adjustmentLiabilityAccount: adjustL-1
adjustmentRevenueAccount: adjustRev-1
contractAssetAccount: CA-2
contractLiabilityAccount: CL-2
productRatePlanChargeId: 2c92c0f962470b8101624b869fcd45fc
recognizedRevenueAccount: ContractRevRec-1
unbilledReceivablesAccount: unbilledR-1
properties:
adjustmentLiabilityAccount:
description: The name of the account where the Account Type is "Adjustment
Liability".
maxLength: 100
type: string
adjustmentRevenueAccount:
description: The name of the account where the Account Type is "Adjustment
Revenue".
maxLength: 100
type: string
contractAssetAccount:
description: The name of the account where the Account Type is "Contract Asset".
maxLength: 100
type: string
contractLiabilityAccount:
description: The name of the account where the Account Type is "Contract Liability".
maxLength: 100
type: string
productRatePlanChargeId:
description: The ID of your product rate plan charge.
type: string
recognizedRevenueAccount:
description: The name of the account where the Account Type is "Recognized
Revenue".
maxLength: 100
type: string
unbilledReceivablesAccount:
description: The name of the account where the Account Type is "Unbilled Receivables".
maxLength: 100
type: string
required:
- productRatePlanChargeId
- contractAssetAccount
- contractLiabilityAccount
- unbilledReceivablesAccount
- adjustmentLiabilityAccount
- recognizedRevenueAccount
- adjustmentRevenueAccount
type: object
SaveResult:
properties:
Errors:
description: ''
items:
$ref: '#/definitions/ActionsErrorResponse'
type: array
Id:
description: ''
type: string
Success:
description: ''
type: boolean
type: object
ScheduleItemsResponse:
allOf:
- properties:
actualAmount:
description: |
The actual amount that needs to be billed during the processing of the invoice schedule item.
By default, the actual amount is the same as the total amount. Even if order changes occur like Remove Product or Cancel Subscription, the value of the `amount` field keeps unchanged. The value of the `actualAmount` field reflects the actual amount to be billed.
format: number
type: string
amount:
description: "The amount of the invoice generated during the processing\
\ of the invoice schedule item.\n\nYou can only specify either the `amount`\
\ field or `percentage` field in one request. \n- If you choose to specify\
\ the `amount` field in the request, `null` is returned as the value of\
\ the `percentage` field in the corresponding response. \n- If you choose\
\ to specify the `percentage` field in the request, the value of the `amount`\
\ field returned in the corresponding response is calculated based on\
\ the percentage of the total amount.\n\nThe value of this field keeps\
\ unchanged once invoice schedule items are created. \n"
format: number
type: string
creditMemoId:
description: 'The ID of the credit memo that is generated during the processing
of the invoice schedule item.
'
type: string
id:
description: 'The unique ID of the invoice schedule item.
'
type: string
invoiceId:
description: 'The ID of the invoice that is generated during the processing
of the invoice schedule item.
'
type: string
name:
description: 'The name of the invoice schedule item.
'
maxLength: 100
type: string
percentage:
description: "The percentage of the total amount to be billed during the\
\ processing of the invoice schedule item. \n\nYou can only specify either\
\ the `amount` field or `percentage` field in one request. \n- If you\
\ choose to specify the `amount` field in the request, `null` is returned\
\ as the value of the `percentage` field in the corresponding response.\
\ \n- If you choose to specify the `percentage` field in the request,\
\ the value of the `amount` field returned in the corresponding response\
\ is calculated based on the percentage of the total amount.\n"
runDate:
description: "The date in the tenant\u2019s time zone when the invoice schedule\
\ item is processed to generate an invoice.\n"
format: date
type: string
status:
description: 'The status of the invoice schedule item.
'
enum:
- Pending
- Executing
- Processed
type: string
targetDateForAdditionalSubscriptions:
description: "The date in the tenant's time zone used by the invoice schedule\
\ to determine which fixed-period regular charges to be billed together\
\ with the invoice schedule item. \n\nThe regular charges must come from\
\ the subscriptions specified in the `additionalSubscriptionsToBill` field.\n"
format: date
type: string
type: object
- $ref: '#/definitions/InvoiceScheduleItemCustomFields'
- {}
title: scheduleItems
SettingComponentKeyValue:
description: Provides details about the individual components that need to be
compared and deployed.
properties:
errors:
items:
type: string
type: array
originalPayload:
$ref: '#/definitions/JsonNode'
response:
items:
$ref: '#/definitions/ConfigurationTemplateContent'
type: array
segregationKeys:
items:
type: string
type: array
title: SettingComponentKeyValue
type: object
SettingItemHttpOperation:
properties:
method:
description: One of the HTTP methods supported by the setting endpoint, for
example, GET,PUT,POST or DELETE.
enum:
- GET
- HEAD
- POST
- PUT
- PATCH
- DELETE
- OPTIONS
- TRACE
type: string
parameters:
description: An array of paramters required by this operation.
items:
$ref: '#/definitions/SettingItemHttpRequestParameter'
type: array
requestType:
description: JSON Schema for the request body of this operation.
type: object
responseType:
description: JSON Schema for the response body of this operation.
type: object
url:
description: The endpoint url of the operation method. For example, `/settings/billing-rules`.
type: string
title: httpOperation
type: object
SettingItemHttpRequestParameter:
properties:
description:
description: The description of the paramter.
type: string
name:
description: The name of the parameter.
type: string
title: httpRequestParameter
type: object
SettingItemWithOperationsInformation:
properties:
context:
description: The context where this setting item is effective.
enum:
- Tenant
- Entity
- User
- None
type: string
description:
description: The description of the setting item as you see from Zuora UI.
type: string
httpOperations:
description: An array of HTTP operation methods that are supported on this
setting endpoint.
items:
$ref: '#/definitions/SettingItemHttpOperation'
type: array
key:
description: The unique key to distinguish the setting item.
type: string
pathPattern:
description: The path pattern of the setting endpoint, relative to `/settings`.
For example, `/billing-rules`.
type: string
title: settingItem
type: object
SettingSourceComponentResponse:
description: Provides details about the different components that need to be compared
and deployed.
properties:
customFields:
items:
$ref: '#/definitions/SettingComponentKeyValue'
type: array
customObjects:
items:
$ref: '#/definitions/SettingComponentKeyValue'
type: array
dataAccessControl:
items:
$ref: '#/definitions/SettingComponentKeyValue'
type: array
notifications:
items:
$ref: '#/definitions/SettingComponentKeyValue'
type: array
productCatalog:
items:
$ref: '#/definitions/SettingComponentKeyValue'
type: array
settings:
items:
$ref: '#/definitions/SettingComponentKeyValue'
type: array
workflows:
items:
$ref: '#/definitions/SettingComponentKeyValue'
type: array
title: SettingSourceComponentResponse
type: object
SettingValueRequest:
properties:
body:
$ref: '#/definitions/BodyInSettingValueRequest'
children:
description: 'An array of requests that can only be executed after its parent
request has been executed successfully.
'
items:
$ref: '#/definitions/ChildrenSettingValueRequest'
type: array
id:
description: 'The id of the request. You can set it to any string. It must
be unique within the whole batch.
'
type: string
method:
description: 'One of the HTTP methods supported by the setting endpoint, for
example, GET,PUT,POST or DELETE.
'
enum:
- GET
- HEAD
- POST
- PUT
- PATCH
- DELETE
- OPTIONS
- TRACE
type: string
url:
description: 'The relative URL of the setting. It is the same as in the `pathPattern`
field in the response body of [Listing all Settings](https://developer.zuora.com/api-references/api/operation/GET_ListAllSettings).
For example, `/billing-rules`.
'
type: string
title: settingsRequest
type: object
SettingValueResponse:
properties:
body:
$ref: '#/definitions/BodyInSettingValueReponse'
errorMessages:
description: 'An array of error messages if errors occur when executing the
request.
'
items:
type: string
type: array
status:
description: 'User readable response status, for example, 502 BAD_GATEWAY.
'
type: string
title: settingsValueResponse
type: object
SettingValueResponseWrapper:
properties:
id:
description: 'The Id of the corresponding request.
'
type: string
method:
description: 'The HTTP method. It is the same as that of the corresponding
request.
'
enum:
- GET
- HEAD
- POST
- PUT
- PATCH
- DELETE
- OPTIONS
- TRACE
type: string
response:
$ref: '#/definitions/SettingValueResponse'
url:
description: 'The url as specified in the corresponding request.
'
type: string
title: settingsValueResponseWrapper
type: object
SettingsBatchRequest:
example:
requests:
- id: '1'
method: GET
url: /billing-rules
- id: '2'
method: GET
url: /accounting-rules
properties:
requests:
items:
$ref: '#/definitions/SettingValueRequest'
type: array
type: object
SettingsBatchResponse:
properties:
responses:
items:
$ref: '#/definitions/SettingValueResponseWrapper'
type: array
title: batchResponse
type: object
SignUpCreatePMPayPalECPayPalNativeEC:
properties:
BAID:
description: 'ID of a PayPal billing agreement, for example, I-1TJ3GAGG82Y9.
'
type: string
email:
description: "Email address associated with the payment method. This field\
\ is only supported for PayPal payment methods and is required if you want\
\ to create any of the following PayPal payment methods:\n - PayPal Express\
\ Checkout payment method \n - PayPal Adaptive payment method\n - PayPal\
\ Commerce Platform payment method\n"
type: string
type: object
SignUpCreatePaymentMethodCardholderInfo:
description: |
Container for cardholder information. If provided, Zuora will
only use this information for this card. Otherwise, Zuora will use
the account''s existing bill-to contact information for this card.
properties:
addressLine1:
description: 'First address line, 255 characters or less.
'
type: string
addressLine2:
description: 'Second address line, 255 characters or less.
'
type: string
cardHolderName:
description: 'The card holder''s full name as it appears on the card, e.g.,
"John J Smith", 50 characters or less.
'
type: string
city:
description: 'City, 40 characters or less.
'
type: string
country:
description: 'Country, must be a valid country name or abbreviation.
'
type: string
email:
description: 'Card holder''s email address, 80 characters or less.
'
type: string
phone:
description: 'Phone number, 40 characters or less.
'
type: string
state:
description: 'State; must be a valid state name or 2-character abbreviation.
'
type: string
zipCode:
description: 'Zip code, 20 characters or less.
'
type: string
required:
- cardHolderName
title: cardHolderInfo
type: object
SignUpCreatePaymentMethodCommon:
properties:
accountKey:
description: 'Internal ID of the customer account that will own the payment
method.
'
type: string
authGateway:
description: |
Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.
If you do not set this field, Zuora will use one of the following payment gateways instead:
* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.
* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.
type: string
ipAddress:
description: "The IPv4 or IPv6 information of the user when the payment method\
\ is created or updated. Some gateways use this field for fraud prevention.\
\ If this field is passed to Zuora, Zuora directly passes it to gateways.\
\ \n\nIf the IP address length is beyond 45 characters, a validation error\
\ occurs.\n"
type: string
makeDefault:
default: false
description: 'Specifies whether the payment method will be the default payment
method of the customer account that owns the payment method. Only applicable
if the `accountKey` field is set.
'
type: boolean
type: object
SignUpCreatePaymentMethodCreditCard:
properties:
cardHolderInfo:
$ref: '#/definitions/SignUpCreatePaymentMethodCardholderInfo'
cardNumber:
description: 'Credit card number.
'
type: string
cardType:
description: |
The type of the credit card.
Possible values include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Gateways](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways).
type: string
checkDuplicated:
type: boolean
expirationMonth:
description: 'One or two digit expiration month (1-12) of the credit card.
'
type: string
expirationYear:
description: 'Four-digit expiration year of the credit card.
'
type: string
mitConsentAgreementRef:
description: 'Specifies your reference for the stored credential consent agreement
that you have established with the customer. Only applicable if you set
the `mitProfileAction` field.
'
maxLength: 128
type: string
mitConsentAgreementSrc:
description: 'Required if you set the `mitProfileAction` field. Specifies
how the consent agreement has been established with the customer. The allowed
value is `External`. If you do not specify the `mitProfileAction` field,
Zuora will automatically create a stored credential profile for the payment
method, with the default value `External` set to this field.
'
enum:
- External
type: string
mitNetworkTransactionId:
description: 'Specifies the ID of a network transaction. Only applicable if
you set the `mitProfileAction` field to `Persist`.
'
maxLength: 128
type: string
mitProfileAction:
description: 'Specifies how Zuora creates and activates the stored credential
profile. If you do not specify this field, Zuora will automatically create
a stored credential profile for the payment method, with the default value
`Activate` set to this field.
'
enum:
- Activate
- Persist
type: string
mitProfileAgreedOn:
description: 'The date on which the profile is agreed. The date format is
`yyyy-mm-dd`.
'
format: date
type: string
mitProfileType:
description: 'Required if you set the `mitProfileAction` field. If you do
not specify the `mitProfileAction` field, Zuora will automatically create
a stored credential profile for the payment method, with the default value
`Recurring` set to this field.
'
enum:
- Recurring
type: string
securityCode:
description: |
CVV or CVV2 security code of the credit card.
To ensure PCI compliance, this value is not stored and cannot be queried.
type: string
type: object
SignUpCreatePaymentMethodCreditCardReferenceTransaction:
properties:
secondTokenId:
description: 'The second token id of CreditCardReferenceTransaction.
'
type: string
tokenId:
description: 'The token id of payment method, required field of CreditCardReferenceTransaction
type.
'
type: string
type: object
SignUpCreatePaymentMethodPayPalAdaptive:
properties:
preapprovalKey:
description: 'The PayPal preapproval key.
'
type: string
type: object
SignUpPaymentMethod:
allOf:
- properties:
type:
description: 'Type of payment method. The following types of the payment
method are supported:
'
enum:
- PayPalEC
- PayPalNativeEC
- PayPalAdaptive
- CreditCard
- CreditCardReferenceTransaction
type: string
required:
- type
type: object
- $ref: '#/definitions/SignUpCreatePaymentMethodCreditCardReferenceTransaction'
- $ref: '#/definitions/SignUpCreatePMPayPalECPayPalNativeEC'
- $ref: '#/definitions/SignUpCreatePaymentMethodPayPalAdaptive'
- $ref: '#/definitions/SignUpCreatePaymentMethodCreditCard'
- $ref: '#/definitions/SignUpCreatePaymentMethodCommon'
- $ref: '#/definitions/SignUpPaymentMethodObjectCustomFields'
SignUpPaymentMethodObjectCustomFields:
additionalProperties:
description: 'Custom fields of the payment method. The name of each custom field
has the form *customField*__c
. Custom field names are case sensitive.
See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a payment method object.
'
title: paymentMethodFieldsCustom
type: object
SignUpRequest:
example:
accountData:
autoPay: false
billCycleDay: '15'
billToContact:
country: US
firstName: foo
lastName: bar
state: California
currency: USD
customFields:
CustomerUserId__c: User_269145114619000
name: User
paymentMethod:
makeDefault: true
secondTokenId: '010'
tokenId: User_269145114619000
type: CreditCardReferenceTransaction
accountIdentifierField: CustomerUserId__c
options:
billingTargetDate: '2021-07-01'
collectPayment: true
maxSubscriptionsPerAccount: 0
runBilling: true
subscriptionData:
invoiceSeparately: false
ratePlans:
- productRatePlanId: 4028818284f5f8130184f5fe1a73101f
startDate: '2021-04-15'
terms:
autoRenew: false
initialTerm:
period: 6
periodType: Month
startDate: '2021-04-15'
termType: TERMED
renewalSetting: RENEW_WITH_SPECIFIC_TERM
renewalTerms:
- period: 6
periodType: Month
properties:
accountData:
$ref: '#/definitions/AccountData'
accountIdentifierField:
description: Specify the name of the field that holds external account id
type: string
customFields:
$ref: '#/definitions/CustomFields'
options:
$ref: '#/definitions/Options'
paymentData:
$ref: '#/definitions/PaymentData'
subscriptionData:
$ref: '#/definitions/SubscriptionData'
type: object
SignUpResponse:
properties:
accountId:
description: The account id for the order.
type: string
accountNumber:
description: The account number for the order.
type: string
creditMemoId:
description: An array of the credit memo id generated in this order request.
The credit memo is only available if you have the Invoice Settlement feature
enabled.
type: string
creditMemoNumber:
description: An array of the credit memo numbers generated in this order request.
The credit memo is only available if you have the Invoice Settlement feature
enabled.
type: string
invoiceId:
description: The invoice id generated in this order request
type: string
invoiceNumber:
description: The invoice number generated in this order request
type: string
orderNumber:
description: The order number of the order created.
type: string
paidAmount:
description: The total amount collected in this order request.
type: string
paymentId:
description: The payment id that is collected in this order request.
type: string
paymentNumber:
description: The payment number that is collected in this order request.
type: string
processId:
description: 'The Id of the process that handles the operation.
'
type: string
reasons:
items:
$ref: '#/definitions/SignUpResponse_reasons'
type: array
status:
description: Status of the order. `Pending` is only applicable for an order
that contains a `CreateSubscription` order action.
enum:
- Completed
- Pending
type: string
subscriptionId:
description: The subscription id of the order.
type: string
subscriptionNumber:
description: The subscription number of the order.
type: string
success:
description: 'Indicates whether the call succeeded.
'
type: boolean
type: object
SignUpResponse_reasons:
properties:
code:
description: 'The error code of response.
'
type: string
message:
description: 'The detail information of the error response
'
type: string
type: object
SignUpTaxInfo:
description: 'Information about the tax exempt status of a customer account.
'
properties:
VATId:
description: |
EU Value Added Tax ID.
**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com).
maxLength: 25
type: string
companyCode:
description: |
Unique code that identifies a company account in Avalara. Use this field to calculate taxes based on origin and sold-to addresses in Avalara.
**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com).
maxLength: 50
type: string
exemptCertificateId:
description: 'ID of the customer tax exemption certificate. Applicable if
you use Zuora Tax or Connect tax engines.
'
maxLength: 32
type: string
exemptCertificateType:
description: 'Type of tax exemption certificate that the customer holds. Applicable
if you use Zuora Tax or Connect tax engines.
'
maxLength: 32
type: string
exemptDescription:
description: 'Description of the tax exemption certificate that the customer
holds. Applicable if you use Zuora Tax or Connect tax engines.
'
maxLength: 500
type: string
exemptEffectiveDate:
description: 'Date when the customer tax exemption starts, in YYYY-MM-DD format.
Applicable if you use Zuora Tax or Connect tax engines.
'
format: date
type: string
exemptExpirationDate:
description: 'Date when the customer tax exemption expires, in YYYY-MM-DD
format. Applicable if you use Zuora Tax or Connect tax engines.
'
format: date
type: string
exemptIssuingJurisdiction:
description: 'Jurisdiction in which the customer tax exemption certificate
was issued.
'
maxLength: 32
type: string
exemptStatus:
default: 'No'
description: "Status of the account tax exemption. Applicable if you use Zuora\
\ Tax or Connect tax engines. Required if you use Zuora Tax. \n"
enum:
- 'No'
- 'Yes'
- PendingVerification
type: string
title: taxInfo
type: object
SoldToContact:
allOf:
- description: 'Contact details associated with an account.
'
properties:
address1:
description: 'First line of the contact''s address. This is often a street
address or a business name.
'
maxLength: 255
type: string
address2:
description: 'Second line of the contact''s address.
'
maxLength: 255
type: string
city:
description: 'City of the contact''s address.
'
maxLength: 40
type: string
country:
description: 'Country; must be a valid country name or abbreviation. If
using Zuora Tax, you must specify a country in the sold-to contact to
calculate tax. A bill-to contact may be used if no sold-to contact is
provided.
'
maxLength: 64
type: string
county:
description: 'County of the contact''s address.
'
maxLength: 32
type: string
fax:
description: 'Fax number of the contact.
'
maxLength: 40
type: string
firstName:
description: 'First name of the contact.
'
maxLength: 100
type: string
homePhone:
description: 'Home phone number of the contact.
'
maxLength: 40
type: string
lastName:
description: 'Last name of the contact.
'
maxLength: 100
type: string
mobilePhone:
description: 'Mobile phone number of the contact.
'
maxLength: 40
type: string
nickname:
description: 'Nickname of the contact.
'
maxLength: 100
type: string
otherPhone:
description: 'Additional phone number of the contact. Use the `otherPhoneType`
field to specify the type of phone number.
'
maxLength: 40
type: string
otherPhoneType:
description: 'Specifies the type of phone number in the `otherPhone` field.
'
enum:
- Work
- Mobile
- Home
- Other
type: string
personalEmail:
description: 'Personal email address of the contact.
'
format: email
maxLength: 80
type: string
postalCode:
description: 'ZIP code or other postal code of the contact''s address.
'
maxLength: 20
type: string
state:
description: 'State or province of the contact''s address.
'
maxLength: 40
type: string
taxRegion:
description: 'Region defined in your taxation rules. Only applicable if
you use Zuora Tax.
'
maxLength: 32
type: string
workEmail:
description: 'Business email address of the contact.
'
format: email
maxLength: 80
type: string
workPhone:
description: 'Business phone number of the contact.
'
maxLength: 40
type: string
required:
- firstName
- lastName
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
SoldToContactPostOrder:
allOf:
- description: 'Contact details associated with an account.
'
properties:
address1:
description: 'First line of the contact''s address. This is often a street
address or a business name.
'
maxLength: 255
type: string
address2:
description: 'Second line of the contact''s address.
'
maxLength: 255
type: string
city:
description: 'City of the contact''s address.
'
maxLength: 40
type: string
contactDescription:
description: "A description for the contact. \n"
maxLength: 100
type: string
country:
description: 'Country; must be a valid country name or abbreviation. If
using Zuora Tax, you must specify a country in the sold-to contact to
calculate tax. A bill-to contact may be used if no sold-to contact is
provided.
'
maxLength: 64
type: string
county:
description: 'County of the contact''s address.
'
maxLength: 32
type: string
fax:
description: 'Fax number of the contact.
'
maxLength: 40
type: string
firstName:
description: 'First name of the contact.
'
maxLength: 100
type: string
homePhone:
description: 'Home phone number of the contact.
'
maxLength: 40
type: string
lastName:
description: 'Last name of the contact.
'
maxLength: 100
type: string
mobilePhone:
description: 'Mobile phone number of the contact.
'
maxLength: 40
type: string
nickname:
description: 'Nickname of the contact.
'
maxLength: 100
type: string
otherPhone:
description: 'Additional phone number of the contact. Use the `otherPhoneType`
field to specify the type of phone number.
'
maxLength: 40
type: string
otherPhoneType:
description: 'Specifies the type of phone number in the `otherPhone` field.
'
enum:
- Work
- Mobile
- Home
- Other
type: string
personalEmail:
description: 'Personal email address of the contact.
'
format: email
maxLength: 80
type: string
postalCode:
description: 'ZIP code or other postal code of the contact''s address.
'
maxLength: 20
type: string
state:
description: 'State or province of the contact''s address.
'
maxLength: 40
type: string
taxRegion:
description: 'Region defined in your taxation rules. Only applicable if
you use Zuora Tax.
'
maxLength: 32
type: string
workEmail:
description: 'Business email address of the contact.
'
format: email
maxLength: 80
type: string
workPhone:
description: 'Business phone number of the contact.
'
maxLength: 40
type: string
required:
- firstName
- lastName
type: object
- $ref: '#/definitions/ContactObjectCustomFields'
SourceValidityPeriodInfo:
description: Date range of the source validity period from which the funds are
transferred. It should be close to the destination validity period.
properties:
endDate:
description: End date of the source validity period.
format: date
type: string
startDate:
description: Start date of the source validity period.
format: date
type: string
required:
- startDate
- endDate
title: sourceValidityPeriod
type: object
SubmitBatchQueryRequest:
example:
dateTimeUtc: 'true'
encrypted: none
format: csv
name: Example
partner: salesforce
project: 00170000011K3Ub
queries:
- name: AccountingPeriod
query: select Id,StartDate,EndDate,FiscalYear,Name,Status from AccountingPeriod
type: zoqlexport
sourceData: LIVE
useQueryLabels: 'true'
version: '1.1'
properties:
dateTimeUtc:
description: |
When using WSDL 69 and later you can ensure that the exported output of dateTime records are rendered according to ISO-8601 generic UTC form by setting `dateTimeUtc` to `true`.
When `dateTimeUtc` is set to `true`, exports of dateTime data types will be rendered in the following generic format: `YYYY-MM-DDThh:mm:ss-hhmm` or `YYYY-MM-DDThh:mm:ss+hhmm`.
**Note**: Regardless of what batchType query is used (`zoql` or `zoqlexport`), the query response output for datetime data types can be standardized by setting dateTimeUtc to `true`. When `true`, the results will display datetime types with the format: YYYY-MM-DDThh:mm:ss+/-hhmm.
type: boolean
format:
description: 'The format of the query. The default value is `csv`.
'
enum:
- csv
- zip
- gzip
type: string
incrementalTime:
description: |
Allows you to override the time from which a Stateful AQuA job incrementally retrieves records that have been created or modified, using the `incrementalTime` parameter. For example, if you set `incrementalTime` = `2015-01-21 10:30:01`, AQuA will retrieve records that have created or modified beginning at 10:30:01. If this parameter is not set, AQuA continues to use the Start Time of the last AQuA session to retrieve records incrementally.
The time zone of `incrementalTime` depends on which Zuora data center you use. For US Data Center customers, the time zone of `incrementalTime` is Pacific Time. For EU Data Center customers, the time zone of `incrementalTime` is UTC. If the time zone of your system is different from the time zone of `incrementalTime`, you will need to convert to the appropriate time zone before setting `incrementalTime`.
**Note**: This field can only be used in Stateful AQuA mode.
format: dateTime
type: string
name:
description: 'The name of the job. 32 character limit.
'
type: string
notifyUrl:
description: "If URL is provided, the AQuA job will call this `notifyUrl`\
\ once the job has completed. The value of `notifyUrl` needs to have `${JOBID}`\
\ and `${STATUS}` placeholders. These placeholders will be replaced by the\
\ actual job ID and status when returned in the response. Status will be\
\ `Completed` after the AQuA job is done.\n\nIf you submit an AQuA query\
\ with `notifyUrl` specified, the value of `notifyUrl` will be ignored if\
\ your organization has already configured a callout notification through the Zuora\
\ user interface . \n"
type: string
nullReplacement:
description: 'The string used to represent null values in the query results.
If you do not set this parameter, null values are represented by the empty
string in the query results.
'
type: string
offset:
default: 0
description: "This field specifies the time offset for AQuA queries in stateful\
\ mode. It is an integer in the range 0 to 3,600 seconds.\n\nFor example,\
\ if you set this field to 600 seconds and you post a query in stateful\
\ mode at 2:00 AM, it will query against data created or updated between\
\ the completion time of the previous query and 1:50 AM.\n\nThe value of\
\ this field will override the value you configured in **Settings** > **Administration**\
\ > **AQuA API Stateful Mode Time Offset**. \n"
format: integer
type: number
partner:
description: "The partner field indicates the unique ID of a data integration\
\ partner. The dropdown list of this field displays partner IDs for the\
\ past thirty days.\nIt must be used together with \"project\" field to\
\ uniquely identify a data integration target.\n\nFor example, if a continuous\
\ AQuA session is to retrieve data incrementally for a Salesforce.com Org\
\ 00170000011K3Ub, you can use partner as \"Salesforce\", and \"project\"\
\ as \"00170000011K3Ub.\" \nThis field is required only if you are using\
\ AQuA in stateful mode. Otherwise, if you are using AQuA in stateless mode,\
\ partner field can be null.\n\n**Note**: Zuora highly recommends you use\
\ the stateless mode instead of the stateful mode to extract bulk data.\
\ See Bulk data extraction from Zuora using AQuA for best\
\ practices.\n**Note**: Submit a request at Zuora Global Support to obtain a partner ID.\n"
type: string
project:
description: "The project field contains the unique ID of a data integration\
\ project for a particular partner. The dropdown list of this field displays\
\ project IDs for the past thirty days.\n\nThis field must be used together\
\ with partner field to uniquely identify a data integration target. \n\n\
This field is required only if you are using AQuA in stateful mode. Otherwise,\
\ if you are using AQuA in stateless mode, partner field can be null.\n"
type: string
queries:
description: 'A JSON array object that contains a list of batch objects.
'
items:
$ref: '#/definitions/BatchQuery'
required:
- name
- query
type: array
sourceData:
description: |
Specify the source this aggregate query runs against:
* `LIVE` represents the live transactional databases at Zuora (Data Query Live).
* `WAREHOUSE` represents Zuora Warehouse, which has better performance and fewer limitations than the live transactional database. This option is available only if you have the Zuora Warehouse feature enabled in your tenant. For more information, see Zuora Warehouse . If this option is selected, you can specify warehouse size in `warehouseSize`.
If this field is not specified, the default value `LIVE` will be used.
enum:
- LIVE
- WAREHOUSE
type: string
useQueryLabels:
description: "When this optional flag is set to `true` the request will use\
\ object and field API names for the CSV header output instead of the field\
\ labels. Data integration projects should set `useQueryLabels` to `true`\
\ so that API names remain the same.\n\nBy default `useQueryLabels` is `false`,\
\ so that output CSV headers display the more user-friendly object and field\
\ labels. \n"
type: boolean
version:
description: "The API version you want to use. \n\nThe supported versions\
\ are as follows:\n - `1.1`. It supports both modes\n - `1.0`. Default.\
\ It supports stateless modes only.\n\nSee Stateless and stateful modes for more information.\n"
format: float
type: number
warehouseSize:
description: |
Specify the size of Zuora Warehouse. This field is available only if the `sourceData` is `WAREHOUSE`.
If this field is not specified or set to `NULL`, the default value `xsmall` will be used.
enum:
- xsmall
- 'NULL'
type: string
type: object
SubmitBatchQueryResponse:
properties:
batches:
description: 'A JSON array object that contains a list of batch objects.
'
items:
$ref: '#/definitions/BatchesQueries'
required:
- name
- query
- status
- batchId
- batchType
type: array
encrypted:
description: "If enabled, you must supply the formatting (zip or unzip) first\
\ and decrypt it to get the actual contents. \n"
enum:
- pgp
- none
type: string
format:
description: 'The format of the query. The default value is `csv`.
'
enum:
- csv
- zip
- gzip
type: string
id:
description: "The job ID created for the AQuA API request. The job ID can\
\ be used for querying for the query status. \n\nThe ID exists only if the\
\ JSON request can be parsed and validated successfully. Otherwise, the\
\ job ID is null.\n"
type: string
incrementalTime:
description: "Allows you to override the time from which a Stateful AQuA job\
\ incrementally retrieves records that have been created or modified, using\
\ the `incrementalTime` parameter. For example, if you set `incrementalTime`\
\ = `2015-01-21 10:30:01`, AQuA will retrieve records that have created\
\ or modified beginning at 10:30:01. If this parameter is not set, AQuA\
\ continues to use the Start Time of the last AQuA session to retrieve records\
\ incrementally.\n\nThe time zone of `incrementalTime` depends on which\
\ Zuora data center you use. For US Data Center customers, the time zone\
\ of `incrementalTime` is Pacific Time. For EU Data Center customers, the\
\ time zone of `incrementalTime` is UTC. If the time zone of your system\
\ is different from the time zone of `incrementalTime`, you will need to\
\ convert to the appropriate time zone before setting `incrementalTime`.\n\
\n**Note**: This field can only be used in Stateful AQuA mode. \n"
format: dateTime
type: string
name:
description: 'The name of the job. 32 character limit.
'
type: string
notifyUrl:
description: "If URL is provided, the AQuA job will call this `notifyUrl`\
\ once the job has completed. The value of `notifyUrl` needs to have `${JOBID}`\
\ and `${STATUS}` placeholders. These placeholders will be replaced by the\
\ actual job ID and status when returned in the response. Status will be\
\ `Completed` after the AQuA job is done.\n\nIf you submit an AQuA query\
\ with `notifyUrl` specified, the value of `notifyUrl` will be ignored if\
\ your organization has already configured a callout notification through the Zuora\
\ user interface . \n"
type: string
offset:
default: 0
description: "This field specifies the time offset for AQuA queries in stateful\
\ mode. It is an integer in the range 0 to 3,600 seconds.\n\nFor example,\
\ if you set this field to 600 seconds and you post a query in stateful\
\ mode at 2:00 AM, it will query against data created or updated between\
\ the completion time of the previous query and 1:50 AM.\n\nThe value of\
\ this field will override the value you configured in **Settings** > **Administration**\
\ > **AQuA API Stateful Mode Time Offset**. \n"
format: integer
type: number
partner:
description: "The partner field indicates the unique ID of a data integration\
\ partner. The dropdown list of this field displays partner IDs for the\
\ past thirty days.\n\nIt must be used together with \"project\" field to\
\ uniquely identify a data integration target.\n\nFor example, if a continuous\
\ AQuA session is to retrieve data incrementally for a Salesforce.com Org\
\ 00170000011K3Ub, you can use partner as \"Salesforce\", and \"project\"\
\ as \"00170000011K3Ub.\" \n\nThis field is required only if you are using\
\ AQuA in stateful mode. Otherwise, if you are using AQuA in stateless mode,\
\ partner field can be null.\n\n**Note**: Zuora highly recommends you use\
\ the stateless mode instead of the stateful mode to extract bulk data.\
\ See Bulk data extraction from Zuora using AQuA for best\
\ practices.\n\n**Note**: Submit a request at Zuora Global Support to obtain a partner ID.\n"
type: string
project:
description: "The project field contains the unique ID of a data integration\
\ project for a particular partner. The dropdown list of this field displays\
\ project IDs for the past thirty days.\n\nThis field must be used together\
\ with partner field to uniquely identify a data integration target. \n\n\
This field is required only if you are using AQuA in stateful mode. Otherwise,\
\ if you are using AQuA in stateless mode, partner field can be null.\n"
type: string
sourceData:
description: |
Indicates the source this aggregate query runs against:
* `LIVE` represents the live transactional databases at Zuora (Data Query Live).
* `WAREHOUSE` represents Zuora Warehouse, which has better performance and fewer limitations than the live transactional database. For more information, see Zuora Warehouse .
type: string
status:
description: |
The status of the AQuA job:
- submitted: The AQuA job was submitted to the query executor for processing.
- executing: The AQuA job is being processed.
- completed: The AQuA job was successfully executed.
- error: The AQuA job was not processed because of validation errors.
- aborted: The AQuA job execution failed because one or more queries of this job failed.
- cancelled: The AQuA job was cancelled.
enum:
- submitted
- executing
- completed
- error
- aborted
- cancelled
type: string
useLastCompletedJobQueries:
description: |
If this flag is set to `true`, then all the previous queries are merged with existing queries.
If the flag is set to `false`, then the previous queries are ignored, and only the new query is executed.
type: boolean
version:
description: "The API version you want to use. \n\nThe supported versions\
\ are as follows:\n - `1.1`. It supports both modes\n - `1.0`. Default.\
\ It supports stateless modes only.\n\nSee Stateless and stateful modes for more information.\n"
format: float
type: number
type: object
SubmitDataLabelingJobRequest:
example:
objectType: Account
orgIds:
- 12345678-1234-1234-1234-123456789012
query: select Id from Account where BillToContact.Country = 'US'
queryType: ByZoql
properties:
ids:
description: |
The IDs of the objects to be labeled, only required if the `queryType` is `ById`.
There is a 4MB limit of the JSON payload, so in case of a large number of IDs, please make sure the payload is less than 4MB.
items:
type: string
type: array
objectType:
description: "The object type of the data labeling job.\n\nCurrently, the\
\ following objects are supported:\n * `User`\n * `Account` \n\n All\
\ the associated transaction objects of the account being labeled will automatically\
\ inherit the org label of the account.\n * `Product`\n\n You have to\
\ label the Account object first, make sure all accounts have been labeled,\
\ then you can proceed with the Product object. \n\n You can get all\
\ the unlabeled accounts by running a Data Source export job, with the following\
\ query:\n ``` sql\n SELECT Id, Name FROM Account WHERE Organization.Id\
\ IS NULL\n ``` \n \n All the ProductRatePlanS of\
\ the product will be automatically labeled with the same `orgs`.\n \n\
\ When labeling products, you can omit the `orgs` parameter, i.e, leave\
\ it empty, the system will find all the subscriptions that include the\
\ product and get the org list of those subscriptions, then label the product\
\ with those `orgs`, aka, the `derived orgs`.\n \n You can also explicitly\
\ specify the orgs parameter, in that case, you will need to provide a super\
\ set of the `derived orgs`. \n * `BillRun`\n\n You don't need to specify\
\ the `orgs` parameter, we will label the `BillRun` with all the orgs because\
\ existing runs could pick up all accounts. You can definitely create new\
\ bill run with certain `orgs` to operate separately by `orgs`.\n * `PaymentRun`\n\
\n Same as BillRun.\n * `ForecastRun`\n"
type: string
orgIds:
description: 'The IDs of the organizations that the data labeling job will
associate with the data to be labeled. Either the `orgIds` or `orgs` field
is required.
'
format: byte
items:
format: uuid
maxLength: 36
minLength: 36
type: string
type: array
orgs:
description: 'The names of the organizations that the data labeling job will
associate with the data to be labeled. Either the `orgIds` or `orgs` field
is required.
'
items:
type: string
type: array
query:
description: 'The query that the data labeling job will run to fetch the data
to be labeled, only required if the `queryType` is `ByZoql`.
'
type: string
queryType:
description: |
Specifies the type of query that the data labeling job will run to fetch the data to be labeled.
* `ByZoql` - The data labeling job will run a ZOQL query which is specified in the `query` field to fetch the data to be labeled.
* `ById` - The data labeling job will fetch the data to be labeled by the IDs specified in the `ids` field.
enum:
- ByZoql
- ById
type: string
required:
- objectType
- queryType
type: object
SubmitDataLabelingJobResponse:
properties:
jobId:
description: 'Identifier of the data labeling job.
'
format: uuid
maxLength: 32
minLength: 32
type: string
jobStatus:
description: |
Status of the data labeling job.
* `Accepted` - The data labeling job has been accepted by the system.
* `Dispatched` - The data labeling job is dispatched to the data labeling service.
* `Completed` - The data labeling job has completed. Please note that `Completed` simply means the data labeling job has completed, but it does not mean the data labeling job has labeled all the data. You can check the `progress` field to see how many data have been `labeled`, `failed` or `timeout`.
enum:
- Accepted
- Dispatched
- Completed
type: string
success:
description: 'Indicates whether the job was submitted successfully.
'
type: boolean
type: object
SubmitDataQueryRequest:
example:
compression: NONE
output:
target: S3
outputFormat: JSON
query: SELECT accountnumber, balance FROM Account WHERE Account.balance > 100
sourceData: LIVE
properties:
columnSeparator:
description: 'The column separator. Only applicable if the `outputFormat`
is `DSV`.
'
type: string
compression:
description: 'Specifies whether Zuora compresses the query results.
'
enum:
- NONE
- GZIP
- ZIP
type: string
encryptionKey:
description: "Base-64 encoded public key of an RSA key-pair. \n\nNote that\
\ Data Query only supports 1024-bit RSA keys.\n\nIf you set this field,\
\ Zuora encrypts the query results using the provided public key. You must\
\ use the corresponding private key to decrypt the query results.\n"
format: byte
type: string
output:
description: 'Additional information about the query results.
'
properties:
target:
description: 'Set this field to `S3`.
'
enum:
- S3
type: string
required:
- target
type: object
outputFormat:
description: |
Specifies the format of the query results.
* `JSON` - Each row in the query results will be a JSON object. The format of the query result file is [JSON Lines](http://jsonlines.org/).
* `CSV` - Each row in the query results will be a comma-separated list of values.
* `TSV` - Each row in the query results will be a tab-separated list of values.
* `DSV` - Pass any character as your custom delimiter into the `columnSeparator` field.
enum:
- JSON
- CSV
- TSV
- DSV
type: string
query:
description: 'The query to perform. See [SQL Queries in Data Query](https://knowledgecenter.zuora.com/DC_Developers/BA_Data_Query/BA_SQL_Queries_in_Data_Query)
for more information.
'
type: string
readDeleted:
default: false
description: |
Indicates whether the query will retrieve only the deleted record. If `readDeleted` is set to `false` or it is not included in the request body, the query will retrieve only the non-deleted records. If it is set to `true`, only the deleted records will be retrieved.
If you select the `deleted` column in the `query` field, both non-deleted and deleted records will be retrieved regardless of the value in the `readDeleted` field.
Note that Data Query is subject to Zuora Data Retention Policy. The retention period of deleted data is 30 days. You can only retrieve deleted data for 30 days through Data Query.
type: boolean
sourceData:
description: |
Specify the source that data queries run against:
* `LIVE` represents the live transactional databases at Zuora (Data Query Live).
* `WAREHOUSE` represents Zuora Warehouse, which has better performance and fewer limitations than the live transactional database. This option is available only if you have the Zuora Warehouse feature enabled in your tenant. For more information, see Zuora Warehouse . If this option is selected, you can specify warehouse size in `warehouseSize`.
If this field is not specified, the default value `LIVE` will be used.
enum:
- LIVE
- WAREHOUSE
type: string
useIndexJoin:
description: Indicates whether to use Index Join. Index join is useful when
you have a specific reference value in your WHERE clause to index another
large table by. See [Use Index Join](https://knowledgecenter.zuora.com/DC_Developers/BA_Data_Query/Best_practices_of_Data_Query#Use_Index_Join)
for more information.
type: boolean
warehouseSize:
description: |
Specify the size of Zuora Warehouse. This field is available only if the `sourceData` is `WAREHOUSE`.
If this field is not specified or set to `NULL`, the default value `xsmall` will be used.
enum:
- xsmall
- 'NULL'
type: string
required:
- query
- outputFormat
- compression
- output
type: object
SubmitDataQueryResponse:
properties:
data:
$ref: '#/definitions/DataQueryJob'
type: object
SubscriptionData:
properties:
customFields:
$ref: '#/definitions/CustomFields'
invoiceSeparately:
description: 'Specifies whether the subscription appears on a separate invoice
when Zuora generates invoices.
'
type: boolean
notes:
description: 'Notes about the subscription. These notes are only visible to
Zuora users.
'
maxLength: 500
type: string
ratePlans:
$ref: '#/definitions/RatePlans'
startDate:
format: date
type: string
subscriptionNumber:
description: |
Subscription number of the subscription to create, for example, A-S00000001.
If you do not set this field, Zuora will generate a subscription number.
maxLength: 100
type: string
terms:
$ref: '#/definitions/TermInfo'
type: object
SubscriptionObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Subscription object. The name of each custom
field has the form *customField*__c
. Custom field names are case
sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Subscription object.
'
title: subscriptionFieldsCustom
type: object
SubscriptionObjectNSFields:
description: 'Container for Subscription fields provided by the [Zuora Connector
for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
properties:
IntegrationId__NS:
description: 'ID of the corresponding object in NetSuite. Only available if
you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
IntegrationStatus__NS:
description: 'Status of the subscription''s synchronization with NetSuite.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
Project__NS:
description: 'The NetSuite project that the subscription was created from.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
SalesOrder__NS:
description: 'The NetSuite sales order than the subscription was created from.
Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
SyncDate__NS:
description: 'Date when the subscription was synchronized with NetSuite. Only
available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).
'
maxLength: 255
type: string
title: subscriptionFieldsNS
type: object
SubscriptionObjectQTFields:
description: 'Container for Subscription fields provided by Zuora Quotes.
'
properties:
CpqBundleJsonId__QT:
description: 'The Bundle product structures from Zuora Quotes if you utilize
Bundling in Salesforce. Do not change the value in this field.
'
maxLength: 32
type: string
OpportunityCloseDate__QT:
description: 'The closing date of the Opportunity. This field is used in Zuora
data sources to report on Subscription metrics. If the subscription originated
from Zuora Quotes, the value is populated with the value from Zuora Quotes.
'
format: date
type: string
OpportunityName__QT:
description: 'The unique identifier of the Opportunity. This field is used
in Zuora data sources to report on Subscription metrics. If the subscription
originated from Zuora Quotes, the value is populated with the value from
Zuora Quotes.
'
maxLength: 100
type: string
QuoteBusinessType__QT:
description: 'The specific identifier for the type of business transaction
the Quote represents such as New, Upsell, Downsell, Renewal or Churn. This
field is used in Zuora data sources to report on Subscription metrics. If
the subscription originated from Zuora Quotes, the value is populated with
the value from Zuora Quotes.
'
maxLength: 32
type: string
QuoteNumber__QT:
description: 'The unique identifier of the Quote. This field is used in Zuora
data sources to report on Subscription metrics. If the subscription originated
from Zuora Quotes, the value is populated with the value from Zuora Quotes.
'
maxLength: 32
type: string
QuoteType__QT:
description: 'The Quote type that represents the subscription lifecycle stage
such as New, Amendment, Renew or Cancel. This field is used in Zuora data
sources to report on Subscription metrics. If the subscription originated
from Zuora Quotes, the value is populated with the value from Zuora Quotes.
'
maxLength: 32
type: string
title: subscriptionFieldsQT
type: object
SubscriptionOfferObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Subscription Offer object. The name of each
custom field has the form *customField*__c
. Custom field names
are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Subscription Offer object.
'
title: subscriptionOfferFieldsCustom
type: object
SystemHealthErrorResponse:
properties:
error:
description: 'Error status text.
'
type: string
message:
description: 'The associated reason.
'
type: string
path:
description: 'The system health api path having error.
'
type: string
status:
description: 'Error status code.
'
type: integer
timestamp:
description: 'The time when error happens.
'
format: date-time
type: string
type: object
Task:
description: 'A task.
'
properties:
action_type:
description: 'The type of the task.
'
enum:
- Approval
- Attachment
- Billing::BillRun
- Billing::CurrencyConversion
- Billing::CustomInvoice
- Callout
- Cancel
- Create
- CustomObject::Create
- CustomObject::Delete
- CustomObject::Query
- CustomObject::Update
- Data::BillingPreviewRun
- Data::Link
- Delay
- Delete
- Download::SFTP
- Email
- Export
- File::CustomPDF::CustomDocument
- If
- InvoiceGenerate
- Iterate
- Logic::CSVTranslator
- Logic::Case
- Logic::CustomCode
- Logic::JSONTransform
- Logic::Lambda
- Logic::ResponseFormatter
- Logic::XMLTransform
- NewProduct
- Notifications::GoogleCloudPrint
- Notifications::PhoneCall
- Notifications::SMS
- Payment::GatewayReconciliation
- Payment::PaymentRun
- Query
- RemoveProduct
- Reporting::ReportData
- Reporting::RunReport
- Resume
- Suspend
- UI::Page
- UI::Stop
- Update
- Upload::FTP
- Upload::SFTP
- WriteOff
type: string
call_type:
description: 'The type of API used.
'
type: string
concurrent_limit:
description: the number of concurrent tasks that are allowed to run simultaneously
type: integer
data:
description: 'The data payload for the task.
'
type: object
end_time:
description: 'If **Instance** is **true**, the end time of the task instance.
'
type: string
error:
description: 'If **Instance** is **true** and **status** is **Error**, the
error reason of the task instance failure.
'
type: string
error_class:
description: 'If **Instance** is **true** and **status** is **Error**, the
error class of the task instance failure.
'
type: string
error_details:
description: 'If **Instance** is **true** and **status** is **Error**, the
error details of the task instance failure.
'
type: string
id:
description: 'The unique ID of the task.
'
type: integer
instance:
description: 'Indicates whether this task belongs to an instance of a workflow.
'
type: boolean
name:
description: 'The name of the task.
'
type: string
object:
description: 'The selected object for the task.
'
type: string
object_id:
description: 'The id of the selected object of the task.
'
type: string
original_task_id:
description: 'If **Instance** is **true**, the ID of the original task in
the original workflow.
'
type: integer
original_workflow_id:
description: 'If **Instance** is **true**, the ID of the original workflow.
'
type: integer
parameters:
description: 'The configuration of the task.
'
type: object
start_time:
description: 'If **Instance** is **true**, the start time of the task instance.
'
type: string
status:
description: 'If **Instance** is **true**, the status of the task instance.
'
enum:
- Queued
- Processing
- Pending
- Success
- Stopped
- Error
type: string
tags:
description: 'The array of filter tags.
'
items:
type: string
type: array
task_id:
description: the id of this task's parent task. Will be null if this is the
first task of the workflow
type: integer
workflow_id:
description: 'The ID of the workflow that the task belongs to.
'
type: integer
type: object
TasksResponse:
properties:
data:
description: 'The list of tasks retrieved.
'
items:
$ref: '#/definitions/Task'
type: array
pagination:
description: 'An object containing pagination information for the list of
tasks returned by the API.
'
properties:
next_page:
description: 'A string containing the URL where the next page of data
can be retrieved.
'
type: string
page:
description: 'An integer denoting the current page number.
'
type: integer
page_length:
description: 'An integer denoting the number of tasks in this response.
The maximum value is 100.
'
type: integer
type: object
type: object
TaxInfo:
description: 'Information about the tax exempt status of a customer account.
'
properties:
VATId:
description: |
EU Value Added Tax ID.
**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com).
maxLength: 25
type: string
companyCode:
description: |
Unique code that identifies a company account in Avalara. Use this field to calculate taxes based on origin and sold-to addresses in Avalara.
**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com).
maxLength: 50
type: string
exemptCertificateId:
description: 'ID of the customer tax exemption certificate. Applicable if
you use Zuora Tax or Connect tax engines.
'
maxLength: 32
type: string
exemptCertificateType:
description: 'Type of tax exemption certificate that the customer holds. Applicable
if you use Zuora Tax or Connect tax engines.
'
maxLength: 32
type: string
exemptDescription:
description: 'Description of the tax exemption certificate that the customer
holds. Applicable if you use Zuora Tax or Connect tax engines.
'
maxLength: 500
type: string
exemptEffectiveDate:
description: 'Date when the customer tax exemption starts, in YYYY-MM-DD format.
Applicable if you use Zuora Tax or Connect tax engines.
'
format: date
type: string
exemptExpirationDate:
description: 'Date when the customer tax exemption expires, in YYYY-MM-DD
format. Applicable if you use Zuora Tax or Connect tax engines.
'
format: date
type: string
exemptIssuingJurisdiction:
description: 'Jurisdiction in which the customer tax exemption certificate
was issued.
'
maxLength: 32
type: string
exemptStatus:
default: 'No'
description: "Status of the account tax exemption. Applicable if you use Zuora\
\ Tax or Connect tax engines. Required if you use Zuora Tax. \n"
enum:
- 'No'
- 'Yes'
- PendingVerification
type: string
title: taxInfo
type: object
TaxationItemObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Taxation Item object. The name of each custom
field has the form *customField*__c
. Custom field names are case
sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Taxation Item object.
'
title: taxationItemFieldsCustom
type: object
TemplateDetailResponse:
description: Contains all template details.
properties:
active:
description: Whether or not the template is active.
type: boolean
content:
$ref: '#/definitions/SettingSourceComponentResponse'
createdBy:
description: Information about the user who created it.
type: string
createdOn:
description: When it is created.
type: string
description:
description: Template description which contains the information about the
created template.
type: string
entityName:
description: Name of the Entity
type: string
environment:
description: Details of the environment in which the template was created.
type: string
errors:
description: Error information.
type: string
id:
description: Id of the template.
type: string
name:
description: Name of the template.
type: string
status:
description: The status of the template creation, such as whether it is in
progress, completed, or failed.
type: string
tenantName:
description: Tenant's name for whom the template is created.
type: string
title: TemplateDetailResponse
type: object
TemplateMigrationClientRequest:
description: |
Request to add a new Template migration.
TemplateMigrationClientRequest object contains request details of target tenant, source tenant, and template information needed for migration.
properties:
comments:
type: string
description:
description: Description of the migration.
example: Migration from/to Sandbox
type: string
emailIds:
description: List of Emails with comma separator.
example: abcd@zuora.com,xyz@zuora.com
type: string
entityUuid:
description: Entity UUID
example: 11111
type: string
metaData:
$ref: '#/definitions/JsonNode'
description: Meta data information of the source templates.
example: ST 4
name:
description: Name of the migration.
example: Job A
type: string
request:
description: List of settings need to be migrated.
example: ST 4
items:
$ref: '#/definitions/MigrationComponentContent'
type: array
sendEmail:
description: Flag determines whether or not to send an email.
example: true
type: boolean
required:
- description
- entityUuid
- name
- sendEmail
title: TemplateMigrationClientRequest
type: object
TemplateResponse:
description: It contains a collection of all the templates that have been created.
properties:
templates:
description: Contains list of template details.
items:
$ref: '#/definitions/TemplateDetailResponse'
type: array
title: TemplateResponse
type: object
TermInfo:
description: 'Container for the terms and renewal settings of the subscription.
'
properties:
autoRenew:
description: 'Specifies whether the subscription automatically renews at the
end of the each term. Only applicable if the type of the first term is `TERMED`.
'
type: boolean
initialTerm:
$ref: '#/definitions/TermInfo_initialTerm'
renewalSetting:
description: |
Specifies the type of the terms that follow the first term if the subscription is renewed. Only applicable if the type of the first term is `TERMED`.
* `RENEW_WITH_SPECIFIC_TERM` - Each renewal term has a predefined duration. The first entry in `renewalTerms` specifies the duration of the second term of the subscription, the second entry in `renewalTerms` specifies the duration of the third term of the subscription, and so on. The last entry in `renewalTerms` specifies the ultimate duration of each renewal term.
* `RENEW_TO_EVERGREEN` - The second term of the subscription does not have a predefined duration.
enum:
- RENEW_WITH_SPECIFIC_TERM
- RENEW_TO_EVERGREEN
type: string
renewalTerms:
$ref: '#/definitions/TermInfo_renewalTerms'
required:
- initialTerm
type: object
TermInfo_initialTerm:
description: 'Information about the first term of the subscription.
'
properties:
period:
description: 'Duration of the first term in months, years, days, or weeks,
depending on the value of the `periodType` field. Only applicable if the
value of the `termType` field is `TERMED`.
'
type: integer
periodType:
description: 'Unit of time that the first term is measured in. Only applicable
if the value of the `termType` field is `TERMED`.
'
enum:
- Month
- Year
- Day
- Week
type: string
startDate:
description: 'Start date of the first term, in YYYY-MM-DD format.
'
format: date
type: string
termType:
description: 'Type of the first term. If the value of this field is `TERMED`,
the first term has a predefined duration based on the value of the `period`
field. If the value of this field is `EVERGREEN`, the first term does not
have a predefined duration.
'
enum:
- TERMED
- EVERGREEN
type: string
required:
- termType
type: object
TermInfo_renewalTerms:
properties:
period:
description: 'Duration of the renewal term in months, years, days, or weeks,
depending on the value of the `periodType` field.
'
type: integer
periodType:
description: 'Unit of time that the renewal term is measured in.
'
enum:
- Month
- Year
- Day
- Week
type: string
type: object
TermsAndConditions:
description: 'Information about an order action of type `TermsAndConditions`.
'
properties:
autoRenew:
type: boolean
billToContactId:
description: "The ID of the bill-to contact associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Contact from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
clearingExistingBillToContact:
default: false
description: |
Whether to clear the existing bill-to contact ID at the subscription level. This field is mutually exclusive with the `billToContactId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingInvoiceTemplate:
default: false
description: |
Whether to clear the existing invoice template ID at the subscription level. This field is mutually exclusive with the `invoiceTemplateId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingPaymentTerm:
default: false
description: |
Whether to clear the existing payment term at the subscription level. This field is mutually exclusive with the `paymentTerm` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingSequenceSet:
default: false
description: |
Whether to clear the existing sequence set ID at the subscription level. This field is mutually exclusive with the `sequenceSetId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
clearingExistingSoldToContact:
default: false
description: |
Whether to clear the existing sold-to contact ID at the subscription level. This field is mutually exclusive with the `soldToContactId` field.
**Note**: If you have the [Flexible Billing Attributes](https://knowledgecenter.zuora.com/Billing/Subscriptions/Flexible_Billing_Attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.
type: boolean
initialTerm:
$ref: '#/definitions/InitialTerm'
invoiceTemplateId:
description: "The ID of the invoice template associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Template from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
paymentTerm:
description: "The name of the payment term associated with the subscription.\
\ For example, `Net 30`. The payment term determines the due dates of invoices.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Term from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
renewalSetting:
enum:
- RENEW_WITH_SPECIFIC_TERM
- RENEW_TO_EVERGREEN
type: string
renewalTerms:
items:
$ref: '#/definitions/RenewalTerm'
type: array
sequenceSetId:
description: "The ID of the sequence set associated with the subscription.\n\
\ \n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Set from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
soldToContactId:
description: "The ID of the sold-to contact associated with the subscription.\n\
\n**Note**: \n - If you have the Flexible Billing Attributes feature disabled, this\
\ field is unavailable in the request body and the value of this field is\
\ `null` in the response body. \n - If you have the Flexible Billing Attributes\
\ feature enabled, and you do not specify this field in the request or you\
\ select **Default Contact from Account** for this field during subscription\
\ creation, the value of this field is automatically set to `null` in the\
\ response body.\n"
type: string
title: termsAndConditions
type: object
TimeSlicedElpNetMetrics:
properties:
amount:
description: The extended list price which is calculated by the original product
catalog list price multiplied by the delta quantity.
type: number
endDate:
description: The latest date that the metric applies.
format: date
type: string
generatedReason:
description: 'Specify the reason why the metrics are generated by the certain
order action.
'
enum:
- IncreaseQuantity
- DecreaseQuantity
- ChangePrice
- Extension
- Contraction
type: string
invoiceOwner:
description: The acount number of the billing account that is billed for the
subscription.
type: string
orderItemId:
description: The ID of the order item referenced by the order metrics.
type: string
startDate:
description: The earliest date that the metric applies.
format: date
type: string
subscriptionOwner:
description: The acount number of the billing account that owns the subscription.
type: string
tax:
description: The tax amount in the metric when the tax permission is enabled.
type: number
termNumber:
format: long
type: number
type:
description: The type for ELP is always "Regular".
enum:
- Regular
- Discount
type: string
type: object
TimeSlicedMetrics:
properties:
amount:
type: number
endDate:
format: date
type: string
generatedReason:
description: "Specify the reason why the metrics are generated by the certain\
\ order action.\n\nThis field is only available to existing Orders customers\
\ who already have access to the field.\n\n**Note:** The following Order\
\ Metrics have been deprecated. Any new customers who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization)\
\ will not get these metrics.\n* The Order ELP and Order Item objects \n\
* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR,\
\ Order TCB, Order TCV, and Order Quantity objects\n\nExisting Orders customers\
\ who have these metrics will continue to be supported.\n"
enum:
- IncreaseQuantity
- DecreaseQuantity
- ChangePrice
- Extension
- Contraction
type: string
invoiceOwner:
description: The acount number of the billing account that is billed for the
subscription.
type: string
orderItemId:
description: "The ID of the order item referenced by the order metrics.\n\n\
This field is only available to existing Orders customers who already have\
\ access to the field.\n\n**Note:** The following Order Metrics have been\
\ deprecated. Any new customers who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization)\
\ will not get these metrics.\n* The Order ELP and Order Item objects \n\
* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR,\
\ Order TCB, Order TCV, and Order Quantity objects\n\nExisting Orders customers\
\ who have these metrics will continue to be supported.\n"
type: string
startDate:
format: date
type: string
subscriptionOwner:
description: The acount number of the billing account that owns the subscription.
type: string
termNumber:
format: long
type: number
type: object
TimeSlicedNetMetrics:
properties:
amount:
type: number
discountChargeNumber:
type: string
endDate:
format: date
type: string
generatedReason:
description: "Specify the reason why the metrics are generated by the certain\
\ order action.\n\nThis field is only available to existing Orders customers\
\ who already have access to the field.\n\n**Note:** The following Order\
\ Metrics have been deprecated. Any new customers who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization)\
\ will not get these metrics.\n* The Order ELP and Order Item objects \n\
* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR,\
\ Order TCB, Order TCV, and Order Quantity objects\n\nExisting Orders customers\
\ who have these metrics will continue to be supported.\n"
enum:
- IncreaseQuantity
- DecreaseQuantity
- ChangePrice
- Extension
- Contraction
type: string
invoiceOwner:
description: The acount number of the billing account that is billed for the
subscription.
type: string
orderItemId:
description: "The ID of the order item referenced by the order metrics.\n\n\
This field is only available to existing Orders customers who already have\
\ access to the field.\n\n**Note:** The following Order Metrics have been\
\ deprecated. Any new customers who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization)\
\ will not get these metrics.\n* The Order ELP and Order Item objects \n\
* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR,\
\ Order TCB, Order TCV, and Order Quantity objects\n\nExisting Orders customers\
\ who have these metrics will continue to be supported.\n"
type: string
startDate:
format: date
type: string
subscriptionOwner:
description: The acount number of the billing account that owns the subscription.
type: string
termNumber:
format: long
type: number
type:
description: Indicates whether this metrics is for a regular charge or a discount
charge.
enum:
- Regular
- Discount
type: string
type: object
TimeSlicedTcbNetMetrics:
properties:
amount:
type: number
discountChargeNumber:
type: string
endDate:
format: date
type: string
generatedReason:
description: "Specify the reason why the metrics are generated by the certain\
\ order action.\n\nThis field is only available to existing Orders customers\
\ who already have access to the field.\n\n**Note:** The following Order\
\ Metrics have been deprecated. Any new customers who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization)\
\ will not get these metrics.\n* The Order ELP and Order Item objects \n\
* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR,\
\ Order TCB, Order TCV, and Order Quantity objects\n\nExisting Orders customers\
\ who have these metrics will continue to be supported.\n"
enum:
- IncreaseQuantity
- DecreaseQuantity
- ChangePrice
- Extension
- Contraction
type: string
invoiceOwner:
description: The acount number of the billing account that is billed for the
subscription.
type: string
orderItemId:
description: "The ID of the order item referenced by the order metrics.\n\n\
This field is only available to existing Orders customers who already have\
\ access to the field.\n\n**Note:** The following Order Metrics have been\
\ deprecated. Any new customers who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization)\
\ will not get these metrics.\n* The Order ELP and Order Item objects \n\
* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR,\
\ Order TCB, Order TCV, and Order Quantity objects\n\nExisting Orders customers\
\ who have these metrics will continue to be supported.\n"
type: string
startDate:
format: date
type: string
subscriptionOwner:
description: The acount number of the billing account that owns the subscription.
type: string
tax:
type: number
termNumber:
format: long
type: number
type:
description: Indicates whether this metrics is for a regular charge or a discount
charge.
enum:
- Regular
- Discount
type: string
type: object
TransferPaymentType:
example:
accountId: 4028905f5a87c0ff015a88889fe500a8
properties:
accountId:
description: |
The ID of the customer account that the payment is transferred to.
Unassign a payment by setting this field to an empty string. This will automatically transfer the payment to a null account.
type: string
type: object
TriggerDate:
properties:
name:
description: 'Name of the trigger date of the order action.
'
enum:
- ContractEffective
- ServiceActivation
- CustomerAcceptance
type: string
triggerDate:
description: 'Trigger date in YYYY-MM-DD format.
'
format: date
type: string
title: triggerDate
type: object
TriggerParams:
description: 'Specifies when a charge becomes active.
'
properties:
periodsAfterChargeStart:
description: |
Duration of the discount charge in days, weeks, months, or years, depending on the value of the `startPeriodsType` field. Only applicable if the value of the `startDatePolicy` field is `FixedPeriodAfterApplyToChargeStartDate`.
**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.
type: integer
specificTriggerDate:
description: "Date in YYYY-MM-DD format. Only applicable if the value of the\
\ `triggerEvent` field is `SpecificDate`. \n\nWhile this field is applicable,\
\ if this field is not set, your `CreateSubscription` order action creates\
\ a `Pending` order and a `Pending Acceptance` subscription. If at the same\
\ time the service activation date is required and not set, a `Pending Activation`\
\ subscription is created.\n\nWhile this field is applicable, if this field\
\ is not set, the following order actions create a `Pending` order but do\
\ not impact the subscription status. **Note**: This feature is in **Limited\
\ Availability**. If you want to have access to the feature, submit a request\
\ at [Zuora Global Support](http://support.zuora.com/).\n * AddProduct\n\
\ * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n"
format: date
type: string
startDatePolicy:
description: "Start date policy of the discount charge to become active when\
\ the **Apply to billing period partially** checkbox is selected from the\
\ product catalog UI or the `applyToBillingPeriodPartially` field is set\
\ as true from the \"CRUD: Create a product rate plan charge\" operation.\
\ \n\n- If the value of this field is `SpecificDate`, use the `specificTriggerDate`\
\ field to specify the date when the charge becomes active.\n- If the value\
\ of this field is `FixedPeriodAfterApplyToChargeStartDate`, the charge\
\ is active for a predefined duration based on the value of the `upToPeriodsType`\
\ and `upToPeriods` fields.\n\n**Notes**: \n - You must enable the [Enhanced\
\ Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount)\
\ feature to access this field. \n - You can use either `triggerEvent`\
\ or `startDatePolicy` to define when a discount charge starts, but not\
\ both at the same time.\n"
enum:
- AlignToApplyToCharge
- SpecificDate
- EndOfLastInvoicePeriodOfApplyToCharge
- FixedPeriodAfterApplyToChargeStartDate
type: string
startPeriodsType:
description: |
Unit of time that the discount charge duration is measured in. Only applicable if the value of the `startDatePolicy` field is `FixedPeriodAfterApplyToChargeStartDate`.
**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.
enum:
- Days
- Weeks
- Months
- Years
type: string
triggerEvent:
description: |
Condition for the charge to become active.
If the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.
enum:
- ContractEffective
- ServiceActivation
- CustomerAcceptance
- SpecificDate
type: string
title: startDate
type: object
UnapplyCreditMemoType:
example:
effectiveDate: '2017-03-02'
invoices:
- amount: 1
invoiceId: 4028905f5a87c0ff015a87d3f8f10043
items:
- amount: 0.9
creditMemoItemId: 4028905f5a890526015a8d73f74b0016
invoiceItemId: 4028905f5a87c0ff015a87d3f90c0045
- amount: 0.1
creditTaxItemId: 4028905f5a890526015a8d73f90c0018
taxItemId: 4028905f5a87c0ff015a87d3f884003f
properties:
debitMemos:
description: 'Container for debit memos that the credit memo is unapplied
from. The maximum number of debit memos is 1,000.
'
items:
$ref: '#/definitions/CreditMemoUnapplyDebitMemoRequestType'
type: array
effectiveDate:
description: 'The date when the credit memo is unapplied.
'
format: date
type: string
invoices:
description: 'Container for invoices that the credit memo is unapplied from.
The maximum number of invoices is 1,000.
'
items:
$ref: '#/definitions/CreditMemoUnapplyInvoiceRequestType'
type: array
type: object
UnapplyPaymentType:
example:
debitMemos:
- amount: 1.02
debitMemoId: 4028905f5a87c0ff015a87e49e6b0062
items:
- amount: 1
debitMemoItemId: 4028905f5a87c0ff015a87e49e7a0063
- amount: 0.02
taxItemId: 4028905f5a87c0ff015a87e49f5e0065
effectiveDate: '2017-03-01'
invoices:
- amount: 10.1
invoiceId: 4028905f5a87c0ff015a87d3f8f10043
items:
- amount: 10
invoiceItemId: 4028905f5a87c0ff015a87d3f90c0045
- amount: 0.1
taxItemId: 4028905f5a87c0ff015a87d3f884003f
properties:
debitMemos:
description: 'Container for debit memos. The maximum number of debit memos
is 1,000.
'
items:
$ref: '#/definitions/PaymentDebitMemoApplicationUnapplyRequestType'
type: array
effectiveDate:
description: 'The date when the payment is unapplied, in `yyyy-mm-dd` format.
The effective date must be later than or equal to the maximum effective
date of the payment.
'
format: date
type: string
invoices:
description: 'Container for invoices. The maximum number of invoice is 1,000.
'
items:
$ref: '#/definitions/PaymentInvoiceApplicationUnapplyRequestType'
type: array
type: object
UpdateCustomObjectCusotmField:
description: A reference to a field.
properties:
auditable:
description: 'Indicates whether Audit Trail will record changes of this custom
field. You can change auditable fields to non-auditable, and vice versa.
One custom object can have a maximum of five auditable fields.
'
type: boolean
definition:
$ref: '#/definitions/CustomObjectCustomFieldDefinitionUpdate'
description: The custom field definition to be added or updated
type: object
filterable:
description: |
Indicates whether the field is filterable or not. Applicable to `addField` and `updateField` actions.
You can change a filterable field to non-filterable and vice versa. You can also add a filterable field. One custom object can have a maximum of 10 filterable fields.
Note that changing filterable fields triggers reindexing. It will take 12-24 hours before all your data are reindexed and available to query.
type: boolean
name:
description: The name of the custom field to be updated
type: string
required:
description: |
Indicates whether the field is required or optional.
You can update a required field to optional. On the other hand, you can only update an optional field to required on the custom object with no records.
You can only add a required field to the custom object with no records.
type: boolean
targetName:
description: Required if the `type` of the action is `renameField`
type: string
unique:
description: 'Indicates whether to specify a unique constraint to the field.
You can remove the unique constraint on the field. However, you can only
add a unique constraint to a filterable field if the custom object contains
no record. One custom object can have a maximum of five fields with unique
constraints.
'
type: boolean
type: object
UpdateEInvoiceFileTemplateRequest:
allOf:
- properties:
content:
description: 'The content of the e-invoice file template, which must be
encoded in Base64 format.
'
type: string
country:
description: 'The short name of of a country or region where you must comply
with e-invoicing requirements. For example, `IN` for India. For the full
list of country names and codes, see ISO Standard Country Codes .
'
type: string
documentType:
description: 'The type of billing documents, which the e-invoice file template
is intended for.
'
enum:
- Invoice
- CreditMemo
- DebitMemo
type: string
name:
description: 'The name of the e-invoice file template.
'
maxLength: 255
type: string
provider:
description: 'The name of an e-invoicing service provider that assists in
generating e-invoice files.
'
enum:
- Sovos
type: string
type: object
example:
content: base64 encoded content
country: IN
documentType: Invoice
name: Sovos e-invoice service
provider: Sovos
UpdateEInvoicingBusinessRegionRequest:
allOf:
- properties:
addressLine1:
description: "The first line of the Seller\u2019s address, which is often\
\ a street address or business name.\n"
type: string
addressLine2:
description: "The second line of the Seller\u2019s address, which is often\
\ the name of a building.\n"
type: string
businessName:
description: 'The full official name that the Seller is registered with
the relevant legal authority.
'
maxLength: 255
type: string
businessNumber:
description: |
The specify the unique identifier number of the legal entity or person that you do business with.
For example, you must use a GSTIN for India and Tax Identification Number (TIN) for Saudi Arabia.
type: string
businessNumberSchemaId:
description: 'The identification scheme identifier that an official registrar
issues to identify the Seller as a legal entity or person.
'
type: string
city:
description: 'The the name of the city where the business is located.
'
type: string
contactName:
description: 'The name of the Seller contact to receive e-invoicing data.
'
maxLength: 255
type: string
country:
description: 'The short name of a country or region where you must comply
with e-invoicing requirements. For example, `IN` for India. For the full
list of country names and codes, see ISO Standard Country Codes .
'
type: string
email:
description: 'The email address of the Seller contact to receive e-invoicing
data.
'
type: string
endpointId:
description: 'The Seller''s electronic address, to which the application-level
response to the e-invoice file might be delivered.
'
type: string
endpointSchemeId:
description: "The identification scheme identifier of the Seller\u2019s\
\ electronic address.\n"
type: string
phoneNumber:
description: 'The business phone number of the Seller contact to receive
e-invoicing data.
'
type: string
postalCode:
description: 'The short code that can identify the business address.
'
type: string
serviceProviderId:
description: 'The unique ID of the e-invoicing service provider that is
associated to the business region.
'
type: string
state:
description: 'The name of the state or province where the business is located.
'
type: string
taxRegisterNumber:
description: "The Seller's VAT identifier (also known as Seller VAT identification\
\ number) or the local identification (defined by the Seller\u2019s address)\
\ of the Seller for tax purposes, or a reference that enables the Seller\
\ to state the registered tax status.\n"
type: string
tradeName:
description: 'The name that the Seller is known as, other than the legal
business name.
'
maxLength: 100
type: string
type: object
example:
addressLine1: null
addressLine2: null
businessName: legal business name
businessNumber": '20002039'
businessNumberSchemaId: 088
city: Tokyo
contactName: null
country: JP
email: null
endpointId: 08992
endpointSchemeId: 088
phoneNumber: null
postalCode: '368779'
serviceProviderId: 4028948972a2bf990172bc9b27724ddc
state: null
taxRegisterNumber: TAX393999
tradeName: Zuora
UpdateEInvoicingServiceProviderRequest:
allOf:
- properties:
apiKey:
description: 'You must create authentication keys (API and Secret Keys)
from a third-party service provider. With hese keys, you can send requests
and interact with the third-party integration endpoints.
'
type: string
name:
description: 'The name of the e-invoicing service provider.
'
maxLength: 100
type: string
secretKey:
description: 'You must create authentication keys (API and Secret Keys)
from a third-party service provider. With hese keys, you can send requests
and interact with the third-party integration endpoints.
'
test:
description: "Whether the e-invoicing service provider's configuration is\
\ intended for testing. \n\n- If you set this field to `true`, requests\
\ are directed to the testing integration endpoints.\nIf you set this\
\ field to `false`, requests are directed to the production integration\
\ endpoints.\n"
type: boolean
type: object
example:
apiKey: e765630e-1cf0-437e-8041-680a85eca651
name: Sovos e-invoice service
secretKey: xxxxxxxxx
test: false
UpdatePaymentType:
allOf:
- properties:
comment:
description: 'Comments about the payment.
'
maxLength: 255
minLength: 0
type: string
financeInformation:
description: |
Container for the finance information related to the payment.
For a standalone payment, the finance information cannot be updated.
properties:
bankAccountAccountingCode:
description: 'The accounting code that maps to a bank account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
transferredToAccounting:
description: "Whether the payment was transferred to an external accounting\
\ system. Use this field for integration with accounting systems,\
\ such as NetSuite. \n"
enum:
- Processing
- 'Yes'
- 'No'
- Error
- Ignore
type: string
unappliedPaymentAccountingCode:
description: 'The accounting code for the unapplied payment.
'
maxLength: 100
minLength: 0
type: string
type: object
gatewayState:
description: |
This field is mainly used for gateway reconciliation. See Electronic payment processing for details.
You must have the **Edit Payment Gateway Status** user permission to update this field.
enum:
- NotSubmitted
- Submitted
- Settled
- FailedToSettle
type: string
paymentScheduleKey:
description: The unique ID or the number of the payment schedule to be linked
with the payment. See [Link payments to payment schedules](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Payment_Schedules/Link_payments_with_payment_schedules)
for more information.
type: string
referenceId:
description: |
The transaction ID returned by the payment gateway. Use this field to reconcile payments between your gateway and Zuora Payments.
You can only update the reference ID for external payments.
maxLength: 100
minLength: 0
type: string
type: object
- $ref: '#/definitions/PaymentObjectNSFields'
- $ref: '#/definitions/PaymentObjectCustomFields'
example:
comment: new comment
financeInformation:
transferredToAccounting: 'No'
UpdateScheduleItems:
allOf:
- properties:
amount:
description: "The amount of the invoice to be generated during the processing\
\ of the invoice schedule item. \n\nYou can only specify either the `amount`\
\ field or `percentage` field in one request. \n- If you choose to specify\
\ the `amount` field in the request, `null` is returned as the value of\
\ the `percentage` field in the corresponding response. \n- If you choose\
\ to specify the `percentage` field in the request, the value of the `amount`\
\ field returned in the corresponding response is calculated based on\
\ the percentage of the total amount.\n"
format: number
type: string
id:
description: "The unique ID of the invoice schedule item to be updated.\
\ \n\nIf this field is not provided, a new invoice schedule item is added\
\ to the invoice schedule.\n"
type: string
name:
description: 'The name of the invoice schedule item.
'
maxLength: 100
type: string
percentage:
description: "The percentage of the total amount to be billed during the\
\ processing of the invoice schedule item. \n\nYou can only specify either\
\ the `amount` field or `percentage` field in one request. \n- If you\
\ choose to specify the `amount` field in the request, `null` is returned\
\ as the value of the `percentage` field in the corresponding response.\
\ \n- If you choose to specify the `percentage` field in the request,\
\ the value of the `amount` field returned in the corresponding response\
\ is calculated based on the percentage of the total amount. \
\ \n"
runDate:
description: "The date in the tenant\u2019s time zone when the invoice schedule\
\ item is planned to be processed to generate an invoice.\n"
format: date
type: string
targetDateForAdditionalSubscriptions:
description: "The date in the tenant's time zone used by the invoice schedule\
\ to determine which fixed-period regular charges to be billed together\
\ with the invoice schedule item. \n\nThe regular charges must come from\
\ the subscriptions specified in the `additionalSubscriptionsToBill` field.\n"
format: date
type: string
type: object
- $ref: '#/definitions/InvoiceScheduleItemCustomFields'
- {}
title: scheduleItems
UpdateTask:
description: 'A task.
'
properties:
action_type:
description: 'The type of task.
'
type: string
call_type:
description: 'The type of the API used.
'
type: string
concurrent_limit:
description: 'The maximum number of this task that can run concurrently.
'
maximum: 9999999
minimum: 1
type: integer
id:
description: 'The unique ID of the task.
'
type: integer
name:
description: 'The name of the task.
'
type: string
object:
description: 'The selected object for the task.
'
type: string
object_id:
description: 'The ID of the selected object of the task.
'
type: string
status:
description: 'The status of the task instance.
'
enum:
- Queued
- Processing
- Pending
- Success
- Stopped
- Error
type: string
tags:
description: 'The array of filter tags.
'
items:
type: string
type: array
workflow_id:
description: 'The ID of the workflow the task belongs to.
'
type: integer
required:
- id
title: task
type: object
Usage:
description: 'The task usage of a particular day.
'
properties:
date:
description: 'The date when the usage record is created.
'
type: string
values:
properties:
taskCount:
description: 'The amount of task runs that have been used.
'
type: integer
type: object
type: object
UsageFlatFeePricingOverride:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
listPrice:
description: 'Price of the charge.
'
type: number
originalListPrice:
description: 'The original list price is the price of a product or service
at which it is listed for sale by a manufacturer or retailer.
'
type: number
type: object
description: 'Pricing information about a usage charge that uses the "flat fee"
charge model. In this charge model, the charge has a fixed price.
'
title: usageFlatFee
UsageFlatFeePricingUpdate:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
listPrice:
type: number
originalListPrice:
description: 'The original list price is the price of a product or service
at which it is listed for sale by a manufacturer or retailer.
'
type: number
type: object
UsageObjectCustomFields:
additionalProperties:
description: 'Custom fields of the Usage object. The name of each custom field
has the form *customField*__c
. Custom field names are case sensitive.
See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)
for more information.
'
description: 'Container for custom fields of a Usage object.
'
title: usageFieldsCustom
type: object
UsageOveragePricingOverride:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
includedUnits:
description: 'Number of free units that may be consumed.
'
minimum: 0
type: number
numberOfPeriods:
description: 'Number of periods that Zuora considers when calculating overage
charges with overage smoothing.
'
minimum: 1
type: integer
overagePrice:
description: 'Price per overage unit consumed.
'
type: number
overageUnusedUnitsCreditOption:
description: |
Specifies whether to credit the customer for unused units.
If the value of this field is `CreditBySpecificRate`, use the `unusedUnitsCreditRates` field to specify the rate at which to credit the customer for unused units.
enum:
- NoCredit
- CreditBySpecificRate
type: string
unusedUnitsCreditRates:
description: 'Per-unit rate at which to credit the customer for unused units.
Only applicable if the value of the `overageUnusedUnitsCreditOption` field
is `CreditBySpecificRate`.
'
type: number
type: object
description: 'Pricing information about a usage charge that uses the "overage"
charge model. In this charge model, the charge has an allowance of free units
and a fixed price per additional unit consumed.
'
title: usageOverage
UsageOveragePricingUpdate:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
includedUnits:
description: 'A certain quantity of units for free in the overage charge
model. It cannot be negative. It must be 0 and above. Decimals are allowed.
'
type: number
overagePrice:
type: number
type: object
UsagePerUnitPricingOverride:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
listPrice:
description: 'Per-unit price of the charge.
'
type: number
originalListPrice:
description: 'The original list price is the price of a product or service
at which it is listed for sale by a manufacturer or retailer.
'
type: number
ratingGroup:
description: "Specifies how Zuora groups usage records when rating usage.\
\ See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group)\
\ for more information.\n * ByBillingPeriod (default): The rating is\
\ based on all the usages in a billing period.\n * ByUsageStartDate:\
\ The rating is based on all the usages on the same usage start date.\
\ \n * ByUsageRecord: The rating is based on each usage record.\n *\
\ ByUsageUpload: The rating is based on all the usages in a uploaded usage\
\ file (.xls or .csv). If you import a mass usage in a single upload,\
\ which contains multiple usage files in .xls or .csv format, usage records\
\ are grouped for each usage file.\n"
enum:
- ByBillingPeriod
- ByUsageStartDate
- ByUsageRecord
- ByUsageUpload
type: string
uom:
description: |
Unit of measure of the standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: number
type: object
description: 'Pricing information about a usage charge that uses the "per unit"
charge model. In this charge model, the charge has a fixed price per unit consumed.
'
title: usagePerUnit
UsagePerUnitPricingUpdate:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
listPrice:
type: number
originalListPrice:
description: 'The original list price is the price of a product or service
at which it is listed for sale by a manufacturer or retailer.
'
type: number
type: object
UsageTieredPricingOverride:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
ratingGroup:
description: "Specifies how Zuora groups usage records when rating usage.\
\ See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group)\
\ for more information.\n * ByBillingPeriod (default): The rating is\
\ based on all the usages in a billing period.\n * ByUsageStartDate:\
\ The rating is based on all the usages on the same usage start date.\
\ \n * ByUsageRecord: The rating is based on each usage record.\n *\
\ ByUsageUpload: The rating is based on all the usages in a uploaded usage\
\ file (.xls or .csv). If you import a mass usage in a single upload,\
\ which contains multiple usage files in .xls or .csv format, usage records\
\ are grouped for each usage file.\n"
enum:
- ByBillingPeriod
- ByUsageStartDate
- ByUsageRecord
- ByUsageUpload
type: string
tiers:
description: 'List of cumulative pricing tiers in the charge.
'
items:
$ref: '#/definitions/ChargeTier'
type: array
uom:
description: |
Unit of measure of the standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: string
type: object
description: 'Pricing information about a usage charge that uses the "tiered pricing"
charge model. In this charge model, the charge has cumulative pricing tiers
that become effective as units are consumed.
'
title: usageTiered
UsageTieredPricingUpdate:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
tiers:
items:
$ref: '#/definitions/ChargeTier'
type: array
type: object
UsageTieredWithOveragePricingOverride:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
numberOfPeriods:
description: 'Number of periods that Zuora considers when calculating overage
charges with overage smoothing.
'
minimum: 1
type: integer
overagePrice:
description: 'Price per overage unit consumed.
'
type: number
overageUnusedUnitsCreditOption:
description: |
Specifies whether to credit the customer for unused units.
If the value of this field is `CreditBySpecificRate`, use the `unusedUnitsCreditRates` field to specify the rate at which to credit the customer for unused units.
enum:
- NoCredit
- CreditBySpecificRate
type: string
tiers:
description: 'List of cumulative pricing tiers in the charge.
'
items:
$ref: '#/definitions/ChargeTier'
type: array
unusedUnitsCreditRates:
description: 'Per-unit rate at which to credit the customer for unused units.
Only applicable if the value of the `overageUnusedUnitsCreditOption` field
is `CreditBySpecificRate`.
'
type: number
type: object
description: 'Pricing information about a usage charge that uses the "tiered with
overage" charge model. In this charge model, the charge has cumulative pricing
tiers that become effective as units are consumed. The charge also has a fixed
price per unit consumed beyond the limit of the final tier.
'
title: usageTieredWithOverage
UsageTieredWithOveragePricingUpdate:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
overagePrice:
type: number
tiers:
items:
$ref: '#/definitions/ChargeTier'
type: array
type: object
UsageVolumePricingOverride:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
ratingGroup:
description: "Specifies how Zuora groups usage records when rating usage.\
\ See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group)\
\ for more information.\n * ByBillingPeriod (default): The rating is\
\ based on all the usages in a billing period.\n * ByUsageStartDate:\
\ The rating is based on all the usages on the same usage start date.\
\ \n * ByUsageRecord: The rating is based on each usage record.\n *\
\ ByUsageUpload: The rating is based on all the usages in a uploaded usage\
\ file (.xls or .csv). If you import a mass usage in a single upload,\
\ which contains multiple usage files in .xls or .csv format, usage records\
\ are grouped for each usage file.\n"
enum:
- ByBillingPeriod
- ByUsageStartDate
- ByUsageRecord
- ByUsageUpload
type: string
tiers:
description: 'List of variable pricing tiers in the charge.
'
items:
$ref: '#/definitions/ChargeTier'
type: array
uom:
description: |
Unit of measure of the standalone charge.
**Note:** This field is available when the Standalone Orders feature is enabled.
type: number
type: object
description: 'Pricing information about a usage charge that uses the "volume pricing"
charge model. In this charge model, the charge has a variable price per unit,
depending on how many units are consumed.
'
title: usageVolume
UsageVolumePricingUpdate:
allOf:
- $ref: '#/definitions/PriceChangeParams'
- properties:
tiers:
items:
$ref: '#/definitions/ChargeTier'
type: array
type: object
UsagesResponse:
properties:
metrics:
description: 'The list of tasks retrieved.
'
items:
$ref: '#/definitions/Usage'
type: array
type: object
ValidationErrors:
properties:
reasons:
description: The list of reasons that the request was unsuccessful
items:
$ref: '#/definitions/ValidationReasons'
title: validation reasons
type: array
success:
description: Returns `false` if the request was not successful.
type: boolean
type: object
ValidationReasons:
properties:
fieldName:
description: The name of the invalid field
type: string
title:
description: A description why that field is invalid
type: string
type: object
Workflow:
description: 'A workflow.
'
properties:
calloutTrigger:
description: 'Indicates whether the callout trigger is enabled for the retrieved
workflow.
'
type: boolean
createdAt:
description: 'The date and time when the workflow is created, in the `YYYY-MM-DD
HH:MM:SS` format.
'
format: datetime
type: string
description:
description: 'The description of the workflow.
'
type: string
id:
description: 'The unique ID of the workflow.
'
type: integer
interval:
description: 'The schedule of the workflow, in a CRON expression. Returns
null if the schedued trigger is disabled.
'
type: string
name:
description: 'The name of the workflow.
'
type: string
ondemandTrigger:
description: 'Indicates whether the ondemand trigger is enabled for the workflow.
'
type: boolean
scheduledTrigger:
description: 'Indicates whether the scheduled trigger is enabled for the workflow.
'
type: boolean
timezone:
description: 'The timezone that is configured for the scheduler of the workflow.
Returns null if the scheduled trigger is disabled.
'
type: string
type:
description: 'The type of the workflow. Currently the only valid value is
''Workflow::Setup''.
'
enum:
- Workflow::Setup
- Workflow::Instance
type: string
updatedAt:
description: 'The date and time when the workflow is updated the last time,
in the `YYYY-MM-DD HH:MM:SS` format.
'
format: datetime
type: string
version:
description: "The version number of the workflow. \n"
type: string
title: workflow
type: object
WorkflowDefinition:
description: 'A workflow.
'
properties:
active_version:
description: "Information of the active version. \n"
properties:
description:
description: 'The description of the active version.
'
type: string
id:
description: 'The unique ID of the active version.
'
type: integer
status:
description: 'The status of the active version.
'
type: string
type:
description: 'The type of the active version. Currently the only valid
value is ''Workflow::Setup''.
'
enum:
- Workflow::Setup
- Workflow::Instance
type: string
version:
description: 'The version number of the active version.
'
type: string
type: object
calloutTrigger:
description: 'Indicates whether the callout trigger is enabled for the retrieved
workflow.
'
type: boolean
createdAt:
description: 'The date and time when the workflow is created, in the `YYYY-MM-DD
HH:MM:SS` format.
'
format: datetime
type: string
description:
description: 'The description of the workflow definition.
'
type: string
id:
description: 'The unique ID of the workflow definition.
'
type: integer
interval:
description: 'The schedule of the workflow, in a CRON expression. Returns
null if the schedued trigger is disabled.
'
type: string
name:
description: 'The name of the workflow definition.
'
type: string
ondemandTrigger:
description: 'Indicates whether the ondemand trigger is enabled for the workflow.
'
type: boolean
scheduledTrigger:
description: 'Indicates whether the scheduled trigger is enabled for the workflow.
'
type: boolean
status:
description: 'The status of the workflow definition.
'
type: string
timezone:
description: 'The timezone that is configured for the scheduler of the workflow.
Returns null if the scheduled trigger is disabled.
'
type: string
updatedAt:
description: 'The date and time when the workflow is updated the last time,
in the `YYYY-MM-DD HH:MM:SS` format.
'
format: datetime
type: string
title: a workflow definition with version information
type: object
WorkflowDefinitionAndVersions:
description: 'A workflow.
'
properties:
active_version:
description: "Information of the active version. \n"
properties:
description:
description: 'The description of the active version.
'
type: string
id:
description: 'The unique ID of the active version.
'
type: integer
status:
description: 'The status of the active version.
'
type: string
type:
description: 'The type of the active version. Currently the only valid
value is ''Workflow::Setup''.
'
enum:
- Workflow::Setup
- Workflow::Instance
type: string
version:
description: 'The version number of the active version.
'
type: string
type: object
calloutTrigger:
description: 'Indicates whether the callout trigger is enabled for the retrieved
workflow.
'
type: boolean
createdAt:
description: 'The date and time when the workflow is created, in the `YYYY-MM-DD
HH:MM:SS` format.
'
format: datetime
type: string
description:
description: 'The description of the workflow definition.
'
type: string
id:
description: 'The unique ID of the workflow definition.
'
type: integer
interval:
description: 'The schedule of the workflow, in a CRON expression. Returns
null if the schedued trigger is disabled.
'
type: string
latest_inactive_verisons:
description: "The list of inactive workflow versions retrieved. Maximum number\
\ of versions retrieved is 10. \n"
items:
$ref: '#/definitions/Workflow'
type: array
name:
description: 'The name of the workflow definition.
'
type: string
ondemandTrigger:
description: 'Indicates whether the ondemand trigger is enabled for the workflow.
'
type: boolean
scheduledTrigger:
description: 'Indicates whether the scheduled trigger is enabled for the workflow.
'
type: boolean
status:
description: 'The status of the workflow definition.
'
type: string
timezone:
description: 'The timezone that is configured for the scheduler of the workflow.
Returns null if the scheduled trigger is disabled.
'
type: string
updatedAt:
description: 'The date and time when the workflow is updated the last time,
in the `YYYY-MM-DD HH:MM:SS` format.
'
format: datetime
type: string
title: a workflow definition with version information
type: object
WorkflowError:
properties:
code:
description: A short error code describing the error
enum:
- invalid
type: string
status:
description: The http status code for this error
type: integer
title:
description: A human readable description describing the error
type: string
type: object
WorkflowInstance:
description: A instance workflow object.
properties:
createdAt:
description: 'The date and time when the workflow is created, in the `YYYY-MM-DD
HH:MM:SS` format.
'
format: datetime
type: string
id:
description: 'The unique ID of the workflow.
'
type: integer
name:
description: 'The run number of this workflow instance
'
type: string
originalWorkflowId:
description: 'The identifier of the workflow template that is used to create
this instance.
'
type: integer
status:
description: |
Describes the current state of this workflow instance:
- Queued: The workflow is in queue for being processed.
- Processing: The workflow is in process.
enum:
- Queued
- Processing
type: string
updatedAt:
description: 'The date and time the last time when the workflow is updated,
in the `YYYY-MM-DD HH:MM:SS` format.
'
format: datetime
type: string
type: object
creditCard:
description: 'Default payment method associated with an account. Only credit card
payment methods are supported.
'
properties:
cardHolderInfo:
$ref: '#/definitions/AccountCreditCardHolder'
cardNumber:
description: 'Card number. Once set, you cannot update or query the value
of this field. The value of this field is only available in masked format.
For example, XXXX-XXXX-XXXX-1234 (hyphens must not be used when you set
the credit card number).
'
type: string
cardType:
description: 'Type of card.
'
enum:
- Visa
- MasterCard
- AmericanExpress
- Discover
- JCB
- Diners
- CUP
- Maestro
- Electron
- AppleVisa
- AppleMasterCard
- AppleAmericanExpress
- AppleDiscover
- AppleJCB
- Elo
- Hipercard
- Naranja
- Nativa
- TarjetaShopping
- Cencosud
- Argencard
- Cabal
type: string
expirationMonth:
description: 'Expiration date of the card.
'
maximum: 12
minimum: 1
type: integer
expirationYear:
description: 'Expiration year of the card.
'
maximum: 2500
minimum: 1980
type: integer
securityCode:
description: 'CVV or CVV2 security code of the card. To ensure PCI compliance,
Zuora does not store the value of this field.
'
type: string
type: object
customAccountPaymentMethod:
additionalProperties:
description: |
Container for custom payment methods created through the [Open Payment Method](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/MB_Set_up_custom_payment_gateways_and_payment_methods) service.
**Note:** The response could return more than one custom payment methods.
title: Custom Payment Method
type: object
description: |
Container for custom payment methods created through the [Open Payment Method](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/MB_Set_up_custom_payment_gateways_and_payment_methods) service.
**Note:** The response could return more than one custom payment methods.
title: CustomPaymentMethod
type: object
orderMetric:
description: The set of order metrics for an order action.
properties:
chargeNumber:
type: string
elp:
description: "The extended list price which is calculated by the original\
\ product catalog list price multiplied by the delta quantity.\n\nThe `elp`\
\ nested field is only available to existing Orders customers who already\
\ have access to the field.\n\n**Note:** The following Order Metrics have\
\ been deprecated. Any new customers who onboard on [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AA_Overview_of_Orders)\
\ or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization)\
\ will not get these metrics.\n* The Order ELP and Order Item objects \n\
* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR,\
\ Order TCB, Order TCV, and Order Quantity objects\n\nExisting Orders customers\
\ who have these metrics will continue to be supported.\n"
items:
$ref: '#/definitions/TimeSlicedElpNetMetrics'
type: array
mrr:
items:
$ref: '#/definitions/TimeSlicedNetMetrics'
type: array
originRatePlanId:
type: string
productRatePlanChargeId:
type: string
productRatePlanId:
type: string
quantity:
items:
$ref: '#/definitions/TimeSlicedMetrics'
type: array
tcb:
description: Total contracted billing which is the forecast value for the
total invoice amount.
items:
$ref: '#/definitions/TimeSlicedTcbNetMetrics'
type: array
tcv:
description: Total contracted value.
items:
$ref: '#/definitions/TimeSlicedNetMetrics'
type: array
type: object
processingOptionsOrders:
description: |
The container for billing processing options and payment processing options.
**Note:**
- This field is not supported in draft orders.
- When you use the "Create an order" operation to create an account, create a subscription, run billing, and collect payment in a single call, if any error occurs during the call, such as a payment processing failure and a tax engine failure, then all the other steps will be rolled back. In this case, neither the invoice will be generated, nor the subscription nor the account will be created.
- When you use the "Create an order" operation to cancel a subscription with `refund` and `writeOff`, if the `refund` or `writeOff` fails, `cancelSubscription`, `runBilling`, and `collectPayment` still can succeed.
- When you use the "Create an order" operation, the `collectPayment` and `refund` fields cannot be set to `true` simultaneously. Otherwise, the order will not be proceeded.
properties:
applicationOrder:
description: |
The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.
**Note:**
- This field is valid only if the `applyCredit` field is set to `true`.
- If no value is specified for this field, the default priority order is used, ["CreditMemo", "UnappliedPayment"], to apply credit memos first and then apply unapplied payments.
- If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `["CreditMemo"]`, only credit memos are used to apply to invoices.
items:
type: string
type: array
applyCredit:
description: "Whether to automatically apply credit memos or unapplied payments,\
\ or both to an invoice.\n\nIf the value is true, the credit memo or unapplied\
\ payment on the order account will be automatically applied to the invoices\
\ generated by this order. The credit memo generated by this order will\
\ not be automatically applied to any invoices. \n\n\n**Note:**\
\ This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n"
type: boolean
applyCreditBalance:
description: 'Indicates if any credit balance on a customer''s account is
automatically applied to invoices. If no value is specified then this field
defaults to false. This feature is not available if you have enabled the
Invoice Settlement feature.
'
type: boolean
billingOptions:
properties:
creditMemoReasonCode:
description: A code identifying the reason for the credit memo transaction
that is generated by the request. The value must be an existing reason
code. If you do not pass the field or pass the field with empty value,
Zuora uses the default reason code.
type: string
documentDate:
description: 'The invoice date displayed on the invoice.
'
format: date
type: string
generateDraftInvoice:
description: |
Indicates if the current request needs to generate a draft invoice.
Values are:
* `true`
* `false` (default)
type: boolean
targetDate:
description: 'Date through which to calculate charges if an invoice is
generated. See [What is a Target Date?](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/G_Bill_Runs/Creating_Bill_Runs#What_is_a_Target_Date.3F).
'
format: date
type: string
type: object
collectPayment:
description: 'Indicates if the current request needs to collect payments.
This value can not be ''true'' when ''runBilling'' flag is ''false''.
'
type: boolean
electronicPaymentOptions:
description: 'Container for the electronic payment options.
'
properties:
paymentGatewayId:
description: 'Specifies the ID of a payment gateway to override the default
gateway. If this field is not specified, the default payment gateway
will be used to process the payment.
'
type: string
paymentMethodId:
description: 'Specifies an electronic payment method. It can be one that
has already been associated with an invoice owner, or an orphan payment
method, which is not associated with any invoice owner. For an orphan
payment method, this operation will then associate it with the account
that this order will be created under.
'
type: string
type: object
refund:
description: "Indicates whether to refund after subscription cancelation.\
\ Default is `false`. \n\n**Note**: When refunding a subscription that is\
\ not invoiced separately, if you do not enable the Invoice Item Settlement feature, you will encounter\
\ the following error during the cancel and refund process: \u201CCancellation/Refund\
\ failed because of the following reason: Invoice is linked to multiple\
\ subscriptions. Cancellation was not processed.\u201D\n"
type: boolean
refundAmount:
description: 'Indicates the amount to be refunded. Required if the `refund`
field is `true`.
'
type: number
refundReasonCode:
description: 'A code identifying the reason for the refund transaction. The
value must be an existing payment refund reason code listed in **Payments
Settings** > **Configure Reason Codes**. If you do not specify the field
or leave the field with an empty value, Zuora uses the default payment refund
reason code.
'
type: string
runBilling:
description: 'Indicates if the current request needs to generate an invoice.
The invoice will be generated against all subscriptions included in this
order.
'
type: boolean
writeOff:
description: "Indicates whether to write off the outstanding balance on the\
\ invoice after refund. Default is `false`.\n\n**Note**: \n- When refunding\
\ a subscription that is not invoiced separately, if you do not enable the\
\ Invoice Item Settlement feature, you will encounter\
\ the following error during the cancel and refund process: \u201CCancellation/Refund\
\ failed because of the following reason: Invoice is linked to multiple\
\ subscriptions. Cancellation was not processed.\u201D\n- The Invoice Settlement feature must have been enabled\
\ for write-off.\n"
type: boolean
writeOffBehavior:
description: "The financial information of the credit memo items generated\
\ to write off the invoice balance. \n\n**Note:** \n - All the credit memo\
\ items that are used to write off the invoice will be applied with the\
\ same financial information.\n - Credit memo items generated from the\
\ unconsumed services of the canceled subscription will not be applied with\
\ the finance information specified here.\n"
properties:
financeInformation:
description: 'Container for the finance information related to the credit
memo items that are created for invoice write-off.
'
properties:
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as
Monthly Recurring Liability.
'
maxLength: 100
minLength: 0
type: string
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such
as Monthly Recurring Charges or Overage Charges.
'
maxLength: 100
minLength: 0
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the
revenue schedule.
'
maxLength: 100
minLength: 0
type: string
type: object
type: object
type: object
processingOptionsOrdersAsync:
description: |
The container for billing processing options and payment processing options.
**Note:** This field is not supported in draft orders.
properties:
applicationOrder:
description: |
The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.
**Note:**
- This field is valid only if the `applyCredit` field is set to `true`.
- If no value is specified for this field, the default priority order is used, ["CreditMemo", "UnappliedPayment"], to apply credit memos first and then apply unapplied payments.
- If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `["CreditMemo"]`, only credit memos are used to apply to invoices.
items:
type: string
type: array
applyCredit:
description: |2
- If the value is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices
**Note:** This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.
type: boolean
applyCreditBalance:
description: 'Indicates if any credit balance on a customer''s account is
automatically applied to invoices. If no value is specified then this field
defaults to false. This feature is not available if you have enabled the
Invoice Settlement feature.
'
type: boolean
billingOptions:
properties:
creditMemoReasonCode:
description: A code identifying the reason for the credit memo transaction
that is generated by the request. The value must be an existing reason
code. If you do not pass the field or pass the field with empty value,
Zuora uses the default reason code.
type: string
documentDate:
description: 'The invoice date displayed on the invoice.
'
format: date
type: string
generateDraftInvoice:
description: |
Indicates if the current request needs to generate a draft invoice.
Values are:
* `true`
* `false` (default)
type: boolean
targetDate:
description: 'Date through which to calculate charges if an invoice is
generated. See [What is a Target Date?](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/G_Bill_Runs/Creating_Bill_Runs#What_is_a_Target_Date.3F).
'
format: date
type: string
type: object
collectPayment:
description: 'Indicates if the current request needs to collect payments.
This value can not be ''true'' when ''runBilling'' flag is ''false''.
'
type: boolean
electronicPaymentOptions:
description: 'Container for the electronic payment options.
'
properties:
paymentGatewayId:
description: 'Specifies the ID of a payment gateway to override the default
gateway. If this field is not specified, the default payment gateway
will be used to process the payment.
'
type: string
paymentMethodId:
description: 'Specifies an electronic payment method. It can be one that
has already been associated with an invoice owner, or an orphan payment
method, which is not associated with any invoice owner. For an orphan
payment method, this operation will then associate it with the account
that this order will be created under.
'
type: string
type: object
runBilling:
description: 'Indicates if the current request needs to generate an invoice.
The invoice will be generated against all subscriptions included in this
order.
'
type: boolean
type: object
processingOptionsOrdersWithDelayedCapturePayment:
description: |
The container for billing processing options and payment processing options.
**Note:**
- This field is not supported in draft orders.
- When you use the "Create an order" operation to create an account, create a subscription, run billing, and collect payment in a single call, if any error occurs during the call, such as a payment processing failure and a tax engine failure, then all the other steps will be rolled back. In this case, neither the invoice will be generated, nor the subscription nor the account will be created.
- When you use the "Create an order" operation to cancel a subscription with `refund` and `writeOff`, if the `refund` or `writeOff` fails, `cancelSubscription`, `runBilling`, and `collectPayment` still can succeed.
- When you use the "Create an order" operation, the `collectPayment` and `refund` fields cannot be set to `true` simultaneously. Otherwise, the order will not be proceeded.
properties:
applicationOrder:
description: |
The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.
**Note:**
- This field is valid only if the `applyCredit` field is set to `true`.
- If no value is specified for this field, the default priority order is used, ["CreditMemo", "UnappliedPayment"], to apply credit memos first and then apply unapplied payments.
- If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `["CreditMemo"]`, only credit memos are used to apply to invoices.
items:
type: string
type: array
applyCredit:
description: "Whether to automatically apply credit memos or unapplied payments,\
\ or both to an invoice.\n\nIf the value is true, the credit memo or unapplied\
\ payment on the order account will be automatically applied to the invoices\
\ generated by this order. The credit memo generated by this order will\
\ not be automatically applied to any invoices. \n\n\n**Note:**\
\ This field is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\
\ enabled. The Invoice Settlement feature is generally available as of Zuora\
\ Billing Release 296 (March 2021). This feature includes Unapplied Payments,\
\ Credit and Debit Memo, and Invoice Item Settlement. If you want to enable\
\ Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\
\ for more information.\n"
type: boolean
applyCreditBalance:
description: 'Indicates if any credit balance on a customer''s account is
automatically applied to invoices. If no value is specified then this field
defaults to false. This feature is not available if you have enabled the
Invoice Settlement feature.
'
type: boolean
billingOptions:
properties:
creditMemoReasonCode:
description: A code identifying the reason for the credit memo transaction
that is generated by the request. The value must be an existing reason
code. If you do not pass the field or pass the field with empty value,
Zuora uses the default reason code.
type: string
documentDate:
description: 'The invoice date displayed on the invoice.
'
format: date
type: string
generateDraftInvoice:
description: |
Indicates if the current request needs to generate a draft invoice.
Values are:
* `true`
* `false` (default)
type: boolean
targetDate:
description: 'Date through which to calculate charges if an invoice is
generated. See [What is a Target Date?](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/G_Bill_Runs/Creating_Bill_Runs#What_is_a_Target_Date.3F).
'
format: date
type: string
type: object
collectPayment:
description: 'Indicates if the current request needs to collect payments.
This value can not be ''true'' when ''runBilling'' flag is ''false''.
'
type: boolean
electronicPaymentOptions:
description: 'Container for the electronic payment options.
'
properties:
authTransactionId:
description: |
The authorization transaction ID from the payment gateway.
When you create a payment to capture the funds that have been authorized through [Create authorization](https://developer.zuora.com/api-references/api/operation/POST_CreateAuthorization/), pass in the `authTransactionId` field. It is highly recommended to also pass in `gatewayOrderId` that you used when authorizing the funds. `authTransactionId` is required, while `gatewayOrderId` is optional.
maxLength: 50
type: string
gatewayOrderId:
description: "A merchant-specified natural key value that can be passed\
\ to the electronic payment gateway when a payment is created. If not\
\ specified, the payment number will be passed in instead.\n\nGateways\
\ check duplicates on the gateway order ID to ensure that the same transaction\
\ is not entered twice accidentally. \n\nThis ID can also be used to\
\ do reconciliation and tie the payment to a natural key in external\
\ systems. The source of this ID varies by merchant. Some merchants\
\ use shopping cart order IDs, and others use something different. Merchants\
\ use this ID to track transactions in their eCommerce systems.\n\n\
When you create a payment to capture the funds that have been authorized\
\ through [Create authorization](https://developer.zuora.com/api-references/api/operation/POST_CreateAuthorization/),\
\ pass in the `authTransactionId` field. It is highly recommended to\
\ also pass in `gatewayOrderId` that you used when authorizing the funds.\
\ `authTransactionId` is required, while `gatewayOrderId` is optional.\n"
maxLength: 50
type: string
paymentGatewayId:
description: 'Specifies the ID of a payment gateway to override the default
gateway. If this field is not specified, the default payment gateway
will be used to process the payment.
'
type: string
paymentMethodId:
description: 'Specifies an electronic payment method. It can be one that
has already been associated with an invoice owner, or an orphan payment
method, which is not associated with any invoice owner. For an orphan
payment method, this operation will then associate it with the account
that this order will be created under.
'
type: string
type: object
refund:
description: "Indicates whether to refund after subscription cancelation.\
\ Default is `false`. \n\n**Note**: When refunding a subscription that is\
\ not invoiced separately, if you do not enable the Invoice Item Settlement feature, you will encounter\
\ the following error during the cancel and refund process: \u201CCancellation/Refund\
\ failed because of the following reason: Invoice is linked to multiple\
\ subscriptions. Cancellation was not processed.\u201D\n"
type: boolean
refundAmount:
description: 'Indicates the amount to be refunded. Required if the `refund`
field is `true`.
'
type: number
refundReasonCode:
description: 'A code identifying the reason for the refund transaction. The
value must be an existing payment refund reason code listed in **Payments
Settings** > **Configure Reason Codes**. If you do not specify the field
or leave the field with an empty value, Zuora uses the default payment refund
reason code.
'
type: string
runBilling:
description: 'Indicates if the current request needs to generate an invoice.
The invoice will be generated against all subscriptions included in this
order.
'
type: boolean
writeOff:
description: "Indicates whether to write off the outstanding balance on the\
\ invoice after refund. Default is `false`.\n\n**Note**: \n- When refunding\
\ a subscription that is not invoiced separately, if you do not enable the\
\ Invoice Item Settlement feature, you will encounter\
\ the following error during the cancel and refund process: \u201CCancellation/Refund\
\ failed because of the following reason: Invoice is linked to multiple\
\ subscriptions. Cancellation was not processed.\u201D\n- The Invoice Settlement feature must have been enabled\
\ for write-off.\n"
type: boolean
writeOffBehavior:
description: "The financial information of the credit memo items generated\
\ to write off the invoice balance. \n\n**Note:** \n - All the credit memo\
\ items that are used to write off the invoice will be applied with the\
\ same financial information.\n - Credit memo items generated from the\
\ unconsumed services of the canceled subscription will not be applied with\
\ the finance information specified here.\n"
properties:
financeInformation:
description: 'Container for the finance information related to the credit
memo items that are created for invoice write-off.
'
properties:
deferredRevenueAccountingCode:
description: 'The accounting code for the deferred revenue, such as
Monthly Recurring Liability.
'
maxLength: 100
minLength: 0
type: string
onAccountAccountingCode:
description: 'The accounting code that maps to an on account in your
accounting system.
'
maxLength: 100
minLength: 0
type: string
recognizedRevenueAccountingCode:
description: 'The accounting code for the recognized revenue, such
as Monthly Recurring Charges or Overage Charges.
'
maxLength: 100
minLength: 0
type: string
revenueRecognitionRuleName:
description: 'The name of the revenue recognition rule governing the
revenue schedule.
'
maxLength: 100
minLength: 0
type: string
type: object
type: object
type: object
subscribeToProduct:
allOf:
- $ref: '#/definitions/RatePlanOverride'
- $ref: '#/definitions/OfferOverride'
title: subscribeToProduct
type: object
tokenResponse:
properties:
access_token:
description: The generated token.
type: string
expires_in:
description: The number of seconds until the token expires.
type: number
jti:
description: A globally unique identifier for the token.
type: string
scope:
description: A space-delimited list of scopes that the token can be used to
access.
type: string
token_type:
description: The type of token that was generated, i.e., `bearer`.
type: string
type: object
zObject:
additionalProperties:
description: 'Field of the object.
'
type: object
zObject_update:
allOf:
- properties:
Id:
description: ''
type: string
fieldsToNull:
description: 'Used to set a list of fields to null.
'
items:
type: string
type: array
required:
- Id
type: object
- $ref: '#/definitions/zObject'
title: zObject