Exigo Web Services API v2022.12.19.1

CreateOrderImport

Imports a new Order for an existing customer. Use this for import routines or other instances where you wish to supply all calculation data. It is advised to use CreateOrder unless you know the exact breakdown of all pricing, tax, shipping and volume info.

Note: This request can participate in a transaction. Learn more about transactions.

Input Properties

CreateOrderImportRequest
PropertyData TypeNotes
CustomerIDInt32Unique numeric identifier for customer record.
FirstNameStringOptional.
LastNameStringOptional.
CompanyStringOptional.
PhoneStringOptional.
EmailStringOptional.
ShipMethodID Int32
Address1StringOptional.
Address2StringOptional.
Address3StringOptional.
CityStringOptional.
StateStringOptional.
ZipStringOptional.
CountryStringOptional.
CountyStringOptional.
NotesStringOptional.
WarehouseID Int32Unique location for orders.
CurrencyCode StringOptional.
ShippingStateTaxDecimal
ShippingFedTaxDecimal
ShippingCountyLocalTaxDecimal
ShippingCountyTaxDecimal
ShippingCityLocalTaxDecimal
ShippingCityTaxDecimal
ShippingDecimal
PriceType Int32Controls which price band to use.
OrderStatus OrderStatusType
OrderDateDateTime
Other11StringOptional.
Other12StringOptional.
Other13StringOptional.
Other14StringOptional.
Other15StringOptional.
Other16StringOptional.
Other17StringOptional.
Other18StringOptional.
Other19StringOptional.
Other20StringOptional.
OrderType OrderType
UseManualOrderIDBooleanOptional.
ManualOrderIDInt32Optional. Unique numeric identifier for new order record.
ReturnOrderIDInt32Optional. Unique numeric identifier for return order record.
OrderDetailsOrderImportDetail[]
PartyIDInt32Optional.
ManualOrderKeyStringOptional. Unique alpha numeric identifier for order record. Exeption will occur if OrderID & OrderKey are provided.
ReturnOrderKeyStringOptional. Unique alpha numeric identifier for return order record. Exeption will occur if ReturnOrderID & ReturnOrderKey are provided.
CustomerKeyStringOptional. Unique alpha numeric identifier for customer record. Exeption will occur if CustomerID & CustomerKey are provided.
OverwriteExistingOrderBoolean
ExistingOrderIDInt32Optional. Unique numeric identifier for existing order record.
ExistingOrderKeyStringOptional. Unique alpha numeric identifier for existing order record. Exeption will occur if ExistingOrderID & ExistingOrderKey are provided.
IsCommissionableBooleanOptional. . Defaults to True.
HandlingFeeDecimalOptional.
OrderImportDetail
PropertyData TypeNotes
ParentItemCodeStringOptional.
ItemCode StringOptional.
DescriptionStringOptional.
QtyDecimal
WeightEachDecimal
CountyLocalTaxDecimal
CountyTaxDecimal
CityTaxDecimal
StateTaxDecimal
FedTaxDecimal
TaxablePriceEachDecimal
CVEachDecimal
BVEachDecimal
PriceEachDecimal
Other10EachDecimal
Other9EachDecimal
Other8EachDecimal
Other7EachDecimal
Other6EachDecimal
Other5EachDecimal
Other4EachDecimal
Other3EachDecimal
Other2EachDecimal
Other1EachDecimal
Reference1StringOptional.
CityLocalTaxDecimal
OrderLineInt32Optional.

Output Properties

CreateOrderImportResponse
PropertyData TypeNotes
OrderIDInt32Unique numeric identifier for order record.
OrderKeyStringUnique alpha numeric identifier for order record.

Http Request

POST https://yourcompany-api.exigo.com/3.0/orders/import HTTP/1.1
Content-Type: application/json
Authorization: Basic base64Encoded(yourlogin@yourcompany:yourpassword)

{ "customerID": 1, "firstName": "", "lastName": "", "company": "", "phone": "", "email": "", "shipMethodID": 1, "address1": "1", "address2": "1", "address3": "1", "city": "1", "state": "1", "zip": "1", "country": "1", "county": "1", "notes": "", "warehouseID": 1, "currencyCode": "usd", "shippingStateTax": null, "shippingFedTax": null, "shippingCountyLocalTax": null, "shippingCountyTax": null, "shippingCityLocalTax": null, "shippingCityTax": null, "shipping": null, "priceType": 1, "orderStatus": null, "orderDate": "2024-11-21T00:00:00-06:00", "other11": "", "other12": "", "other13": "", "other14": "", "other15": "", "other16": "", "other17": "", "other18": "", "other19": "", "other20": "", "orderType": null, "orderDetails": null, "partyID": 1, "manualOrderKey": "1", "returnOrderKey": "1", "customerKey": "1", "overwriteExistingOrder": true, "existingOrderID": 1, "existingOrderKey": "1", "isCommissionable": true, "handlingFee": null }

Http Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: length

{ "orderID": 1, "orderKey": "", "result": null }

Soap Request

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

POST /3.0/ExigoApi.asmx HTTP/1.1
Host: totallife-api.exigo.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://api.exigo.com/CreateOrderImport"

<?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> <ApiAuthentication xmlns="http://api.exigo.com/"> <LoginName>string</LoginName> <Password>string</Password> <Company>string</Company> <Identity>string</Identity> <RequestTimeUtc>dateTime</RequestTimeUtc> <Signature>string</Signature> </ApiAuthentication> </soap:Header> <soap:Body> <CreateOrderImportRequest xmlns="http://api.exigo.com/"> <CustomerID>int</CustomerID> <FirstName>string</FirstName> <LastName>string</LastName> <Company>string</Company> <Phone>string</Phone> <Email>string</Email> <ShipMethodID>int</ShipMethodID> <Address1>string</Address1> <Address2>string</Address2> <Address3>string</Address3> <City>string</City> <State>string</State> <Zip>string</Zip> <Country>string</Country> <County>string</County> <Notes>string</Notes> <WarehouseID>int</WarehouseID> <CurrencyCode>string</CurrencyCode> <ShippingStateTax>decimal</ShippingStateTax> <ShippingFedTax>decimal</ShippingFedTax> <ShippingCountyLocalTax>decimal</ShippingCountyLocalTax> <ShippingCountyTax>decimal</ShippingCountyTax> <ShippingCityLocalTax>decimal</ShippingCityLocalTax> <ShippingCityTax>decimal</ShippingCityTax> <Shipping>decimal</Shipping> <PriceType>int</PriceType> <OrderStatus>Incomplete or Pending or CCDeclined or ACHDeclined or Canceled or CCPending or ACHPending or Accepted or Printed or Shipped or PendingInventory</OrderStatus> <OrderDate>dateTime</OrderDate> <Other11>string</Other11> <Other12>string</Other12> <Other13>string</Other13> <Other14>string</Other14> <Other15>string</Other15> <Other16>string</Other16> <Other17>string</Other17> <Other18>string</Other18> <Other19>string</Other19> <Other20>string</Other20> <OrderType>Default or CustomerService or ShoppingCart or WebWizard or AutoOrder or Import or BackOrder or ReplacementOrder or ReturnOrder or WebAutoOrder or TicketSystem or APIOrder or BackOrderParent or ChildOrder or Other1 or Other2 or Other3 or Other4 or Other5 or Other6 or Other7 or Other8 or Other9 or Other10</OrderType> <UseManualOrderID>boolean</UseManualOrderID> <ManualOrderID>int</ManualOrderID> <ReturnOrderID>int</ReturnOrderID> <OrderDetails> <OrderImportDetail> <ParentItemCode>string</ParentItemCode> <ItemCode>string</ItemCode> <Description>string</Description> <Qty>decimal</Qty> <WeightEach>decimal</WeightEach> <CountyLocalTax>decimal</CountyLocalTax> <CountyTax>decimal</CountyTax> <CityTax>decimal</CityTax> <StateTax>decimal</StateTax> <FedTax>decimal</FedTax> <TaxablePriceEach>decimal</TaxablePriceEach> <CVEach>decimal</CVEach> <BVEach>decimal</BVEach> <PriceEach>decimal</PriceEach> <Other10Each>decimal</Other10Each> <Other9Each>decimal</Other9Each> <Other8Each>decimal</Other8Each> <Other7Each>decimal</Other7Each> <Other6Each>decimal</Other6Each> <Other5Each>decimal</Other5Each> <Other4Each>decimal</Other4Each> <Other3Each>decimal</Other3Each> <Other2Each>decimal</Other2Each> <Other1Each>decimal</Other1Each> <Reference1>string</Reference1> <CityLocalTax>decimal</CityLocalTax> <OrderLine>int</OrderLine> </OrderImportDetail> </OrderDetails> <PartyID>int</PartyID> <ManualOrderKey>string</ManualOrderKey> <ReturnOrderKey>string</ReturnOrderKey> <CustomerKey>string</CustomerKey> <OverwriteExistingOrder>boolean</OverwriteExistingOrder> <ExistingOrderID>int</ExistingOrderID> <ExistingOrderKey>string</ExistingOrderKey> <IsCommissionable>boolean</IsCommissionable> <HandlingFee>decimal</HandlingFee> </CreateOrderImportRequest> </soap:Body> </soap:Envelope>

Soap Response

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> <CreateOrderImportResult xmlns="http://api.exigo.com/"> <OrderID>int</OrderID> <OrderKey>string</OrderKey> </CreateOrderImportResult> </soap:Body> </soap:Envelope>

C# Rest Client

Install Nuget package Exigo.Api.Client

try

{

    //Create Api Client

    var api = new ExigoApiClient("yourcmpany", "yourlogin", "yourpassword");

 

    //Create Request

    var req = new CreateOrderImportRequest();

 

    req.CustomerID = 1;             //Unique numeric identifier for customer record.

    req.FirstName = "1";

    req.LastName = "1";

    req.Company = "1";

    req.Phone = "1";

    req.Email = "1";

    req.ShipMethodID = 1;

    req.Address1 = "1";

    req.Address2 = "1";

    req.Address3 = "1";

    req.City = "1";

    req.State = "1";

    req.Zip = "1";

    req.Country = "1";

    req.County = "1";

    req.Notes = "1";

    req.WarehouseID = 1;            //Unique location for orders

    req.CurrencyCode = "usd";

    req.ShippingStateTax = 1;

    req.ShippingFedTax = 1;

    req.ShippingCountyLocalTax = 1;

    req.ShippingCountyTax = 1;

    req.ShippingCityLocalTax = 1;

    req.ShippingCityTax = 1;

    req.Shipping = 1;

    req.PriceType = 1;              //Controls which price band to use

    req.OrderStatus = OrderStatusType.Incomplete;

    req.OrderDate = DateTime.Today;

    req.Other11 = "1";

    req.Other12 = "1";

    req.Other13 = "1";

    req.Other14 = "1";

    req.Other15 = "1";

    req.Other16 = "1";

    req.Other17 = "1";

    req.Other18 = "1";

    req.Other19 = "1";

    req.Other20 = "1";

    req.OrderType = OrderType.Default;

 

    //Add OrderDetails

    var orderdetails = new List<OrderImportDetail>();

 

    var orderDetail1 = new OrderImportDetail();

    orderDetail1.ParentItemCode = "1";

    orderDetail1.ItemCode = "1";

    orderDetail1.Description = "1";

    orderDetail1.Qty = 1;

    orderDetail1.WeightEach = 1;

    orderDetail1.CountyLocalTax = 1;

    orderDetail1.CountyTax = 1;

    orderDetail1.CityTax = 1;

    orderDetail1.StateTax = 1;

    orderDetail1.FedTax = 1;

    orderDetail1.TaxablePriceEach = 1;

    orderDetail1.CVEach = 1;

    orderDetail1.BVEach = 1;

    orderDetail1.PriceEach = 1;

    orderDetail1.Other10Each = 1;

    orderDetail1.Other9Each = 1;

    orderDetail1.Other8Each = 1;

    orderDetail1.Other7Each = 1;

    orderDetail1.Other6Each = 1;

    orderDetail1.Other5Each = 1;

    orderDetail1.Other4Each = 1;

    orderDetail1.Other3Each = 1;

    orderDetail1.Other2Each = 1;

    orderDetail1.Other1Each = 1;

    orderDetail1.Reference1 = "1";

    orderDetail1.CityLocalTax = 1;

    orderDetail1.OrderLine = 1;

    orderdetails.Add(orderDetail1);

 

    var orderDetail2 = new OrderImportDetail();

    orderDetail2.ParentItemCode = "2";

    orderDetail2.ItemCode = "2";

    orderDetail2.Description = "2";

    orderDetail2.Qty = 2;

    orderDetail2.WeightEach = 2;

    orderDetail2.CountyLocalTax = 2;

    orderDetail2.CountyTax = 2;

    orderDetail2.CityTax = 2;

    orderDetail2.StateTax = 2;

    orderDetail2.FedTax = 2;

    orderDetail2.TaxablePriceEach = 2;

    orderDetail2.CVEach = 2;

    orderDetail2.BVEach = 2;

    orderDetail2.PriceEach = 2;

    orderDetail2.Other10Each = 2;

    orderDetail2.Other9Each = 2;

    orderDetail2.Other8Each = 2;

    orderDetail2.Other7Each = 2;

    orderDetail2.Other6Each = 2;

    orderDetail2.Other5Each = 2;

    orderDetail2.Other4Each = 2;

    orderDetail2.Other3Each = 2;

    orderDetail2.Other2Each = 2;

    orderDetail2.Other1Each = 2;

    orderDetail2.Reference1 = "2";

    orderDetail2.CityLocalTax = 2;

    orderDetail2.OrderLine = 2;

    orderdetails.Add(orderDetail2);

 

    //Now attach the list to the request

    req.OrderDetails = orderdetails.ToArray();

    req.PartyID = 1;

    req.ManualOrderKey = "1";       //Unique alpha numeric identifier for order record. Exeption will occur if OrderID & OrderKey are provided.

    req.ReturnOrderKey = "1";       //Unique alpha numeric identifier for return order record. Exeption will occur if ReturnOrderID & ReturnOrderKey are provided.

    req.CustomerKey = "1";          //Unique alpha numeric identifier for customer record. Exeption will occur if CustomerID & CustomerKey are provided.

    req.OverwriteExistingOrder = true;

    req.ExistingOrderID = 1;        //Unique numeric identifier for existing order record.

    req.ExistingOrderKey = "1";     //Unique alpha numeric identifier for existing order record. Exeption will occur if ExistingOrderID & ExistingOrderKey are provided.

    req.IsCommissionable = true;

    req.HandlingFee = 1;

 

    //Send Request to Server and Get Response

    var res = await api.CreateOrderImportAsync(req);

 

    //Now examine the results:

    Console.WriteLine("OrderID: {0}", res.OrderID);

    Console.WriteLine("OrderKey: {0}", res.OrderKey);

}

catch (Exception ex)

{

    Console.WriteLine("Error: " + ex.Message);

}

C# Soap Client

try

{

    //Create Main API Context Object

    ExigoApi api = new ExigoApi();

 

    //Create Authentication Header

    ApiAuthentication auth = new ApiAuthentication();

    auth.LoginName = "yourLoginName";

    auth.Password = "yourPassword";

    auth.Company = "yourCompany";

    api.ApiAuthenticationValue = auth;

 

    //Create Request

    CreateOrderImportRequest req = new CreateOrderImportRequest();

 

    req.CustomerID = 1;             //Unique numeric identifier for customer record.

    req.FirstName = "1";

    req.LastName = "1";

    req.Company = "1";

    req.Phone = "1";

    req.Email = "1";

    req.ShipMethodID = 1;

    req.Address1 = "1";

    req.Address2 = "1";

    req.Address3 = "1";

    req.City = "1";

    req.State = "1";

    req.Zip = "1";

    req.Country = "1";

    req.County = "1";

    req.Notes = "1";

    req.WarehouseID = 1;            //Unique location for orders

    req.CurrencyCode = "usd";

    req.ShippingStateTax = 1;

    req.ShippingFedTax = 1;

    req.ShippingCountyLocalTax = 1;

    req.ShippingCountyTax = 1;

    req.ShippingCityLocalTax = 1;

    req.ShippingCityTax = 1;

    req.Shipping = 1;

    req.PriceType = 1;              //Controls which price band to use

    req.OrderStatus = OrderStatusType.Incomplete;

    req.OrderDate = DateTime.Today;

    req.Other11 = "1";

    req.Other12 = "1";

    req.Other13 = "1";

    req.Other14 = "1";

    req.Other15 = "1";

    req.Other16 = "1";

    req.Other17 = "1";

    req.Other18 = "1";

    req.Other19 = "1";

    req.Other20 = "1";

    req.OrderType = OrderType.Default;

 

    //Add OrderDetails

    List<OrderImportDetail> orderdetails = new List<OrderImportDetail>();

 

    OrderImportDetail orderDetail1 = new OrderImportDetail();

    orderDetail1.ParentItemCode = "1";

    orderDetail1.ItemCode = "1";

    orderDetail1.Description = "1";

    orderDetail1.Qty = 1;

    orderDetail1.WeightEach = 1;

    orderDetail1.CountyLocalTax = 1;

    orderDetail1.CountyTax = 1;

    orderDetail1.CityTax = 1;

    orderDetail1.StateTax = 1;

    orderDetail1.FedTax = 1;

    orderDetail1.TaxablePriceEach = 1;

    orderDetail1.CVEach = 1;

    orderDetail1.BVEach = 1;

    orderDetail1.PriceEach = 1;

    orderDetail1.Other10Each = 1;

    orderDetail1.Other9Each = 1;

    orderDetail1.Other8Each = 1;

    orderDetail1.Other7Each = 1;

    orderDetail1.Other6Each = 1;

    orderDetail1.Other5Each = 1;

    orderDetail1.Other4Each = 1;

    orderDetail1.Other3Each = 1;

    orderDetail1.Other2Each = 1;

    orderDetail1.Other1Each = 1;

    orderDetail1.Reference1 = "1";

    orderDetail1.CityLocalTax = 1;

    orderDetail1.OrderLine = 1;

    orderdetails.Add(orderDetail1);

 

    OrderImportDetail orderDetail2 = new OrderImportDetail();

    orderDetail2.ParentItemCode = "2";

    orderDetail2.ItemCode = "2";

    orderDetail2.Description = "2";

    orderDetail2.Qty = 2;

    orderDetail2.WeightEach = 2;

    orderDetail2.CountyLocalTax = 2;

    orderDetail2.CountyTax = 2;

    orderDetail2.CityTax = 2;

    orderDetail2.StateTax = 2;

    orderDetail2.FedTax = 2;

    orderDetail2.TaxablePriceEach = 2;

    orderDetail2.CVEach = 2;

    orderDetail2.BVEach = 2;

    orderDetail2.PriceEach = 2;

    orderDetail2.Other10Each = 2;

    orderDetail2.Other9Each = 2;

    orderDetail2.Other8Each = 2;

    orderDetail2.Other7Each = 2;

    orderDetail2.Other6Each = 2;

    orderDetail2.Other5Each = 2;

    orderDetail2.Other4Each = 2;

    orderDetail2.Other3Each = 2;

    orderDetail2.Other2Each = 2;

    orderDetail2.Other1Each = 2;

    orderDetail2.Reference1 = "2";

    orderDetail2.CityLocalTax = 2;

    orderDetail2.OrderLine = 2;

    orderdetails.Add(orderDetail2);

 

    //Now attach the list to the request

    req.OrderDetails = orderdetails.ToArray();

    req.PartyID = 1;

    req.ManualOrderKey = "1";       //Unique alpha numeric identifier for order record. Exeption will occur if OrderID & OrderKey are provided.

    req.ReturnOrderKey = "1";       //Unique alpha numeric identifier for return order record. Exeption will occur if ReturnOrderID & ReturnOrderKey are provided.

    req.CustomerKey = "1";          //Unique alpha numeric identifier for customer record. Exeption will occur if CustomerID & CustomerKey are provided.

    req.OverwriteExistingOrder = true;

    req.ExistingOrderID = 1;        //Unique numeric identifier for existing order record.

    req.ExistingOrderKey = "1";     //Unique alpha numeric identifier for existing order record. Exeption will occur if ExistingOrderID & ExistingOrderKey are provided.

    req.IsCommissionable = true;

    req.HandlingFee = 1;

 

    //Send Request to Server and Get Response

    CreateOrderImportResponse res = api.CreateOrderImport(req);

 

    //Now examine the results:

    Console.WriteLine("OrderID: {0}", res.OrderID);

    Console.WriteLine("OrderKey: {0}", res.OrderKey);

}

catch (Exception ex)

{

    Console.WriteLine("Error: " + ex.Message);

}

VB.Net

Try

    'Create Main API Context Object

    Dim api as new ExigoApi()

 

    'Create Authentication Header

    Dim auth as new ApiAuthentication()

    auth.LoginName = "yourLoginName"

    auth.Password = "yourPassword"

    auth.Company = "yourCompany"

    api.ApiAuthenticationValue = auth

 

    'Create Request

    Dim req as new CreateOrderImportRequest()

 

    req.CustomerID = 1

    req.FirstName = "1"

    req.LastName = "1"

    req.Company = "1"

    req.Phone = "1"

    req.Email = "1"

    req.ShipMethodID = 1

    req.Address1 = "1"

    req.Address2 = "1"

    req.Address3 = "1"

    req.City = "1"

    req.State = "1"

    req.Zip = "1"

    req.Country = "1"

    req.County = "1"

    req.Notes = "1"

    req.WarehouseID = 1

    req.CurrencyCode = "usd"

    req.ShippingStateTax = 1

    req.ShippingFedTax = 1

    req.ShippingCountyLocalTax = 1

    req.ShippingCountyTax = 1

    req.ShippingCityLocalTax = 1

    req.ShippingCityTax = 1

    req.Shipping = 1

    req.PriceType = 1

    req.OrderStatus = OrderStatusType.Incomplete

    req.OrderDate = DateTime.Today

    req.Other11 = "1"

    req.Other12 = "1"

    req.Other13 = "1"

    req.Other14 = "1"

    req.Other15 = "1"

    req.Other16 = "1"

    req.Other17 = "1"

    req.Other18 = "1"

    req.Other19 = "1"

    req.Other20 = "1"

    req.OrderType = OrderType.Default

 

    'Add OrderDetails

    Dim orderdetails As New List(Of OrderImportDetail)()

 

    Dim orderDetail1 as new OrderImportDetail()

    orderDetail1.ParentItemCode = "1"

    orderDetail1.ItemCode = "1"

    orderDetail1.Description = "1"

    orderDetail1.Qty = 1

    orderDetail1.WeightEach = 1

    orderDetail1.CountyLocalTax = 1

    orderDetail1.CountyTax = 1

    orderDetail1.CityTax = 1

    orderDetail1.StateTax = 1

    orderDetail1.FedTax = 1

    orderDetail1.TaxablePriceEach = 1

    orderDetail1.CVEach = 1

    orderDetail1.BVEach = 1

    orderDetail1.PriceEach = 1

    orderDetail1.Other10Each = 1

    orderDetail1.Other9Each = 1

    orderDetail1.Other8Each = 1

    orderDetail1.Other7Each = 1

    orderDetail1.Other6Each = 1

    orderDetail1.Other5Each = 1

    orderDetail1.Other4Each = 1

    orderDetail1.Other3Each = 1

    orderDetail1.Other2Each = 1

    orderDetail1.Other1Each = 1

    orderDetail1.Reference1 = "1"

    orderDetail1.CityLocalTax = 1

    orderDetail1.OrderLine = 1

    orderdetails.Add(orderDetail1)

 

    Dim orderDetail2 as new OrderImportDetail()

    orderDetail2.ParentItemCode = "2"

    orderDetail2.ItemCode = "2"

    orderDetail2.Description = "2"

    orderDetail2.Qty = 2

    orderDetail2.WeightEach = 2

    orderDetail2.CountyLocalTax = 2

    orderDetail2.CountyTax = 2

    orderDetail2.CityTax = 2

    orderDetail2.StateTax = 2

    orderDetail2.FedTax = 2

    orderDetail2.TaxablePriceEach = 2

    orderDetail2.CVEach = 2

    orderDetail2.BVEach = 2

    orderDetail2.PriceEach = 2

    orderDetail2.Other10Each = 2

    orderDetail2.Other9Each = 2

    orderDetail2.Other8Each = 2

    orderDetail2.Other7Each = 2

    orderDetail2.Other6Each = 2

    orderDetail2.Other5Each = 2

    orderDetail2.Other4Each = 2

    orderDetail2.Other3Each = 2

    orderDetail2.Other2Each = 2

    orderDetail2.Other1Each = 2

    orderDetail2.Reference1 = "2"

    orderDetail2.CityLocalTax = 2

    orderDetail2.OrderLine = 2

    orderdetails.Add(orderDetail2)

 

    'Now attach the list to the request

    req.OrderDetails = orderdetails.ToArray()

    req.PartyID = 1

    req.ManualOrderKey = "1"

    req.ReturnOrderKey = "1"

    req.CustomerKey = "1"

    req.OverwriteExistingOrder = true

    req.ExistingOrderID = 1

    req.ExistingOrderKey = "1"

    req.IsCommissionable = true

    req.HandlingFee = 1

 

    'Send Request to Server and Get Response

    Dim res As CreateOrderImportResponse = api.CreateOrderImport(req)

 

    'Now examine the results:

    Console.WriteLine("OrderID: {0}", res.OrderID)

    Console.WriteLine("OrderKey: {0}", res.OrderKey)

Catch ex As Exception

    Console.WriteLine("Error: " & ex.Message)

End Try

PHP

Note: PHP is not officially supported.

<?php

try

{

    //Setup the SoapClient and Authentication

    $api = new SoapClient("http://api.exigo.com/3.0/ExigoApi.asmx?WSDL");

    $ns = "http://api.exigo.com/";

    $auth = array()

    $auth["LoginName"] = new SoapVar("yourLoginName",XSD_STRING,null,null,null,$ns);

    $auth["Password"] = new SoapVar("yourPassword",XSD_STRING,null,null,null,$ns);

    $auth["Company"] = new SoapVar("yourCompany",XSD_STRING,null,null,null,$ns);

    $headerBody = new SoapVar($auth, SOAP_ENC_OBJECT);

    $header = new SoapHeader($ns, 'ApiAuthentication', $headerBody);

    $api->__setSoapHeaders(array($header));

 

    //Create Request

 

    $req->CustomerID = 1;

    $req->FirstName = "1";

    $req->LastName = "1";

    $req->Company = "1";

    $req->Phone = "1";

    $req->Email = "1";

    $req->ShipMethodID = 1;

    $req->Address1 = "1";

    $req->Address2 = "1";

    $req->Address3 = "1";

    $req->City = "1";

    $req->State = "1";

    $req->Zip = "1";

    $req->Country = "1";

    $req->County = "1";

    $req->Notes = "1";

    $req->WarehouseID = 1;

    $req->CurrencyCode = "usd";

    $req->ShippingStateTax = 1;

    $req->ShippingFedTax = 1;

    $req->ShippingCountyLocalTax = 1;

    $req->ShippingCountyTax = 1;

    $req->ShippingCityLocalTax = 1;

    $req->ShippingCityTax = 1;

    $req->Shipping = 1;

    $req->PriceType = 1;

    $req->OrderStatus = 1;

    $req->OrderDate = 1;

    $req->Other11 = "1";

    $req->Other12 = "1";

    $req->Other13 = "1";

    $req->Other14 = "1";

    $req->Other15 = "1";

    $req->Other16 = "1";

    $req->Other17 = "1";

    $req->Other18 = "1";

    $req->Other19 = "1";

    $req->Other20 = "1";

    $req->OrderType = 1;

 

    //Add OrderDetails

 

    $orderDetail1->ParentItemCode = "1";

    $orderDetail1->ItemCode = "1";

    $orderDetail1->Description = "1";

    $orderDetail1->Qty = 1;

    $orderDetail1->WeightEach = 1;

    $orderDetail1->CountyLocalTax = 1;

    $orderDetail1->CountyTax = 1;

    $orderDetail1->CityTax = 1;

    $orderDetail1->StateTax = 1;

    $orderDetail1->FedTax = 1;

    $orderDetail1->TaxablePriceEach = 1;

    $orderDetail1->CVEach = 1;

    $orderDetail1->BVEach = 1;

    $orderDetail1->PriceEach = 1;

    $orderDetail1->Other10Each = 1;

    $orderDetail1->Other9Each = 1;

    $orderDetail1->Other8Each = 1;

    $orderDetail1->Other7Each = 1;

    $orderDetail1->Other6Each = 1;

    $orderDetail1->Other5Each = 1;

    $orderDetail1->Other4Each = 1;

    $orderDetail1->Other3Each = 1;

    $orderDetail1->Other2Each = 1;

    $orderDetail1->Other1Each = 1;

    $orderDetail1->Reference1 = "1";

    $orderDetail1->CityLocalTax = 1;

    $orderDetail1->OrderLine = 1;

 

    $orderDetail2->ParentItemCode = "2";

    $orderDetail2->ItemCode = "2";

    $orderDetail2->Description = "2";

    $orderDetail2->Qty = 2;

    $orderDetail2->WeightEach = 2;

    $orderDetail2->CountyLocalTax = 2;

    $orderDetail2->CountyTax = 2;

    $orderDetail2->CityTax = 2;

    $orderDetail2->StateTax = 2;

    $orderDetail2->FedTax = 2;

    $orderDetail2->TaxablePriceEach = 2;

    $orderDetail2->CVEach = 2;

    $orderDetail2->BVEach = 2;

    $orderDetail2->PriceEach = 2;

    $orderDetail2->Other10Each = 2;

    $orderDetail2->Other9Each = 2;

    $orderDetail2->Other8Each = 2;

    $orderDetail2->Other7Each = 2;

    $orderDetail2->Other6Each = 2;

    $orderDetail2->Other5Each = 2;

    $orderDetail2->Other4Each = 2;

    $orderDetail2->Other3Each = 2;

    $orderDetail2->Other2Each = 2;

    $orderDetail2->Other1Each = 2;

    $orderDetail2->Reference1 = "2";

    $orderDetail2->CityLocalTax = 2;

    $orderDetail2->OrderLine = 2;

 

    //Now attach the list to the request

    req.OrderDetails = array(orderDetail1,orderDetail2);

    $req->PartyID = 1;

    $req->ManualOrderKey = "1";

    $req->ReturnOrderKey = "1";

    $req->CustomerKey = "1";

    $req->OverwriteExistingOrder = 1;

    $req->ExistingOrderID = 1;

    $req->ExistingOrderKey = "1";

    $req->IsCommissionable = 1;

    $req->HandlingFee = 1;

 

    //Send Request to Server and Get Response

    $res = $api.CreateOrderImport($req);

 

    //Now examine the results:

}

catch (SoapFault $ex)

{

    echo "Error: ", $ex->getMessage();

}

?>

Java

Note: Java is not officially supported.

try

{

    //Create Main API Context Object

    ExigoApi api = new ExigoApi();

 

    //Create Authentication Header

    ApiAuthentication auth = new ApiAuthentication();

    auth.setLoginName("yourLoginName");

    auth.setPassword("yourPassword");

    auth.setCompany("yourCompany");

    api.setApiAuthenticationValue(auth);

 

    //Create Request

    CreateOrderImportRequest req = new CreateOrderImportRequest();

 

    req.setCustomerID(1);

    req.setFirstName("1");

    req.setLastName("1");

    req.setCompany("1");

    req.setPhone("1");

    req.setEmail("1");

    req.setShipMethodID(1);

    req.setAddress1("1");

    req.setAddress2("1");

    req.setAddress3("1");

    req.setCity("1");

    req.setState("1");

    req.setZip("1");

    req.setCountry("1");

    req.setCounty("1");

    req.setNotes("1");

    req.setWarehouseID(1);

    req.setCurrencyCode("usd");

    req.setShippingStateTax(1);

    req.setShippingFedTax(1);

    req.setShippingCountyLocalTax(1);

    req.setShippingCountyTax(1);

    req.setShippingCityLocalTax(1);

    req.setShippingCityTax(1);

    req.setShipping(1);

    req.setPriceType(1);

    req.setOrderStatus(1);

    req.setOrderDate(1);

    req.setOther11("1");

    req.setOther12("1");

    req.setOther13("1");

    req.setOther14("1");

    req.setOther15("1");

    req.setOther16("1");

    req.setOther17("1");

    req.setOther18("1");

    req.setOther19("1");

    req.setOther20("1");

    req.setOrderType(1);

 

    //Add OrderDetails

    ArrayOfOrderImportDetail orderdetails = new ArrayOfOrderImportDetail();

 

    OrderImportDetail orderDetail1 = new OrderImportDetail();

    orderDetail1.setParentItemCode("1");

    orderDetail1.setItemCode("1");

    orderDetail1.setDescription("1");

    orderDetail1.setQty(1);

    orderDetail1.setWeightEach(1);

    orderDetail1.setCountyLocalTax(1);

    orderDetail1.setCountyTax(1);

    orderDetail1.setCityTax(1);

    orderDetail1.setStateTax(1);

    orderDetail1.setFedTax(1);

    orderDetail1.setTaxablePriceEach(1);

    orderDetail1.setCVEach(1);

    orderDetail1.setBVEach(1);

    orderDetail1.setPriceEach(1);

    orderDetail1.setOther10Each(1);

    orderDetail1.setOther9Each(1);

    orderDetail1.setOther8Each(1);

    orderDetail1.setOther7Each(1);

    orderDetail1.setOther6Each(1);

    orderDetail1.setOther5Each(1);

    orderDetail1.setOther4Each(1);

    orderDetail1.setOther3Each(1);

    orderDetail1.setOther2Each(1);

    orderDetail1.setOther1Each(1);

    orderDetail1.setReference1("1");

    orderDetail1.setCityLocalTax(1);

    orderDetail1.setOrderLine(1);

    orderdetails.Add(orderDetail1);

 

    OrderImportDetail orderDetail2 = new OrderImportDetail();

    orderDetail2.setParentItemCode("2");

    orderDetail2.setItemCode("2");

    orderDetail2.setDescription("2");

    orderDetail2.setQty(2);

    orderDetail2.setWeightEach(2);

    orderDetail2.setCountyLocalTax(2);

    orderDetail2.setCountyTax(2);

    orderDetail2.setCityTax(2);

    orderDetail2.setStateTax(2);

    orderDetail2.setFedTax(2);

    orderDetail2.setTaxablePriceEach(2);

    orderDetail2.setCVEach(2);

    orderDetail2.setBVEach(2);

    orderDetail2.setPriceEach(2);

    orderDetail2.setOther10Each(2);

    orderDetail2.setOther9Each(2);

    orderDetail2.setOther8Each(2);

    orderDetail2.setOther7Each(2);

    orderDetail2.setOther6Each(2);

    orderDetail2.setOther5Each(2);

    orderDetail2.setOther4Each(2);

    orderDetail2.setOther3Each(2);

    orderDetail2.setOther2Each(2);

    orderDetail2.setOther1Each(2);

    orderDetail2.setReference1("2");

    orderDetail2.setCityLocalTax(2);

    orderDetail2.setOrderLine(2);

    orderdetails.Add(orderDetail2);

 

    //Now attach the list to the request

    req.setOrderDetails(orderdetails);

    req.setPartyID(1);

    req.setManualOrderKey("1");

    req.setReturnOrderKey("1");

    req.setCustomerKey("1");

    req.setOverwriteExistingOrder(1);

    req.setExistingOrderID(1);

    req.setExistingOrderKey("1");

    req.setIsCommissionable(1);

    req.setHandlingFee(1);

 

    //Send Request to Server and Get Response

    CreateOrderImportResponse res = api.getExigoApiSoap().createOrderImport(req, auth);

 

    //Now examine the results:

}

catch (Exception ex)

{

    System.out.println("Error: " + ex.getMessage());

}

CSV

This method does not support csv output.