curl --request PUT \
--url https://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog/items/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Margherita Especial",
"price": 35,
"status": "ACTIVE"
}
'{
"id": 123,
"name": "<string>",
"description": "<string>",
"image": {
"image_url": "<string>",
"thumbnail_url": "<string>"
},
"highlighted": true,
"external_code": "<string>",
"price": 1,
"cost_price": 1,
"stock": 1,
"active_stock_control": true,
"index": 123,
"available_for": [
"delivery"
],
"hide_observation_field": true,
"adults_only": true,
"promotional_price_active": true,
"promotional_price": 1,
"promotional_price_schedules": [
{
"day": "sunday",
"start": "18:00",
"end": "23:00"
}
],
"status": "ACTIVE",
"unit_type": "UN",
"badge": "best_seller",
"kind": "regular_item",
"allowed_times": [
{
"weekday": "sunday",
"start_at": "18:00",
"end_at": "23:00"
}
],
"extra_images": [
{
"image_url": "<string>",
"thumbnail_url": "<string>"
}
],
"option_groups": [
{
"id": 123,
"name": "<string>",
"status": "ACTIVE",
"choice_type": "SINGLE",
"price_calculation_type": "SUM",
"minimum_quantity": 1,
"maximum_quantity": 2,
"index": 123,
"options": [
{
"id": 123,
"name": "<string>",
"description": "<string>",
"external_code": "<string>",
"status": "ACTIVE",
"image": {
"image_url": "<string>",
"thumbnail_url": "<string>"
},
"cost_price": 1,
"active_stock_control": true,
"stock": 123,
"index": 123,
"max_quantity": 123,
"price": 1,
"badge": "best_seller"
}
]
}
],
"combo_steps": [
{
"id": 123,
"name": "<string>",
"price": 1,
"remove_add_on_prices": true,
"index": 123,
"combo_step_items": [
{
"item_id": 123,
"index": 123,
"additional_price": 1
}
]
}
]
}Itens
Atualizar item
Atualiza os dados de um item existente. Apenas os campos enviados serão atualizados.
Para gerenciar os grupos de complementos associados ao item, envie o array option_groups:
- Para adicionar: envie
option_group_ide opcionalmenteindex. - Para atualizar o índice de um grupo existente: envie
option_group_ide o novoindex. - Para remover: envie
option_group_ide_destroy: true.
PUT
/
api
/
partner
/
v1
/
catalog
/
items
/
{id}
curl --request PUT \
--url https://integracao.sandbox.cardapioweb.com/api/partner/v1/catalog/items/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Margherita Especial",
"price": 35,
"status": "ACTIVE"
}
'{
"id": 123,
"name": "<string>",
"description": "<string>",
"image": {
"image_url": "<string>",
"thumbnail_url": "<string>"
},
"highlighted": true,
"external_code": "<string>",
"price": 1,
"cost_price": 1,
"stock": 1,
"active_stock_control": true,
"index": 123,
"available_for": [
"delivery"
],
"hide_observation_field": true,
"adults_only": true,
"promotional_price_active": true,
"promotional_price": 1,
"promotional_price_schedules": [
{
"day": "sunday",
"start": "18:00",
"end": "23:00"
}
],
"status": "ACTIVE",
"unit_type": "UN",
"badge": "best_seller",
"kind": "regular_item",
"allowed_times": [
{
"weekday": "sunday",
"start_at": "18:00",
"end_at": "23:00"
}
],
"extra_images": [
{
"image_url": "<string>",
"thumbnail_url": "<string>"
}
],
"option_groups": [
{
"id": 123,
"name": "<string>",
"status": "ACTIVE",
"choice_type": "SINGLE",
"price_calculation_type": "SUM",
"minimum_quantity": 1,
"maximum_quantity": 2,
"index": 123,
"options": [
{
"id": 123,
"name": "<string>",
"description": "<string>",
"external_code": "<string>",
"status": "ACTIVE",
"image": {
"image_url": "<string>",
"thumbnail_url": "<string>"
},
"cost_price": 1,
"active_stock_control": true,
"stock": 123,
"index": 123,
"max_quantity": 123,
"price": 1,
"badge": "best_seller"
}
]
}
],
"combo_steps": [
{
"id": 123,
"name": "<string>",
"price": 1,
"remove_add_on_prices": true,
"index": 123,
"combo_step_items": [
{
"item_id": 123,
"index": 123,
"additional_price": 1
}
]
}
]
}Autorizações
bearerAuthpartnerKey & apiKey
Corpo
application/json
Resposta
Item atualizado com sucesso.
Produto do cardápio que pode ser item regular ou combo.
Locais onde o item está disponível.
delivery: cardápio digital de delivery e retirada.internal_table: pedido de mesa pelo portal.table: pedido de mesa pelo cardápio digital.service_desk: cardápio digital de balcão e portal.view_only: cardápio digital de visualização.
Opções disponíveis:
delivery, table, service_desk, view_only, internal_table Esta página foi útil?
