AutoBill.addCampaign will automatically calculate the Product(s) and Billing Plan(s) to which the Campaign should apply, based on the eligible products and billing plans, as defined in the Campaign.
To specify the Product and Billing Plan to which a Campaign Code should be applied, use AutoBill.modify to add a Product,Billing Plan, and Campaign Code simultaneously.
Add a Product and Billing Plan, with an attached Campaign Code, to an AutoBill:
Using modify with a Campaign Code as a parameter forces the discount to be applied to the added Product and Billing Plan. It will not be applied to any other Product or Billing Plan on the AutoBill.
modify without specifying the campaignCode parameter, then using addCampaign against the same AutoBill, will apply the Campaign discount to all Products and Billing Plans in the AutoBill eligible for the discount.
Parent topic:Adding a Campaign Code to an AutoBill
