Setting Billing Information

Use the set-billing-info operation to save in the Plesk database the financial information displayed in Control Panel for specified subscriptions.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet that saves financial information for a subscription to Plesk database includes the set-billing-info operation node:

<packet>
<webspace>
   <set-billing-info>
   ...
   </set-billing-info>
</webspace>
</packet>

 

The set-billing-info node (type setBillingInfoInput, domain_input.xsd) has the following graphical representation:

webspace-set-billing-info-rps.gif

 

Response Packet Structure

The set-billing-info node of the output XML packet is structured as follows:

asdasdasdasdas

 

Samples

The following packet requests to save to Plesk database the subscription price, billing cycle (1 month), and next renewal date.

<packet>
  <webspace>
    <set-billing-info>
      <filter>
        <external-id>0c1bd35a-1abe-42da-b98c-e4af6d87c94d</external-id>
      </filter>
      <values>
        <price>
          <currency>USD</currency>
          <sum>10.00</sum>
        </price>
        <renewal-date>2010-12-22T14:33:12+0600</renewal-date>
        <cycle>P1MT</cycle>
      </values>
    </set-billing-info>
  </webspace>
</packet>

A response from the server can look as follows.

<packet version="1.6.3.0">
  <webspace>
    <set-billing-info>
      <result>
        <status>ok</status>
        <filter-id>9</filter-id>
        <id>9</id>
      </result>
    </set-billing-info>
  </webspace>
</packet>