Skip to main content
To determine the status of an order, you should call the /client/orders/{orderId} endpoint.
{
  "success": true,
  "message": "Record fetched successfully",
  "data": {
    "id": "9e1c808a-a5f9-4033-90c6-092ec04fb4a1",
    "order_number": "REM-59B22-2025",
    "status": "in_progress",
    ...
    "sub_orders": [
      {
        "id": "9e1c808a-b228-43e0-9e9d-e6b4dc088f7e",
        "employee_id": "9e199aff-9ac7-47f9-8e43-91d90a5ee4df",
        "status": "order_placed"
        ...
      },
      {
        "id": "9e1c808a-b228-43e0-9e9d-e6b4dc088f7e",
        "employee_id": "9e199aff-9ac7-47f9-8e43-91d90a5ee4df",
        "status": "order_delivered"
        ...
      }
    ]
  }
}

Onboarding Orders (Device Assignment)

An order’s completion status depends on its sub-orders (assignments). Each order consists of one or more sub-orders (tracked in the sub_orders object), each with their own status progression.

Order-Level Statuses

  • in_progress – The order is still being processed (default state).
  • completed – All sub-orders have reached fulfillment.

Sub-Order Status Flow

  • order_placed – Initial request received
  • order_confirmed – order confirmed by Rayda for processing.
  • product_setup – Item prepared and setup
  • product_packaged – Securely packed for shipping
  • order_in_transit – Shipped to destination.
  • order_delivered – Final fulfillment (completes the sub-order).

Key Logic

The parent order automatically transitions to completed only when ALL of its sub-orders reach the order_delivered status. Until then, it remains in_progress.