Flavours Partner API
ProductAddon group

List Product Addon Groups

GET
/api/v2/products/{productId}/addon-groups

List the add-on groups attached to a product, in their per-product order.

Authorization

API-TOKEN
API-TOKEN<token>

Your partner API key. Send it in the API-TOKEN header on every request.

In: header

Path Parameters

productId*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/rem/addon-groups?includes=vero" \  -H "X-API-Version: 2.3.0"
{
  "meta": {
    "code": 200,
    "status": "success",
    "message": "Product add-on group list retrieved successfully."
  },
  "data": [
    {
      "id": "94068f90-2f01-460c-bff1-56772b5abe02",
      "market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
      "name_en": "Sauces",
      "name_ar": "الصلصات",
      "min_additionals": 0,
      "max_additionals": 3,
      "order": 1,
      "created_at": 1792593343636,
      "updated_at": 1792593343636,
      "deleted_at": null,
      "products_count": 1,
      "options_count": 1,
      "is_min_unsatisfiable": false,
      "pivot": {
        "product_id": "df13765d-0d60-46c6-9ae3-47f1c888c3f3",
        "group_id": "94068f90-2f01-460c-bff1-56772b5abe02",
        "order": 1,
        "is_default": 0
      },
      "options": [
        {
          "id": 738792831559854,
          "modifierable_id": "94068f90-2f01-460c-bff1-56772b5abe02",
          "name_en": "Garlic Sauce",
          "name_ar": "صلصة ثوم",
          "type": "ADDITIONAL",
          "calorie": null,
          "price": 2,
          "tax": 0,
          "total": 2,
          "cost": null,
          "profit": null,
          "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
        }
      ]
    },
    {
      "id": "3922e8d4-439a-4b4c-a726-fc11dbd96061",
      "market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
      "name_en": "Sides",
      "name_ar": "الصلصات",
      "min_additionals": 0,
      "max_additionals": 3,
      "order": 1,
      "created_at": 1792593343654,
      "updated_at": 1792593343654,
      "deleted_at": null,
      "products_count": 1,
      "options_count": 1,
      "is_min_unsatisfiable": false,
      "pivot": {
        "product_id": "df13765d-0d60-46c6-9ae3-47f1c888c3f3",
        "group_id": "3922e8d4-439a-4b4c-a726-fc11dbd96061",
        "order": 2,
        "is_default": 0
      },
      "options": [
        {
          "id": 738792831618439,
          "modifierable_id": "3922e8d4-439a-4b4c-a726-fc11dbd96061",
          "name_en": "Garlic Sauce",
          "name_ar": "صلصة ثوم",
          "type": "ADDITIONAL",
          "calorie": null,
          "price": 2,
          "tax": 0,
          "total": 2,
          "cost": null,
          "profit": null,
          "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
        }
      ]
    }
  ]
}
{
  "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
}