ProductAddon group
Detail Addon Group Option
Get a single option of an add-on group.
Authorization
API-TOKEN API-TOKEN<token>
Your partner API key. Send it in the API-TOKEN header on every request.
In: header
Path Parameters
groupId*string
optionId*string
Query Parameters
includes*array<>
Header Parameters
X-API-Version*string
API contract version to target. See the Changelog for what changed in each version.
Default
"2.0.0"Value in
"2.3.0" | "2.2.0" | "2.1.0" | "2.0.0"Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.flavours.sa/dev/api/v2/products/addon-groups/dolor/options/mollitia?includes=ad" \ -H "X-API-Version: 2.3.0"{
"meta": {
"code": 200,
"status": "success",
"message": "Add-on group option details retrieved successfully."
},
"data": {
"id": 738792833092236,
"modifierable_id": "7434413f-b8af-444e-9acd-b424aef1322c",
"name_en": "Garlic Sauce",
"name_ar": "صلصة ثوم",
"type": "ADDITIONAL",
"calorie": 40,
"price": 2,
"tax": 0,
"total": 2,
"cost": 1,
"profit": 1,
"is_tax_included": false,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": null,
"modifierable_type": "PRODUCT_MODIFIER_ADDON_GROUP",
"stock": null,
"product_id": null,
"sku": null,
"price_mode": "FIXED",
"price_value": null,
"updated_at": null,
"barcode_img": null,
"ingredients": [],
"recipes": [],
"product": null
}
}{
"meta": {
"code": 401,
"status": "error",
"message": "Unauthenticated."
},
"data": null
}{
"meta": {
"code": 403,
"status": "error",
"message": "Unauthorized."
},
"data": null
}{
"meta": {
"code": 404,
"status": "error",
"message": "Resource not found."
},
"data": null
}{
"meta": {
"code": 500,
"status": "error",
"message": "Internal server error."
},
"data": null
}Detail Addon Group GET
Get a single add-on group with its options.
List Addon Group Options GET
Page through every option of an add-on group, in the same id order the product list embeds them. The product list serves at most 100 options per group (`addon_groups[].options`, with `options_count` at `X-API-Version >= 2.9.0`); this is the overflow fetch for the rest. `per_page` is capped at 100.