1. Home
  2. SOAP API
  3. Create Invoice By SaleOrder Code via API

Create Invoice By SaleOrder Code via API

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:CreateInvoiceBySaleOrderCodeRequest>
<!–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:CreateInvoiceBySaleOrderCodeRequest>
</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-B5559A6D901D11E14515635197433541″>
<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“>a8705bb54294bea1aa544e1d5cd59bf1</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:CreateInvoiceBySaleOrderCodeRequest>
<ser:SaleOrderCode>SO1648</ser:SaleOrderCode>
<ser:SaleOrderItemCodes>
<!–1 or more repetitions:–>
<ser:SaleOrderItemCode>123-1</ser:SaleOrderItemCode>
</ser:SaleOrderItemCodes>
</ser:CreateInvoiceBySaleOrderCodeRequest>
</soapenv:Body>
</soapenv:Envelope>
Sample Response :
 
<SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/“>
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<CreateInvoiceBySaleOrderCodeResponse xmlns=”http://uniware.unicommerce.com/services/“>
<Successful>true</Successful>
<InvoiceCode>SO0004</InvoiceCode>
<ShippingPackageCode>TEST00201</ShippingPackageCode>
</CreateInvoiceBySaleOrderCodeResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Related Articles