Setting Billing Information

Use the set-billing-info operation to set financial information displayed in the Control Panel for given customer accounts. This can be a revenue, outstanding invoices, paid invoices, refunded invoices, and a credit balance.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

Set the financial information by including the set-billing-info operation into the packet as in the following example:

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

 

The set-billing-info node does not have a separate type, it is nested within the ClientTypeRequest complex type (client_input.xsd). The operation node has the following graphics representation:

set-billing-info-rps.gif

Type clientPriceInput has the following graphical presentation:

set-billing-info_priceinput

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.

 

Response Packet Structure

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

customer-get-billing-info-reps.gif

 

Samples

Say, you used the following request packet.

<packet version="1.6.7.0"><customer>
   <set-billing-info>
                <filter>
                        <id>3</id>
                </filter>
                <values>
                        <invoices-due>
                                <value>
                                        <currency>USD</currency>
                                        <sum>10</sum>
                                </value>
                        </invoices-due>
                </values>
   </set-billing-info>
</customer>
</packet>

 

Response:

<packet version="1.6.7.0">
  <customer>
    <set-billing-info>
      <result>
        <status>ok</status>
        <filter-id>3</filter-id>
        <id>3</id>
      </result>
    </set-billing-info>
  </customer>
</packet>