PUT /v1/invoices
Updates multiple invoices in batches with one call.
Limitations
This operation has the following limitations:
- You can update a maximum of 50 invoices by one call.
Servers
- https://rest.test.zuora.com
- https://rest.sandbox.na.zuora.com
- https://rest.apisandbox.zuora.com
- https://rest.na.zuora.com
- https://rest.zuora.com
- https://rest.test.eu.zuora.com
- https://rest.sandbox.eu.zuora.com
- https://rest.eu.zuora.com
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Content-Encoding |
String | No |
Include the |
Zuora-Track-Id |
String | No |
A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. 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 ( |
Authorization |
String | No |
The value is in the |
Zuora-Entity-Ids |
String | No |
An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform 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. |
Zuora-Org-Ids |
String | No |
Comma separated IDs. If you have Zuora Multi-Org enabled, you can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header. The IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. If the header is not set, the operation is performed in scope of the user's accessible orgs. |
Accept-Encoding |
String | No |
Include the If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
invoices[] |
Array | No |
Container for invoice update details. |
invoices[].id |
String | No |
The ID of the invoice to be updated. |
invoices[].dueDate |
String | No |
The date by which the payment for this invoice is due. |
invoices[].IntegrationStatus__NS |
String | No |
Status of the invoice's synchronization with NetSuite. Only available if you have installed the Zuora Connector for NetSuite. |
invoices[].SyncDate__NS |
String | No |
Date when the invoice was synchronized with NetSuite. Only available if you have installed the Zuora Connector for NetSuite. |
invoices[].IntegrationId__NS |
String | No |
ID of the corresponding object in NetSuite. Only available if you have installed the Zuora Connector for NetSuite. |
invoices[].autoPay |
Boolean | No |
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. |
invoices[].invoiceDate |
String | No |
The new invoice date of the invoice. The new invoice date cannot fall in a closed accounting period. You can only specify |
invoices[].invoiceItems[] |
Array | No |
Container for invoice items. The maximum number of items is 1,000. |
invoices[].invoiceItems[].recognizedRevenueAccountingCode |
String | No |
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. |
invoices[].invoiceItems[].serviceEndDate |
String | No |
The service end date of the invoice item. |
invoices[].invoiceItems[].description |
String | No |
The description of the invoice item. |
invoices[].invoiceItems[].revRecCode |
String | No |
The revenue recognition code. |
invoices[].invoiceItems[].adjustmentRevenueAccountingCode |
String | No |
The accounting code for adjustment revenue. Note: This field is only available if you have the Billing - Revenue Integration feature enabled. |
invoices[].invoiceItems[].chargeDate |
String | No |
The date when the invoice item is charged, in |
invoices[].invoiceItems[].uom |
String | No |
The unit of measure. |
invoices[].invoiceItems[].itemType |
String | No |
The type of the invoice item. |
invoices[].invoiceItems[].id |
String | No |
The unique ID of the invoice item. |
invoices[].invoiceItems[].excludeItemBillingFromRevenueAccounting |
Boolean | No |
The flag to exclude the invoice item from revenue accounting. Note: This field is only available if you have the Billing - Revenue Integration feature enabled. Default value: false |
invoices[].invoiceItems[].SyncDate__NS |
String | No |
Date when the invoice item was synchronized with NetSuite. Only available if you have installed the Zuora Connector for NetSuite. |
invoices[].invoiceItems[].revRecTriggerCondition |
String | No |
The date when revenue recognition is triggered. Possible values:
|
invoices[].invoiceItems[].sku |
String | No |
The SKU of the invoice item. The SKU of the invoice item must be different from the SKU of any existing product. |
invoices[].invoiceItems[].accountingCode |
String | No |
The accounting code associated with the invoice item. |
invoices[].invoiceItems[].contractAssetAccountingCode |
String | No |
The accounting code for contract asset. Note: This field is only available if you have the Billing - Revenue Integration feature enabled. |
invoices[].invoiceItems[].unbilledReceivablesAccountingCode |
String | No |
The accounting code for unbilled receivables. Note: This field is only available if you have the Billing - Revenue Integration feature enabled. |
invoices[].invoiceItems[].chargeName |
String | No |
The name of the charge associated with the invoice item. This field is required if the |
invoices[].invoiceItems[].deferredRevenueAccountingCode |
String | No |
The accounting code for the deferred revenue, such as Monthly Recurring Liability. Note: This field is only available if you have Zuora Finance enabled. |
invoices[].invoiceItems[].unitPrice |
String | No |
The per-unit price of the invoice item. |
invoices[].invoiceItems[].IntegrationStatus__NS |
String | No |
Status of the invoice item's synchronization with NetSuite. Only available if you have installed the Zuora Connector for NetSuite. |
invoices[].invoiceItems[].IntegrationId__NS |
String | No |
ID of the corresponding object in NetSuite. Only available if you have installed the Zuora Connector for NetSuite. |
invoices[].invoiceItems[].quantity |
String | No |
The number of units for the invoice item. |
invoices[].invoiceItems[].revenueRecognitionRuleName |
String | No |
The name of the revenue recognition rule governing the revenue schedule. Note: This field is only available if you have Zuora Finance enabled. |
invoices[].invoiceItems[].discountItems[] |
Array | No |
Container for discount items. The maximum number of discount items is 10. |
invoices[].invoiceItems[].discountItems[].recognizedRevenueAccountingCode |
String | No |
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. |
invoices[].invoiceItems[].discountItems[].bookingReference |
String | No |
The booking reference of the discount item. |
invoices[].invoiceItems[].discountItems[].description |
String | No |
The description of the discount item. |
invoices[].invoiceItems[].discountItems[].revRecCode |
String | No |
The revenue recognition code. |
invoices[].invoiceItems[].discountItems[].adjustmentRevenueAccountingCode |
String | No |
The accounting code for adjustment revenue. Note: This field is only available if you have the Billing - Revenue Integration feature enabled. |
invoices[].invoiceItems[].discountItems[].chargeDate |
String | No |
The date when the discount item is charged, in |
invoices[].invoiceItems[].discountItems[].itemType |
String | No |
The type of the discount item. |
invoices[].invoiceItems[].discountItems[].id |
String | No |
The unique ID of the discount item. |
invoices[].invoiceItems[].discountItems[].SyncDate__NS |
String | No |
Date when the invoice item was synchronized with NetSuite. Only available if you have installed the Zuora Connector for NetSuite. |
invoices[].invoiceItems[].discountItems[].revRecTriggerCondition |
String | No |
The date when revenue recognition is triggered. Possible values:
|
invoices[].invoiceItems[].discountItems[].sku |
String | No |
The SKU of the invoice item. The SKU of the discount item must be different from the SKU of any existing product. |
invoices[].invoiceItems[].discountItems[].accountingCode |
String | No |
The accounting code associated with the discount item. |
invoices[].invoiceItems[].discountItems[].contractAssetAccountingCode |
String | No |
The accounting code for contract asset. Note: This field is only available if you have the Billing - Revenue Integration feature enabled. |
invoices[].invoiceItems[].discountItems[].unbilledReceivablesAccountingCode |
String | No |
The accounting code for unbilled receivables. Note: This field is only available if you have the Billing - Revenue Integration feature enabled. |
invoices[].invoiceItems[].discountItems[].chargeName |
String | No |
The name of the charge associated with the discount item.
This field is required if the |
invoices[].invoiceItems[].discountItems[].deferredRevenueAccountingCode |
String | No |
The accounting code for the deferred revenue, such as Monthly Recurring Liability. Note: This field is only available if you have Zuora Finance enabled. |
invoices[].invoiceItems[].discountItems[].unitPrice |
String | No |
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. |
invoices[].invoiceItems[].discountItems[].IntegrationStatus__NS |
String | No |
Status of the invoice item's synchronization with NetSuite. Only available if you have installed the Zuora Connector for NetSuite. |
invoices[].invoiceItems[].discountItems[].IntegrationId__NS |
String | No |
ID of the corresponding object in NetSuite. Only available if you have installed the Zuora Connector for NetSuite. |
invoices[].invoiceItems[].discountItems[].revenueRecognitionRuleName |
String | No |
The name of the revenue recognition rule governing the revenue schedule. Note: This field is only available if you have Zuora Finance enabled. |
invoices[].invoiceItems[].discountItems[].purchaseOrderNumber |
String | No |
The purchase order number associated with the discount item. |
invoices[].invoiceItems[].discountItems[].adjustmentLiabilityAccountingCode |
String | No |
The accounting code for adjustment liability. Note: This field is only available if you have the Billing - Revenue Integration feature enabled. |
invoices[].invoiceItems[].discountItems[].amount |
String | Yes |
The amount of the discount item.
|
invoices[].invoiceItems[].discountItems[].contractRecognizedRevenueAccountingCode |
String | No |
The accounting code for contract recognized revenue. Note: This field is only available if you have the Billing - Revenue Integration feature enabled. |
invoices[].invoiceItems[].discountItems[].contractLiabilityAccountingCode |
String | No |
The accounting code for contract liability. Note: This field is only available if you have the Billing - Revenue Integration feature enabled. |
invoices[].invoiceItems[].purchaseOrderNumber |
String | No |
The purchase order number associated the invoice item. |
invoices[].invoiceItems[].adjustmentLiabilityAccountingCode |
String | No |
The accounting code for adjustment liability. Note: This field is only available if you have the Billing - Revenue Integration feature enabled. |
invoices[].invoiceItems[].amount |
String | No |
The amount of the invoice item.
|
invoices[].invoiceItems[].serviceStartDate |
String | No |
The service start date of the invoice item. |
invoices[].invoiceItems[].taxCode |
String | No |
The tax code identifies which tax rules and tax rates to apply to the invoice item. Note:
|
invoices[].invoiceItems[].contractRecognizedRevenueAccountingCode |
String | No |
The accounting code for contract recognized revenue. Note: This field is only available if you have the Billing - Revenue Integration feature enabled. |
invoices[].invoiceItems[].taxMode |
String | No |
The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax. Note:
Possible values:
|
invoices[].invoiceItems[].contractLiabilityAccountingCode |
String | No |
The accounting code for contract liability. Note: This field is only available if you have the Billing - Revenue Integration feature enabled. |
invoices[].transferredToAccounting |
String | No |
Whether the invoice was transferred to an external accounting system. Possible values:
|
invoices[].comments |
String | No |
Additional information related to the invoice that a Zuora user added to the invoice. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.