Fields when send to the api inside a request.
Field | Type | Description |
---|---|---|
option_id | Int | An integer value |
upload_id | Int? | Nullable. An integer value |
Fields when returned by the api in a response.
Field | Type | Description |
---|---|---|
option | Option.detailed | |
upload | CartUpload? | Nullable. |
When used inside a request.
{
"option_id": 18,
"upload_id": 15
}
When returned in a response.
{
"option": {
"id": 15,
"name": "...",
"price_change": {
"value": 15,
"currency": "EUR"
},
"image": {
"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": false
},
"require_image": true,
"code": "...",
"optionset": {
"id": 15,
"name": "...",
"code": "..."
}
},
"upload": {
"id": 17,
"url": "https://example.com"
}
}