Zuora Billing - RevPro Integration is in Limited Availability.
The following diagram demonstrates the architecture of Zuora Billing - RevPro Integration:
The Data Sync service for Zuora Billing - RevPro Integration syncs the raw Zuora Billing objects into RevPro Pre-Staging tables. After the data is populated into Pre-Staging tables, RevPro runs the Data Transformation job to transform Zuora Billing object data into RevPro transaction lines and load them into Staging tables. Subsequently, RevPro runs the Data Collection job to collect the transaction lines ready for further revenue processing.
To learn about limitations, see Known Limitations of Zuora Billing - RevPro Integration for more information.
Data Sync service
The Data Sync service includes the following steps:
- Export data source objects from Zuora Billing using Data Source API and AQuA API.
- Import object data into RevPro Pre-Staging tables without processing.
Exporting object data
Zuora Billing data source objects can be categorized into two groups:
- State object: the object that records the current state of the information. All data on a State object will be synced into its corresponding RevPro Pre-Staging table.
- Transaction object: the object that records an action or a snapshot in the system history. For a specified date range, a data source record will be synced if the updated timestamp falls within the specified date range.
The following table summarizes all the extracted Zuora Billing objects, their corresponding type, and Data Sync actions:
|Zuora Billing Object||Object Type||Data Sync Action|
||State||Syncs all data into corresponding Pre-Staging tables in RevPro|
||Transaction||Only syncs data created or updated within the specified date range|
Note that each data object is synced separately.
Importing object data
After extracting the object data from Zuora Billing, the Data Sync service imports the data into Pre-Staging tables without processing. Each data object is synced in its own Pre-Staging table. For example, the Invoice object data is synced to the RPRO_DS_INVOICE_G table.
Custom fields are also mapped into the corresponding table of their parent objects. However, custom field names in the synchronization destination table are normalized to a range from CF_1 to CF_50. Zuora Billing - RevPro Integration supports mapping a maximum of 50 custom fields.
The Data Transformation job takes the source objects in Pre-Staging tables and specified query filter as an input parameter, and outputs corresponding RevPro transaction lines in Staging tables.
Transformation for regular lines
The following diagram describes the data transformation process for booking data:
Booking data transformation uses the query filter on Subscription, Order, or any other associated objects to determine the transformation scope. The RatePlanCharge object is used as the driving object and is joined with other objects to construct full information for transformation.
The following diagram describes the data transformation process for billing data:
Billing data transformation uses the query filter on Invoice or any other associated objects to determine the scope. InvoiceItem, InvoiceItemAdjustment, CreditMemo, and DebitMemo are used as driving objects and are joined with other objects to construct full information for transformation.
Customization can be introduced at Staging after SO, INV, or CM lines are generated and before collection.
Transformation for discount lines
Because how a discount is applied to separate charges varies, Zuora Billing - RevPro Integration introduces custom logic to handle discount booking and billing lines. The following table describes how discount lines for booking and billing data are transformed:
|Percentage Discount||Fixed Amount Discount|
|Discount lines for booking||
When processing a percentage discount RPC line, RevPro looks for the corresponding regular charge's RPC id and discount booked value by looking up with the discount's RPC id from the discount charge contractual value table on the id field.
If found, generate the discount SO line by using the information from the regular RPC and discount RPC. The discount SO line id is concatenated to:
When processing fixed-amount discount SO lines:
Discount lines for billing
When processing a discount invoice item of a percentage discount, RevPro searches the regular charge’s RPC id by looking for the appliedToInvoiceItemId field, and traverse to the regular charge’s invoice item. For CreditMemo or DebitMemo, RevPro looks at Invoice_Item_Id field instead of the appliedToInvoiceItemId field.
After the regular charge’s RPC id is located, the SO line id is constructed in the following format:
When processing an InvoiceItemAdjustment, Credit Memo, or Debit Memo, if the applied-to invoice item (SourceId in IIA, AppliedToItemId in CM or DM item) is a discount invoice item, the rules described above are also applicable.
|Discount billing lines of a fixed-amount discount are processed the same as regular billing lines.|
Similar to the integration with other upstream systems, you can run a Data Collection program to collect the transaction lines in Staging tables into RevPro for further revenue processing. See Schedule Jobs to learn how to schedule a job in RevPro.