Documentation
Feedback
Guides
App Development

App Development
App Development
Handling events

Receiving Order Notifications

Learn how to receive real-time order status notifications

This guide explains how to receive real-time order status notifications from VTEX using the vtex.orders-broadcast app and a sample listener application. By following these steps, you’ll be able to set up a workspace, configure the broadcast app, and start receiving notifications when orders are placed in your store.

Before you begin

Instructions

  1. Choose a workspace on your account that you'll work on. Let's suppose we're using the workspace oms.
  2. Clone the Orders Feed Example repository to your local environment:

    _10
    git clone https://github.com/vtex-apps/orders-feed-example

  3. In your browser, open the Orders Broadcast configuration page: https://{accountName}.myvtex.com/admin/apps/vtex.orders-broadcast/setup
  4. Change the Target Workspace variable to the name of the workspace you have created previously.
  5. Now you can link the vtex.orders-feed-example app in your desired workspace and receive order status updates.
  6. Now, if you finish an order on the account's Store, you'll see the notifications pop up on the console. You can start your development by extracting the listener code from the cloned app and adding it to your application.

For more information about customizing the listener, check the example app's README

Example running on account cliqueretire and workspace lucis:

{"base64":"  ","img":{"width":2880,"height":1658,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":460244,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/how-to-receive-order-notifications-on-vtex-io-0.png"}}

Contributors
1
Photo of the contributor
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
Was this helpful?
Suggest edits (GitHub)
On this page