Example 1

The example below creates an account with a payment method and places an order on domain registration to an existing subscription. During the order placement, Terms and Conditions are accepted.

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>1</i4>
                                    </value>
                                    <!-- ProvisioningItem #0. PlanID=5, PlanPeriodID=5, 

           ProvisioningItemID=0, ParentItemID=s102356 -->
                                    <value>5=5=0=s102356</value>
                                    <!-- ProvisioningDataSlotCounter -->
                                    <value>
                                        <i4>8</i4>
                                    </value>
                                    <!-- ProvisioningItemID #0. -->
                                    <value>
                                        <i4>0</i4>
                                    </value>
                                    <!-- ProvisioningParametersCounter for 

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

           Operation type – domain registration -->
                                    <value>OrderOperationType=10</value>
                                    <!-- ProvisioningParameter #2. Domain name -->
                                    <value>DomainID=testdomain</value>
                                    <!-- ProvisioningParameter #3. Transfer Key. 

            Transfer key should be submitted for all operation types.

            For registration and renewal – submit is empty as below -->
                                    <value>TransferKey=</value>
                                    <!-- ProvisioningParameter #4. Admin contact ID -->
                                    <value>AdminContactID=0</value>
                                    <!-- ProvisioningParameter #5. Billing contact ID -->
                                    <value>BillingContactID=0</value>
                                    <!-- ProvisioningParameter #6. Tech contact ID -->
                                    <value>TechContactID=1</value>
                                    <!-- ContactDataCounter -->
                                    <value>
                                        <i4>22</i4>
                                    </value>
                                    <!-- Login to CP -->
                                    <value>LoginID=test123</value>
                                    <!-- Password to CP -->
                                    <value>XXXPasswordID=123test</value>
                                    <!-- Customer's description -->
                                    <value>CompanyNameID=John "tailor" Smith</value>
                                    <!-- First Name -->
                                    <value>FirstNameID=John</value>
                                    <!-- Middle Name -->
                                    <value>MiddleNameID=Shawn</value>
                                    <!-- Last Name -->
                                    <value>LastNameID=Smith</value>
                                    <!-- Address (line 1/2) -->
                                    <value>AddressID=Sunrise Valley Drive</value>
                                    <!-- Address (line 2/2) -->
                                    <value>Address2ID=Suite 600</value>
                                    <!-- City -->
                                    <value>CityID=New York</value>
                                    <!-- State -->
                                    <value>StateID=NY</value>
                                    <!-- Zip code -->
                                    <value>ZipID=12345</value>
                                    <!-- Country -->
                                    <value>CountryID=us</value>
                                    <!-- Email -->
                                    <value>EmailID=jsmith@tailor.com</value>
                                    <!-- Phone country code -->
                                    <value>PhoneCountryID=1</value>
                                    <!-- Phone area code -->
                                    <value>PhoneAreaID=201</value>
                                    <!-- Phone number -->
                                    <value>PhoneNumberID=4568523</value>
                                    <!-- Phone Extension -->
                                    <value>PhoneExtensionID=245</value>
                                    <!-- Fax country code -->
                                    <value>FaxCountryID=1</value>
                                    <!-- Fax area code -->
                                    <value>FaxAreaID=201</value>
                                    <!-- Fax number -->
                                    <value>FaxNumberID=4568523</value>
                                    <!-- Fax Extension -->
                                    <value>FaxExtensionID=235</value>
                                    <!-- Promo code -->
                                    <value>PromoCodeID=promo895</value>
                                    <!-- PayToolCounter -->
                                    <value>
                                        <i4>22</i4>
                                    </value>
                                    <!-- Type of Payment tool. 0 means Credit Card -->
                                    <value>PayToolTypeID=0</value>
                                    <!-- Type of CC -->
                                    <value>CardTypeID=Visa</value>
                                    <!-- Card Number -->
                                    <value>CardNumberID=4111111111111111</value>
                                    <!-- Cardholder name -->
                                    <value>CardHolderNameID=JOHN SMITH</value>
                                    <!-- Security code -->
                                    <value>CVCID=123</value>
                                    <!-- Expiration date -->
                                    <value>ExpDateID=07/08</value>
                                    <!-- IP Address -->
                                    <value>IPAddressID=192.168.232.10</value>
                                    <!-- Billing Address -->
                                    <value>BillingAddressID=Sunrise Valley Drive</value>
                                    <value>BillingAddress2ID=Suite 600</value>
                                    <value>BillingCityID=New York</value>
                                    <value>BillingCountryID=us</value>
                                    <value>BillingStateID=NY</value>
                                    <value>BillingZipID=12345</value>
                                    <value>BillingEmailID=jsmith@tailor.com</value>
                                    <value>BillingPhoneCountryID=1</value>
                                    <value>BillingPhoneAreaID=201</value>
                                    <value>BillingPhoneNumberID=4568523</value>
                                    <value>BillingPhoneExtensionID=245</value>
                                    <value>BillingFaxCountryID=1</value>
                                    <value>BillingFaxAreaID=201</value>
                                    <value>BillingFaxNumberID=4568523</value>
                                    <value>BillingFaxExtensionID=235</value>
                                    <!-- AdditionalContactDataSlotCounter -->
                                    <value>
                                        <i4>2</i4>
                                    </value>
                                    <!-- AdditionalContactID -->
                                    <value>
                                        <i4>0</i4>
                                    </value>
                                    <!-- NumberOfParamsInContact -->
                                    <value>
                                        <i4>18</i4>
                                    </value>
                                    <!-- FName -->
                                    <value>FirstNameID=John</value>
                                    <!-- MName -->
                                    <value>MiddleNameID=F</value>
                                    <!-- LName -->
                                    <value>LastNameID=Smith</value>
                                    <!-- Address (line 1/2) -->
                                    <value>AddressID=Sunrise Valley Drive</value>
                                    <!-- Address (line 2/2) -->
                                    <value>Address2ID=Suite 600</value>
                                    <!-- City -->
                                    <value>CityID=New York</value>
                                    <!-- State -->
                                    <value>StateID=NY</value>
                                    <!-- Zip code -->
                                    <value>ZipID=12345</value>
                                    <!-- Country -->
                                    <value>CountryID=us</value>
                                    <!-- Email -->
                                    <value>EmailID=jsmith@tailor.com</value>
                                    <!-- Phone country code -->
                                    <value>PhoneCountryID=1</value>
                                    <!-- Phone area code -->
                                    <value>PhoneAreaID=201</value>
                                    <!-- Phone number -->
                                    <value>PhoneNumberID=4568523</value>
                                    <!-- Phone Extension -->
                                    <value>PhoneExtensionID=245</value>
                                    <!-- Fax country code -->
                                    <value>FaxCountryID=1</value>
                                    <!-- Fax area code -->
                                    <value>FaxAreaID=201</value>
                                    <!-- Fax number -->
                                    <value>FaxNumberID=4568523</value>
                                    <!-- Fax Extension -->
                                    <value>FaxExtensionID=235</value>
                                    <!-- AdditionalContactID. Tech contact -->
                                    <value>
                                        <i4>1</i4>
                                    </value>
                                    <!-- NumberOfParamsInContact -->
                                    <value>
                                        <i4>18</i4>
                                    </value>
                                    <!-- FName -->
                                    <value>FirstNameID=Mark</value>
                                    <!-- MName -->
                                    <value>MiddleNameID=J</value>
                                    <!-- LName -->
                                    <value>LastNameID=Short</value>
                                    <!-- Address (line 1/2) -->
                                    <value>AddressID=Sunrise Valley Drive</value>
                                    <!-- Address (line 2/2) -->
                                    <value>Address2ID=Suite 600</value>
                                    <!-- City -->
                                    <value>CityID=New York</value>
                                    <!-- State -->
                                    <value>StateID=NY</value>
                                    <!-- Zip code -->
                                    <value>ZipID=12345</value>
                                    <!-- Country -->
                                    <value>CountryID=us</value>
                                    <!-- Email -->
                                    <value>EmailID=mshort@tailor.com</value>
                                    <!-- Phone country code -->
                                    <value>PhoneCountryID=1</value>
                                    <!-- Phone area code -->
                                    <value>PhoneAreaID=201</value>
                                    <!-- Phone number -->
                                    <value>PhoneNumberID=4568523</value>
                                    <!-- Phone Extension -->
                                    <value>PhoneExtensionID=246</value>
                                    <!-- Fax country code -->
                                    <value>FaxCountryID=1</value>
                                    <!-- Fax area code -->
                                    <value>FaxAreaID=201</value>
                                    <!-- Fax number -->
                                    <value>FaxNumberID=4568523</value>
                                    <!-- Fax Extension -->
                                    <value>FaxExtensionID=235</value>
                                    <!-- NumberOfParams In Order Attributes data slot -->
                                    <value>
                                        <i4>0</i4>
                                    </value>
                                    <!-- NumberOfParams In Terms and Conditions data slot -->
                                    <value>
                                        <i4>1</i4>
                                    </value>
                                    <!-- Terms and Conditions ID -->
                                    <value>
                                        <i4>2</i4>
                                    </value>
                                </data>
                            </array>
                        </value>
                    </member>
                </struct>
            </value>
        </param>
    </params>
</methodCall>
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.