Description:
To create invoice by saleorder code via API
API Detail :
<soapenv:Envelope xmlns:soapenv=”http://schemas. xmlsoap.org/soap/envelope/” xmlns:ser=”http://uniware. unicommerce.com/services/“>
<soapenv:Header/>
<soapenv:Body><ser: CreateInvoiceBySaleOrderCodeRe quest>
<!–Optional:–>
<ser:FacilityContext>?</ser: FacilityContext>
<ser:SaleOrderCode>?</ser: SaleOrderCode>
<ser:SaleOrderItemCodes>
<!–1 or more repetitions:–>
<ser:SaleOrderItemCode>?</ser: SaleOrderItemCode>
</ser:SaleOrderItemCodes>
<!–Optional:–>
<ser:CommitBlockedInventory>? </ser:CommitBlockedInventory>
</ser: CreateInvoiceBySaleOrderCodeRe quest>
</soapenv:Body>
</soapenv:Envelope>
<soapenv:Body><ser:
<!–Optional:–>
<ser:FacilityContext>?</ser:
<ser:SaleOrderCode>?</ser:
<ser:SaleOrderItemCodes>
<!–1 or more repetitions:–>
<ser:SaleOrderItemCode>?</ser:
</ser:SaleOrderItemCodes>
<!–Optional:–>
<ser:CommitBlockedInventory>?
</ser:
</soapenv:Body>
</soapenv:Envelope>
Sample 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- B5559A6D901D11E145156351974335 41″>
<wsse:Username>techsupport@ unicommerce.com</wsse: Username>
<wsse:Password Type=”http://docs.oasis-open. org/wss/2004/01/oasis-200401- wss-username-token-profile-1. 0#PasswordText“> a8705bb54294bea1aa544e1d5cd59b f1</wsse:Password>
<wsse:Nonce EncodingType=”http://docs. oasis-open.org/wss/2004/01/ oasis-200401-wss-soap-message- security-1.0#Base64Binary“> Husxw5xW0Xx6VbPsG2jgQA==</ wsse:Nonce>
<wsu:Created>2019-07-19T07:02: 23.350Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ser: CreateInvoiceBySaleOrderCodeRe quest>
<ser:SaleOrderCode>SO1648</ ser:SaleOrderCode>
<ser:SaleOrderItemCodes>
<!–1 or more repetitions:–>
<ser:SaleOrderItemCode>123-1</ ser:SaleOrderItemCode>
</ser:SaleOrderItemCodes>
</ser: CreateInvoiceBySaleOrderCodeRe quest>
</soapenv:Body>
</soapenv:Envelope>
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand=”1″ xmlns:wsse=”http://docs.oasis-
<wsse:UsernameToken wsu:Id=”UsernameToken-
<wsse:Username>techsupport@
<wsse:Password Type=”http://docs.oasis-open.
<wsse:Nonce EncodingType=”http://docs.
<wsu:Created>2019-07-19T07:02:
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ser:
<ser:SaleOrderCode>SO1648</
<ser:SaleOrderItemCodes>
<!–1 or more repetitions:–>
<ser:SaleOrderItemCode>123-1</
</ser:SaleOrderItemCodes>
</ser:
</soapenv:Body>
</soapenv:Envelope>
Sample Response :
<SOAP-ENV:Envelope xmlns:SOAP-ENV=”http:// schemas.xmlsoap.org/soap/ envelope/“>
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
< CreateInvoiceBySaleOrderCodeRe sponse xmlns=”http://uniware. unicommerce.com/services/“>
<Successful>true</Successful>
<InvoiceCode>SO0004</ InvoiceCode>
<ShippingPackageCode> TEST00201</ ShippingPackageCode>
</ CreateInvoiceBySaleOrderCodeRe sponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<
<Successful>true</Successful>
<InvoiceCode>SO0004</
<ShippingPackageCode>
</
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>