• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

service plan customer change

G

glennsyham

Guest
how do i switch service plan for a customer using api?
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.0">
<customer>
<switch-subscription>
<filter>
<id>54</id>
</filter>
<plan-guid>19280c23-1a98-e538-23cb-b519330da617</plan-guid>
</switch-subscription>
</customer>
</packet>

my service plan:
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.0">
<service-plan>
<get>
<filter>
<name>Pro</name>
</filter>
</get>
</service-plan>
</packet>

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.0">
<service-plan>
<get>
<result>
<status>ok</status>
<id>9</id>
<name>Pro</name>
<guid>be5fcef9-1bdb-20e2-9346-6b018d3c0221</guid>
<external-id/>
 
nvm i got it
get webspace id
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.0">
<webspace>
<get>
<filter>
<owner-login>waitserv</owner-login>
</filter>
<dataset>
<hosting/>
</dataset>
</get>
</webspace>
</packet>

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.0">
<webspace>
<get>
<result>
<status>ok</status>
<filter-id>waitserv</filter-id>
<id>24</id>
<data>
<gen_info>
<cr_date>2011-09-21</cr_date>

then change webspace plan
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.0">
<webspace>
<switch-subscription>
<filter>
<id>24</id>
</filter>
<plan-guid>be5fcef9-1bdb-20e2-9346-6b018d3c0221</plan-guid>
</switch-subscription>
</webspace>
</packet>

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