developer:soap-1.3:methods:addproduct

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developer:soap-1.3:methods:addproduct [2010/09/01 14:54]
irina
developer:soap-1.3:methods:addproduct [2010/10/14 09:40]
tem
Line 13: Line 13:
 ===== Syntax ==== ===== Syntax ====
 string **addProduct** ( [[..:​objects:​ueSecurityToken]],​[[..:​objects:​Product]]) string **addProduct** ( [[..:​objects:​ueSecurityToken]],​[[..:​objects:​Product]])
- 
 ===== Arguments ===== ===== Arguments =====
  
 ^Type   ​^Name ​  ​^Description ​  ^ ^Type   ​^Name ​  ​^Description ​  ^
 |[[..:​objects:​ueSecurityToken]] |Token |Merchant security token: used to identify merchant and retrieve the custom fields.| |[[..:​objects:​ueSecurityToken]] |Token |Merchant security token: used to identify merchant and retrieve the custom fields.|
 +|[[..:​objects:​Product]] |Product |Object contain product information. |
  
 ===== Return Value ===== ===== Return Value =====
Line 82: Line 82:
  
 <code vb> <code vb>
 +Dim product As usaepay.Product = New usaepay.Product
 +        product.ProductID = "​0-13-508011-8"​
 +        product.SKU = "​135080118"​
 +        product.UPC = "​9780135080115"​
 +        product.Category = "​Books:​Math"​
 +
 +        Dim inventory(0 To 1) As usaepay.ProductInventory
 +        inventory(0) = New usaepay.ProductInventory()
 +        inventory(0).InventoryLocation = "Los angeles"​
 +        inventory(0).QtyOnHand = "​10"​
 +        inventory(0).QtyOnOrder = "​5"​
 +        inventory(0).DateAvailable = "​2010-08-20"​
 +
 +        product.Inventory = inventory
 +
 +        product.Enabled = True
 +        product.Name = "​Elementary Differential Equations"​
 +        product.Description = "​Rainville,​ Bedient and Bedient (Eight Edition)"​
 +        product.Weight = 1.0
 +        product.ShipWeight = 1.1
 +        product.Price = 112.0
 +        product.ListPrice = 128.0
 +        product.WholesalePrice = 100.0
 +        product.DateAvailable = "​2010-08-01"​
 +        product.Manufacturer = "​Prentice Hail"
 +        product.MinQuantity = "​0"​
 +
 +        Dim refNum As String
  
 +        refNum = client.addProduct(token,​ product)
 +        MsgBox(refNum)
 </​code>​ </​code>​
  
developer/soap-1.3/methods/addproduct.txt ยท Last modified: 2010/10/14 09:40 by tem

Page Tools