Skip to main content

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​

FieldTypeDescription
eventStringThe name of the webhook event.
requestIdStringThe identifier of the request received after calling POST /admin/stores/v2.
resultStringThe result of the integration. Possible values: success, failed.
resultDetailStringMore information about the result of the integration.
shoppingHubIdStringProgramme id (Spaycial).
shoppingHubExternalIdStringProgramme 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"
}