Exigo Web Services API v2018.8.27.1

UpdateAutoOrder

Update a Recurring Order template in or out of a transaction. Client provides schedule, item codes, quantity, and shipping info. Server calculates and commits data, then pricing, tax, shipping and volume info.

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

Input Properties

UpdateAutoOrderRequest
PropertyData TypeNotes
AutoOrderIDInt32
Frequency FrequencyType
StartDateDateTime
StopDateDateTimeOptional. Leave null if there is no stop date.
SpecificDayIntervalInt32Optional.
CurrencyCode StringOptional.
WarehouseID Int32Unique location for orders.
ShipMethodID Int32
PaymentType AutoOrderPaymentType
ProcessType AutoOrderProcessTypeOptional.
FirstNameStringOptional.
MiddleNameStringOptional.
LastNameStringOptional.
NameSuffixStringOptional.
CompanyStringOptional.
Address1StringOptional.
Address2StringOptional.
Address3StringOptional.
CityStringOptional.
State StringOptional.
ZipStringOptional.
Country StringOptional.
CountyStringOptional.
EmailStringOptional.
PhoneStringOptional.
NotesStringOptional.
Other11StringOptional.
Other12StringOptional.
Other13StringOptional.
Other14StringOptional.
Other15StringOptional.
Other16StringOptional.
Other17StringOptional.
Other18StringOptional.
Other19StringOptional.
Other20StringOptional.
DescriptionStringOptional. Description for this auto order.

Output Properties

UpdateAutoOrderResponse
PropertyData TypeNotes

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: api.exigo.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.exigo.com/UpdateAutoOrder"

<?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> <UpdateAutoOrderRequest xmlns="http://api.exigo.com/"> <AutoOrderID>int</AutoOrderID> <Frequency>Weekly or BiWeekly or Monthly or BiMonthly or Quarterly or SemiYearly or Yearly or EveryFourWeeks or EverySixWeeks or EveryEightWeeks or EveryTwelveWeeks or SpecificDays</Frequency> <StartDate>dateTime</StartDate> <StopDate>dateTime</StopDate> <SpecificDayInterval>int</SpecificDayInterval> <CurrencyCode>string</CurrencyCode> <WarehouseID>int</WarehouseID> <ShipMethodID>int</ShipMethodID> <PaymentType>PrimaryCreditCard or SecondaryCreditCard or CheckingAccount or WillSendPayment or BankDraft or PrimaryWalletAccount or SecondaryWalletAccount</PaymentType> <ProcessType>AlwaysProcess or Conditional</ProcessType> <FirstName>string</FirstName> <MiddleName>string</MiddleName> <LastName>string</LastName> <NameSuffix>string</NameSuffix> <Company>string</Company> <Address1>string</Address1> <Address2>string</Address2> <Address3>string</Address3> <City>string</City> <State>string</State> <Zip>string</Zip> <Country>string</Country> <County>string</County> <Email>string</Email> <Phone>string</Phone> <Notes>string</Notes> <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> <Description>string</Description> </UpdateAutoOrderRequest> </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> <UpdateAutoOrderResult xmlns="http://api.exigo.com/" /> </soap:Body> </soap:Envelope>

C#

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

    UpdateAutoOrderRequest req = new UpdateAutoOrderRequest();

 

    req.AutoOrderID = 1;

    req.Frequency = FrequencyType.Weekly;

    req.StartDate = DateTime.Today;

    req.StopDate = DateTime.Today;               //Leave null if there is no stop date.

    req.SpecificDayInterval = 1;

    req.CurrencyCode = "usd";

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

    req.ShipMethodID = 1;

    req.PaymentType = AutoOrderPaymentType.PrimaryCreditCard;

    req.ProcessType = AutoOrderProcessType.AlwaysProcess;

    req.FirstName = "1";

    req.LastName = "1";

    req.Company = "1";

    req.Address1 = "1";

    req.Address2 = "1";

    req.Address3 = "1";

    req.City = "1";

    req.Zip = "1";

    req.County = "1";

    req.Email = "1";

    req.Phone = "1";

    req.Notes = "1";

 

    //Send Request to Server and Get Response

    UpdateAutoOrderResponse res = api.UpdateAutoOrder(req);

 

    //Now examine the results:

}

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 UpdateAutoOrderRequest()

 

    req.AutoOrderID = 1

    req.Frequency = FrequencyType.Weekly

    req.StartDate = DateTime.Today

    req.StopDate = DateTime.Today

    req.SpecificDayInterval = 1

    req.CurrencyCode = "usd"

    req.WarehouseID = 1

    req.ShipMethodID = 1

    req.PaymentType = AutoOrderPaymentType.PrimaryCreditCard

    req.ProcessType = AutoOrderProcessType.AlwaysProcess

    req.FirstName = "1"

    req.LastName = "1"

    req.Company = "1"

    req.Address1 = "1"

    req.Address2 = "1"

    req.Address3 = "1"

    req.City = "1"

    req.Zip = "1"

    req.County = "1"

    req.Email = "1"

    req.Phone = "1"

    req.Notes = "1"

 

    'Send Request to Server and Get Response

    Dim res As UpdateAutoOrderResponse = api.UpdateAutoOrder(req)

 

    'Now examine the results:

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->AutoOrderID = 1;

    $req->Frequency = 1;

    $req->StartDate = 1;

    $req->StopDate = 1;

    $req->SpecificDayInterval = 1;

    $req->CurrencyCode = "usd";

    $req->WarehouseID = 1;

    $req->ShipMethodID = 1;

    $req->PaymentType = 1;

    $req->ProcessType = 1;

    $req->FirstName = "1";

    $req->LastName = "1";

    $req->Company = "1";

    $req->Address1 = "1";

    $req->Address2 = "1";

    $req->Address3 = "1";

    $req->City = "1";

    $req->Zip = "1";

    $req->County = "1";

    $req->Email = "1";

    $req->Phone = "1";

    $req->Notes = "1";

 

    //Send Request to Server and Get Response

    $res = $api.UpdateAutoOrder($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

    UpdateAutoOrderRequest req = new UpdateAutoOrderRequest();

 

    req.setAutoOrderID(1);

    req.setFrequency(1);

    req.setStartDate(1);

    req.setStopDate(1);

    req.setSpecificDayInterval(1);

    req.setCurrencyCode("usd");

    req.setWarehouseID(1);

    req.setShipMethodID(1);

    req.setPaymentType(1);

    req.setProcessType(1);

    req.setFirstName("1");

    req.setLastName("1");

    req.setCompany("1");

    req.setAddress1("1");

    req.setAddress2("1");

    req.setAddress3("1");

    req.setCity("1");

    req.setZip("1");

    req.setCounty("1");

    req.setEmail("1");

    req.setPhone("1");

    req.setNotes("1");

 

    //Send Request to Server and Get Response

    UpdateAutoOrderResponse res = api.getExigoApiSoap().updateAutoOrder(req, auth);

 

    //Now examine the results:

}

catch (Exception ex)

{

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

}

CSV

This method does not support csv output.