Consultar catálogo completo
curl --request GET \
--url https://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog \
--header 'Authorization: Bearer <token>'import requests
url = "https://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog', 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://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"categories": [
{
"id": 658,
"name": "Pizzas salgadas",
"description": "",
"index": null,
"status": "ACTIVE",
"image": {
"image_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/category/image/658/image.jpg",
"thumbnail_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/category/image/658/thumb_image.jpg"
},
"allowed_times": [],
"items": [
{
"id": 2988,
"name": "Margherita",
"description": "A clássica pizza italiana com ingredientes frescos e sabores simples.",
"image": {
"image_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/item/image/2988/image.jpg",
"thumbnail_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/item/image/2988/thumb_image.jpg"
},
"highlighted": false,
"external_code": "",
"price": 30,
"cost_price": 12.5,
"stock": 0,
"active_stock_control": false,
"index": null,
"available_for": [
"delivery",
"service_desk",
"table",
"view_only"
],
"hide_observation_field": false,
"adults_only": false,
"promotional_price_active": false,
"promotional_price": null,
"promotional_price_schedules": null,
"status": "ACTIVE",
"unit_type": "UN",
"badge": null,
"kind": "regular_item",
"allowed_times": [],
"extra_images": [],
"option_groups": [
{
"id": 1039,
"name": "Tamanho",
"status": "ACTIVE",
"choice_type": "SINGLE",
"price_calculation_type": "SUM",
"minimum_quantity": 1,
"maximum_quantity": 1,
"index": 1,
"options": [
{
"id": 2883,
"name": "Pequena",
"description": null,
"external_code": null,
"status": "ACTIVE",
"image": null,
"cost_price": 0,
"active_stock_control": false,
"stock": 0,
"index": 1,
"max_quantity": null,
"price": 10
},
{
"id": 2884,
"name": "Média",
"description": null,
"external_code": null,
"status": "ACTIVE",
"image": null,
"cost_price": 0,
"active_stock_control": false,
"stock": 0,
"index": 2,
"max_quantity": null,
"price": 15
},
{
"id": 2885,
"name": "Grande",
"description": null,
"external_code": null,
"status": "ACTIVE",
"image": null,
"cost_price": 0,
"active_stock_control": false,
"stock": 0,
"index": 3,
"max_quantity": null,
"price": 20
}
]
}
],
"combo_steps": []
},
{
"id": 3010,
"name": "Combo da promoção!",
"description": "",
"image": {
"image_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/item/image/3010/image.jpg",
"thumbnail_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/item/image/3010/thumb_image.jpg"
},
"highlighted": false,
"external_code": "",
"price": 16,
"cost_price": 0,
"stock": 0,
"active_stock_control": false,
"index": null,
"available_for": [
"delivery",
"service_desk"
],
"hide_observation_field": false,
"adults_only": false,
"promotional_price_active": false,
"promotional_price": null,
"promotional_price_schedules": null,
"status": "ACTIVE",
"unit_type": "UN",
"badge": null,
"kind": "combo",
"allowed_times": [
{
"weekday": "wednesday",
"start_at": "17:00",
"end_at": "23:59"
},
{
"weekday": "tuesday",
"start_at": "17:00",
"end_at": "23:59"
},
{
"weekday": "monday",
"start_at": "00:00",
"end_at": "23:59"
}
],
"extra_images": [],
"option_groups": [],
"combo_steps": [
{
"id": 123,
"name": "Bebida",
"price": 5,
"remove_add_on_prices": false,
"index": 1,
"combo_step_items": [
{
"item_id": 3006,
"index": 1,
"additional_price": 3
},
{
"item_id": 3005,
"index": 1,
"additional_price": 0
}
]
},
{
"id": 124,
"name": "Pizza",
"price": 14,
"remove_add_on_prices": false,
"index": 0,
"combo_step_items": [
{
"item_id": 2991,
"index": 1,
"additional_price": 0
},
{
"item_id": 2992,
"index": 1,
"additional_price": 0
}
]
}
]
}
]
},
{
"id": 661,
"name": "Bebidas",
"description": "",
"index": null,
"status": "ACTIVE",
"image": null,
"allowed_times": [],
"items": [
{
"id": 3007,
"name": "Cerveja Lata",
"description": "",
"image": {
"image_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/item/image/3007/image.jpg",
"thumbnail_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/item/image/3007/thumb_image.jpg"
},
"highlighted": false,
"external_code": "",
"price": 8,
"cost_price": 0,
"stock": 0,
"active_stock_control": false,
"index": null,
"available_for": [
"delivery",
"service_desk",
"table",
"view_only"
],
"hide_observation_field": false,
"adults_only": true,
"promotional_price_active": false,
"promotional_price": null,
"promotional_price_schedules": null,
"status": "ACTIVE",
"unit_type": "UN",
"badge": null,
"kind": "regular_item",
"allowed_times": [],
"extra_images": [],
"option_groups": [
{
"id": 1044,
"name": "Escolha sua cerveja",
"status": "ACTIVE",
"choice_type": "SINGLE",
"price_calculation_type": "SUM",
"minimum_quantity": 1,
"maximum_quantity": 1,
"index": 1,
"options": [
{
"id": 2898,
"name": "Heineken",
"description": null,
"external_code": null,
"status": "ACTIVE",
"image": null,
"cost_price": 0,
"active_stock_control": false,
"stock": 0,
"index": 1,
"max_quantity": null,
"price": 0
}
]
}
],
"combo_steps": []
}
]
}
]
}{
"code": 4010,
"message": "Token inválido."
}This response has no body data.Catálogo completo
Consultar catálogo completo
Retorna o catálogo completo do estabelecimento incluindo categorias, itens e complementos.
Rate limit: 5 requisições por minuto.
GET
/
api
/
partner
/
v1
/
catalog
Consultar catálogo completo
curl --request GET \
--url https://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog \
--header 'Authorization: Bearer <token>'import requests
url = "https://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog', 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://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"categories": [
{
"id": 658,
"name": "Pizzas salgadas",
"description": "",
"index": null,
"status": "ACTIVE",
"image": {
"image_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/category/image/658/image.jpg",
"thumbnail_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/category/image/658/thumb_image.jpg"
},
"allowed_times": [],
"items": [
{
"id": 2988,
"name": "Margherita",
"description": "A clássica pizza italiana com ingredientes frescos e sabores simples.",
"image": {
"image_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/item/image/2988/image.jpg",
"thumbnail_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/item/image/2988/thumb_image.jpg"
},
"highlighted": false,
"external_code": "",
"price": 30,
"cost_price": 12.5,
"stock": 0,
"active_stock_control": false,
"index": null,
"available_for": [
"delivery",
"service_desk",
"table",
"view_only"
],
"hide_observation_field": false,
"adults_only": false,
"promotional_price_active": false,
"promotional_price": null,
"promotional_price_schedules": null,
"status": "ACTIVE",
"unit_type": "UN",
"badge": null,
"kind": "regular_item",
"allowed_times": [],
"extra_images": [],
"option_groups": [
{
"id": 1039,
"name": "Tamanho",
"status": "ACTIVE",
"choice_type": "SINGLE",
"price_calculation_type": "SUM",
"minimum_quantity": 1,
"maximum_quantity": 1,
"index": 1,
"options": [
{
"id": 2883,
"name": "Pequena",
"description": null,
"external_code": null,
"status": "ACTIVE",
"image": null,
"cost_price": 0,
"active_stock_control": false,
"stock": 0,
"index": 1,
"max_quantity": null,
"price": 10
},
{
"id": 2884,
"name": "Média",
"description": null,
"external_code": null,
"status": "ACTIVE",
"image": null,
"cost_price": 0,
"active_stock_control": false,
"stock": 0,
"index": 2,
"max_quantity": null,
"price": 15
},
{
"id": 2885,
"name": "Grande",
"description": null,
"external_code": null,
"status": "ACTIVE",
"image": null,
"cost_price": 0,
"active_stock_control": false,
"stock": 0,
"index": 3,
"max_quantity": null,
"price": 20
}
]
}
],
"combo_steps": []
},
{
"id": 3010,
"name": "Combo da promoção!",
"description": "",
"image": {
"image_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/item/image/3010/image.jpg",
"thumbnail_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/item/image/3010/thumb_image.jpg"
},
"highlighted": false,
"external_code": "",
"price": 16,
"cost_price": 0,
"stock": 0,
"active_stock_control": false,
"index": null,
"available_for": [
"delivery",
"service_desk"
],
"hide_observation_field": false,
"adults_only": false,
"promotional_price_active": false,
"promotional_price": null,
"promotional_price_schedules": null,
"status": "ACTIVE",
"unit_type": "UN",
"badge": null,
"kind": "combo",
"allowed_times": [
{
"weekday": "wednesday",
"start_at": "17:00",
"end_at": "23:59"
},
{
"weekday": "tuesday",
"start_at": "17:00",
"end_at": "23:59"
},
{
"weekday": "monday",
"start_at": "00:00",
"end_at": "23:59"
}
],
"extra_images": [],
"option_groups": [],
"combo_steps": [
{
"id": 123,
"name": "Bebida",
"price": 5,
"remove_add_on_prices": false,
"index": 1,
"combo_step_items": [
{
"item_id": 3006,
"index": 1,
"additional_price": 3
},
{
"item_id": 3005,
"index": 1,
"additional_price": 0
}
]
},
{
"id": 124,
"name": "Pizza",
"price": 14,
"remove_add_on_prices": false,
"index": 0,
"combo_step_items": [
{
"item_id": 2991,
"index": 1,
"additional_price": 0
},
{
"item_id": 2992,
"index": 1,
"additional_price": 0
}
]
}
]
}
]
},
{
"id": 661,
"name": "Bebidas",
"description": "",
"index": null,
"status": "ACTIVE",
"image": null,
"allowed_times": [],
"items": [
{
"id": 3007,
"name": "Cerveja Lata",
"description": "",
"image": {
"image_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/item/image/3007/image.jpg",
"thumbnail_url": "https://storage.googleapis.com/dev-cardapio-web/uploads/item/image/3007/thumb_image.jpg"
},
"highlighted": false,
"external_code": "",
"price": 8,
"cost_price": 0,
"stock": 0,
"active_stock_control": false,
"index": null,
"available_for": [
"delivery",
"service_desk",
"table",
"view_only"
],
"hide_observation_field": false,
"adults_only": true,
"promotional_price_active": false,
"promotional_price": null,
"promotional_price_schedules": null,
"status": "ACTIVE",
"unit_type": "UN",
"badge": null,
"kind": "regular_item",
"allowed_times": [],
"extra_images": [],
"option_groups": [
{
"id": 1044,
"name": "Escolha sua cerveja",
"status": "ACTIVE",
"choice_type": "SINGLE",
"price_calculation_type": "SUM",
"minimum_quantity": 1,
"maximum_quantity": 1,
"index": 1,
"options": [
{
"id": 2898,
"name": "Heineken",
"description": null,
"external_code": null,
"status": "ACTIVE",
"image": null,
"cost_price": 0,
"active_stock_control": false,
"stock": 0,
"index": 1,
"max_quantity": null,
"price": 0
}
]
}
],
"combo_steps": []
}
]
}
]
}{
"code": 4010,
"message": "Token inválido."
}This response has no body data.Autorizações
bearerAuthpartnerKey & apiKey
Esta página foi útil?
