API Operations
Description:
The API is used to fetch the Invoice for a given Shipment/Shipping package Code.
It is supported in API version 1.7.
API:
<soapenv:Envelope xmlns:ser=”http://uniware.unicommerce.com/services/“ xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/“> <soapenv:Header> <wsse:Security 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” soapenv:mustUnderstand=”1″> <wsse:UsernameToken wsu:Id=”UsernameToken-1″> <wsse:Username></wsse:Username> <wsse:Password Type=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText“></wsse:Password> <wsse:Nonce EncodingType=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary“>HdMl9CcEHxcEQjlVeB4eOg==</wsse:Nonce> <wsu:Created /> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <ser:GetInvoiceLabelRequest> <ser:ShippingPackageCode>?</ser:ShippingPackageCode> </ser:GetInvoiceLabelRequest> </soapenv:Body> </soapenv:Envelope> |
API Parameters:
API Request:
<soapenv:Envelope xmlns:ser=”http://uniware.unicommerce.com/services/“ xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/“> <soapenv:Header> <wsse:Security 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” soapenv:mustUnderstand=”1″> <wsse:UsernameToken wsu:Id=”UsernameToken-1″> <wsse:Username></wsse:Username> <wsse:Password Type=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText“></wsse:Password> <wsse:Nonce EncodingType=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary“>HdMl9CcEHxcEQjlVeB4eOg==</wsse:Nonce> <wsu:Created /> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <ser:GetInvoiceLabelRequest> <ser:ShippingPackageCode>88308</ser:ShippingPackageCode> </ser:GetInvoiceLabelRequest> </soapenv:Body> </soapenv:Envelope> |
API Response:
<soapenv:Envelope SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/“> <SOAP-ENV:Header/> SOAP-ENV:Body> GetInvoiceLabelResponse xmlns=”http://uniware.unicommerce.com/services/“> Successful>true</Successful> InvoiceCode>XMM/1415/12/30/779229</InvoiceCode> Label>JVBERi0xLjQKJeLjz9MKNCAwIG9iago8PC9TL0phdmFTY3JpcHQvSlModGhpcy5wcmludFwoXCk7KT4+CmVuZG9iago1IDAgb2JqCjw8L0xlbmd0aCAyNDgwL0ZpbHRlci9GbGF0ZURlY29kZT4+c3Ry ZWFtCnicnVldd9q6En3Pr5iXe1bOuomjT3/k6VIgCW0CFJy0XasvDijEPQZT26TNv+lPPSPZJtgI es7NahNj7T0abUkzGvH95F14wiX4jEE4PyFwzoQj/OrZ9xzXrZ6pebi4ooCtTyen8Gf4Dd+TRvPe WxI4nNaWA6c25vtO4NUYyR0mqw/4vMX/nz3+c5+1QwbRD08+nnw3/xm8x6ZrfEZhKGgwBRq44BNU aInGGFBmrE36YWdwC4Phw2jQ7WvTaKdphcIPra6HMvguUCEciVobDzN1MjXt1Av02xoTMMfjbQz3 mMO8w5iGtxyBiJeVv/Xgu5u8SJcqg26UKeipIoqTXHu9y3NJxTtttwi/bukvkXkJMzTzv2/RY7pa OLN02cZz95AlXGFVy/g5XSkYppdAKBPnLmU+IaRScmdETAuHTJ85XDRH9b7z0JnCBXQ+vUNDu10x TzoBRSlIRTqtpwi28+pTIz0njhvAbAkXn58o9FJozn4DhYZoIMo1dL59avpbM6ioGG/+7g+Oe56Z W59vp4xV4M8qi9MVTMxcwfilgNti7jT1L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ShEOjIwMTUwMTAyMTA0NTM4KzA1JzMwJykvQ3JlYXRpb25EYXRl KEQ6MjAxNTAxMDIxMDQ1MzgrMDUnMzAnKT4+CmVuZG9iagp4cmVmCjAgMTIKMDAwMDAwMDAwMCA2 NTUzNSBmIAowMDAwMDAyOTg1IDAwMDAwIG4gCjAwMDAwMDI4MDQgMDAwMDAgbiAKMDAwMDAwMjg5 MiAwMDAwMCBuIAowMDAwMDAwMDE1IDAwMDAwIG4gCjAwMDAwMDAwNjggMDAwMDAgbiAKMDAwMDAw MzQ2OCAwMDAwMCBuIAowMDAwMDAyNjE2IDAwMDAwIG4gCjAwMDAwMDM1MTkgMDAwMDAgbiAKMDAw MDAwMzU3MSAwMDAwMCBuIAowMDAwMDAzNjA4IDAwMDAwIG4gCjAwMDAwMDM3MDAgMDAwMDAgbiAK dHJhaWxlcgo8PC9Sb290IDEwIDAgUi9JRCBbPDM4ZWE1NGM1OTMwNDllOGZmNTEzNTM2MzYxMzE3 OTVmPjxmZmUxMzIyOWI1ODY1NWIwOTVkNWNlZTkxMDU1ZTJmNz5dL0luZm8gMTEgMCBSL1NpemUg MTI+PgolaVRleHQtNS40LjIKc3RhcnR4cmVmCjM4NTQKJSVFT0YK</Label> </GetInvoiceLabelResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |
Then convert response into base 64 with the help of the following link: