|
pending:soap:methods:updateproduct 2009/10/30 09:42 |
pending:soap:methods:updateproduct 2009/11/17 09:27 current |
| | ^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.| |
| - | |integer |ProductRefNum |Product reference number (gateway assigned) | | + | |string |ProductRefNum |Product reference number (gateway assigned) | |
| | |[[..:objects:Product]] |Product |Product data| | | |[[..:objects:Product]] |Product |Product data| |
| | | | |
| | | | |
| | try { | | try { |
| - | $Product = array(Â | + | $Product = array(Â |
| - | "ProductID" => "0-13-508011-8", | + | "ProductID" => "0-13-508011-8", |
| - | "SKU" =>"135080118", | + | "SKU" =>"135080118", |
| - | "UPC" => "9780135080115", | + | "UPC" => "9780135080115", |
| - | "Category" => "Books:Math", | + | "Category" => "Books:Math", |
| - | "Enabled" => true, | + | "Enabled" => true, |
| - | "Name" => "Elementary Differential Equations", | + | "Name" => "Elementary Differential Equations", |
| - | "Description" => "Rainville, Bedient and Bedient (Eight Edition)", | + | "Description" => "Rainville, Bedient and Bedient (Eight Edition)", |
| - | "Weight" => 1.0, | + | "Weight" => 1.0, |
| - | "ShipWeight" => 1.1, | + | "ShipWeight" => 1.1, |
| - | "Price" => 112.00, | + | "Price" => 112.00, |
| - | "ListPrice" => 128.00, | + | "ListPrice" => 128.00, |
| - | "WholesalePrice"=> 100.00, | + | "WholesalePrice"=> 100.00, |
| - | "DateAvailable" => "2009-12-01", | + | "DateAvailable" => "2009-12-01", |
| - | "Manufacturer" => "Prentice Hall", | + | "Manufacturer" => "Prentice Hall", |
| - | "Type" => "Unknown", | + | "Type" => "Unknown", |
| - | "MinQuantity" =>0, | + | "MinQuantity" =>0, |
| - | "MaxQuantity" =>10, | + | "MaxQuantity" =>10, |
| - | "ImageURL" => "http://acme.com/prodimg/123123.jpg", | + | "ImageURL" => "http://acme.com/prodimg/123123.jpg", |
| - | "URL" => "http:/acme.com/prod/123123.html"Â | + | "URL" => "http:/acme.com/prod/123123.html"Â |
| - | ); | + | ); |
| | | | |
| - | $client->updateProduct($token, $ProductRefNum, $Product); | + | $client->updateProduct($token, $ProductRefNum, $Product); |
| | | | |
| | } | | } |