Zuora Usage Records
The Zuora Usage Records is a forwarder used to send usage data to Zuora Billing using the
Usage (Non-active Rating API) or with the Active Rating API.
You map fields from a source to specific target fields, and the Zuora Usage Records function then compiles and forwards the mapped fields accordingly.
You can configure this function in the following settings.
- 1 Environment
- 2 Authentication
- 3 Entity
- 4 Request
Environment
Select the Zuora environment.
Field | Description |
|---|---|
Tenant | The name of the Zuora environment. The following endpoints are available for selection: US DC1 Production: https://rest.na.zuora.com/ EU Production: https://rest.eu.zuora.com/ Custom: Use this option to access your own custom tenant environment. Specify the URL for your endpoint. |
Authentication
Select a Zuora credential from Secrets wallet.
Field | Description |
|---|---|
Select from Secrets wallet | Choose from a list of Zuora secret wallet passes. |
Entity
Specify the name of the entity if you have the Zuora Multi-entity feature enabled.
Field | Description |
|---|---|
Multi-entity | If you have the Zuora Multi-entity feature enabled, you can specify the name of the entity you want access to. Zuora Multi-entity provides the capability to create and manage multiple entities within a single Zuora tenant. For more information on Zuora Multi-entity, refer to |
Request
The configuration fields will differ if you have toggled on Use Active Rating as described below.
To send usage data to a Zuora Billing system, toggle off Use Active Rating. The Active Rating option is only applicable to Zuora customers that have the Active Rating feature activated, and the Use Active Rating toggle should always be off if this is not the case.
Non-active rating
Required fields
In Required fields, the field mapping is done for the mandatory fields for the usage record. You must specify the Source field based on the input from the previous function for the appropriate Required fields. There are three Required fields that must be mapped to the source fields: Quantity, StartDateTime, and UOM.
Optional fields
In Optional fields, you add the remaining optional fields, or you may add additional custom fields to compile the usage record. To add an optional field, click the Add field mapping button. There are ten default Optional fields:
AccountId
AccountNumber
ChargeId
ChargeNumber
Description
EndDateTime
SubscriptionId
SubcriptionNumber
UniqueKey
ProductRatePlanChargeNumber
To add a custom field mapping, type the custom field name into Add field. Added custom fields will automatically be appended with the suffix ___c. You do not need to include this suffix in the field name.
Note!
Either AccountId or AccountNumber must be specified together with Required fields to successfully send usage records.
Operational settings
In the Operational settings, you can take the following optional steps to configure the Zuora Usage Records function:
You can toggle Retry on fail to let the service retry each request when the server returns error codes such as 429, 500, or 503 because of intermittent server issues or rate limiting.
You can specify the number of retries in the Number of retries box, and the service performs those retries within a dynamically adjusted retry period. This retry behavior applies only to 5xx and 429(Too many requests) error codes.
Note!
The maximum number of allowed retries is 12 and all retries will be attempted in a total span of a maximum of 68 minutes.
Action on error controls what happens when an error occurs during processing. You can select one of the following options:
Ignore - The stream continues processing the next records even if an error occurs. This is the default option.
Stop stream - The stream stops when an error occurs.
If Retry on fail is enabled, retries always take precedence over Action on error:
If the retry limit is reached and the error still persists, the selected Action on error option is applied (Ignore or Stop stream).
Response handling
Toggling the Response handling on will allow you to Select Interconnect receiver. The Zuora Usage Records function has a built-in Interconnect sender which will forward the status ID, request and record details received from Zuora. A second stream can use the Interconnect receiver to accept the status ID, request and records details forwarded by the Zuora Usage Records function to track the status of the submitted usage record in Zuora. If the stream fails for any reason, the Zuora Usage Records function will not send anything through the Interconnect sender.
Note!
40 requests will be sent asynchronously to Zuora
Each request contains one record
Active rating
Required fields
In Required fields, the field mapping is done for the mandatory fields for the usage record. You must specify the Source field based on the input from the previous function for the appropriate Required fields. There are five Required fields that must be mapped to the source fields:
accountNumber
tag
unitOfMeasure
startDateTime
quantity
Optional fields
In Optional fields, you add the remaining optional fields, or you may add additional custom fields to compile the usage record. To add an optional field, click the Add field mapping button. There are three Optional fields and those are description, groupId, and uniqueKey. To add a custom field mapping, type the custom field name into Add field.
Note!
If your Zuora tenant requires a custom field name with the __c suffix, you must enter the full field name (including __c) in the Optional fields configuration yourself.
Operational settings
In the Operational settings, you can take the following optional steps to configure Zuora Usage Records function:
You can toggle Retry on fail to let the service retry each request when the server returns error codes such as 429, 500, or 503 because of intermittent server issues or rate limiting.
You can specify the number of retries in the Number of retries box, and the service performs those retries within a dynamically adjusted retry period. This retry behavior applies only to 5xx and 429(Too many requests) error codes.
Note!
The maximum number of allowed retries is 12 and all retries will be attempted in a total span of a maximum of 68 minutes.
Action on error controls what happens when an error occurs during processing. You can select one of the following options:
Ignore - The stream continues processing the next records even if an error occurs. This is the default option.
Stop stream - The stream stops when an error occurs.
If Retry on fail is enabled, retries always take precedence over Action on error:
If the retry limit is reached and the error still persists, the selected Action on error option is applied (Ignore or Stop stream).
Response handling
Toggling the Response handling on will allow you to Select Interconnect receiver. The Zuora Usage Records function has a built-in Interconnect sender which will forward the status ID, request and records details received from Zuora. A second stream can use the Interconnect receiver to accept the status ID, request and records details forwarded by the Zuora Usage Records function to track the status of the submitted usage record in Zuora. If the stream fails for any reason, Zuora Usage Records function will not send anything through the Interconnect sender.
Note!
40 requests will be sent asynchronously to Zuora
Each request contains 5 records