Orders Widget — Embed an Orders Panel in Your Store
Overview
The Orders Widget is a drop-in <script> tag that renders a full orders management
panel directly inside your store's admin area. Your team can view orders, see customer details, and update
statuses — all without leaving your store's interface.
Plan requirement: The Orders Widget requires the Business plan ($10/mo), same as the Store API.
Quick Start
- Go to Dashboard → Settings → Integrations
- If you don't have an API key yet, click Generate API Key
- Scroll down to Embeddable Orders Widget
- Copy the embed code
- Paste it into your store admin's HTML page
Embed Code
<script
src="https://botaura.app/orders-widget.js"
data-business-id="YOUR_BUSINESS_ID"
data-api-key="YOUR_API_KEY"
data-height="700"
></script>
That's it! The widget will appear inline wherever you place the script tag. It renders as an iframe, so it won't interfere with your existing styles.
How It Works
- The
orders-widget.jsscript loads on your page - It exchanges your API key for a short-lived JWT token (1 hour)
- An inline iframe renders the orders panel using that token
- The token auto-refreshes before it expires — no interruption
Security note: Your API key is used only once during the initial token exchange. After that, the iframe uses the JWT token for all API calls. The API key is never visible in the iframe's source code or network requests.
Configuration Options
| Attribute | Required | Default | Description |
|---|---|---|---|
data-business-id |
Yes | — | Your Botaura business ID (auto-filled in the dashboard embed code) |
data-api-key |
Yes | — | Your Store API key (same key used for order ingestion) |
data-height |
No | 600 | Height of the widget in pixels |
data-container |
No | — | ID of an existing HTML element to render the widget inside. If omitted, the widget renders right after the script tag. |
Example with Container
<div id="orders-panel"></div>
<script
src="https://botaura.app/orders-widget.js"
data-business-id="YOUR_BUSINESS_ID"
data-api-key="YOUR_API_KEY"
data-height="800"
data-container="orders-panel"
></script>
Features
Orders List
- View all orders with Order #, Customer, Items, Total, Source, Status, and Date
- Filter by status: All, Pending, Confirmed, Shipped, Delivered, Cancelled
- Automatic refresh every 30 seconds
Status Badges
- ● Pending — Order received, awaiting confirmation
- ● Confirmed — Customer confirmed, ready to ship
- ● Shipped — Order dispatched
- ● Delivered — Order complete
- ● Cancelled — Order cancelled
Source Badges
- WhatsApp — Order placed through WhatsApp conversation
- Website — Order ingested from your online store
Order Details
Click any order row to expand and see:
- Customer name and phone number
- Full item list with quantities and prices
- External order ID (if provided during ingestion)
- Order total
Status Updates
The widget shows only valid next actions for each order status. For example, a "Pending" order shows Confirm and Cancel buttons, while a "Confirmed" order shows Ship and Cancel.
When you update a status, the customer is automatically notified via WhatsApp.
Domain Whitelist
The widget respects your domain whitelist from Dashboard → Embed → Allowed Domains. If the page hosting the widget is not on a whitelisted domain, the token exchange will fail with a clear error message.
Make sure to add your store admin's domain (e.g. admin.your-store.com) to the allowed domains list.
Troubleshooting
"Domain not authorized"
Add your domain to Dashboard → Embed → Allowed Domains.
"Session expired. Please reload the page."
The JWT token couldn't be refreshed. This usually means the API key was revoked. Generate a new key and update your embed code.
"Token request failed (403)"
Your plan doesn't support the Store API. Upgrade to the Business plan from Dashboard → Pricing.
Widget not appearing
- Check that
data-business-idanddata-api-keyare correct - Open the browser console (F12) and look for errors starting with "Botaura"
- Verify the API key hasn't been revoked
Need Help?
If you're having trouble with the widget, chat with Aura (our AI assistant) for instant help, or contact us at support@botaura.com.
Was this helpful?
Related Articles
Store API — Connect Your Online Store to Botaura
Learn how to connect your WooCommerce, Shopify, or custom store to Botaura using the Store API. Send order events, read orders, update statuses, and receive real-time webhooks.
~8 min read
Getting Started with Botaura
This guide walks you through setting up your Botaura chatbot from scratch. You'll go from zero to a working AI assistant on your website in under 10 minutes.
~4 min read
WhatsApp Bot — Connect Your Business Number
Connect your WhatsApp Business number to Botaura, and your customers can chat with your AI assistant directly on WhatsApp. The bot uses the same knowledge base as your web widget — same intelligence
~3 min read