This API is used to unrate the processed usage input. It also reverts the Amount and Quantity from Billing Schedules, Usage Schedules, and Revenue Fee Schedules.
It accepts a Set of Usage Input IDs as input. For all entered Usage Input IDs, it unrates all the usage Inputs and reverts the amount and quantity from the related billing schedules, usage scheules, and revenue fee schedules. On completion of the batch job, the user receives a batch job status email.
Request
Field
Type
Required?
Description
usageInputIDs
Set <Id>
Yes
Set of usage input IDs
Code Sample
Set<Id> usageInputIds = new Set<ID>{usageInput1.Id, usageInput2.Id};
Apttus_Billing.BillingService.processRatedUsageInput(usageInputIds);