Order Event to Hub
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:
- Postman Left Sidebar --> Collections
- Collection --> Adobe Summit L614
- Folder --> Profile Lab
- API Request --> Create Order Event

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
- Navigate to Sources in the left rail and then click on Accounts in the top nav
- Search for dep: HTTP API [raw], highlight the row and copy and save the value of the Streaming Endpoint somewhere you can reference later
![dep: HTTP API [raw] dep: HTTP API [raw]](https://cdn.images.archbee.com/n-ADAXZy_lxxLyKc0x1oi-VT-rvewysl8ABem1xFkox-20241025-024115.png?format=webp)
Find Dataflow ID
- Find the record for dep: Orders (stream) click on the dataflows link
- In the right rail copy and save the Dataflow ID values somewhere you can reference later
Click in an empty space on the row. DO NOT click on the blue links!

Create Final API Request
Copy the values you saved in the previous steps into the places highlight below.
- Red --> Streaming Endpoint URL
- Green --> Dataflow ID
Your final API request should look like this when done
DO NOT EXECUTE YET!

Execute the API
- Save your API call by clicking the Save button
- Execute your request by clicking the Send button
A successful call should result in the following response...

Validate
- Go over to your Profile and lookup your Profile to see that the event was ingested onto Profile. It should appear in seconds. (instructions)
- Lookup the Profile using the email in the Order
- Merge Policy: Default
- Namespace: email
- Value: "{{SANDBOX_NAME}}@dep.com"
- Don't forget to change the {{SANDBOX_NAME}} to whatever your sandbox is.
- Validate the Profile has qualified for the Audiences (it may take a few minutes). It should appear in seconds to minutes.
- Order Event Streaming (within 15 minutes)
- 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.
