WCService


Click here for a complete list of operations.

placeOrder2_0

Places an order (BOL or invoiced). This is our version 2 method recommended for any new development projects. Note: 'Soldto' addresses are an additional field for invoices and will be ignored for non-invoiced orders.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /WCService.asmx HTTP/1.1
Host: webservice.westerncarriers.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://www3.westerncarriers.com/Webservices/placeOrder2_0"

<?xml version="1.0" encoding="utf-8"?>
<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:Header>
    <SecurityHeader xmlns="https://www3.westerncarriers.com/Webservices">
      <AuthenticationKey>string</AuthenticationKey>
    </SecurityHeader>
  </soap:Header>
  <soap:Body>
    <placeOrder2_0 xmlns="https://www3.westerncarriers.com/Webservices">
      <pOrder>
        <Bol_num>string</Bol_num>
        <Carrier>string</Carrier>
        <Cod>boolean</Cod>
        <Create_invoice>boolean</Create_invoice>
        <Customer_po>string</Customer_po>
        <Date_invoice_due>dateTime</Date_invoice_due>
        <Date_ship_requested>dateTime</Date_ship_requested>
        <External_license>string</External_license>
        <Invoice_form_num>int</Invoice_form_num>
        <Payment_terms>string</Payment_terms>
        <Prepaid_shipping>boolean</Prepaid_shipping>
        <Save_order_only>boolean</Save_order_only>
        <Shipto_address1>string</Shipto_address1>
        <Shipto_address2>string</Shipto_address2>
        <Shipto_address3>string</Shipto_address3>
        <Shipto_city>string</Shipto_city>
        <Shipto_state>string</Shipto_state>
        <Shipto_zip>string</Shipto_zip>
        <Soldto_address1>string</Soldto_address1>
        <Soldto_address2>string</Soldto_address2>
        <Soldto_address3>string</Soldto_address3>
        <Soldto_city>string</Soldto_city>
        <Soldto_state>string</Soldto_state>
        <Soldto_zip>string</Soldto_zip>
        <Special_instructions>string</Special_instructions>
        <Special_instructions2>string</Special_instructions2>
        <Total_invoice_amount>decimal</Total_invoice_amount>
      </pOrder>
      <pItems>
        <OrderItem2_0>
          <BottlePrice>decimal</BottlePrice>
          <CasePrice>decimal</CasePrice>
        </OrderItem2_0>
        <OrderItem2_0>
          <BottlePrice>decimal</BottlePrice>
          <CasePrice>decimal</CasePrice>
        </OrderItem2_0>
      </pItems>
      <pMiscCharges>
        <InvoiceMiscCharge>
          <ChargeAmount>decimal</ChargeAmount>
          <ChargeDescription>string</ChargeDescription>
        </InvoiceMiscCharge>
        <InvoiceMiscCharge>
          <ChargeAmount>decimal</ChargeAmount>
          <ChargeDescription>string</ChargeDescription>
        </InvoiceMiscCharge>
      </pMiscCharges>
    </placeOrder2_0>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<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>
    <placeOrder2_0Response xmlns="https://www3.westerncarriers.com/Webservices">
      <pOrder>
        <Bol_num>string</Bol_num>
        <Carrier>string</Carrier>
        <Cod>boolean</Cod>
        <Create_invoice>boolean</Create_invoice>
        <Customer_po>string</Customer_po>
        <Date_invoice_due>dateTime</Date_invoice_due>
        <Date_ship_requested>dateTime</Date_ship_requested>
        <External_license>string</External_license>
        <Invoice_form_num>int</Invoice_form_num>
        <Payment_terms>string</Payment_terms>
        <Prepaid_shipping>boolean</Prepaid_shipping>
        <Save_order_only>boolean</Save_order_only>
        <Shipto_address1>string</Shipto_address1>
        <Shipto_address2>string</Shipto_address2>
        <Shipto_address3>string</Shipto_address3>
        <Shipto_city>string</Shipto_city>
        <Shipto_state>string</Shipto_state>
        <Shipto_zip>string</Shipto_zip>
        <Soldto_address1>string</Soldto_address1>
        <Soldto_address2>string</Soldto_address2>
        <Soldto_address3>string</Soldto_address3>
        <Soldto_city>string</Soldto_city>
        <Soldto_state>string</Soldto_state>
        <Soldto_zip>string</Soldto_zip>
        <Special_instructions>string</Special_instructions>
        <Special_instructions2>string</Special_instructions2>
        <Total_invoice_amount>decimal</Total_invoice_amount>
      </pOrder>
      <pItems>
        <OrderItem2_0>
          <BottlePrice>decimal</BottlePrice>
          <CasePrice>decimal</CasePrice>
        </OrderItem2_0>
        <OrderItem2_0>
          <BottlePrice>decimal</BottlePrice>
          <CasePrice>decimal</CasePrice>
        </OrderItem2_0>
      </pItems>
      <pMiscCharges>
        <InvoiceMiscCharge>
          <ChargeAmount>decimal</ChargeAmount>
          <ChargeDescription>string</ChargeDescription>
        </InvoiceMiscCharge>
        <InvoiceMiscCharge>
          <ChargeAmount>decimal</ChargeAmount>
          <ChargeDescription>string</ChargeDescription>
        </InvoiceMiscCharge>
      </pMiscCharges>
    </placeOrder2_0Response>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /WCService.asmx HTTP/1.1
Host: webservice.westerncarriers.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Header>
    <SecurityHeader xmlns="https://www3.westerncarriers.com/Webservices">
      <AuthenticationKey>string</AuthenticationKey>
    </SecurityHeader>
  </soap12:Header>
  <soap12:Body>
    <placeOrder2_0 xmlns="https://www3.westerncarriers.com/Webservices">
      <pOrder>
        <Bol_num>string</Bol_num>
        <Carrier>string</Carrier>
        <Cod>boolean</Cod>
        <Create_invoice>boolean</Create_invoice>
        <Customer_po>string</Customer_po>
        <Date_invoice_due>dateTime</Date_invoice_due>
        <Date_ship_requested>dateTime</Date_ship_requested>
        <External_license>string</External_license>
        <Invoice_form_num>int</Invoice_form_num>
        <Payment_terms>string</Payment_terms>
        <Prepaid_shipping>boolean</Prepaid_shipping>
        <Save_order_only>boolean</Save_order_only>
        <Shipto_address1>string</Shipto_address1>
        <Shipto_address2>string</Shipto_address2>
        <Shipto_address3>string</Shipto_address3>
        <Shipto_city>string</Shipto_city>
        <Shipto_state>string</Shipto_state>
        <Shipto_zip>string</Shipto_zip>
        <Soldto_address1>string</Soldto_address1>
        <Soldto_address2>string</Soldto_address2>
        <Soldto_address3>string</Soldto_address3>
        <Soldto_city>string</Soldto_city>
        <Soldto_state>string</Soldto_state>
        <Soldto_zip>string</Soldto_zip>
        <Special_instructions>string</Special_instructions>
        <Special_instructions2>string</Special_instructions2>
        <Total_invoice_amount>decimal</Total_invoice_amount>
      </pOrder>
      <pItems>
        <OrderItem2_0>
          <BottlePrice>decimal</BottlePrice>
          <CasePrice>decimal</CasePrice>
        </OrderItem2_0>
        <OrderItem2_0>
          <BottlePrice>decimal</BottlePrice>
          <CasePrice>decimal</CasePrice>
        </OrderItem2_0>
      </pItems>
      <pMiscCharges>
        <InvoiceMiscCharge>
          <ChargeAmount>decimal</ChargeAmount>
          <ChargeDescription>string</ChargeDescription>
        </InvoiceMiscCharge>
        <InvoiceMiscCharge>
          <ChargeAmount>decimal</ChargeAmount>
          <ChargeDescription>string</ChargeDescription>
        </InvoiceMiscCharge>
      </pMiscCharges>
    </placeOrder2_0>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <placeOrder2_0Response xmlns="https://www3.westerncarriers.com/Webservices">
      <pOrder>
        <Bol_num>string</Bol_num>
        <Carrier>string</Carrier>
        <Cod>boolean</Cod>
        <Create_invoice>boolean</Create_invoice>
        <Customer_po>string</Customer_po>
        <Date_invoice_due>dateTime</Date_invoice_due>
        <Date_ship_requested>dateTime</Date_ship_requested>
        <External_license>string</External_license>
        <Invoice_form_num>int</Invoice_form_num>
        <Payment_terms>string</Payment_terms>
        <Prepaid_shipping>boolean</Prepaid_shipping>
        <Save_order_only>boolean</Save_order_only>
        <Shipto_address1>string</Shipto_address1>
        <Shipto_address2>string</Shipto_address2>
        <Shipto_address3>string</Shipto_address3>
        <Shipto_city>string</Shipto_city>
        <Shipto_state>string</Shipto_state>
        <Shipto_zip>string</Shipto_zip>
        <Soldto_address1>string</Soldto_address1>
        <Soldto_address2>string</Soldto_address2>
        <Soldto_address3>string</Soldto_address3>
        <Soldto_city>string</Soldto_city>
        <Soldto_state>string</Soldto_state>
        <Soldto_zip>string</Soldto_zip>
        <Special_instructions>string</Special_instructions>
        <Special_instructions2>string</Special_instructions2>
        <Total_invoice_amount>decimal</Total_invoice_amount>
      </pOrder>
      <pItems>
        <OrderItem2_0>
          <BottlePrice>decimal</BottlePrice>
          <CasePrice>decimal</CasePrice>
        </OrderItem2_0>
        <OrderItem2_0>
          <BottlePrice>decimal</BottlePrice>
          <CasePrice>decimal</CasePrice>
        </OrderItem2_0>
      </pItems>
      <pMiscCharges>
        <InvoiceMiscCharge>
          <ChargeAmount>decimal</ChargeAmount>
          <ChargeDescription>string</ChargeDescription>
        </InvoiceMiscCharge>
        <InvoiceMiscCharge>
          <ChargeAmount>decimal</ChargeAmount>
          <ChargeDescription>string</ChargeDescription>
        </InvoiceMiscCharge>
      </pMiscCharges>
    </placeOrder2_0Response>
  </soap12:Body>
</soap12:Envelope>