---
title: Order Event to Hub
slug: adobe-summit-2025/order-event-to-hub
createdAt: 2024-08-02T19:27:34.133Z
---

# Streaming to Hub vs Edge

In Use Case #1 we sent in an Event to the Edge.  There are some use cases where we may have a back end system that wants to stream in an event, but does not need to send it to the Edge.  This lab shows how to do that by streaming in an Order event to the Hub.



# Open Postman

Launch postman on your computer and navigate to the following API call:

1. **Postman Left Sidebar**  --> `Collections`
2. **Collection&#x20;**--> `Adobe Summit L614`
3. **Folder&#x20;**--> Profile Lab
4. **API Request** --> `Create Order Event`

![](https://api.archbee.com/api/optimize/DtSMrR5N5XP-AttwqYcDD/otn1Rm1xOBZcf7nwvIMcg_image.png)

# Modify API Request

To create the sample API request you need to fill in the following pieces in the body of the API request.

Start by gathering the following values:

## Find Account Streaming Endpoint

1. Navigate to **Sources&#x20;**&#x69;n the left rail and then click on **Accounts&#x20;**&#x69;n the top nav
2. Search for **dep: HTTP API \[raw]**, highlight the row and copy and save the value of the **Streaming Endpoint** somewhere you can reference later

![](https://api.archbee.com/api/optimize/n-ADAXZy_lxxLyKc0x1oi-VT-rvewysl8ABem1xFkox-20241025-024115.png "dep: HTTP API \[raw]")

****

## Find Dataflow ID

1. Find the record for **dep: Orders (stream)** click on the dataflows link
2. In the right rail copy and save the **Dataflow ID** values somewhere you can reference later

:::hint{type="info"}
Click in an empty space on the row.  DO NOT click on the blue links!
:::

![](https://api.archbee.com/api/optimize/DtSMrR5N5XP-AttwqYcDD/YZq5xpIpR2udKhtI8osBm_screenshot-2024-10-24-at-73808-pm.png "Web Dataflow and Dataset IDs")



## Create Final API Request

Copy the values you saved in the previous steps into the places highlight below. &#x20;

- **Red&#x20;**--> `Streaming Endpoint URL`
- **Green&#x20;**--> `Dataflow ID`

Your final API request should look like this when done

:::hint{type="info"}
DO NOT EXECUTE YET!
:::

![](https://api.archbee.com/api/optimize/DtSMrR5N5XP-AttwqYcDD/W0BXKhP2HZxF1f_Tguisg_final-order-api-request.png)



# Execute the API

1. Save your API call by clicking the **Save&#x20;**&#x62;utton
2. Execute your request by clicking the **Send&#x20;**&#x62;utton

A successful call should result in the following response...

![](https://api.archbee.com/api/optimize/DtSMrR5N5XP-AttwqYcDD/IkJ9XpJRVvnPsxIep6jWG_successful-web-event-send.png)



# Validate

1. Go over to your Profile and lookup your Profile to see that the event was ingested onto Profile.  It should appear in seconds. ([instructions](https://www.dep-labs.com/adobesummit/how-to-lookup-the-profile))
   1. Lookup the Profile using the email in the Order
      1. Merge Policy: Default
      2. Namespace: email
      3. Value: "&#x7B;&#x7B;SANDBOX\_NAME}}@dep.com"
         1. Don't forget to change the &#x7B;&#x7B;SANDBOX\_NAME}} to whatever your sandbox is.
2. Validate the Profile has qualified for the Audiences (it may take a few minutes). It should appear in seconds to minutes.
   1. Order Event Streaming (within 15 minutes)
3. Check your webhook to see if the Destination has notified the webhook of a Segment "realized".  It should appear in about 5 minutes.  This payload should only include the Order segment.



![](https://api.archbee.com/api/optimize/DtSMrR5N5XP-AttwqYcDD/hB4VHZ6cmuTQZSjR_FYqP_image.png)

