GET
/orders/{id}
curl \
--request GET 'https://referspecs-backend.onrender.com/api/v1/orders/{id}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"id": "string",
"userId": "string",
"status": "New",
"createdAt": "2025-05-04T09:42:00Z",
"stripePaymentIntentId": "string",
"items": [
{
"id": "string",
"orderId": "string",
"productId": "string",
"quantity": 42,
"price": 42.0
}
]
}
Response examples (401)
{
"message": "Order not found"
}
Response examples (404)
{
"message": "Order not found"
}
Response examples (500)
{
"message": "Order not found"
}