1. Home
  2. SOAP API
  3. Create PO via API

Create PO via API

Description:

The API is to create Purchase order via API in the given facility.

API detail:

<soapenv:Envelope xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:ser=”http://uniware.unicommerce.com/services/“>

   <soapenv:Header/>

   <soapenv:Body>

      <ser:CreateApprovedPurchaseOrderRequest>

         <!–Optional:–>

         <ser:PurchaseOrderCode>?</ser:PurchaseOrderCode>

         <ser:VendorCode>?</ser:VendorCode>

         <ser:VendorAgreementName>?</ser:VendorAgreementName>

         <!–Optional:–>

         <ser:CurrencyCode>?</ser:CurrencyCode>

         <!–Optional:–>

         <ser:ExpiryDate>?</ser:ExpiryDate>

         <!–Optional:–>

         <ser:DeliveryDate>?</ser:DeliveryDate>

         <ser:PurchaseOrderItems>

            <!–1 or more repetitions:–>

            <ser:PurchaseOrderItem>

               <ser:ItemSKU>?</ser:ItemSKU>

               <ser:Quantity>?</ser:Quantity>

               <ser:UnitPrice>?</ser:UnitPrice>

               <!–Optional:–>

               <ser:MaxRetailPrice>?</ser:MaxRetailPrice>

               <!–Optional:–>

               <ser:Discount>?</ser:Discount>

               <!–Optional:–>

               <ser:TaxTypeCode>?</ser:TaxTypeCode>

            </ser:PurchaseOrderItem>

         </ser:PurchaseOrderItems>

      </ser:CreateApprovedPurchaseOrderRequest>

   </soapenv:Body>

</soapenv:Envelope>

 

Sample Request:

<soapenv:Body>

      <ser:CreateApprovedPurchaseOrderRequest>

         <ser:PurchaseOrderCode>PO000108</ser:PurchaseOrderCode>

         <ser:VendorCode>CMPNY-1008</ser:VendorCode>

         <ser:CurrencyCode>INR</ser:CurrencyCode>

         <ser:ExpiryDate>2015-07-31T05:11:27.239Z</ser:ExpiryDate>

         <ser:DeliveryDate>2015-07-31T05:11:27.239Z</ser:DeliveryDate>

         <ser:PurchaseOrderItems>

            <!–1 or more repetitions:–>

            <ser:PurchaseOrderItem>

               <ser:ItemSKU>CMSA12499-R891F00L</ser:ItemSKU>

               <ser:Quantity>2</ser:Quantity>

               <ser:UnitPrice>300</ser:UnitPrice>

               <ser:TaxTypeCode>12.5</ser:TaxTypeCode>

            </ser:PurchaseOrderItem>

         </ser:PurchaseOrderItems>

      </ser:CreateApprovedPurchaseOrderRequest>

   </soapenv:Body>

</soapenv:Envelope>

API Parameter:

Sample response:

<SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/“>

   <SOAP-ENV:Header/>

   <SOAP-ENV:Body>

      <CreateApprovedPurchaseOrderResponse xmlns=”http://uniware.unicommerce.com/services/“>

         <Successful>true</Successful>

         <PurchaseOrderCode>PO000108</PurchaseOrderCode>

      </CreateApprovedPurchaseOrderResponse>

   </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

Related Articles