Subscribe to a calculated charge rate plan using the REST API (Use Case 1)
Learn how to subscribe to a calculated charge rate plan using the REST API and override charge attributes such as percentage, minimum and maximum amounts, and eligibility conditions.
The supported order actions are createSubscription, addProduct, and changePlan.
-
minimumAmount -
maximumAmount -
percentage -
eligibleAccountConditions -
eligibleChargeConditions -
clearingExistingMinimumAmount(set it to “true” to reset the amount to null) -
clearingExistingMaximumAmount(set it to “true” to reset the amount to null)
The example order requests below are of createSubscription order action. For addProduct, changePlan
Default Account Filter is the eligible subscription rate plan charge's subscription owner account is the same as the calculated charge's subscription owner. If you do not provide the eligibleAccountConditions in the payload, the default value Account.Id = {{CurrentAccountId}} will be saved automatically.
Default Charge Filter is All Charges. If you do not provide the eligibleChargeConditions in a payload, the charge filter will not be applied.
Subscribe to a rate plan with calculated charge by ID decd3ce382a4430ab87e362aafec9c59 and override the following attributes:
-
Change percentage to 10%
-
Change minimum amount to 100
-
Change maximum amount to 2000
-
Set eligible accounts to the ones whose custom field
EntityID__cvalue isENT0001 -
Set eligible charges to the ones from the product family, Classic.