Open Restaurant
curl --request PUT \
--url https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{rest_id} \
--header 'Access-Token: <api-key>'import requests
url = "https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{rest_id}"
headers = {"Access-Token": "<api-key>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {'Access-Token': '<api-key>'}};
fetch('https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{rest_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{rest_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Access-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{rest_id}"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Access-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{rest_id}")
.header("Access-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{rest_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Access-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": false,
"error": "yetkisiz erişim"
}
{
"status": false,
"error": "URL hatalı"
}
{
"status": false,
"error": "restoran bulunamadı"
}
Restaurants
Open Restaurant
Set restaurant status to open
PUT
/
restaurants
/
status
/
open
/
{rest_id}
Open Restaurant
curl --request PUT \
--url https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{rest_id} \
--header 'Access-Token: <api-key>'import requests
url = "https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{rest_id}"
headers = {"Access-Token": "<api-key>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {'Access-Token': '<api-key>'}};
fetch('https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{rest_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{rest_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Access-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{rest_id}"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Access-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{rest_id}")
.header("Access-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{rest_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Access-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": false,
"error": "yetkisiz erişim"
}
{
"status": false,
"error": "URL hatalı"
}
{
"status": false,
"error": "restoran bulunamadı"
}
Overview
Sets a restaurant status to open, allowing it to receive new orders from customers.Path Parameters
Restaurant/branch UUID
Headers
Your API access token
Response
true if successful"OK" on successExamples
curl -X PUT https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/8f2b9ce2-04de-4712-842d-a39f64596fdf \
-H 'Access-Token: your-access-token'
const restaurantId = '8f2b9ce2-04de-4712-842d-a39f64596fdf';
const response = await fetch(
`https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/${restaurantId}`,
{
method: 'PUT',
headers: {
'Access-Token': 'your-access-token'
}
}
);
const data = await response.json();
// Restaurant is now open
import requests
restaurant_id = '8f2b9ce2-04de-4712-842d-a39f64596fdf'
response = requests.put(
f'https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{restaurant_id}',
headers={'Access-Token': 'your-access-token'}
)
data = response.json()
# Restaurant is now open
<?php
$restaurantId = '8f2b9ce2-04de-4712-842d-a39f64596fdf';
$url = "https://www.xn--dkkango-n2a.com/api/integrations/restaurants/status/open/{$restaurantId}";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Access-Token: your-access-token'
));
$response = curl_exec($ch);
curl_close($ch);
// Restaurant is now open
?>
Success Response (200)
{
"status": true,
"data": "OK"
}
Error Responses
{
"status": false,
"error": "yetkisiz erişim"
}
{
"status": false,
"error": "URL hatalı"
}
{
"status": false,
"error": "restoran bulunamadı"
}
When to Use
Daily Opening
Daily Opening
Call this endpoint when restaurant opens for business.
async function openRestaurant() {
// Open restaurant
await setRestaurantStatus(restaurantId, 'open');
// Update UI
showOpenStatus();
// Enable order acceptance
enableOrderProcessing();
// Log event
console.log('Restaurant opened at', new Date());
}
After Break Period
After Break Period
Reopen after lunch break or temporary closure.
async function endBreak() {
await setRestaurantStatus(restaurantId, 'open');
notifyStaff('Restaurant is now accepting orders');
}
Manual Override
Manual Override
Staff can manually open restaurant from POS.
async function handleOpenButton() {
if (confirm('Open restaurant for orders?')) {
await setRestaurantStatus(restaurantId, 'open');
showSuccessMessage('Restaurant is now open');
}
}
Scheduled Opening
Scheduled Opening
Automatically open at scheduled time.
// Open at 11:00 AM daily
scheduleDaily('11:00', async () => {
await setRestaurantStatus(restaurantId, 'open');
});
What Happens
1
Status Updated
Restaurant status changes to “Open” in Dükkango platform
2
Visible to Customers
Restaurant becomes visible and accessible in customer apps
3
Orders Flow
New orders can be placed by customers and will appear in
/orders/get-currentMake sure your kitchen and staff are ready before opening the restaurant!
Best Practices
Verify before opening:
- Kitchen is staffed and ready
- Ingredients are stocked
- POS system is online
- Staff are briefed on specials/changes
Related Endpoints
Close Restaurant
Set restaurant to closed
Check Status
Get current status
Get Orders
Start receiving orders
⌘I