الطلبات
Orders
Track and fulfill customer orders directly within SkyLight Chat. Whether orders come from your AI agent, web chat, API, or Salla integration, they all appear in one unified order management system.
Purpose
The Orders module provides a lightweight order management layer so you can:
- Create orders — manually or via AI agent conversations.
- Track status — pending, confirmed, processing, shipped, delivered, cancelled.
- View line items — products, quantities, prices.
- Link to contacts — see customer purchase history.
- Integrate with e-commerce — sync orders from Salla or create via API.
- Automate notifications — send order confirmations and shipping updates via WhatsApp.
Who can access
| Role | Permissions |
|---|---|
| Owner | Full access — create, edit, cancel, delete orders |
| Admin | Full access |
| Member | View orders; create and update status; cannot delete |
| Viewer | Read-only |
Prerequisites
- Products defined (optional) — create products in Settings or via API for structured line items.
- Contacts available — orders link to contacts for history tracking.
- WhatsApp connected (for notifications) — enables order confirmation and shipping alerts.
- Salla connected (optional) — syncs e-commerce orders automatically.
Full walkthrough
Creating an order manually
- Go to Orders.
- Click + Create Order.
- Select or create contact:
- Search existing contacts by name or phone.
- Or enter new customer details (name, phone, email).
- Add line items:
- Search products by name or SKU.
- Or enter custom items with name, price, and quantity.
- Fill in:
- Shipping Address (optional).
- Notes — internal notes for your team.
- Click Create Order.
The order is created with Pending status.
Viewing order details
Click any order row to open the detail view:
- Customer info — linked contact with purchase history shortcut.
- Line items — expandable product table.
- Order totals — subtotal, tax (if configured), grand total.
- Shipping — delivery address and customer notes.
- Activity — timeline of status changes and internal notes.
Updating order status
- Open the order.
- Click Update Status.
- Select the new status from the dropdown.
- Add a note (optional).
- Click Save.
Status changes are logged in the activity timeline.
For orders synced from Salla, confirming or cancelling in SkyLight also updates the order in Salla via API. See Salla Integration.
Valid status transitions
| From | Can change to |
|---|---|
| Pending | Confirmed, Cancelled |
| Confirmed | Processing, Cancelled |
| Processing | Shipped, Cancelled |
| Shipped | Delivered |
| Delivered | — (final) |
| Cancelled | — (final) |
Cancelling an order
- Open the order.
- Click Cancel Order.
- Enter a cancellation reason.
- Confirm.
Cancelled orders cannot be reactivated. Stock is automatically restored (if inventory tracking is enabled).
Editing order items
Only Pending orders can have items modified:
- Open a pending order.
- Click Edit Items.
- Add, remove, or adjust quantities.
- Click Save Changes.
Once an order is confirmed, items are locked.
Deleting an order
Only Pending or Cancelled orders can be deleted:
- Open the order.
- Click Delete.
- Confirm.
Deleted orders are permanently removed.
Field glossary
| Field | Description |
|---|---|
| Order ID | Unique internal identifier |
| Contact ID | Linked customer contact |
| Customer Name | Name of the customer |
| Customer Phone | E.164 phone number |
| Customer Email | Email address |
| Status | Current order status |
| Subtotal | Sum of line items before tax/discounts |
| Total | Final order amount |
| Currency | Currency code (e.g., SAR, USD) |
| Shipping Address | Delivery address |
| Notes | Internal order notes |
| Created By | Source: manual, ai_agent, api, web_chat, salla |
| Items | Array of line items |
| Created At | Order creation timestamp |
| Updated At | Last modification timestamp |
Line item fields
| Field | Description |
|---|---|
| Product ID | Linked product (if from catalog) |
| Product Name | Display name |
| SKU | Stock keeping unit |
| Quantity | Number of units |
| Unit Price | Price per unit |
| Total Price | Quantity × Unit Price |
Statuses and badges
| Status | Badge color | Meaning |
|---|---|---|
| Pending | Yellow | Awaiting confirmation |
| Confirmed | Blue | Order accepted, preparing |
| Processing | Purple | Order being fulfilled |
| Shipped | Orange | Dispatched for delivery |
| Delivered | Green | Successfully delivered |
| Cancelled | Red | Order cancelled |
Nested screens
Order detail view
| Section | Contents |
|---|---|
| Header | Order number, status badge, source badge, dates |
| Customer | Name, phone, email, link to contact profile |
| Items | Product table (name, SKU, qty, price, total) |
| Summary | Subtotal, tax, shipping, grand total |
| Shipping | Address, delivery notes |
| Activity | Timeline of events with timestamps |
| Actions | Update Status, Cancel, Delete buttons |
Create order modal
| Step | Fields |
|---|---|
| Customer | Search/select contact or enter new details |
| Items | Product search, custom item entry, quantity |
| Shipping | Address textarea |
| Notes | Internal notes textarea |
| Review | Summary before creation |
Connections to other areas
| Feature | How it connects |
|---|---|
| Contacts | Orders link to contact records; view purchase history |
| Bookings | Service orders can be linked to bookings |
| Salla | Orders sync in; status confirm/cancel from SkyLight is pushed back to Salla |
| AI Agents | Agents can create orders during conversations |
| Web Chat | Visitors can place orders through chat |
| Campaigns | Target customers based on order history |
| Webhooks | order.created, order.updated, order.cancelled, order.delivered events |
| Orders API | Create and manage orders programmatically |
Limits and plan behavior
| Plan | Orders/month | Products |
|---|---|---|
| Starter | 50 | 20 |
| Pro | 500 | 100 |
| Business | 2,000 | 500 |
| Enterprise | Unlimited | Unlimited |
Orders created via any source (manual, AI, API, Salla) count toward monthly limits.
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| Cannot change status | Invalid transition | Review allowed transitions; follow the correct sequence |
| Order stuck in Pending | No action taken | Confirm or cancel the order |
| Duplicate order created | API or AI created twice | Enable duplicate prevention; check for identical orders within 5 minutes |
| Contact not linked | Customer phone not in contacts | Create the contact first or let order creation auto-create |
| Items not editable | Order already confirmed | Only Pending orders allow item edits |
| Order not syncing from Salla | Integration disconnected | Reconnect Salla; click manual sync |
| WhatsApp notification not sent | Template not approved or channel disconnected | Verify template status; check WhatsApp connection |
Related articles
- Contacts — customer records linked to orders
- Salla Integration — e-commerce order sync
- Bookings — service appointments
- AI Agents — order creation through conversation
- Orders API — programmatic order management
