Developer documentation for Stargest SOAP API
Ressource : Product
Description
Allow you to get all informations about a product from his sku .
Method
product_info
Arguments
Type | Name | Description |
---|---|---|
array | stConnexion | This is a structure |
string | sProductCode | The product code |
string | sCurrency | This is an optional field to get retail price in stPrice with currency the amount of the price will be in taxe free for US. default is 'EUR' . |
stConnexion
Type | Name | Description |
---|---|---|
string | sLogin | The login provided see the get started Configuration |
string | sKey | The Key provided see the get started Configuration |
Return
product_infoResult
Type | Name | Description |
---|---|---|
array | stProcessing | This is a structure of the success/error process |
array | stDatas | This is a structure that contains the data resulting from the query |
stProcessing
Type | Name | Description |
---|---|---|
string | sErrorMessage | This is a structure |
boolean | bProcessed | This is the result of the request traitement processing |
stDatas
Type | Name | Description |
---|---|---|
string | sProductCode | The product code |
string | sDescription | The product description |
string | sCollection | The collection of the product |
string | sFamily | The product family |
string | sSubfamily | The Produc subFamily |
string | sBrand | The product brand |
string | sSection | The product section |
string | sWeight | The weight's product |
boolean | bPack | If the product is a pack configuration |
integer | nPackQty | give you the number of item in the pack, if this is a pack |
array | stPrice | The structure of the wholesale prices |
array | stAttribut | The structure of the attribute description |
string | sCompositionCode | The code composition |
string | sComposition | The composition |
string | sComment | The comment |
string | sComment2 | The comment 2 |
string | sComment3 | The comment 3 |
string | sComWeb | The Web comment |
string | sPriceStm | The basic price of starmag |
array | stPack | The structure of the pack description |
stAttribut
Type | Name | Description |
---|---|---|
string | sProductCode | The product code |
string | sGenCode | The gencod |
string | sColorCode | The color code |
string | sSize | The size of the product |
string | nOrder | The size order of the product |
stPrice
Type | Name | Description |
---|---|---|
string | sProductCode | The product code |
string | sGenCode | The gencod |
string | sColorCode | The color code |
string | sSize | The size of the product |
real | sStandardPrice_1 | The wholesale price 1 |
real | sStandardPrice_2 | The wholesale price 2 |
real | sStandardPrice_3 | The wholesale price 3 |
real | sRetailPrice | The retail from starmag 3 (only if starmag3 is installed) |
stPack (only if bPack is true)
Type | Name | Description |
---|---|---|
string | sProductCode | The product code |
string | sGenCode | The gencod |
string | sColorCode | The color code |
string | sSize | The size of the product |
real | rCount | The number of product |
Exemple
Request Example SOAP and PHP
$client = new \SoapClient($wsdl);
$args['stConnexion']['sLogin'] = "test";
$args['stConnexion']['sKey'] = "000";
$args['sProductCode'] = 'MyProductCode';
$return = $client->product_info($args);
These fields are optional !
These fields are new !