Preview Pending Usage Inputs
previewPendingUsageInputs API is used to preview the rating amount of usage inputs without altering the Billing Schedules, Usage Schedules, and Usage Inputs. You can rate a maximum of 1000 Usage Inputs at a time.
|
API |
Signature |
|---|---|
|
previewPendingUsageInputs |
|
The API accepts a set of Usage Input IDs as input. It validates the number of Usage Inputs to process. If the number of Usage Input Ids entered is less than 1000, it returns a map containing the rating amount for each Usage Input ID. If the number of Usage Input IDs given is more than 1000, Billing Management system throws an error.
|
Request | |||
|---|---|---|---|
|
Field |
Type |
Required? |
Description |
|
usageInputIds |
Set <Id> |
Yes |
Set of Usage Input IDs |
|
Response | ||
|---|---|---|
|
Field |
Type |
Description |
|
mapRatedUsagInputIds |
Map |
Map containing Usage Inputs for each UsageInputId |
Code Sample - Request
Set<ID> usageInputIDs = new Set<ID>{'a5aDc0000001tko', 'a5aDc0000001tkt','a5aDc0000001tky','a5aDc0000001tl3'}; //Max it can be 1000 IDs
Map<ID, Apttus_Billing__UsageInput__c> previewPendingUsageInputs = Apttus_Billing.UsageService.previewPendingUsageInputs(usageInputIDs);
System.debug('====Apttus_Billing==='+previewPendingUsageInputs);