The info about the shop promotion
Field | Type | Description |
---|---|---|
is_enabled | Bool | A boolean value |
title | String | A String value |
type | String | String enumarion of 'product', 'category' |
id | Int | An integer value |
custom_image_enabled | Bool | A boolean value |
photo | Image? | Nullable. |
When used inside a request.
{
"is_enabled": false,
"title": "...",
"type": "product",
"id": 19,
"custom_image_enabled": false,
"photo": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
}
}
When returned in a response.
{
"is_enabled": false,
"title": "...",
"type": "product",
"id": 19,
"custom_image_enabled": true,
"photo": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"file_id": 13,
"white_background": false
}
}