Use notifications to be warned when a resource is modified.
A notification about any resource alteration need an endpoint that you must provided us.
It will provide you with every piece of information that you need to retrieve the resource in his new state.
Notification format
{
"resource_id":"1",
"type":"PRODUCT_CREATED",
"store_id":1,
"resource_url":"https://env.tillersystems.com/api/products/1"
}
Notification type
We provide notification for these resources:
Resource | Type | Description |
---|---|---|
PRODUCT | PRODUCT_CREATED | Happen once a product is created |
PRODUCT | PRODUCT_UPDATED | Happen once a product is updated |
PRODUCT | PRODUCT_DELETED | Happen once a product is deleted |
PRODUCT | OPTION_CREATED | Happen once an option is created |
PRODUCT | OPTION_UPDATED | Happen once an option is updated |
PRODUCT | OPTION_DELETED | Happen once an option is deleted |
MENU | MENU_CREATED | Happen once a menu is created |
MENU | MENU_UPDATED | Happen once a menu is updated |
MENU | MENU_DELETED | Happen once a menu is deleted |
MENU | DELIVERY_MENU_CREATED | Happen once a delivery menu is created |
MENU | DELIVERY_MENU_UPDATED | Happen once a delivery menu is updated |
MENU | DELIVERY_MENU_DELETED | Happen once a delivery menu is deleted |
MEDIA | MEDIA_CREATED | Happen once a media is created |
MEDIA | MEDIA_UPDATED | Happen once a media is updated |
CATEGORY | CATEGORY_CREATED | Happen once a category is created |
CATEGORY | CATEGORY_UPDATED | Happen once a category is updated |
CATEGORY | CATEGORY_DELETED | Happen once a category is deleted |
TAX | TAX_CREATED | Happen once a tax is created |
TAX | TAX_UPDATED | Happen once a tax is updated |
TAX | TAX_DELETED | Happen once a tax is deleted |
PRODUCT_IN_MENU | PRODUCT_IN_MENU_CREATED | Happen once a productInMenu is created |
PRODUCT_IN_MENU | PRODUCT_IN_MENU_UPDATED | Happen once a productInMenu is updated |
PRODUCT_IN_MENU | PRODUCT_IN_MENU_DELETED | Happen once a productInMenu is deleted |
PRODUCT_IN_MENU | PRODUCT_IN_DELIVERY_MENU_CREATED | Happen once a productInMenu of a delivery menu is created |
PRODUCT_IN_MENU | PRODUCT_IN_DELIVERY_MENU_UPDATED | Happen once a productInMenu of a delivery menu is updated |
PRODUCT_IN_MENU | PRODUCT_IN_DELIVERY_MENU_DELETED | Happen once a productInMenu of a delivery menu is deleted |