Appearance
Groups
Get all groups
Method : GET
Endpoint : /api/groups
[
...
{
"GROUP_ID": 2,
"CATEGORY_ID": 2,
"WEB_ORDER": 2,
"IS_AKCIJA": false,
"DISCOUNT_PERCENT": null,
"ACTION_START": null,
"ACTION_END": null,
"WEB_VISIBLE": "F",
"content": [
{
"GROUP_ID": 2,
"LANG_ID": 1,
"TITLE": "Akumulatora instrumenti",
"WEB_ID": "akumulatora-instrumenti",
"DESCRIPTION": null,
"META_KEYWORDS": null,
"META_DESCRIPTION": null
}
],
"web_visible": []
}
...
]Get single group
Method : GET
Endpoint : /api/groups/
{
"GROUP_ID": 2,
"CATEGORY_ID": 2,
"WEB_ORDER": 2,
"IS_AKCIJA": false,
"DISCOUNT_PERCENT": null,
"ACTION_START": null,
"ACTION_END": null,
"WEB_VISIBLE": "F",
"content": [
{
"GROUP_ID": 2,
"LANG_ID": 1,
"TITLE": "Akumulatora instrumenti",
"WEB_ID": "akumulatora-instrumenti",
"DESCRIPTION": null,
"META_KEYWORDS": null,
"META_DESCRIPTION": null
}
],
"web_visible": []
}Get group subgroups
Method : GET
Endpoint : /api/groups/{id}/subgroups
Insert a group
Method : POST
Endpoint /api/groups
| Field | Type | Required |
|---|---|---|
| CATEGORY_ID | Integer,Id | ✔ |
| WEB_ORDER | Integer | |
| IS_AKCIJA | Boolean | |
| DISCOUNT_PERCENT | Float | |
| ACTION_START | Date | |
| ACTION_END | Date | |
| content | Object | ✔ |
| content@LANG_ID | Integer,Id | ✔ |
| content@TITLE | String | ✔ |
| content@DESCRIPTION | Text | |
| content@META_KEYWORDS | Text | |
| content@META_DESCRIPTION | Text | |
| web_visible | Object | |
| web_visible@ETRADER_SITE_ID | Integer,Id |
Example
{
"CATEGORY_ID" : 1, //Category id
"WEB_ORDER": 1, // Sort order
"IS_AKCIJA": false, // (T/F) If discount is active
"DISCOUNT_PERCENT": 0, // Discount amount in percentage
"ACTION_START": null, // Date from discount is active (if null then ignores)
"ACTION_END": null, // Date until discount is active (if null then ignores)
"content": [
{
"LANG_ID": 1, // Language id
"TITLE": "Akumulatora instrumenti", // Group title
"DESCRIPTION": null, // Group description
"META_KEYWORDS": null, // Group meta keywords
"META_DESCRIPTION": null // Group meta description
}
],
"web_visible": []
}Update group
Method : PUT
Endpoint /api/groups/
{
"CATEGORY_ID" : 1, //Category id
"WEB_ORDER": 1, // Sort order
"IS_AKCIJA": false, // (T/F) If discount is active
"DISCOUNT_PERCENT": 0, // Discount amount in percentage
"ACTION_START": null, // Date from discount is active (if null then ignores)
"ACTION_END": null, // Date until discount is active (if null then ignores)
"content": [
{
"LANG_ID": 1, // Language id
"TITLE": "Akumulatora instrumenti", // Group title
"DESCRIPTION": null, // Group description
"META_KEYWORDS": null, // Group meta keywords
"META_DESCRIPTION": null // Group meta description
}
],
"web_visible": []
}