entityID value, such as GET Shipment, GET Order, or GET Return.
Example 1: Return Event
Return event notifications are triggered whenever a return moves through steps in the return process: authorized, opened, cancelled, closed, rejected, or updated. This sample displays a Return Opened case which is indicated by the topic field.Example 2: Product Event
In this example, a product was created. Similarly to the return notification example above, you can identify that it was a creation event by the topic. If the product was updated instead, then the topic would beproduct.updated.
Example 3: Order Events
When an order is updated, a notification is triggered to mark the event.Example 4: Shipment Status Event
Shipment status notifications are triggered whenever a shipment moves into a new status. Note that individual notifications are sent for each shipment on an order, all with the sameorderID. All shipment events include additional metadata, such as the new and old statuses that a shipment moved between, in the extendedProperties object. The strings used in shipment status notifications are:
| Field | Description |
|---|---|
| orderId | The identifier of the order that the shipment belongs to. |
| oldStatus | The name of the status that the shipment was previously in. |
| newStatus | The name of the status that the shipment is transitioning to. |
| fulfillmentLocationCode | The identifier of the fulfillment location that the shipment is assigned to. |
oldStatus field.
Example 5: Shipment Workflow Event
Shipment workflow notifications are triggered whenever a shipment moves to another step in the fulfillment process. Note that individual notifications are sent for each shipment on an order, all with the sameorderID. All shipment events include additional metadata in the extendedProperties object. The metadata strings used in shipment workflow notifications are:
| Field | Description |
|---|---|
| orderId | The identifier of the order that the shipment belongs to. |
| oldState | The name of the status that the shipment was previously in. |
| newState | The name of the status that the shipment is transitioning to. |
Example 6: Shipment Item Event
When an item in a shipment is adjusted, a notification is triggered to mark the event. Even though this topic refers to an item, theentityID is still the shipment number. All shipment events include additional metadata in the extendedProperties object. The metadata strings used in shipment item notifications are:
| Field | Description |
|---|---|
| orderId | The identifier of the order that the shipment belongs to. |
| lineId | The identifier of the line item that was edited. |

