Sage 200 Online Product Group XML
Product groups are enabled to collate stock items together that are of the same type, for example, if you sell clothing you might have a product group for T-Shirts, Jeans and Shoes. Also, they provide default settings to the stock items within the group. Further information can be found on the Sage 200 Online Nominal Code API Documentation.
Fields
id
Read only The id of the product group. This is created by Sage whenever you create a new product group.
Type | Example | XML |
---|---|---|
integer(int64) | 14910 | <id>14910</id> |
code
The code of the product group. This is assigned by the user when creating a new product group, for example, 'T-SHIRTS'.
Type | Example | XML |
---|---|---|
string(20) | T-SHIRTS | <code>T-SHIRTS</code> |
description
Read only The description of the product group. This will provide a brief overview of the what the product group pertains to, for example, 'Short & long sleeve t-shirts'.
Type | Example | XML |
---|---|---|
string(50) | Short & long sleeve t-shirts | <description>Short & long sleeve t-shirts</description> |
product_type
Read only The type of products associated with the product group.
- Stock
- Service/Labour
- Miscellaneous
Type | Example | XML |
---|---|---|
string(20) | EnumStockItemTypeStock | <product_type>EnumStockItemTypeStock</product_type> |
can_levels_go_negative
Read only Boolean. Indicates whether or not stock levels can go below zero for this products within this group.
Type | Example | XML |
---|---|---|
boolean() | false | <can_levels_go_negative>false</can_levels_go_negative> |
date_time_updated
Read only The date and time the product group was last updated.
Type | Example | XML |
---|---|---|
string(date-time) | 2015-10-30T22:33:22.773 | <date_time_updated>2015-10-30T22:33:22.773</date_time_updated> |
Export
On an export, the related information of the product group will be included in the XML.
<product_group>
<id>14910</id>
<date_time_updated>2015-10-30T22:33:22.773</date_time_updated>
<code>T-SHIRTS</code>
<description>Short & long sleeve t-shirts</description>
<product_type>EnumStockItemTypeStock</product_type>
<can_levels_go_negative>false</can_levels_go_negative>
</product_group>
Import
On an import, you can set the product group for a stock item by using the code.
<product_group>
<code>T-SHIRTS</code>
</product_group>