Skip to content

Available Events

This document contains the payload of the events supported by the Webhook Service. To see the complete request body structure see the HTTP Call.

Triggers when a cart is older than a certain timespan. The duration of the timespan can be set in the merchant settings (key: cartReminderTriggerAfterSeconds). This setting is also setable in the admin Marketing > Abandoned Cart Reminder Time setting.

{
"customerId": "5292bee1-c2e6-4816-a99d-f88834c35775",
"deviceCode": "device2",
"cartId": "57de7a67-bd83-46e9-8276-c1206c301380",
"shopCode": "shop1"
}

Triggers after a customer was deleted.

{
"customerId": "5292bee1-c2e6-4816-a99d-f88834c35775",
"externalCustomerNumber": "500",
"isAnonymous": false,
"emailAddress": "test@test.com",
"requestUser": "5",
"requestIp": "127.0.0.1"
}

Triggers after a sales order got routed to a location.

{
"locationCode": "1",
"fulfillmentOrderNumber": "1500-0001",
"customerId": "7b196c58-a689-49fe-b056-91dd902694d2",
"salesOrderNumber": "1500",
"sequenceId": 1,
"user": "6" //userId
}

Triggers on status transition of a fulfillment order.

{
"locationCode": "1",
"fulfillmentOrderNumber": "1500-0001",
"customerId": "7b196c58-a689-49fe-b056-91dd902694d2",
"newStatus": "fulfilled",
"oldStatus": "accepted",
"user": "6"
}

Triggers on any update of a fulfillment order. Includes all fields that were changed and the previous values, including changes to nested fields like line items.

{
"locationCode": "1",
"fulfillmentOrderNumber": "1500-0001",
"customerId": "7b196c58-a689-49fe-b056-91dd902694d2",
"newProperties": { "status": "fulfilled" },
"oldProperties": { "status": "accepted" },
"user": "6"
}
{
"locationCode": "1",
"fulfillmentOrderNumber": "1500-0001",
"customerId": "7b196c58-a689-49fe-b056-91dd902694d2",
"newProperties": { "status": "canceled", "cancellationReason": "declined" },
"oldProperties": { "status": "accepted", "cancellationReason": null },
"user": "6"
}
{
"locationCode": "1",
"fulfillmentOrderNumber": "1500-0001",
"customerId": "7b196c58-a689-49fe-b056-91dd902694d2",
"newProperties": { "lineItems": [{ "id": 789, "status": "ready"}] },
"oldProperties": { "lineItems": [{ "id": 789, "status": "accepted"}] },
"user": "6"
}

Triggers when an import reached its endstate (either succeeded or failed).

{
"ref": "12345678-1234-5678-1234-567812345678",
"status": "succeeded|failed"
}

Triggers after a reservation has been created.

{
"code": "0cb848b4-d239-4223-8b91-1ddbf04f25b6",
"locationCode": "1",
"salesOrderNumber": "1339",
"fulfillmentOrderNumber": null,
"salesOrderLineItemCode": "line item 1",
"fulfillmentOrderLineItemId": null,
"productCode": "test1",
"quantity": 1,
"bin": "1004",
"binLocation": "AA21004",
"sku": "sku-1"
}

Triggers after a reservation has been updated.

{
"code": "0cb848b4-d239-4223-8b91-1ddbf04f25b6",
"salesOrderLineItemCode": "line item 1",
"productCode": "test1",
"bin": "1004",
"binLocation": "AA21004",
"sku": "sku-1",
"oldProperties": {
"fulfillmentOrderNumber": null,
"fulfillmentOrderLineItemId": null,
"quantity": 1
},
"newProperties": {
"fulfillmentOrderNumber": "1339-0001",
"fulfillmentOrderLineItemId": 6126774,
"quantity": 3
},
"locationCode": "1",
"salesOrderNumber": "1339",
}

Triggers after a reservation got deleted, most likely after orders got canceled/rejected.

{
"code": "0cb848b4-d239-4223-8b91-1ddbf04f25b6",
"locationCode": "1",
"salesOrderNumber": "1339",
"fulfillmentOrderNumber": "1339-0001",
"salesOrderLineItemCode": "line item 1",
"fulfillmentOrderLineItemId": 6126774,
"productCode": "test1",
"quantity": 3,
"bin": "1004",
"binLocation": "AA21004",
"sku": "sku-1"
}

Triggers after a fulfillment order changed into fulfilled.

{
"code": "0cb848b4-d239-4223-8b91-1ddbf04f25b6",
"locationCode": "1",
"salesOrderNumber": "1339",
"fulfillmentOrderNumber": "1339-0001",
"salesOrderLineItemCode": "line item 1",
"fulfillmentOrderLineItemId": 6126774,
"productCode": "test1",
"quantity": 3,
"bin": "1004",
"binLocation": "AA21004",
"sku": "sku-1"
}

Triggers after a location got created.

{
"locationCode": "ABC",
"user": "6"
}

Triggers after a location got deleted.

{
"locationCode": "ABC",
"user": "6"
}

Triggers after a location got updated.

{
"locationCode": "ABC",
"newProperties": { "status": "inactive" },
"oldProperties": { "status": "active" },
"user": "6"
}

Triggers after a fulfillment order is in ready state for a specific timespan. The timespan can be set by the pickupReminderTriggerAfterSeconds property via the merchant service api or in the Shopgate admin Settings > General > Fulfillmennt Handling > Pickup Reminder Time.

{
"locationCode": "1",
"fulfillmentOrderNumber": "1500-0001",
"customerId": "7b196c58-a689-49fe-b056-91dd902694d2",
"user": "6"
}

Triggers after a product was created.

{
"catalogCode": "DefaultCatalog",
"productCode": "t-shirt-grey",
"user": "6"
}

Triggers after a product got updated.

{
"catalogCode": "DefaultCatalog",
"productCode": "t-shirt-grey",
"user": "6"
}

Triggers after a order was created. Typically when a cart turns into an order on checkout. merchantCode, customerId, salesOrderNumber, salesOrderId, imported, eventDate

{
"customerId": "7b196c58-a689-49fe-b056-91dd902694d2",
"salesOrderId": 5,
"salesOrderNumber": "0001",
"imported": false
}

Triggers after a fulfillment order went into ready state.

{
"salesOrderNumber": "0001",
"sOFulfillmentGroupId": 2,
"fulfillmentId": "312",
"fulfillmentMethod": "directShip",
"fulfillmentLocationCode": "warehouse",
"carrier": "DHL",
"tracking": "JJD000390007882823450",
"serviceLevel": "sameDay",
"status": "inProgress"
}

Triggers after the status of a salesorder changed.

{
"customerId": "7b196c58-a689-49fe-b056-91dd902694d2",
"salesOrderId": 5,
"salesOrderNumber": "0001",
"oldStatus": "new",
"newStatus": "accepted",
"user": "6" //userId
}

Triggers after a salesorder changed.

{
"salesOrderNumber": "0001",
"oldProperties": { "notes": null },
"newProperties": { "notes": "The customer asked for a line item decrease." },
"user": "6" //userId
}

Triggers after a return order was added.

{
"returnOrderNumber": "R0001",
"salesOrderNumber": "0001",
"customerId": "7b196c58-a689-49fe-b056-91dd902694d2",
"user": "6", //userId
"status": "new"
}

Triggers after the status of a return order changed.

{
"customerId": "7b196c58-a689-49fe-b056-91dd902694d2",
"returnOrderNumber": "R0001",
"salesOrderNumber": "0001",
"oldStatus": "new",
"newStatus": "accepted",
"user": "6" //userId
}

Triggers after a fulfillment order is in new state for a specific timespan. The timespan can be set by the scheduledFulfillmentPickTime property via the location service api or in the Shopgate admin.

{
"customerId": "7b196c58-a689-49fe-b056-91dd902694d2",
"fulfillmentOrderNumber": "1500-0001",
"locationCode": "loc1"
}

Triggers after a fulfillment order is in ready state for a specific timespan. The timespan can be set by the scheduledPickupReminderBeforePickupSeconds property via the merchant service api or in the Shopgate admin Settings > General > Fulfillmennt Handling > Scheduled Pickup Reminder Time Before Pickup Time.

{
"customerId": "7b196c58-a689-49fe-b056-91dd902694d2",
"fulfillmentOrderNumber": "1500-0001",
"locationCode": "loc1"
}