Nice to have
store_list_updated
When it fires
This event is triggered after calling Synchronise the store list (POST /admin/stores/v2), and notifies you whether the store integration succeeded or failed.
Only one request is treated at a time per programme. If you post a new store list before receiving the notification for the previous integration, the previous request is automatically rejected.
Payload fields
| Field | Type | Description |
|---|---|---|
event | String | The name of the webhook event. |
requestId | String | The identifier of the request received after calling POST /admin/stores/v2. |
result | String | The result of the integration. Possible values: success, failed. |
resultDetail | String | More information about the result of the integration. |
shoppingHubId | String | Programme id (Spaycial). |
shoppingHubExternalId | String | Programme id in your system. |
Example
{
"event": "store_list_updated",
"requestId": "wp302492039482039482",
"result": "success",
"shoppingHubId": "f24b4d97-8d70-4133-b685-732c69b87884",
"shoppingHubExternalId": "654564561"
}
{
"event": "store_list_updated",
"requestId": "wp302492039482039482",
"result": "failed",
"resultDetail": "Only one request can be treated at a time, we'll integrate only the most recent",
"shoppingHubId": "f24b4d97-8d70-4133-b685-732c69b87884",
"shoppingHubExternalId": "654564561"
}