nsForum logo

Welcome Guest ( Log In )

 
Reply to this topicStart new topic
> Api Call: Performmultiple, its use
Eddie
post Oct 6 2009, 04:59 PM
Post #1





Group: Verified NS Member
Posts: 104
Joined: 5-March 09
From: Sunnyvale, CA
Member No.: 3,922



what is the purpose for the call "PerformMultiple" and how should it be used?
Go to the top of the page
 
+Quote Post
ddavisNS
post Oct 6 2009, 06:12 PM
Post #2


QA


Group: Administrators
Posts: 1,864
Joined: 10-August 07
Member No.: 6



Currently all it does is inventory adjustments. It the future this may be expanded(which is why the name is a bit generic)

The format is:
CODE
<urn:PerformMultipleRequest>
  <urn:UpdateInventoryRequestList>
    <urn:Inventory ProductId="812">
      <urn:QtyInStock Adjustment="true">10</urn:QtyInStock>
    </urn:Inventory>
  </urn:UpdateInventoryRequestList>
  <urn:UpdateInventoryRequestList>
    <urn:Inventory ProductId="813">
      <urn:QtyInStock Adjustment="true">-1</urn:QtyInStock>
    </urn:Inventory>
  </urn:UpdateInventoryRequestList>
  <urn:UpdateInventoryRequestList>
    <urn:Inventory ProductId="814">
      <urn:QtyInStock Adjustment="false">100</urn:QtyInStock>
    </urn:Inventory>
  </urn:UpdateInventoryRequestList>
</urn:PerformMultipleRequest>

This sets the inventory of product ID 812 to 10 above current, of product ID 813 to 1 below current, and ID 814 to 100. The adjustment attribute indicates if an adjustment is to be made or if a value is to be set directly. Omitting the Adjustment attribute is the same as setting it to false.
Go to the top of the page
 
+Quote Post
Eddie
post Oct 7 2009, 12:52 AM
Post #3





Group: Verified NS Member
Posts: 104
Joined: 5-March 09
From: Sunnyvale, CA
Member No.: 3,922



oh this is useful. Thank you for the explanation! (IMG:http://forums.networksolutions.com/style_emoticons/default/thumbsup.gif)
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version    Network Solutions © 2010 Time is now: 22nd March 2010 - 12:46 AM
Domain Names | Web Hosting | Web Design | Shopping Cart Software | Online Marketing | SSL Certificates