API Operations
Description:
This API is used to get the details of a unique item in the system. When the system is tracing a product on Item basis, which means that each item is recognized with a unique bar code, this API comes in handy.
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-1″> <wsse:Username>Sandbox</wsse:Username> <wsse:Password Type=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText”>91561781f43921dd2803fa63a7ee5519</wsse:Password> <wsse:Nonce EncodingType=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary”>kyEXKmst9bVRIzWh9vP8Mw==</wsse:Nonce> <wsu:Created>2014-05-08T13:02:40.542Z</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <ser:GetItemDetailRequest> <ser:ItemCode>?</ser:ItemCode> </ser:GetItemDetailRequest> </soapenv:Body> </soapenv:Envelope>
|
API parameters:
The facility code must be set in the API URL.
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-2″> <wsse:Username>ashish1</wsse:Username> <wsse:Password Type=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText”>e13cc8cd-17c8-4798-bb7b-2d1335ad92d6</wsse:Password> <wsse:Nonce EncodingType=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary”>VvP+97VOot9Q7IopykeUeQ==</wsse:Nonce> <wsu:Created>2014-05-08T13:09:39.893Z</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <ser:GetItemDetailRequest> <ser:ItemCode>031000015</ser:ItemCode> </ser:GetItemDetailRequest> </soapenv:Body> </soapenv:Envelope>
|
Response:
<SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/”> <SOAP-ENV:Header/> <SOAP-ENV:Body> <GetItemDetailResponse xmlns=”http://uniware.unicommerce.com/services/”> <Successful>true</Successful> <ItemDetail> <Code>031000014</Code> <Status>PUTAWAY_PENDING</Status> <GRNCode>GJ1000013</GRNCode> <PutawayNumber>PJ1000017</PutawayNumber> <ItemSku>FNTBBK11TK20001</ItemSku> <ItemTypeName>Breakfast Table (Teak Finish)</ItemTypeName> <VendorCode>IN0003</VendorCode> <VendorName>Gajanand Art & Crafts</VendorName> <CreatedOn>2014-04-28T09:05:19Z</CreatedOn> <UpdatedOn>2014-04-28T09:05:48Z</UpdatedOn> <CreatedFacility>03</CreatedFacility> <CurrentFacility>03</CurrentFacility> <UnitPrice>100.00</UnitPrice> <SaleOrderItems/> </ItemDetail> </GetItemDetailResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |
Error Codes:
With the tag successful tag=false the system throws an error. The error codes are as defined below:
Next API: Get Sale Order Details