Endpoint
Retrieve detailed information about a specific store, including owner contact information.
Authentication
No authentication required. This is a public endpoint.
Path parameters
The unique identifier of the store (MongoDB ObjectId)
Response
Indicates if the request was successful
Error message (only present when success is false)
Contains the response data (only present when success is true) Store object with detailed information Unique identifier for the store
MongoDB ObjectId (same as id)
Store owner ID (camelCase)
Whether the store is active
Active status (camelCase)
Store operating hours configuration
Operating hours (camelCase)
Store image URL (camelCase)
Phone number of the store owner
ISO 8601 timestamp of creation
Creation timestamp (camelCase)
ISO 8601 timestamp of last update
Last update timestamp (camelCase)
Example request
curl https://api.campusbite.com/stores/507f1f77bcf86cd799439011
Example response
Success response
{
"success" : true ,
"data" : {
"store" : {
"id" : "507f1f77bcf86cd799439011" ,
"_id" : "507f1f77bcf86cd799439011" ,
"name" : "Campus Cafe" ,
"description" : "Your favorite campus coffee shop" ,
"upi_id" : "campuscafe@paytm" ,
"owner_id" : "507f1f77bcf86cd799439012" ,
"ownerId" : "507f1f77bcf86cd799439012" ,
"is_active" : true ,
"isActive" : true ,
"operating_hours" : {
"monday" : { "open" : "08:00" , "close" : "18:00" },
"tuesday" : { "open" : "08:00" , "close" : "18:00" },
"wednesday" : { "open" : "08:00" , "close" : "18:00" },
"thursday" : { "open" : "08:00" , "close" : "18:00" },
"friday" : { "open" : "08:00" , "close" : "18:00" }
},
"operatingHours" : {
"monday" : { "open" : "08:00" , "close" : "18:00" },
"tuesday" : { "open" : "08:00" , "close" : "18:00" },
"wednesday" : { "open" : "08:00" , "close" : "18:00" },
"thursday" : { "open" : "08:00" , "close" : "18:00" },
"friday" : { "open" : "08:00" , "close" : "18:00" }
},
"image_url" : "/uploads/stores/campus-cafe.jpg" ,
"imageUrl" : "/uploads/stores/campus-cafe.jpg" ,
"qr_code_url" : "/uploads/qr-codes/campus-cafe-qr.png" ,
"qrCodeUrl" : "/uploads/qr-codes/campus-cafe-qr.png" ,
"owner_name" : "John Doe" ,
"owner_email" : "[email protected] " ,
"owner_phone" : "+1234567890" ,
"created_at" : "2024-01-15T10:30:00.000Z" ,
"createdAt" : "2024-01-15T10:30:00.000Z" ,
"updated_at" : "2024-01-20T14:45:00.000Z" ,
"updatedAt" : "2024-01-20T14:45:00.000Z"
}
}
}
Error response (store not found)
{
"success" : false ,
"message" : "Store not found."
}
Unlike the list stores endpoint, this endpoint returns store information regardless of the is_active status. The response includes additional owner contact details (email and phone number).