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.