Sending orders
Use the Stream API to collect and send order data in real-time to Sitecore Personalize, including when an order is created. There are several order-related events you can send as a guest interacts with your site. For example, when a guest adds a product to their shopping cart, makes a purchase, or empties their shopping cart.
To capture data in JavaScript or TypeScript web applications, we recommend that you use the Cloud SDK or the Engage SDK. These SDKs use the Stream API behind the scenes and let you easily capture data in your web app. Use the Cloud SDK if you have a JSS Next.js or JSS Angular application connected to XM Cloud. Use the Engage SDK in other JavaScript applications.
To ensure that the order is created, you must send the required events, in the correct order, and model the event object based on one of the following integration options:
-
If your organization is using the Engage SDK to integrate, see sending orders for details on the events that are required to create an order. This is the preferred method for sending orders to Sitecore Personalize.
-
If your organization is not using the Engage SDK to integrate, see sending orders for details on the events that are required to create an order.