Light Mode
Product Option Details
GET
/products/options/{option}Last modified: 2 months ago
This endpoint allows you to return specific option details for a specific product by passing the option
as a path parameter.
Request
Path Params
option
integer
required
The Option ID. List of Products Options ID can be found here.
Request samples
Responses
Success(200)
Not Found(404)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": {
"id": 1561181168,
"name": "المنشأ",
"description": null,
"type": "radio",
"required": false,
"associated_with_order_time": 0,
"sort": null,
"display_type": "text",
"visibility": "always",
"values": [
{
"id": 931990227,
"name": "مصري",
"price": {
"amount": 1.5,
"currency": "SAR"
},
"display_value": "",
"option_id": 1561181168,
"image_url": "https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"hashed_display_value": ""
},
{
"id": 23734748,
"name": "لبناني",
"price": {
"amount": 3,
"currency": "SAR"
},
"display_value": "",
"option_id": 1561181168,
"image_url": "https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"hashed_display_value": ""
}
],
"skus": [
{
"id": 461881338,
"price": {
"amount": 7.5,
"currency": "SAR"
},
"regular_price": {
"amount": 0,
"currency": "SAR"
},
"stock_quantity": 20,
"barcode": "",
"sku": "23-TD23-32",
"related_option_values": [
931990227
]
},
{
"id": 1970069243,
"price": {
"amount": 7.5,
"currency": "SAR"
},
"regular_price": {
"amount": 0,
"currency": "SAR"
},
"stock_quantity": 20,
"barcode": "",
"sku": "23-TD23-32",
"related_option_values": [
23734748
]
}
]
}
}
Last modified: 2 months ago