Get Restaurants
curl --request GET \
--url https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get \
--header 'Access-Token: <api-key>'import requests
url = "https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get"
headers = {"Access-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Access-Token': '<api-key>'}};
fetch('https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get', 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/get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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/get"
req, _ := http.NewRequest("GET", 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.get("https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get")
.header("Access-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Access-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"data": [
{
"id": "<string>",
"name": "<string>"
}
]
}Restaurants
Get Restaurants
Retrieve all accessible restaurants/branches
GET
/
restaurants
/
get
Get Restaurants
curl --request GET \
--url https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get \
--header 'Access-Token: <api-key>'import requests
url = "https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get"
headers = {"Access-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Access-Token': '<api-key>'}};
fetch('https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get', 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/get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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/get"
req, _ := http.NewRequest("GET", 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.get("https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get")
.header("Access-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Access-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"data": [
{
"id": "<string>",
"name": "<string>"
}
]
}Overview
Retrieves all restaurants/branches accessible with your API key. A single API key can provide access to one or multiple restaurant locations.Headers
string
required
Your API access token
Response
boolean
true if successfularray
Examples
curl -X GET https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get \
-H 'Access-Token: your-access-token'
const response = await fetch(
'https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get',
{
headers: {
'Access-Token': 'your-access-token'
}
}
);
const data = await response.json();
import requests
response = requests.get(
'https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get',
headers={'Access-Token': 'your-access-token'}
)
data = response.json()
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Access-Token: your-access-token'
));
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
?>
Success Response (200)
{
"status": true,
"data": [
{
"id": "8f2b9ce2-04de-4712-842d-a39f64596fdf",
"name": "Akat Şube"
},
{
"id": "0ca1d2b1-a199-4960-8617-83a659d890c8",
"name": "Halaskargazi Şube"
}
]
}
Error Response (401)
{
"status": false,
"error": "yetkisiz erişim",
"message": "Invalid or expired access token"
}
Usage
1
Call on Startup
Fetch restaurant list when your POS application starts
2
Store Locally
Cache restaurant IDs and names in your local database
3
Use in Operations
Use restaurant IDs for status operations and filtering
Multi-Branch Access
- Single Branch
- Multiple Branches
If your API key is branch-specific:You can only manage this one location.
{
"data": [
{
"id": "8f2b9ce2-04de-4712-842d-a39f64596fdf",
"name": "Akat Şube"
}
]
}
If your API key is vendor-wide:You can manage all returned locations.
{
"data": [
{
"id": "8f2b9ce2-04de-4712-842d-a39f64596fdf",
"name": "Akat Şube"
},
{
"id": "0ca1d2b1-a199-4960-8617-83a659d890c8",
"name": "Halaskargazi Şube"
}
]
}
The number of restaurants returned depends on how your API key was configured by Dükkango.
Related Endpoints
Check Status
Get restaurant open/closed status
Open Restaurant
Set restaurant to open
Close Restaurant
Set restaurant to closed
Get Menu
Fetch menu items for restaurants