Subscribe to a calculated charge rate plan using the REST API (Use Case 2)
This topic explains the use of REST API to subscribe to a product rate plan with a calculated charge by overriding minimum and maximum amounts, percentage, and eligibility conditions.
The supported order actions are createSubscription, addProduct, and changePlan.
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 order actions, the new tags (highlighted in bold text below) for calculated charge are the same.
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 account to be the invoice owner account of this calculated charge
-
Set eligible charges to be all the usage charges