After the traffic data is put to Plesk database, a positive response sent back by Plesk server looks as follows:
<packet version="1.6.3.0">
<webspace>
<set_traffic>
<result>
<status>ok</status>
<id>1234</id>
</result>
</set_traffic>
</webspace>
</packet>
If the request packet sets traffic data for multiple subscriptions, the response packet will look as follows:
<packet version="1.6.3.0">
<webspace>
<set_traffic>
<result>
<status>ok</status>
<id>1234</id>
</result>
</set_traffic>
<set_traffic>
<result>
<status>ok</status>
<id>1247</id>
</result>
</set_traffic>
</webspace>
</packet>
The packet will return the result for every filtered subscription within a separate set_traffic node.
If the operation fails, a negative response can look as follows:
<packet version="1.6.3.0">
<webspace>
<set_traffic>
<result>
<status>error</status>
<errcode>1023</errcode>
<errtext>Operation failed.</errtext>
<id>1324</id>
</result>
</set_traffic>
</webspace>
</packet>