Calculate Tax for Credit and Rebill
calculateTaxForCreditRebillAPI allows you to calculate tax for credit memo generated by the createCreditRebill API.
You must call the calculateTaxForCreditRebill API after calling the createCreditRebill API, when the following scenarios true:
- You have defined the TestTaxCallbackWithExternalCallout callback class in Setup Develop Custom Settings Config Custom Classes Tax Callback Class.
- You want to select both Auto Approve credit memo and Unrate the usage inputs options.
API | Signature |
|---|---|
calculateTaxForCreditRebill |
|
This API accepts the following input parameters.
Request | |||
|---|---|---|---|
Field | Type | Required? | Description |
creditMemoId | Id | Yes | ID of the credit memo. |
autoApproveCreditMemo | Boolean | Yes | If set to true, Conga Billing auto-approves credit memos. |
unrateUsageInputs | Boolean | Yes | If set to true, Conga Billing unrates usage inputs. |
The API returns a Map as a response parameter.
Response | ||
|---|---|---|
Field | Type | Description |
Result | Map | The result map contains the success string and a value |
Sample Code - Request
Apttus_Billing.CreditRebillService.calculateTaxForCreditRebill('a5JDc000000lqH2',true, true);