Light Mode
Special Offer
Below are the webhook store events paired with their respective data schema related to the Special Offer webhook events:
Special Offer Webhook Events Model
The following includes 2 special offer webhook events that share the same model, which are mentioned in the event
enum value under the Data Schema tab
{
"event": "specialoffer.updated",
"merchant": 1305146709,
"created_at": "Tue Jan 25 2022 13:26:20 GMT+0300",
"data": {
"id": 1649524234,
"name": "اشتري 1 واحصل على الاخر مجانا",
"message": "اشتري قطعة واحصل على قطعة واحدة مجاناً من التصنيفات التالية",
"expiry_date": null,
"offer_type": "buy_x_get_y",
"status": "inactive",
"buy": {
"type": "category",
"quantity": "1",
"categories": [
{
"id": 1548056,
"name": "البلايز",
"avatar": "sicon-store",
"created_at": "2021-11-01 16:46:06",
"updated_at": "2022-01-16 15:35:55",
"deleted_at": null,
"store_id": 577778,
"parent_id": 0,
"products_counts": 3,
"show_in_menu": 0,
"sort_order": 2,
"status": "active",
"has_hidden_products": 0,
"show_in_app": 1,
"extra_attributes": [],
"custom_url": null
}
]
},
"get": {
"categories": [
{
"id": 256950451,
"name": "البلايز",
"urls": {
"customer": "https://salla.sa/dev-wofftr4xsra5xtlv/category/zvawao",
"admin": "https://s.salla.sa/categories"
},
"items": [],
"parent_id": 0,
"status": "active",
"sort_order": 2,
"sub_categories": []
}
],
"type": "category",
"discount_type": "free-product"
}
}
}
Last modified: 2 months ago