Product service¶
Methods associated with products.
GetProductStockStatus(item, warehouseId, LoginInfo)¶
This method calls Harmoney directly to find out the current stock level. The method is invoked with a product id in combination with a warehouse id. This is an add-on functionality. Contact your sales contact at Pulsen to find out more about this function.
Note: Since this is a very processing intensive method. It is highly recommended to use it only in applications with few calls (e.g. less than 10 products on a webpage).
Parameter | Type | Max length | Description | Example | Comment |
---|---|---|---|---|---|
productId | string | 15 char | The product id | 123124 | Length is individual to each Pulsen client, but usually 6 characters long. |
warehouseId | string | 3 char | The id of the warehouse. If only warehouse is available. Default value “001” is used | 001 | |
LoginInfo | object | See section LoginInfo |
Return value | Comment |
---|---|
A ListWrapper of ProductStock objects | See section ProductStock |
GetItemStockStatus(item, warehouseId, LoginInfo)¶
This method calls Harmoney directly to find out the current stock level. The method is invoked with an item in combination with a warehouse id
Note: Since this is a very processing intensive method. It is highly recommended to use it only in applications with few calls (e.g. less than 10 products on a webpage).
Parameter | Type | Max length | Description | Example | Comment |
---|---|---|---|---|---|
item | object | An item object. See section Item | Not all fields have to be set on object. Only Item.id and Item.Attribut1 through Item.Attribut5are optional. | ||
warehouseId | string | 3 char | The id of the warehouse. If only warehouse is available. Default value “001” is used | 001 | |
LoginInfo | object | See section LoginInfo |
Return value | Comment |
---|---|
A ListWrapper of ProductStock objects | See section ProductStock |
GetProductStock(item, warehouseId, LoginInfo)¶
This method calls Harmoney directly to find out the current stock. The method is invoked with an item in combination with a warehouse id (optional).
Note: This is a very processing intensive method. It is suitable for use during an event/trigger, e.g. when the customer adds a new item to the checkout cart, updates the number of items or on a product page with a button for checking stock status. It is not suitable while loading a product page or on an overview with many products as this would cause an unnecessary load. It is highly recommended to use it only in applications with few calls (e.g. less than 10 products on a webpage).
Parameter | Type | Max length | Description | Example | Comment |
---|---|---|---|---|---|
item | object | An item object. See section Item | Not all fields have to be set on object. Only Item.id and Item.Attribut1 through Item.Attribut5 are optional. | ||
warehouseId | string | 3 char | The id of the warehouse. If only warehouse is available. Default value “001” is used | 001 | |
LoginInfo | object | See section LoginInfo |
Return value | Comment |
---|---|
A ListWrapper of ProductStock objects | See section ProductStock |