Flavours API Documentation
  1. Product Webhooks
Flavours API Documentation
  • Readme
  • Developer Guide
  • Authorization
  • Includables
  • Pagination
  • Sorting
  • Retrieve Market Information
  • Retrieve Branch Information
  • Me
    • Overview
    • Detail
      GET
  • Branches
    • Overview
    • List
      GET
    • Detail
      GET
    • Create
      POST
    • Update
      POST
    • Delete
      DELETE
  • Orders
    • Overview
    • List
      GET
    • Detail
      GET
    • Create
      POST
    • Calculate
      POST
    • Checkout
      POST
    • Update
      POST
    • Sync
      POST
  • Customers
    • Overview
    • List
    • Detail
    • Create
    • Update
  • Products
    • Overview
    • List
    • Detail
    • Create
    • Update
    • Delete
  • Product Categories
    • Overview
    • List
    • Detail
  • Discounts
    • Overview
    • List
    • Detail
    • Verify
  • Payment Methods
    • Overview
    • List
    • Detail
  • Table
    • Overview
    • List
    • Detail
    • Create
    • Update
    • Delete
  • Printer
  • Webhook
    • Orders Webhooks
      • Webhook Events
      • Payload
    • Product Webhooks
      • Webhook Events
      • Payload
    • Loyalty Webhooks
      • Promotional Coupon
    • Customers Webhooks
      • Webhook Events
      • Payload
    • Error Webhook
      • Stay Alert to Connectivity Issues
    • Third-Party
      • Ballurh
        • Install Ballurh
      • Loyapro
        • Loyalty
          • Check Reward
          • Redeem Reward
      • Bonat
        • Check Reward
        • Redeem Reward
      • Fai
        • Register Entity
  1. Product Webhooks

Payload

Order webhook triggered when there's new product or product changed on Flavours Apps. This is the example payload that we send to third-party apps.
{
    "action": "products.UPDATED",
    "data": {
        "id": "fc0b14ae-f712-4c77-89f7-d863e60a5ba6",
        "market_id": "b5d70a92-5d2e-4f89-8e52-1827cfbd01f4",
        "branch_id": null,
        "product_category_id": 80,
        "name_en": "Penne pastas",
        "name_ar": "بيني باستا",
        "description_en": null,
        "description_ar": null,
        "preparation_time": 10,
        "stock": 300,
        "order": 1,
        "images": [
            "https://flavours-files.s3.me-south-1.amazonaws.com/img/uploads/products/1700962519-0.JPG"
        ],
        "is_active": true,
        "created_at": 1700934146978,
        "updated_at": 1747219301673,
        "deleted_at": null,
        "rating_amount": 0,
        "rating_avg": "0.00",
        "sold_amount": 12,
        "sold_revenue": 0,
        "qoyod_id": null,
        "options_min_total": 200,
        "options_max_total": 200,
        "market": {
            "id": "b5d70a92-5d2e-4f89-8e52-1827cfbd01f4",
            "sector_id": 3,
            "slug": null,
            "name_en": "flavours",
            "name_ar": "فليفرز",
            "description_en": "res",
            "description_ar": "مطعم",
            "logo_img": "https://flavours-files.s3.me-south-1.amazonaws.com/img/uploads/markets/logos/1720926739.jpg",
            "cover_img": null,
            "email": "[email protected]",
            "phone_prefix": "966",
            "phone": "581157875",
            "crn": null,
            "tax_number": "10101010101020",
            "created_by": "ad3ffe2c-0986-439e-a519-2f5032af3c6c",
            "email_verified_at": null,
            "phone_verified_at": 1713453448327,
            "created_at": 1700933589182,
            "updated_at": 1745942605599,
            "deleted_at": null,
            "is_active": true,
            "merchant_id": null,
            "reseller_id": null
        },
        "branch": null,
        "category": {
            "id": 80,
            "icon": "🍝",
            "name_en": "Pasta",
            "name_ar": "باستا",
            "deleted_at": null,
            "created_at": null,
            "updated_at": null
        },
        "options": [
            {
                "id": 25591,
                "modifierable_id": "fc0b14ae-f712-4c77-89f7-d863e60a5ba6",
                "name_en": "we",
                "name_ar": "we",
                "type": "OPTION",
                "calorie": null,
                "price": 173.9130434783,
                "tax": 26.0869565217,
                "total": 200,
                "cost": 200,
                "profit": 0,
                "is_tax_included": true,
                "deleted_at": null,
                "barcode": null,
                "barcode_img": null,
                "weight_amount": null,
                "weight_unit": null,
                "market_id": "b5d70a92-5d2e-4f89-8e52-1827cfbd01f4",
                "branch_id": null,
                "modifierable_type": "PRODUCT_MODIFIER_PRODUCT",
                "stock": 250,
                "product_id": "fc0b14ae-f712-4c77-89f7-d863e60a5ba6",
                "ingredients": [],
                "prices": [],
                "additionals": []
            }
        ],
        "additionals": [
            {
                "id": 25594,
                "modifierable_id": "fc0b14ae-f712-4c77-89f7-d863e60a5ba6",
                "name_en": "test444444",
                "name_ar": "test44",
                "type": "ADDITIONAL",
                "calorie": null,
                "price": 43.4782608696,
                "tax": 6.5217391304,
                "total": 50,
                "cost": 50,
                "profit": 0,
                "is_tax_included": true,
                "deleted_at": null,
                "barcode": null,
                "barcode_img": null,
                "weight_amount": null,
                "weight_unit": null,
                "market_id": "b5d70a92-5d2e-4f89-8e52-1827cfbd01f4",
                "branch_id": null,
                "modifierable_type": "PRODUCT_MODIFIER_PRODUCT",
                "stock": 50,
                "product_id": "fc0b14ae-f712-4c77-89f7-d863e60a5ba6",
                "ingredients": [],
                "prices": []
            }
        ]
    }
}
Previous
Webhook Events
Next
Promotional Coupon
Built with