Available Events
Content
Section titled “Content”- About this Document
- Events
- cartReminderTimeReached
- customerDeleted
- fulfillmentOrderAdded
- fulfillmentOrderStatusUpdated
- fulfillmentOrderUpdated
- importCompleted
- inventoryReservationCreated
- inventoryReservationUpdated
- inventoryReservationDeleted
- inventoryReservationSettled
- locationCreated
- locationDeleted
- locationUpdated
- orderNotPickedUp
- productCreated
- productUpdated
- salesOrderAdded
- salesOrderFulfillmentAdded
- salesOrderStatusUpdated
- salesOrderUpdated
- returnOrderAdded
- returnOrderStatusUpdated
- schedulePickTimeReached
- schedulePickupReminderTimeReached
About this Document
Section titled “About this Document”This document contains the payload of the events supported by the Webhook Service. To see the complete request body structure see the HTTP Call.
Events
Section titled “Events”cartReminderTimeReached
Section titled “cartReminderTimeReached”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"}customerDeleted
Section titled “customerDeleted”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"}fulfillmentOrderAdded
Section titled “fulfillmentOrderAdded”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}fulfillmentOrderStatusUpdated
Section titled “fulfillmentOrderStatusUpdated”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"}fulfillmentOrderUpdated
Section titled “fulfillmentOrderUpdated”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"}importCompleted
Section titled “importCompleted”Triggers when an import reached its endstate (either succeeded or failed).
{ "ref": "12345678-1234-5678-1234-567812345678", "status": "succeeded|failed"}inventoryReservationCreated
Section titled “inventoryReservationCreated”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"}inventoryReservationUpdated
Section titled “inventoryReservationUpdated”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",}inventoryReservationDeleted
Section titled “inventoryReservationDeleted”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"}inventoryReservationSettled
Section titled “inventoryReservationSettled”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"}locationCreated
Section titled “locationCreated”Triggers after a location got created.
{ "locationCode": "ABC", "user": "6"}locationDeleted
Section titled “locationDeleted”Triggers after a location got deleted.
{ "locationCode": "ABC", "user": "6"}locationUpdated
Section titled “locationUpdated”Triggers after a location got updated.
{ "locationCode": "ABC", "newProperties": { "status": "inactive" }, "oldProperties": { "status": "active" }, "user": "6"}orderNotPickedUp
Section titled “orderNotPickedUp”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"}productCreated
Section titled “productCreated”Triggers after a product was created.
{ "catalogCode": "DefaultCatalog", "productCode": "t-shirt-grey", "user": "6"}productUpdated
Section titled “productUpdated”Triggers after a product got updated.
{ "catalogCode": "DefaultCatalog", "productCode": "t-shirt-grey", "user": "6"}salesOrderAdded
Section titled “salesOrderAdded”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}salesOrderFulfillmentAdded
Section titled “salesOrderFulfillmentAdded”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"}salesOrderStatusUpdated
Section titled “salesOrderStatusUpdated”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}salesOrderUpdated
Section titled “salesOrderUpdated”Triggers after a salesorder changed.
{ "salesOrderNumber": "0001", "oldProperties": { "notes": null }, "newProperties": { "notes": "The customer asked for a line item decrease." }, "user": "6" //userId}returnOrderAdded
Section titled “returnOrderAdded”Triggers after a return order was added.
{ "returnOrderNumber": "R0001", "salesOrderNumber": "0001", "customerId": "7b196c58-a689-49fe-b056-91dd902694d2", "user": "6", //userId "status": "new"}returnOrderStatusUpdated
Section titled “returnOrderStatusUpdated”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}schedulePickTimeReached
Section titled “schedulePickTimeReached”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"}schedulePickupReminderTimeReached
Section titled “schedulePickupReminderTimeReached”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"}
