Flit
  1. Orders
Flit
  • Flit Client API
    • Pricing
      • Check Serviceability and Calculate Price
    • Orders
      • Create New Order
        POST
      • Cancel Order
        POST
      • Get Order Details
        GET
    • Schemas
      • Schemas
        • Order
        • Error
      • Response
        • UnauthorizedError
        • InternalServerError
  1. Orders

Get Order Details

GET
/orders/{orderId}
Retrieve detailed information about a specific order including rider location if a rider is assigned to the order.

Request

Authorization
Basic Auth
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
or
Path Params

Responses

🟢200OK
application/json
Order details retrieved successfully
Body

🟠401Unauthorized
🟠404Not Found
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/orders/' \
--header 'Authorization: Basic <encoded-value>'
Response Response Example
200 - Example 1
{
    "success": true,
    "message": "Order details retrieved successfully",
    "data": {
        "order": {
            "_id": "507f1f77bcf86cd799439011",
            "orderId": "FLT-2024-00001",
            "status": "pending",
            "pickupLocation": {
                "address": "123 Koramangala, Bangalore",
                "name": "John Doe",
                "phone": "+919876543210",
                "latitude": 12.9352,
                "longitude": 77.6245
            },
            "dropLocation": {
                "address": "456 Indiranagar, Bangalore",
                "name": "Jane Smith",
                "phone": "+919876543211",
                "latitude": 12.9716,
                "longitude": 77.5946
            },
            "itemDescription": "food items",
            "grandTotal": 85,
            "paymentMethod": "cash",
            "createdAt": "2024-01-15T10:30:00.000Z",
            "deliveryPhoto": "https://s3.amazonaws.com/flit-bucket/delivery-photos/507f1f77bcf86cd799439011.jpg",
            "riderId": {
                "_id": "507f1f77bcf86cd799439012",
                "personalDetails": {
                    "name": "Ramesh Kumar"
                },
                "phone": "+919876543212",
                "location": {
                    "latitude": 12.94,
                    "longitude": 77.61,
                    "timestamp": "2024-01-15T10:45:00.000Z"
                },
                "isOnline": true,
                "vehicleDetails": {
                    "type": "bike",
                    "number": "KA01AB1234"
                }
            },
            "estimatedTime": {
                "value": 25,
                "unit": "minutes"
            }
        }
    }
}
Modified at 2025-10-07 17:46:01
Previous
Cancel Order
Next
Order
Built with