Endpoint: POST  http://SoapServerName:PortNumber/SalesOrder

-----------------------
Required SOAP XML Tags
-----------------------

<Action>                PlaceOrder                            Required Action
<DataSet>               TUGO                                  Dataset to return
<AccountNumber>         00000                                 Required Account Number
<DateOrdered>           DD/MM/YYYY                            Date Ordered
<PaymentMethod>         On-Account or CWO                     Orders Payment Method Note: CWO Will set Method to 'Credit Card'
<Address1>                                                    Delivery Address Line 1
<Address2>                                                    Delivery Address Line 2
<Address3>                                                    Delivery Address Line 3
<Address4>                                                    Delivery Address Line 4
<Address5>                                                    Delivery Address Line 5

<ProductNumber>         TESTPROD                              Product Number
<ProductDescription>    Test Product Description              Product Description
<Quantity>              5.00                                  Quantity Ordered
<LinePrice>             24.50                                 Line Price


NOTE: Address 1 to 5 will be checked against Customers Address and Alternate Addresses for a exact match.
      If a exact match is not found a new address will be created.


--------------------
Example Request Body
--------------------

<?xml version="1.0" encoding="iso-8859-1"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Action>PlaceOrder</Action>
    <DataSet>TUGO</DataSet>
    <AccountNumber>00000</AccountNumber>
    <DateOrdered>12/09/2022</DateOrdered>
    <PaymentMethod>On-Account</PaymentMethod>
    <Address1>5 Test Street</Address1>
    <Address2>TESTER</Address2>
    <Address3>TEST TOWN</Address3>
    <Address4>Testville</Address4>
    <Address5>ABC 1DE</Address5>
    <OrderItems>
      <OrderItem>
        <ProductNumber>TESTPROD</ProductNumber>
        <ProductDescription>Test Product Description</ProductDescription>
        <Quantity>5.00</Quantity>
        <LinePrice>24.50</LinePrice>
      </OrderItem>
      <OrderItem>
        <ProductNumber>TESTPROD2</ProductNumber>
        <ProductDescription>Test Product 12345</ProductDescription>
        <Quantity>25.00</Quantity>
        <LinePrice>25.00</LinePrice>
      </OrderItem>
    </OrderItems>
  </soap:Body>
</soap:Envelope>

 

---------------------------
Example Successful Response
---------------------------

<?xml version="1.0" encoding="iso-8859-1"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Response>
      <OrderNo>140628</OrderNo>
    </Response>
 </soap:Body>
</soap:Envelope>

 

-----------
SOAP Errors
-----------

FaultCode   Fault
-----------------------------------------------------------------
-1          Order Number not supplied.
-2          Un-able to Initiate Transaction
-3          Un-able to Allocate Next Sales Order Number
-4          Un-able to insert Alternate Address
-5          Un-able to insert Sales Order Header
-6          Un-able to insert Sales Order Detail
-7          Required Dataset Invalid or not Supplied.
999         Invalid Request/Action.


 
  ^
×Share this branded store