Product tags
CRS works with product groups. Products groups are used for reporting and bonus calculation purposes.
Each product receives a tag; that way, it’s part of a certain product group.
Product groups and tags are established by Centrop. A tag needs to be added to each product.
You can request the tags though the API or you can download them as Excel through the supplier portal. A product is always part of just one product group; it’s not possible to assign an products to multiple groups. We are doing this in order to prevent errors in reports (double counts).
Attributes
| Name | Type | Description |
|---|---|---|
| name | string | The name of the tag. |
| code | integer | The unique tagID. You can only assign the code from the lowest tag in the hierarchy to a product. |
| child | array | Indicates the child. A child object repeats this object with the child tag. This continues until there is no lower level in the hierarchy. |
Get All Tags
With this call, you will get all Centrop tags.
GET https://api.centrop.app/producttags/ GET https://test-api.centrop.app/producttags/
This small example has one tag (Glas) without any lower level categories. It also has a tag (Diversen) with multiple sub categories. As you can see, each tag has the child property which can contain lower level hierarchy tags. The API endpoint contains many more levels and tags. This is just an example. Please do not use this list, but always the API.
RESPONSE
HTTP/1.1 200 OK
1[
2{
3 "name": "Glas",
4 "code": 1722,
5 "child": []
6 },
7 {
8 "name": "Diversen",
9 "code": 2968,
10 "child": [
11 {
12 "name": "Extra korting",
13 "code": 2093,
14 "child": []
15 },
16 {
17 "name": "Gereedschappen",
18 "code": 7755,
19 "child": []
20 },
21 {
22 "name": "Instrumenten",
23 "code": 5840,
24 "child": []
25 },
26 {
27 "name": "Abonnementen",
28 "code": 1098,
29 "child": []
30 },
31 {
32 "name": "Marketing",
33 "code": 3515,
34 "child": []
35 },
36 {
37 "name": "Promotie",
38 "code": 5223,
39 "child": []
40 },
41 {
42 "name": "Porto / Verzendkosten",
43 "code": 4123,
44 "child": []
45 }
46 ]
47 }
48]