Order Create

After Basket has been calculated and the extra info like Contact data, Shipping, and Payment have been added, it can be sent in for Creation.

Copy

Order Create

<soapenv:Body>
    <ser:OrderCreate>
        <ser:request>
            <ns:Id>MyNo12345</ns:Id>
            <ns1:CardId>10023</ns1:CardId>
            <ns1:OrderDiscountLines/>
            <ns1:OrderLines>
                <ns1:OrderLine>
                    <ns1:Amount>160.00</ns1:Amount>
                    <ns1:ClickAndCollectLine>false</ns1:ClickAndCollectLine>
                    <ns1:DiscountAmount>0</ns1:DiscountAmount>
                    <ns1:DiscountPercent>0</ns1:DiscountPercent>
                    <ns1:ItemId>40020</ns1:ItemId>
                    <ns1:LineNumber>1</ns1:LineNumber>
                    <ns1:LineType>Item</ns1:LineType>
                    <ns1:NetAmount>128.00</ns1:NetAmount>
                    <ns1:NetPrice>64.00</ns1:NetPrice>
                    <ns1:Price>80.00</ns1:Price>
                    <ns1:Quantity>2.00</ns1:Quantity>
                    <ns1:TaxAmount>32.00</ns1:TaxAmount>
                    <ns1:UomId/>
                    <ns1:VariantId>002</ns1:VariantId>
                </ns1:OrderLine>
            </ns1:OrderLines>
            <ns1:OrderPayments>
                <ns1:OrderPayment>
                    <ns1:Amount>160.00</ns1:Amount>
                    <ns1:AuthorisationCode>123456</ns1:AuthorisationCode>
                    <ns1:CardNumber>45XX..5555</ns1:CardNumber>
                    <ns1:CardType>VISA</ns1:CardType>
                    <ns1:CurrencyCode/>
                    <ns1:CurrencyFactor>1</ns1:CurrencyFactor>
                    <ns1:ExternalReference>My123456</ns1:ExternalReference>
                    <ns1:LineNumber>1</ns1:LineNumber>
                    <ns1:PaymentType>PreAuthorization</ns1:PaymentType>
                    <ns1:PreApprovedValidDate>2030-01-01</ns1:PreApprovedValidDate>
                    <ns1:TenderType>1</ns1:TenderType>
                    <ns1:TokenNumber>123456</ns1:TokenNumber>
                </ns1:OrderPayment>
            </ns1:OrderPayments>
            <ns1:OrderType>Sale</ns1: OrderType>
            <ns1:PaymentStatus>PreApproved</ns1:PaymentStatus>
            <ns1:ShipOrder>true</ns1:ShipOrder>
            <ns1:ShipToAddress>
                <ns:Address1>Boulevard</ns:Address1>
                <ns:City>Hollywood</ns:City>
                <ns:Country>US</ns:Country>
                <ns:PostCode>1001</ns:PostCode>
                <ns:StateProvinceRegion>CA</ns:StateProvinceRegion>
                <ns:Type>Residential</ns:Type>
            </ns1:ShipToAddress>
            <ns1:ShipToEmail>john@hollywood.com</ns1:ShipToEmail>
            <ns1:ShipToName>John Doh</ns1:ShipToName>
            <ns1:ShipToPhoneNumber>555-5551</ns1:ShipToPhoneNumber>
            <ns1:SourceType>eCommerce</ns1:SourceType>
            <ns1:StoreId>S0013</ns1:StoreId>
            <ns1:TotalAmount>160.00</ns1:TotalAmount>
            <ns1:TotalDiscount>0</ns1:TotalDiscount>
            <ns1:TotalNetAmount>128.00</ns1:TotalNetAmount>
        </ser:request>
    </ser:OrderCreate>
</soapenv:Body>

For Anonymous Orders, leave the CardId empty, instead add Contact Name and other details about the Contact. If a CardId is provided, the order will be linked to the card.

Copy

Contact information

<ns1:ContactAddress>
    <ns:Address1>Boulevard</ns:Address1>
    <ns:City>Hollywood</ns:City>
    <ns:Country>US</ns:Country>
    <ns:PostCode>1001</ns:PostCode>
    <ns:StateProvinceRegion>CA</ns:StateProvinceRegion>
    <ns:Type>Residential</ns:Type>
</ns1:ContactAddress>
<ns1:ContactName>John Doh</ns1:ContactName>
<ns1:Email>john@hollywood.com</ns1:Email>
<ns1:MobileNumber>555-5551</ns1:MobileNumber>

If the order is Click and Collect, set OrderType to ClickAndCollect and set CollectLocation to the store where order is gone be collected at.

No ShipTo info is needed unless the Click and Collect orders is to be shipped, then add ShipTo info and set ShipOrder to true, otherwise false.

Copy

Click and Collect

<ns1:CollectLocation>S0001</ns1:CollectLocation>
<ns1:OrderType>ClickAndCollect</ns1: OrderType>
<ns1:ShipOrder>false</ns1:ShipOrder>