API Operations
Description:
This API is used to search the Sale orders created between a given range of dates, or some other filter.
In case of the date filter, please ensure that the start date is smaller than the end date.
API:
<soapenv:Envelope xmlns:ser=”http://uniware.unicommerce.com/services/“ xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/“> <soapenv:Header> <wsse:Security soapenv:mustUnderstand=”1″ xmlns:wsse=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd” xmlns:wsu=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd“> <wsse:UsernameToken wsu:Id=”UsernameToken-4″> <wsse:Username>XXXXXX</wsse:Username> <wsse:Password Type=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText”>staging</wsse:Password> <wsse:Nonce EncodingType=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary“>XXXXX</wsse:Nonce> <wsu:Created>2014-08-06T07:10:19.979Z</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <ser:SearchSaleOrderRequest> <ser:FromDate>>?</ser:FromDate> <ser:ToDate>?</ser:ToDate> <ser:SearchOptions> <ser:DisplayStart>0</ser:DisplayStart> </ser:SearchOptions> </ser:SearchSaleOrderRequest> </soapenv:Body> </soapenv:Envelope> |
API parameters:
Request:
<soapenv:Envelope xmlns:ser=”http://uniware.unicommerce.com/services/“ xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/“> <soapenv:Header> <wsse:Security soapenv:mustUnderstand=”1″ xmlns:wsse=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd” xmlns:wsu=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd“> <wsse:UsernameToken wsu:Id=”UsernameToken-4″> <wsse:Username>XXXXXX</wsse:Username> <wsse:Password Type=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText”>staging</wsse:Password> <wsse:Nonce EncodingType=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary“>XXXXX</wsse:Nonce> <wsu:Created>2014-08-06T07:10:19.979Z</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <ser:SearchSaleOrderRequest> <ser:FromDate>2014-08-19T07:10:19</ser:FromDate> <ser:ToDate>2014-08-26T07:10:19</ser:ToDate> <ser:SearchOptions> <ser:DisplayStart>0</ser:DisplayStart> </ser:SearchOptions> </ser:SearchSaleOrderRequest> </soapenv:Body> </soapenv:Envelope> |
Response:
<SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/”> <SOAP-ENV:Header/> <SOAP-ENV:Body> <GetSaleOrderResponse xmlns=”http://uniware.unicommerce.com/services/“> <Successful>true</Successful> <SaleOrder> <Code>220000468</Code> <DisplayOrderCode>220000468</DisplayOrderCode> <Channel>SPACES_HOME</Channel> <DisplayOrderDateTime>2014-07-25T05:28:13Z</DisplayOrderDateTime> <Status>COMPLETE</Status> <NotificationEmail>Maidendis@gmail.com</NotificationEmail> <NotificationMobile>9810502050</NotificationMobile> <CreatedOn>2014-08-05T09:38:42Z</CreatedOn> <UpdatedOn>2014-08-05T10:42:29Z</UpdatedOn> <Addresses> <Address id=”3″> <Name>Aditi Aggarwal</Name> <AddressLine1>113/13 A swaroop nagar Kanpur Near classic apartments</AddressLine1> <AddressLine2/> <City>Kanpur</City> <State>UP</State> <Country>IN</Country> <Pincode>208002</Pincode> <Phone>9810502050</Phone> </Address> <Address id=”2″> <Name>Aditi Aggarwal</Name> <AddressLine1>113/13 A swaroop nagar Kanpur Near classic apartments</AddressLine1> <AddressLine2/> <City>Kanpur</City> <State>UP</State> <Country>IN</Country> <Pincode>208002</Pincode> <Phone>9810502050</Phone> </Address> </Addresses> <BillingAddress ref=”3″/> <SaleOrderItems> <SaleOrderItem> <Code>769</Code> <StatusCode>DISPATCHED</StatusCode> <ItemSKU>1022359</ItemSKU> <ShippingMethodCode>STD</ShippingMethodCode> <ItemName>Youthopia CONNECT</ItemName> <TotalPrice>1866.00</TotalPrice> <SellingPrice>1866.00</SellingPrice> <Discount>0.00</Discount> <ShippingPackageCode>01P2</ShippingPackageCode> <FacilityCode>01</FacilityCode> <ShippingCharges>0.00</ShippingCharges> <ShippingMethodCharges>0.00</ShippingMethodCharges> <CashOnDeliveryCharges>0.00</CashOnDeliveryCharges> <GiftWrapCharges>0.00</GiftWrapCharges> <ShippingAddress ref=”2″/> <Cancellable>false</Cancellable> <OnHold>false</OnHold> <CreatedOn>2014-08-05T09:38:43Z</CreatedOn> <UpdatedOn>2014-08-05T10:42:29Z</UpdatedOn> <CustomFields/> </SaleOrderItem> </SaleOrderItems> <ShippingPackages> <ShippingPackage> <ShipmentCode>01P2</ShipmentCode> <StatusCode>DISPATCHED</StatusCode> <ShippingPackageType>DEFAULT</ShippingPackageType> <ShippingProvider>Fedex</ShippingProvider> <TrackingNumber>794611434668</TrackingNumber> <TrackingStatus>NO_INFORMATION</TrackingStatus> <DispatchedOn>2014-08-05T10:42:29Z</DispatchedOn> <CreatedOn>2014-08-05T09:52:40Z</CreatedOn> </ShippingPackage> </ShippingPackages> <CustomFields/> </SaleOrder> </GetSaleOrderResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |
Other filter: You can also search a set of orders which were updated last, by passing the time limit in minutes say, in last 30 minutes or last 235 minutes.
API parameter:
Request:
<soapenv:Envelope xmlns:ser=”http://uniware.unicommerce.com/services/“ xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/“> <soapenv:Header> <wsse:Security soapenv:mustUnderstand=”1″ xmlns:wsse=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd” xmlns:wsu=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd“> <wsse:UsernameToken wsu:Id=”UsernameToken-4″> <wsse:Username>XXXXXX</wsse:Username> <wsse:Password Type=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText”>staging</wsse:Password> <wsse:Nonce EncodingType=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary“>XXXXX</wsse:Nonce> <wsu:Created>2014-08-06T07:10:19.979Z</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <ser:SearchSaleOrderRequest> <ser:SearchOptions> <ser:DisplayStart>0</ser:DisplayStart> </ser:SearchOptions> <ser:UpdatedSinceInMinutes>30</ser:UpdatedSinceInMinutes> </ser:SearchSaleOrderRequest> </soapenv:Body> </soapenv:Envelope> |
Response:
<SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/”> <SOAP-ENV:Header/> <SOAP-ENV:Body> <SearchSaleOrderResponse xmlns=”http://uniware.unicommerce.com/services/“> <Successful>true</Successful> <TotalRecords>28</TotalRecords> <SaleOrders> <SaleOrder> <Code>2938050</Code> <DisplayOrderCode>2938050</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>7579201603</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T05:06:18Z</CreatedOn> <UpdatedOn>2015-06-29T05:06:18Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938056</Code> <DisplayOrderCode>2938056</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9893323324</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T05:06:17Z</CreatedOn> <UpdatedOn>2015-06-29T05:06:17Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938064</Code> <DisplayOrderCode>2938064</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9500460477</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T05:06:15Z</CreatedOn> <UpdatedOn>2015-06-29T05:06:15Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938072</Code> <DisplayOrderCode>2938072</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9909981845</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T05:06:13Z</CreatedOn> <UpdatedOn>2015-06-29T05:06:13Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938086</Code> <DisplayOrderCode>2938086</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9552729329</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T05:06:10Z</CreatedOn> <UpdatedOn>2015-06-29T05:06:10Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938094</Code> <DisplayOrderCode>2938094</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9791721715</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T05:06:09Z</CreatedOn> <UpdatedOn>2015-06-29T05:06:09Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938100</Code> <DisplayOrderCode>2938100</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>8237755250</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T05:06:07Z</CreatedOn> <UpdatedOn>2015-06-29T05:06:07Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938106</Code> <DisplayOrderCode>2938106</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9434792619</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T05:06:03Z</CreatedOn> <UpdatedOn>2015-06-29T05:06:03Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938110</Code> <DisplayOrderCode>2938110</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9811608718</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T05:05:38Z</CreatedOn> <UpdatedOn>2015-06-29T05:05:39Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938112</Code> <DisplayOrderCode>2938112</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9718744854</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T05:05:17Z</CreatedOn> <UpdatedOn>2015-06-29T05:05:17Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938116</Code> <DisplayOrderCode>2938116</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>8089644874</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T05:03:50Z</CreatedOn> <UpdatedOn>2015-06-29T05:03:50Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938168</Code> <DisplayOrderCode>2938168</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9677775670</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:59:24Z</CreatedOn> <UpdatedOn>2015-06-29T04:59:24Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938166</Code> <DisplayOrderCode>2938166</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9535547469</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:59:24Z</CreatedOn> <UpdatedOn>2015-06-29T04:59:24Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938172</Code> <DisplayOrderCode>2938172</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9494034987</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:59:23Z</CreatedOn> <UpdatedOn>2015-06-29T04:59:23Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938170</Code> <DisplayOrderCode>2938170</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9954372588</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:59:23Z</CreatedOn> <UpdatedOn>2015-06-29T04:59:24Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938186</Code> <DisplayOrderCode>2938186</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9830016190</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:58:55Z</CreatedOn> <UpdatedOn>2015-06-29T04:58:55Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938182</Code> <DisplayOrderCode>2938182</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9829247967</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:58:55Z</CreatedOn> <UpdatedOn>2015-06-29T04:58:56Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938190</Code> <DisplayOrderCode>2938190</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9973964238</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:58:54Z</CreatedOn> <UpdatedOn>2015-06-29T04:58:54Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938202</Code> <DisplayOrderCode>2938202</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9814150058</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:58:52Z</CreatedOn> <UpdatedOn>2015-06-29T04:58:52Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938216</Code> <DisplayOrderCode>2938216</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9559773790</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:58:50Z</CreatedOn> <UpdatedOn>2015-06-29T04:58:50Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938218</Code> <DisplayOrderCode>2938218</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>8237755250</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:58:44Z</CreatedOn> <UpdatedOn>2015-06-29T04:58:44Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938220</Code> <DisplayOrderCode>2938220</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>7795167140</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:58:30Z</CreatedOn> <UpdatedOn>2015-06-29T04:58:30Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938224</Code> <DisplayOrderCode>2938224</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>7738202841</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:58:29Z</CreatedOn> <UpdatedOn>2015-06-29T04:58:29Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938236</Code> <DisplayOrderCode>2938236</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9835284999</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:58:25Z</CreatedOn> <UpdatedOn>2015-06-29T04:58:25Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938234</Code> <DisplayOrderCode>2938234</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>8602456093</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:58:25Z</CreatedOn> <UpdatedOn>2015-06-29T04:58:27Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938250</Code> <DisplayOrderCode>2938250</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>7308733635</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:57:25Z</CreatedOn> <UpdatedOn>2015-06-29T04:57:25Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2938290</Code> <DisplayOrderCode>2938290</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T00:00:00Z</DisplayOrderDateTime> <NotificationEmail/> <NotificationMobile>9635361017</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-29T04:54:50Z</CreatedOn> <UpdatedOn>2015-06-29T04:54:51Z</UpdatedOn> </SaleOrder> <SaleOrder> <Code>2935525</Code> <DisplayOrderCode>2935525</DisplayOrderCode> <DisplayOrderDateTime>2015-06-28T12:56:35Z</DisplayOrderDateTime> <NotificationEmail>gurpreetsaini717@gmail.com</NotificationEmail> <NotificationMobile>9878502599</NotificationMobile> <Status>PROCESSING</Status> <CreatedOn>2015-06-28T07:42:22Z</CreatedOn> <UpdatedOn>2015-06-28T07:42:24Z</UpdatedOn> </SaleOrder> </SaleOrders> </SearchSaleOrderResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |