Example 3

The example below places an order for the customer account (ID=1000002) on services and additional resource. The customer has the registered credit card (payment tool) with ID=3.

Request

Copy
<?xml version="1.0"?>
<methodCall>
    <methodName>Execute</methodName>
    <params>
        <param>
            <value>
                <struct>
                    <member>
                        <name>Server</name>
                        <value>BM</value>
                    </member>
                    <member>
                        <name>Method</name>
                        <value>PlaceOrderAndAuthorize_API</value>
                    </member>
                    <member>
                        <name>Params</name>
                        <value>
                            <array>
                                <data>
                                    <!-- VendorAccountID -->
                                    <value>
                                        <i4>1</i4>
                                    </value>
                                    <!-- ProvisioningItemsCounter -->
                                    <value>
                                        <i4>2</i4>
                                    </value>
                                    <!-- ProvisioningItem #0. PlanID=1, PlanPeriodID=3, 

           ProvisioningItemID=0, ParentItemID is not defined -->
                                    <value>1=3=0=-1</value>
                                    <!-- ProvisioningItem #1. ResourceRateID=12, PlanPeriodID=3,

           ProvisioningItemID=1, ParentItemID=0, Amount=100 -->
                                    <value>12=3=1=0=100=RESOURCE</value>
                                    <!-- ProvisioningDataSlotCounter -->
                                    <value>
                                        <i4>3</i4>
                                    </value>
                                    <!-- ProvisioningItemID #0 -->
                                    <value>
                                        <i4>0</i4>
                                    </value>
                                    <!-- ProvisioningParametersCounter for 

            the ProvisioningItem #0 -->
                                    <value>
                                        <i4>1</i4>
                                    </value>
                                    <!-- ProvisioningParameter #0. 

           Hosting name is not defined -->
                                    <value>DomainID=</value>
                                    <!-- ContactDataCounter -->
                                    <value>
                                        <i4>2</i4>
                                    </value>
                                    <!-- Login to CP -->
                                    <value>LoginID=jsmith</value>
                                    <!-- Customer's Account ID -->
                                    <value>AccountID=1000002</value>
                                    <!-- PayToolCounter -->
                                    <value>
                                        <i4>2</i4>
                                    </value>
                                    <!-- Identifier of Payment tool 

            registered on Customer's Account -->
                                    <value>PayToolID=3</value>
                                    <!-- IP Address -->
                                    <value>IPAddressID=192.168.232.10</value>
                                </data>
                            </array>
                        </value>
                    </member>
                </struct>
            </value>
        </param>
    </params>
</methodCall>

Response

Copy
<?xml version="1.0"?>
<methodResponse>
    <params>
        <param>
            <value>
                <struct>
                    <member>
                        <name>Result</name>
                        <value>
                            <array>
                                <data>
                                    <value>
                                        <array>
                                            <data>
                                                <!-- Account ID -->
                                                <value>
                                                    <i4>1000002</i4>
                                                </value>
                                                <!-- Order ID -->
                                                <value>
                                                    <i4>16</i4>
                                                </value>
                                                <!-- Login -->
                                                <value>
                                                    <string>jsmith</string>
                                                </value>
                                                <!-- Creation Time -->
                                                <value>
                                                    <string>06-Jan-2009</string>
                                                </value>
                                                <!-- Payment ID -->
                                                <value>
                                                    <i4>000007</i4>
                                                </value>
                                                <!-- Order Total -->
                                                <value>
                                                    <double>85.000000</double>
                                                </value>
                                                <!-- Order Tax Total -->
                                                <value>
                                                    <double>0.000000</double>
                                                </value>
                                                <!-- Discount Total -->
                                                <value>
                                                    <double>0.000000</double>
                                                </value>
                                                <!-- Order MerchTotal -->
                                                <value>
                                                    <double>85.000000</double>
                                                </value>
                                                <!-- Order Description -->
                                                <value>
                                                    <string>

               Subscription on Plan #3 (Linux Basic) for 1 Year(s). 

              </string>
                                                </value>
                                                <!-- Order Number -->
                                                <value>
                                                    <string>SO000008</string>
                                                </value>
                                            </data>
                                        </array>
                                    </value>
                                </data>
                            </array>
                        </value>
                    </member>
                </struct>
            </value>
        </param>
    </params>
</methodResponse>
CloudBlue, an Ingram Micro business, uses cookies to improve the usability of our site. By continuing to use this site and/or logging in you are accepting the use of these cookies. For more information, visit our Privacy Policy.