Handling UDF Data via APIs

<< Click to Display Table of Contents >>

Navigation:  Developers' Guide > Using Data Interface > FAQs > Sample >

Handling UDF Data via APIs

Navigation: Developers' Guide > Using Data Interface > FAQs > Sample >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

Handling UDF Data via APIs

 

Show/Hide Hidden Text

This sample add-on shows how to update objects along with with UDFs via API.

Click here to collapse/expand the view.

Sample for Handling UDF Data via APIs.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.iVend.com/IIntegrationService/2010/12">

<soapenv:Header/>

<soapenv:Body>

  <ns:SavePurchaseOrder>

     <!--Optional:-->

     <ns:purchaseOrder>

       <ns:UserFieldsList>

                 <ns:UserFields>

                    <ns:FieldName>U_Rate</ns:FieldName>

                    <ns:FieldValue>23</ns:FieldValue>

                 </ns:UserFields>

       </ns:UserFieldsList>

              <ns:StoreId>STORE</ns:StoreId>

              <ns:VendorId>V20000</ns:VendorId>

              <ns:DeliveryDate>2016-02-04T17:00:47</ns:DeliveryDate>

              <ns:DiscountType>None</ns:DiscountType>

              <ns:Discount>0.00000</ns:Discount>

              <ns:SubTotal>300.00000</ns:SubTotal>

              <ns:Tax>30.60000</ns:Tax>

              <ns:Total>330.60000</ns:Total>

              <ns:PurchaseOrderId>15</ns:PurchaseOrderId>

              <ns:OrderStatus>Open</ns:OrderStatus>

              <ns:SurchargeTotal>0</ns:SurchargeTotal>

              <ns:TaxableAmount>0</ns:TaxableAmount>

        <!--Optional:-->

        <!--Optional:-->

        <!--Optional:-->

      <ns:PurchaseOrderDetails>

           <!--Zero or more repetitions:-->

           <ns:PurchaseOrderDetail>

           <ns:UserFieldsList>

                 <ns:UserFields>

                    <ns:FieldName>U_productcode</ns:FieldName>

                    <ns:FieldValue>1</ns:FieldValue>

                 </ns:UserFields>

       </ns:UserFieldsList>

              <!--Optional:-->

              <LineNumber>0</LineNumber>

              <ns:WarehouseId>sell- warehouse</ns:WarehouseId>

              <ns:ProductId>A00006</ns:ProductId>

              <!--Optional:-->

              <ns:Description>Rainbow 1200 Laser Series</ns:Description>

              <ns:TaxCodeId>LA</ns:TaxCodeId>

              <!--Optional:-->

              <ns:TaxRate>10.20000</ns:TaxRate>

              <ns:Price>300</ns:Price>

              <ns:Quantity>2</ns:Quantity>

              <!--Optional:-->

              <ns:QuantityReceived>0</ns:QuantityReceived>

              <!--Optional:-->

              <ns:SubTotal>300</ns:SubTotal>

              <!--Optional:-->

              <ns:Tax>30.6</ns:Tax>

              <ns:Total>330.6</ns:Total>

              <ns:OrderStatus>Open</ns:OrderStatus>

                <ns:UOMQuantity>2</ns:UOMQuantity>

              <ns:DiscountPercentage>10</ns:DiscountPercentage>

           </ns:PurchaseOrderDetail>

        </ns:PurchaseOrderDetails>

     </ns:purchaseOrder>

  </ns:SavePurchaseOrder>

</soapenv:Body>

</soapenv:Envelope>