Zuora Usage Records

Zuora Usage Records

The Zuora Usage Records is a forwarder used to send usage data to Zuora Billing using theUsage (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.

Environment

Select the Zuora environment.

Field

Description

Field

Description

Tenant

The name of the Zuora environment. The following endpoints are available for selection:

US DC1 Production: https://rest.na.zuora.com/
US DC2 Production: https://rest.zuora.com/
US DC1 API Sandbox: https://rest.sandbox.na.zuora.com/
US DC2 API Sandbox: https://rest.apisandbox.zuora.com/
US Central Sandbox: https://rest.test.zuora.com/

EU Production: https://rest.eu.zuora.com/
EU Sandbox: https://rest.sandbox.eu.zuora.com/
EU Central Sandbox: https://rest.test.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

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

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 Zuora Product Documentation.

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.

Required fields non active rating.png
Request configuration

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).

zuora-action-on-error.png
Operational settings configuration

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

Response handling non active rating.png
Response handling configuration

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

Required fields active rating.png
Request configuration

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.

zuora-ar-optional-fields.png
Optional fields configuration

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).

zuora-action-on-error.png
Operational settings configuration

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