API Operations
Description:
The API enables you to hold a Sale Order Item. The reason to hold a sale order item can vary from the reasons like sanity check of a customer or pending payments. To unhold an order item, it must be already in ‘hold’ state.
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>staging</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”>jx0id1DqFiL67bLzXGy2lw==</wsse:Nonce> Â Â Â Â Â Â Â Â Â Â Â Â <wsu:Created>2014-05-06T11:34:31.732Z</wsu:Created> Â Â Â Â Â Â Â Â Â </wsse:UsernameToken> Â Â Â Â Â Â </wsse:Security> Â Â Â </soapenv:Header> Â Â Â <soapenv:Body> Â Â Â Â Â Â <ser:HoldSaleOrderItemsRequest> Â Â Â Â Â Â Â Â Â <ser:SaleOrder> Â Â Â Â Â Â Â Â Â Â Â Â <ser:Code>?</ser:Code> Â Â Â Â Â Â Â Â Â Â Â Â <ser:SaleOrderItems> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <!–1 or more repetitions:–> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <ser:SaleOrderItem> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <ser:Code>?</ser:Code> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </ser:SaleOrderItem> Â Â Â Â Â Â Â Â Â Â Â Â </ser:SaleOrderItems> Â Â Â Â Â Â Â Â Â </ser:SaleOrder> Â Â Â Â Â Â </ser:HoldSaleOrderItemsRequest> Â Â Â </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-3″> Â Â Â Â Â Â Â Â Â Â Â Â <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”>VSZH2Dr9/RZo1wIW+r1jNA==</wsse:Nonce> Â Â Â Â Â Â Â Â Â Â Â Â <wsu:Created>2014-05-06T11:57:49.374Z</wsu:Created> Â Â Â Â Â Â Â Â Â </wsse:UsernameToken> Â Â Â Â Â Â </wsse:Security> Â Â Â </soapenv:Header> Â Â Â <soapenv:Body> Â Â Â Â Â Â <ser:HoldSaleOrderItemsRequest> Â Â Â Â Â Â Â Â Â <ser:SaleOrder> Â Â Â Â Â Â Â Â Â Â Â Â <ser:Code>269088833</ser:Code> Â Â Â Â Â Â Â Â Â Â Â Â <ser:SaleOrderItems> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <ser:SaleOrderItem> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <ser:Code>477413413</ser:Code> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </ser:SaleOrderItem> Â Â Â Â Â Â Â Â Â Â Â Â </ser:SaleOrderItems> Â Â Â Â Â Â Â Â Â </ser:SaleOrder> Â Â Â Â Â Â </ser:HoldSaleOrderItemsRequest> Â Â Â </soapenv:Body> </soapenv:Envelope> |
Response:
<SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/”> Â Â Â <SOAP-ENV:Header/> Â Â Â <SOAP-ENV:Body> Â Â Â Â Â Â <HoldSaleOrderItemsResponse xmlns=”http://uniware.unicommerce.com/services/”> Â Â Â Â Â Â Â Â Â <Successful>true</Successful> Â Â Â Â Â Â </HoldSaleOrderItemsResponse> Â Â Â </SOAP-ENV:Body> </SOAP-ENV:Envelope> |
Error Codes:
Next API: Unhold Sale Order