Product Option Details
GET
/products/options/{option}This endpoint allows you to return specific option details for a specific product by passing the option
as a path parameter.
Request
The Option ID. List of Products Options ID can be found here.
Request samples
[api.label.responses]
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
Detailed structure of the product option model object showing its fields and data types.
A unique identifier assigned to a specific product configuration or variant.
The label or title used to describe a specific choice or attribute associated with a product.
A text or content that provides detailed information about a product.
Type of the product option, it can be a radio
button or checkbox
Whether or not the product option is obligatory.
The product option is only relevant to order receiving time when it pertains to date-time selections. ONLY for date time options.
Product option sort refers to the method or criteria used to arrange or order product options.
The manner in which product choices or attributes are presented.
Product option visibility based on condition is applied exclusively to products categorized as 'food' or 'service', allowing certain choices or attributes to be shown or hidden based on specific criteria.
Product option visiblity condition type
Product option visiblity
A unique identifier associated with a specific value or choice within a product option.
{
"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
]
}
]
}
}