Appearance
Categories
Get all categories
Method : GET
Endpoint : /api/categories
[
...
{
"CATEGORY_ID": 2,
"WEB_ORDER": 1,
"IS_AKCIJA": false,
"DISCOUNT_PERCENT": null,
"ACTION_START": null,
"ACTION_END": null,
"WEB_VISIBLE": "F",
"content": [
{
"CATEGORY_ID": 2,
"LANG_ID": 1,
"TITLE": "Makita",
"WEB_ID": "makita",
"DESCRIPTION": null,
"META_KEYWORDS": null,
"META_DESCRIPTION": null
}
],
"images": [],
"web_visible": []
}
...
]Get single category
Method : GET
Endpoint : /api/categories/{id}
{
"CATEGORY_ID": 2,
"WEB_ORDER": 1,
"IS_AKCIJA": false,
"DISCOUNT_PERCENT": null,
"ACTION_START": null,
"ACTION_END": null,
"WEB_VISIBLE": "F",
"content": [
{
"CATEGORY_ID": 2,
"LANG_ID": 1,
"TITLE": "Makita",
"WEB_ID": "makita",
"DESCRIPTION": null,
"META_KEYWORDS": null,
"META_DESCRIPTION": null
}
],
"images": [],
"web_visible": []
}Get category groups
Method : GET
Endpoint : /api/categories/{id}/groups
Insert a category
Method : POST
Endpoint /api/categories
| Field | Type | Required |
|---|---|---|
| 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
{
"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": "Bosch", // Categroy title
"DESCRIPTION": null, // Category description
"META_KEYWORDS": null, // Category meta keywords
"META_DESCRIPTION": null // Category meta description
}
],
"web_visible": []
}Update category
Method : PUT
Endpoint /api/categories/{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": "Bosch", // Categroy title
"DESCRIPTION": null, // Category description
"META_KEYWORDS": null, // Category meta keywords
"META_DESCRIPTION": null // Category meta description
}
],
"images": [],
"web_visible": []
}