• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

change plan-name reseller

G

glennsyham

Guest
how do i change plan using api on reseller. I need help please

<packet version="1.6.3.0">
<reseller>
<set>
<filter>
<login>waitserv</login>
</filter>
<values>
<gen-info>
<pname>waitserv</pname>
<login>waitserv</login>
<passwd>helloworld12$</passwd>
<status/>
</gen-info>
<plan-name>ResellerSimple</plan-name>
</values>
</set>
</reseller>
</packet>
output
<?xml version="1.0"?>
<packet version="1.6.3.0">
<system>
<status>error</status>
<errcode>1014</errcode>
<errtext>Parser error: Request is invalid. Error in line 15: Element 'plan-name': This element is not expected. Expected is one of ( limits, permissions ).</errtext>
</system> </packet>
SimpleXMLElement Object
(
[0] => Parser error: Request is invalid. Error in line 15: Element 'plan-name': This element is not expected. Expected is one of ( limits, permissions ).
)
 
change reseller plan

sorry i wasn't clear i meant was to change their reseller plan not just the name.
let's say they have plan resellerSimple I want to change it to plan ResellerOne
 
Last edited by a moderator:
found the answer myself
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.0">
<reseller>
<switch-subscription>
<filter>
<login>waitserv</login>
</filter>
<plan-guid>fb6ab166-c4fe-f5f5-0a24-f0d46488dd3c</plan-guid>
</switch-subscription>
</reseller>
</packet>

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.0">
<reseller>
<switch-subscription>
<result>
<status>ok</status>
<filter-id>waitserv</filter-id>
<id>106</id>
</result>
</switch-subscription>
</reseller>
</packet>
 
Back
Top