There could be several ways to call different XML APIs to change planon customer's account. This is just one of those flows/methods which is mentioned here
In order to change the plan on the customer's account first thing which you will need to know is the availaible plans . Below are the required fields in the GetPlansList XML API
|
<STATE>OK</STATE>
<ACCOUNTTYPE>LIFELINE</ACCOUNTTYPE>
<ISTRIBAL></ISTRIBAL>
|
All the above information is returned in GetCustomer info API for the existing active subscriber
After you call the GetPlansList XML API you will have a list of plans to which can be changed. After you select the new plan which needs to be added you will also need to know the tax to be charged for that you call GetTaxDetail XML API
|
|
Finally when you have the total amount to be charged you haneed to
- Call the Payment XML API followed by Change Plan API Below is the sample request for ChangePlanYou get the CUSTOMERID from GetCustomerInfo
PLANID is returned in GetPlanList
|
<CUSTOMERID>2115387</CUSTOMERID>
<PLANID>1328</PLANID>
<CHANGETYPE>IMMEDIATE</CHANGETYPE>
<AGENTID>Zeeshan Ahmed</AGENTID>
<AGENTPASSWORD></AGENTPASSWORD>
<SOURCE></SOURCE>
|