Skip to main content
GET
https://www.xn--dkkango-n2a.com/api/integrations
/
restaurants
/
status
/
get
/
{rest_id}
Get Restaurant Status
curl --request GET \
  --url https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/get/{rest_id} \
  --header 'Access-Token: <api-key>'
{
  "status": false,
  "error": "yetkisiz erişim"
}

Overview

Checks the current operational status of a specific restaurant/branch.

Path Parameters

rest_id
string
required
Restaurant/branch UUID from the /restaurants/get response

Headers

Access-Token
string
required
Your API access token

Response

status
boolean
true if successful
data
string
Current restaurant status: "Open" or "Closed"

Examples

curl -X GET https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/get/8f2b9ce2-04de-4712-842d-a39f64596fdf \
  -H 'Access-Token: your-access-token'

Response Examples

{
  "status": true,
  "data": "Open"
}
Restaurant is accepting orders.

Error Responses

{
  "status": false,
  "error": "yetkisiz erişim"
}

Use Cases

Show current restaurant status in your POS interface.
async function displayRestaurantStatus() {
  const status = await getRestaurantStatus(restaurantId);
  
  if (status === "Open") {
    showGreenIndicator();
    enableOrderAcceptance();
  } else {
    showRedIndicator();
    disableOrderAcceptance();
  }
}
Check status when POS application starts.
async function initializePOS() {
  const restaurants = await getRestaurants();
  
  for (const restaurant of restaurants) {
    const status = await getRestaurantStatus(restaurant.id);
    updateLocalStatus(restaurant.id, status);
  }
}
Poll status periodically to stay in sync.
// Check status every 5 minutes
setInterval(async () => {
  const status = await getRestaurantStatus(restaurantId);
  if (status !== currentStatus) {
    currentStatus = status;
    notifyStatusChange(status);
  }
}, 300000);
Status changes made via the API are immediately reflected in the Dükkango platform.