curl --request POST \
--url https://api.deliveryvip.com.br/merchant/v3/{merchantId}/merchantForce \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "dbc7e35a-c936-4665-9e13-eb55eb8b6824",
"lastUpdate": "2021-05-27T20:45:10-03:00",
"ttl": 3600,
"status": "AVAILABLE",
"services": [
{
"serviceType": "DELIVERY",
"serviceTime": 15,
"status": "AVAILABLE"
}
],
"paymentMethods": [
{
"id": "92fad022-2c28-4239-a026-989f5b555cb7",
"name": "Visa - Crédito",
"mode": "CASH",
"index": 1,
"externalCode": "13",
"status": "AVAILABLE"
}
],
"options": [
{
"id": "e5232f14-430c-4a94-8ff6-289d5a16a87a",
"name": "Abacaxi",
"description": "Fatias de abacaxi fresco",
"externalCode": "<string>",
"status": "AVAILABLE"
}
],
"optionGroups": [
{
"id": "fe67e551-f42f-499a-8afb-0ed893c71fa3",
"name": "Escolha o sabor da pizza",
"externalCode": "12",
"status": "AVAILABLE",
"optionIds": [
"e5232f14-430c-4a94-8ff6-289d5a16a87a"
]
}
],
"categories": [
{
"id": "92fad022-2c28-4239-a026-989f5b555cb7",
"name": "Pizzas salgadas",
"index": 0,
"description": "Sabores de pizzas salgadas.",
"externalCode": "13",
"status": "AVAILABLE"
}
],
"items": [
{
"id": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"name": "Pizza de calabresa",
"menu": [],
"price": {
"value": 50,
"originalValue": 50,
"currency": "BRL"
},
"categoryId": "92fad022-2c28-4239-a026-989f5b555cb7",
"index": 0,
"description": "Calabresa fatiada, cebola e azeitonas.",
"externalCode": "233467",
"status": "AVAILABLE",
"ean": "7896005202074",
"modifiers": [
{
"id": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"name": "Escolha os sabores",
"index": 0,
"externalCode": "<string>",
"status": "AVAILABLE",
"rule": "ADDITION",
"minPermitted": 1,
"maxPermitted": 4,
"optionGroups": [
{
"optionGroupId": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"index": 0,
"options": [
{
"optionId": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"index": 0,
"status": "AVAILABLE"
}
]
}
]
}
]
}
]
}
'import requests
url = "https://api.deliveryvip.com.br/merchant/v3/{merchantId}/merchantForce"
payload = {
"id": "dbc7e35a-c936-4665-9e13-eb55eb8b6824",
"lastUpdate": "2021-05-27T20:45:10-03:00",
"ttl": 3600,
"status": "AVAILABLE",
"services": [
{
"serviceType": "DELIVERY",
"serviceTime": 15,
"status": "AVAILABLE"
}
],
"paymentMethods": [
{
"id": "92fad022-2c28-4239-a026-989f5b555cb7",
"name": "Visa - Crédito",
"mode": "CASH",
"index": 1,
"externalCode": "13",
"status": "AVAILABLE"
}
],
"options": [
{
"id": "e5232f14-430c-4a94-8ff6-289d5a16a87a",
"name": "Abacaxi",
"description": "Fatias de abacaxi fresco",
"externalCode": "<string>",
"status": "AVAILABLE"
}
],
"optionGroups": [
{
"id": "fe67e551-f42f-499a-8afb-0ed893c71fa3",
"name": "Escolha o sabor da pizza",
"externalCode": "12",
"status": "AVAILABLE",
"optionIds": ["e5232f14-430c-4a94-8ff6-289d5a16a87a"]
}
],
"categories": [
{
"id": "92fad022-2c28-4239-a026-989f5b555cb7",
"name": "Pizzas salgadas",
"index": 0,
"description": "Sabores de pizzas salgadas.",
"externalCode": "13",
"status": "AVAILABLE"
}
],
"items": [
{
"id": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"name": "Pizza de calabresa",
"menu": [],
"price": {
"value": 50,
"originalValue": 50,
"currency": "BRL"
},
"categoryId": "92fad022-2c28-4239-a026-989f5b555cb7",
"index": 0,
"description": "Calabresa fatiada, cebola e azeitonas.",
"externalCode": "233467",
"status": "AVAILABLE",
"ean": "7896005202074",
"modifiers": [
{
"id": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"name": "Escolha os sabores",
"index": 0,
"externalCode": "<string>",
"status": "AVAILABLE",
"rule": "ADDITION",
"minPermitted": 1,
"maxPermitted": 4,
"optionGroups": [
{
"optionGroupId": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"index": 0,
"options": [
{
"optionId": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"index": 0,
"status": "AVAILABLE"
}
]
}
]
}
]
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'dbc7e35a-c936-4665-9e13-eb55eb8b6824',
lastUpdate: '2021-05-27T20:45:10-03:00',
ttl: 3600,
status: 'AVAILABLE',
services: [{serviceType: 'DELIVERY', serviceTime: 15, status: 'AVAILABLE'}],
paymentMethods: [
{
id: '92fad022-2c28-4239-a026-989f5b555cb7',
name: 'Visa - Crédito',
mode: 'CASH',
index: 1,
externalCode: '13',
status: 'AVAILABLE'
}
],
options: [
{
id: 'e5232f14-430c-4a94-8ff6-289d5a16a87a',
name: 'Abacaxi',
description: 'Fatias de abacaxi fresco',
externalCode: '<string>',
status: 'AVAILABLE'
}
],
optionGroups: [
{
id: 'fe67e551-f42f-499a-8afb-0ed893c71fa3',
name: 'Escolha o sabor da pizza',
externalCode: '12',
status: 'AVAILABLE',
optionIds: ['e5232f14-430c-4a94-8ff6-289d5a16a87a']
}
],
categories: [
{
id: '92fad022-2c28-4239-a026-989f5b555cb7',
name: 'Pizzas salgadas',
index: 0,
description: 'Sabores de pizzas salgadas.',
externalCode: '13',
status: 'AVAILABLE'
}
],
items: [
{
id: '732bd31e-77fc-47ee-88ee-a0437f97b198',
name: 'Pizza de calabresa',
menu: [],
price: {value: 50, originalValue: 50, currency: 'BRL'},
categoryId: '92fad022-2c28-4239-a026-989f5b555cb7',
index: 0,
description: 'Calabresa fatiada, cebola e azeitonas.',
externalCode: '233467',
status: 'AVAILABLE',
ean: '7896005202074',
modifiers: [
{
id: '732bd31e-77fc-47ee-88ee-a0437f97b198',
name: 'Escolha os sabores',
index: 0,
externalCode: '<string>',
status: 'AVAILABLE',
rule: 'ADDITION',
minPermitted: 1,
maxPermitted: 4,
optionGroups: [
{
optionGroupId: '732bd31e-77fc-47ee-88ee-a0437f97b198',
index: 0,
options: [
{
optionId: '732bd31e-77fc-47ee-88ee-a0437f97b198',
index: 0,
status: 'AVAILABLE'
}
]
}
]
}
]
}
]
})
};
fetch('https://api.deliveryvip.com.br/merchant/v3/{merchantId}/merchantForce', 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://api.deliveryvip.com.br/merchant/v3/{merchantId}/merchantForce",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'dbc7e35a-c936-4665-9e13-eb55eb8b6824',
'lastUpdate' => '2021-05-27T20:45:10-03:00',
'ttl' => 3600,
'status' => 'AVAILABLE',
'services' => [
[
'serviceType' => 'DELIVERY',
'serviceTime' => 15,
'status' => 'AVAILABLE'
]
],
'paymentMethods' => [
[
'id' => '92fad022-2c28-4239-a026-989f5b555cb7',
'name' => 'Visa - Crédito',
'mode' => 'CASH',
'index' => 1,
'externalCode' => '13',
'status' => 'AVAILABLE'
]
],
'options' => [
[
'id' => 'e5232f14-430c-4a94-8ff6-289d5a16a87a',
'name' => 'Abacaxi',
'description' => 'Fatias de abacaxi fresco',
'externalCode' => '<string>',
'status' => 'AVAILABLE'
]
],
'optionGroups' => [
[
'id' => 'fe67e551-f42f-499a-8afb-0ed893c71fa3',
'name' => 'Escolha o sabor da pizza',
'externalCode' => '12',
'status' => 'AVAILABLE',
'optionIds' => [
'e5232f14-430c-4a94-8ff6-289d5a16a87a'
]
]
],
'categories' => [
[
'id' => '92fad022-2c28-4239-a026-989f5b555cb7',
'name' => 'Pizzas salgadas',
'index' => 0,
'description' => 'Sabores de pizzas salgadas.',
'externalCode' => '13',
'status' => 'AVAILABLE'
]
],
'items' => [
[
'id' => '732bd31e-77fc-47ee-88ee-a0437f97b198',
'name' => 'Pizza de calabresa',
'menu' => [
],
'price' => [
'value' => 50,
'originalValue' => 50,
'currency' => 'BRL'
],
'categoryId' => '92fad022-2c28-4239-a026-989f5b555cb7',
'index' => 0,
'description' => 'Calabresa fatiada, cebola e azeitonas.',
'externalCode' => '233467',
'status' => 'AVAILABLE',
'ean' => '7896005202074',
'modifiers' => [
[
'id' => '732bd31e-77fc-47ee-88ee-a0437f97b198',
'name' => 'Escolha os sabores',
'index' => 0,
'externalCode' => '<string>',
'status' => 'AVAILABLE',
'rule' => 'ADDITION',
'minPermitted' => 1,
'maxPermitted' => 4,
'optionGroups' => [
[
'optionGroupId' => '732bd31e-77fc-47ee-88ee-a0437f97b198',
'index' => 0,
'options' => [
[
'optionId' => '732bd31e-77fc-47ee-88ee-a0437f97b198',
'index' => 0,
'status' => 'AVAILABLE'
]
]
]
]
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.deliveryvip.com.br/merchant/v3/{merchantId}/merchantForce"
payload := strings.NewReader("{\n \"id\": \"dbc7e35a-c936-4665-9e13-eb55eb8b6824\",\n \"lastUpdate\": \"2021-05-27T20:45:10-03:00\",\n \"ttl\": 3600,\n \"status\": \"AVAILABLE\",\n \"services\": [\n {\n \"serviceType\": \"DELIVERY\",\n \"serviceTime\": 15,\n \"status\": \"AVAILABLE\"\n }\n ],\n \"paymentMethods\": [\n {\n \"id\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"name\": \"Visa - Crédito\",\n \"mode\": \"CASH\",\n \"index\": 1,\n \"externalCode\": \"13\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"options\": [\n {\n \"id\": \"e5232f14-430c-4a94-8ff6-289d5a16a87a\",\n \"name\": \"Abacaxi\",\n \"description\": \"Fatias de abacaxi fresco\",\n \"externalCode\": \"<string>\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"optionGroups\": [\n {\n \"id\": \"fe67e551-f42f-499a-8afb-0ed893c71fa3\",\n \"name\": \"Escolha o sabor da pizza\",\n \"externalCode\": \"12\",\n \"status\": \"AVAILABLE\",\n \"optionIds\": [\n \"e5232f14-430c-4a94-8ff6-289d5a16a87a\"\n ]\n }\n ],\n \"categories\": [\n {\n \"id\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"name\": \"Pizzas salgadas\",\n \"index\": 0,\n \"description\": \"Sabores de pizzas salgadas.\",\n \"externalCode\": \"13\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"items\": [\n {\n \"id\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"name\": \"Pizza de calabresa\",\n \"menu\": [],\n \"price\": {\n \"value\": 50,\n \"originalValue\": 50,\n \"currency\": \"BRL\"\n },\n \"categoryId\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"index\": 0,\n \"description\": \"Calabresa fatiada, cebola e azeitonas.\",\n \"externalCode\": \"233467\",\n \"status\": \"AVAILABLE\",\n \"ean\": \"7896005202074\",\n \"modifiers\": [\n {\n \"id\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"name\": \"Escolha os sabores\",\n \"index\": 0,\n \"externalCode\": \"<string>\",\n \"status\": \"AVAILABLE\",\n \"rule\": \"ADDITION\",\n \"minPermitted\": 1,\n \"maxPermitted\": 4,\n \"optionGroups\": [\n {\n \"optionGroupId\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"index\": 0,\n \"options\": [\n {\n \"optionId\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"index\": 0,\n \"status\": \"AVAILABLE\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.deliveryvip.com.br/merchant/v3/{merchantId}/merchantForce")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"dbc7e35a-c936-4665-9e13-eb55eb8b6824\",\n \"lastUpdate\": \"2021-05-27T20:45:10-03:00\",\n \"ttl\": 3600,\n \"status\": \"AVAILABLE\",\n \"services\": [\n {\n \"serviceType\": \"DELIVERY\",\n \"serviceTime\": 15,\n \"status\": \"AVAILABLE\"\n }\n ],\n \"paymentMethods\": [\n {\n \"id\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"name\": \"Visa - Crédito\",\n \"mode\": \"CASH\",\n \"index\": 1,\n \"externalCode\": \"13\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"options\": [\n {\n \"id\": \"e5232f14-430c-4a94-8ff6-289d5a16a87a\",\n \"name\": \"Abacaxi\",\n \"description\": \"Fatias de abacaxi fresco\",\n \"externalCode\": \"<string>\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"optionGroups\": [\n {\n \"id\": \"fe67e551-f42f-499a-8afb-0ed893c71fa3\",\n \"name\": \"Escolha o sabor da pizza\",\n \"externalCode\": \"12\",\n \"status\": \"AVAILABLE\",\n \"optionIds\": [\n \"e5232f14-430c-4a94-8ff6-289d5a16a87a\"\n ]\n }\n ],\n \"categories\": [\n {\n \"id\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"name\": \"Pizzas salgadas\",\n \"index\": 0,\n \"description\": \"Sabores de pizzas salgadas.\",\n \"externalCode\": \"13\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"items\": [\n {\n \"id\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"name\": \"Pizza de calabresa\",\n \"menu\": [],\n \"price\": {\n \"value\": 50,\n \"originalValue\": 50,\n \"currency\": \"BRL\"\n },\n \"categoryId\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"index\": 0,\n \"description\": \"Calabresa fatiada, cebola e azeitonas.\",\n \"externalCode\": \"233467\",\n \"status\": \"AVAILABLE\",\n \"ean\": \"7896005202074\",\n \"modifiers\": [\n {\n \"id\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"name\": \"Escolha os sabores\",\n \"index\": 0,\n \"externalCode\": \"<string>\",\n \"status\": \"AVAILABLE\",\n \"rule\": \"ADDITION\",\n \"minPermitted\": 1,\n \"maxPermitted\": 4,\n \"optionGroups\": [\n {\n \"optionGroupId\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"index\": 0,\n \"options\": [\n {\n \"optionId\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"index\": 0,\n \"status\": \"AVAILABLE\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deliveryvip.com.br/merchant/v3/{merchantId}/merchantForce")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"dbc7e35a-c936-4665-9e13-eb55eb8b6824\",\n \"lastUpdate\": \"2021-05-27T20:45:10-03:00\",\n \"ttl\": 3600,\n \"status\": \"AVAILABLE\",\n \"services\": [\n {\n \"serviceType\": \"DELIVERY\",\n \"serviceTime\": 15,\n \"status\": \"AVAILABLE\"\n }\n ],\n \"paymentMethods\": [\n {\n \"id\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"name\": \"Visa - Crédito\",\n \"mode\": \"CASH\",\n \"index\": 1,\n \"externalCode\": \"13\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"options\": [\n {\n \"id\": \"e5232f14-430c-4a94-8ff6-289d5a16a87a\",\n \"name\": \"Abacaxi\",\n \"description\": \"Fatias de abacaxi fresco\",\n \"externalCode\": \"<string>\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"optionGroups\": [\n {\n \"id\": \"fe67e551-f42f-499a-8afb-0ed893c71fa3\",\n \"name\": \"Escolha o sabor da pizza\",\n \"externalCode\": \"12\",\n \"status\": \"AVAILABLE\",\n \"optionIds\": [\n \"e5232f14-430c-4a94-8ff6-289d5a16a87a\"\n ]\n }\n ],\n \"categories\": [\n {\n \"id\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"name\": \"Pizzas salgadas\",\n \"index\": 0,\n \"description\": \"Sabores de pizzas salgadas.\",\n \"externalCode\": \"13\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"items\": [\n {\n \"id\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"name\": \"Pizza de calabresa\",\n \"menu\": [],\n \"price\": {\n \"value\": 50,\n \"originalValue\": 50,\n \"currency\": \"BRL\"\n },\n \"categoryId\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"index\": 0,\n \"description\": \"Calabresa fatiada, cebola e azeitonas.\",\n \"externalCode\": \"233467\",\n \"status\": \"AVAILABLE\",\n \"ean\": \"7896005202074\",\n \"modifiers\": [\n {\n \"id\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"name\": \"Escolha os sabores\",\n \"index\": 0,\n \"externalCode\": \"<string>\",\n \"status\": \"AVAILABLE\",\n \"rule\": \"ADDITION\",\n \"minPermitted\": 1,\n \"maxPermitted\": 4,\n \"optionGroups\": [\n {\n \"optionGroupId\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"index\": 0,\n \"options\": [\n {\n \"optionId\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"index\": 0,\n \"status\": \"AVAILABLE\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"title": "Unauthorized",
"status": 401
}{
"status": "404",
"title": "Record not found"
}{
"status": "404",
"title": "Record not found"
}{
"status": "404",
"title": "Record not found"
}Sincronizar loja completa
Envia a loja completa (mesmo formato de GET /merchant/v3/{merchantId}) e processa todas as entidades
presentes: serviços, complementos, grupos de complementos, categorias, itens e formas de pagamento.
O campo status abre ou fecha a loja. Os campos id, lastUpdate, ttl e status são obrigatórios.
No envio, basicInfo.contactPhones deve ser uma lista de objetos. O corpo pode ser enviado diretamente
ou envolvido em {"merchant": {...}}.
curl --request POST \
--url https://api.deliveryvip.com.br/merchant/v3/{merchantId}/merchantForce \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "dbc7e35a-c936-4665-9e13-eb55eb8b6824",
"lastUpdate": "2021-05-27T20:45:10-03:00",
"ttl": 3600,
"status": "AVAILABLE",
"services": [
{
"serviceType": "DELIVERY",
"serviceTime": 15,
"status": "AVAILABLE"
}
],
"paymentMethods": [
{
"id": "92fad022-2c28-4239-a026-989f5b555cb7",
"name": "Visa - Crédito",
"mode": "CASH",
"index": 1,
"externalCode": "13",
"status": "AVAILABLE"
}
],
"options": [
{
"id": "e5232f14-430c-4a94-8ff6-289d5a16a87a",
"name": "Abacaxi",
"description": "Fatias de abacaxi fresco",
"externalCode": "<string>",
"status": "AVAILABLE"
}
],
"optionGroups": [
{
"id": "fe67e551-f42f-499a-8afb-0ed893c71fa3",
"name": "Escolha o sabor da pizza",
"externalCode": "12",
"status": "AVAILABLE",
"optionIds": [
"e5232f14-430c-4a94-8ff6-289d5a16a87a"
]
}
],
"categories": [
{
"id": "92fad022-2c28-4239-a026-989f5b555cb7",
"name": "Pizzas salgadas",
"index": 0,
"description": "Sabores de pizzas salgadas.",
"externalCode": "13",
"status": "AVAILABLE"
}
],
"items": [
{
"id": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"name": "Pizza de calabresa",
"menu": [],
"price": {
"value": 50,
"originalValue": 50,
"currency": "BRL"
},
"categoryId": "92fad022-2c28-4239-a026-989f5b555cb7",
"index": 0,
"description": "Calabresa fatiada, cebola e azeitonas.",
"externalCode": "233467",
"status": "AVAILABLE",
"ean": "7896005202074",
"modifiers": [
{
"id": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"name": "Escolha os sabores",
"index": 0,
"externalCode": "<string>",
"status": "AVAILABLE",
"rule": "ADDITION",
"minPermitted": 1,
"maxPermitted": 4,
"optionGroups": [
{
"optionGroupId": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"index": 0,
"options": [
{
"optionId": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"index": 0,
"status": "AVAILABLE"
}
]
}
]
}
]
}
]
}
'import requests
url = "https://api.deliveryvip.com.br/merchant/v3/{merchantId}/merchantForce"
payload = {
"id": "dbc7e35a-c936-4665-9e13-eb55eb8b6824",
"lastUpdate": "2021-05-27T20:45:10-03:00",
"ttl": 3600,
"status": "AVAILABLE",
"services": [
{
"serviceType": "DELIVERY",
"serviceTime": 15,
"status": "AVAILABLE"
}
],
"paymentMethods": [
{
"id": "92fad022-2c28-4239-a026-989f5b555cb7",
"name": "Visa - Crédito",
"mode": "CASH",
"index": 1,
"externalCode": "13",
"status": "AVAILABLE"
}
],
"options": [
{
"id": "e5232f14-430c-4a94-8ff6-289d5a16a87a",
"name": "Abacaxi",
"description": "Fatias de abacaxi fresco",
"externalCode": "<string>",
"status": "AVAILABLE"
}
],
"optionGroups": [
{
"id": "fe67e551-f42f-499a-8afb-0ed893c71fa3",
"name": "Escolha o sabor da pizza",
"externalCode": "12",
"status": "AVAILABLE",
"optionIds": ["e5232f14-430c-4a94-8ff6-289d5a16a87a"]
}
],
"categories": [
{
"id": "92fad022-2c28-4239-a026-989f5b555cb7",
"name": "Pizzas salgadas",
"index": 0,
"description": "Sabores de pizzas salgadas.",
"externalCode": "13",
"status": "AVAILABLE"
}
],
"items": [
{
"id": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"name": "Pizza de calabresa",
"menu": [],
"price": {
"value": 50,
"originalValue": 50,
"currency": "BRL"
},
"categoryId": "92fad022-2c28-4239-a026-989f5b555cb7",
"index": 0,
"description": "Calabresa fatiada, cebola e azeitonas.",
"externalCode": "233467",
"status": "AVAILABLE",
"ean": "7896005202074",
"modifiers": [
{
"id": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"name": "Escolha os sabores",
"index": 0,
"externalCode": "<string>",
"status": "AVAILABLE",
"rule": "ADDITION",
"minPermitted": 1,
"maxPermitted": 4,
"optionGroups": [
{
"optionGroupId": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"index": 0,
"options": [
{
"optionId": "732bd31e-77fc-47ee-88ee-a0437f97b198",
"index": 0,
"status": "AVAILABLE"
}
]
}
]
}
]
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'dbc7e35a-c936-4665-9e13-eb55eb8b6824',
lastUpdate: '2021-05-27T20:45:10-03:00',
ttl: 3600,
status: 'AVAILABLE',
services: [{serviceType: 'DELIVERY', serviceTime: 15, status: 'AVAILABLE'}],
paymentMethods: [
{
id: '92fad022-2c28-4239-a026-989f5b555cb7',
name: 'Visa - Crédito',
mode: 'CASH',
index: 1,
externalCode: '13',
status: 'AVAILABLE'
}
],
options: [
{
id: 'e5232f14-430c-4a94-8ff6-289d5a16a87a',
name: 'Abacaxi',
description: 'Fatias de abacaxi fresco',
externalCode: '<string>',
status: 'AVAILABLE'
}
],
optionGroups: [
{
id: 'fe67e551-f42f-499a-8afb-0ed893c71fa3',
name: 'Escolha o sabor da pizza',
externalCode: '12',
status: 'AVAILABLE',
optionIds: ['e5232f14-430c-4a94-8ff6-289d5a16a87a']
}
],
categories: [
{
id: '92fad022-2c28-4239-a026-989f5b555cb7',
name: 'Pizzas salgadas',
index: 0,
description: 'Sabores de pizzas salgadas.',
externalCode: '13',
status: 'AVAILABLE'
}
],
items: [
{
id: '732bd31e-77fc-47ee-88ee-a0437f97b198',
name: 'Pizza de calabresa',
menu: [],
price: {value: 50, originalValue: 50, currency: 'BRL'},
categoryId: '92fad022-2c28-4239-a026-989f5b555cb7',
index: 0,
description: 'Calabresa fatiada, cebola e azeitonas.',
externalCode: '233467',
status: 'AVAILABLE',
ean: '7896005202074',
modifiers: [
{
id: '732bd31e-77fc-47ee-88ee-a0437f97b198',
name: 'Escolha os sabores',
index: 0,
externalCode: '<string>',
status: 'AVAILABLE',
rule: 'ADDITION',
minPermitted: 1,
maxPermitted: 4,
optionGroups: [
{
optionGroupId: '732bd31e-77fc-47ee-88ee-a0437f97b198',
index: 0,
options: [
{
optionId: '732bd31e-77fc-47ee-88ee-a0437f97b198',
index: 0,
status: 'AVAILABLE'
}
]
}
]
}
]
}
]
})
};
fetch('https://api.deliveryvip.com.br/merchant/v3/{merchantId}/merchantForce', 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://api.deliveryvip.com.br/merchant/v3/{merchantId}/merchantForce",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'dbc7e35a-c936-4665-9e13-eb55eb8b6824',
'lastUpdate' => '2021-05-27T20:45:10-03:00',
'ttl' => 3600,
'status' => 'AVAILABLE',
'services' => [
[
'serviceType' => 'DELIVERY',
'serviceTime' => 15,
'status' => 'AVAILABLE'
]
],
'paymentMethods' => [
[
'id' => '92fad022-2c28-4239-a026-989f5b555cb7',
'name' => 'Visa - Crédito',
'mode' => 'CASH',
'index' => 1,
'externalCode' => '13',
'status' => 'AVAILABLE'
]
],
'options' => [
[
'id' => 'e5232f14-430c-4a94-8ff6-289d5a16a87a',
'name' => 'Abacaxi',
'description' => 'Fatias de abacaxi fresco',
'externalCode' => '<string>',
'status' => 'AVAILABLE'
]
],
'optionGroups' => [
[
'id' => 'fe67e551-f42f-499a-8afb-0ed893c71fa3',
'name' => 'Escolha o sabor da pizza',
'externalCode' => '12',
'status' => 'AVAILABLE',
'optionIds' => [
'e5232f14-430c-4a94-8ff6-289d5a16a87a'
]
]
],
'categories' => [
[
'id' => '92fad022-2c28-4239-a026-989f5b555cb7',
'name' => 'Pizzas salgadas',
'index' => 0,
'description' => 'Sabores de pizzas salgadas.',
'externalCode' => '13',
'status' => 'AVAILABLE'
]
],
'items' => [
[
'id' => '732bd31e-77fc-47ee-88ee-a0437f97b198',
'name' => 'Pizza de calabresa',
'menu' => [
],
'price' => [
'value' => 50,
'originalValue' => 50,
'currency' => 'BRL'
],
'categoryId' => '92fad022-2c28-4239-a026-989f5b555cb7',
'index' => 0,
'description' => 'Calabresa fatiada, cebola e azeitonas.',
'externalCode' => '233467',
'status' => 'AVAILABLE',
'ean' => '7896005202074',
'modifiers' => [
[
'id' => '732bd31e-77fc-47ee-88ee-a0437f97b198',
'name' => 'Escolha os sabores',
'index' => 0,
'externalCode' => '<string>',
'status' => 'AVAILABLE',
'rule' => 'ADDITION',
'minPermitted' => 1,
'maxPermitted' => 4,
'optionGroups' => [
[
'optionGroupId' => '732bd31e-77fc-47ee-88ee-a0437f97b198',
'index' => 0,
'options' => [
[
'optionId' => '732bd31e-77fc-47ee-88ee-a0437f97b198',
'index' => 0,
'status' => 'AVAILABLE'
]
]
]
]
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.deliveryvip.com.br/merchant/v3/{merchantId}/merchantForce"
payload := strings.NewReader("{\n \"id\": \"dbc7e35a-c936-4665-9e13-eb55eb8b6824\",\n \"lastUpdate\": \"2021-05-27T20:45:10-03:00\",\n \"ttl\": 3600,\n \"status\": \"AVAILABLE\",\n \"services\": [\n {\n \"serviceType\": \"DELIVERY\",\n \"serviceTime\": 15,\n \"status\": \"AVAILABLE\"\n }\n ],\n \"paymentMethods\": [\n {\n \"id\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"name\": \"Visa - Crédito\",\n \"mode\": \"CASH\",\n \"index\": 1,\n \"externalCode\": \"13\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"options\": [\n {\n \"id\": \"e5232f14-430c-4a94-8ff6-289d5a16a87a\",\n \"name\": \"Abacaxi\",\n \"description\": \"Fatias de abacaxi fresco\",\n \"externalCode\": \"<string>\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"optionGroups\": [\n {\n \"id\": \"fe67e551-f42f-499a-8afb-0ed893c71fa3\",\n \"name\": \"Escolha o sabor da pizza\",\n \"externalCode\": \"12\",\n \"status\": \"AVAILABLE\",\n \"optionIds\": [\n \"e5232f14-430c-4a94-8ff6-289d5a16a87a\"\n ]\n }\n ],\n \"categories\": [\n {\n \"id\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"name\": \"Pizzas salgadas\",\n \"index\": 0,\n \"description\": \"Sabores de pizzas salgadas.\",\n \"externalCode\": \"13\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"items\": [\n {\n \"id\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"name\": \"Pizza de calabresa\",\n \"menu\": [],\n \"price\": {\n \"value\": 50,\n \"originalValue\": 50,\n \"currency\": \"BRL\"\n },\n \"categoryId\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"index\": 0,\n \"description\": \"Calabresa fatiada, cebola e azeitonas.\",\n \"externalCode\": \"233467\",\n \"status\": \"AVAILABLE\",\n \"ean\": \"7896005202074\",\n \"modifiers\": [\n {\n \"id\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"name\": \"Escolha os sabores\",\n \"index\": 0,\n \"externalCode\": \"<string>\",\n \"status\": \"AVAILABLE\",\n \"rule\": \"ADDITION\",\n \"minPermitted\": 1,\n \"maxPermitted\": 4,\n \"optionGroups\": [\n {\n \"optionGroupId\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"index\": 0,\n \"options\": [\n {\n \"optionId\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"index\": 0,\n \"status\": \"AVAILABLE\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.deliveryvip.com.br/merchant/v3/{merchantId}/merchantForce")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"dbc7e35a-c936-4665-9e13-eb55eb8b6824\",\n \"lastUpdate\": \"2021-05-27T20:45:10-03:00\",\n \"ttl\": 3600,\n \"status\": \"AVAILABLE\",\n \"services\": [\n {\n \"serviceType\": \"DELIVERY\",\n \"serviceTime\": 15,\n \"status\": \"AVAILABLE\"\n }\n ],\n \"paymentMethods\": [\n {\n \"id\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"name\": \"Visa - Crédito\",\n \"mode\": \"CASH\",\n \"index\": 1,\n \"externalCode\": \"13\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"options\": [\n {\n \"id\": \"e5232f14-430c-4a94-8ff6-289d5a16a87a\",\n \"name\": \"Abacaxi\",\n \"description\": \"Fatias de abacaxi fresco\",\n \"externalCode\": \"<string>\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"optionGroups\": [\n {\n \"id\": \"fe67e551-f42f-499a-8afb-0ed893c71fa3\",\n \"name\": \"Escolha o sabor da pizza\",\n \"externalCode\": \"12\",\n \"status\": \"AVAILABLE\",\n \"optionIds\": [\n \"e5232f14-430c-4a94-8ff6-289d5a16a87a\"\n ]\n }\n ],\n \"categories\": [\n {\n \"id\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"name\": \"Pizzas salgadas\",\n \"index\": 0,\n \"description\": \"Sabores de pizzas salgadas.\",\n \"externalCode\": \"13\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"items\": [\n {\n \"id\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"name\": \"Pizza de calabresa\",\n \"menu\": [],\n \"price\": {\n \"value\": 50,\n \"originalValue\": 50,\n \"currency\": \"BRL\"\n },\n \"categoryId\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"index\": 0,\n \"description\": \"Calabresa fatiada, cebola e azeitonas.\",\n \"externalCode\": \"233467\",\n \"status\": \"AVAILABLE\",\n \"ean\": \"7896005202074\",\n \"modifiers\": [\n {\n \"id\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"name\": \"Escolha os sabores\",\n \"index\": 0,\n \"externalCode\": \"<string>\",\n \"status\": \"AVAILABLE\",\n \"rule\": \"ADDITION\",\n \"minPermitted\": 1,\n \"maxPermitted\": 4,\n \"optionGroups\": [\n {\n \"optionGroupId\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"index\": 0,\n \"options\": [\n {\n \"optionId\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"index\": 0,\n \"status\": \"AVAILABLE\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deliveryvip.com.br/merchant/v3/{merchantId}/merchantForce")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"dbc7e35a-c936-4665-9e13-eb55eb8b6824\",\n \"lastUpdate\": \"2021-05-27T20:45:10-03:00\",\n \"ttl\": 3600,\n \"status\": \"AVAILABLE\",\n \"services\": [\n {\n \"serviceType\": \"DELIVERY\",\n \"serviceTime\": 15,\n \"status\": \"AVAILABLE\"\n }\n ],\n \"paymentMethods\": [\n {\n \"id\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"name\": \"Visa - Crédito\",\n \"mode\": \"CASH\",\n \"index\": 1,\n \"externalCode\": \"13\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"options\": [\n {\n \"id\": \"e5232f14-430c-4a94-8ff6-289d5a16a87a\",\n \"name\": \"Abacaxi\",\n \"description\": \"Fatias de abacaxi fresco\",\n \"externalCode\": \"<string>\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"optionGroups\": [\n {\n \"id\": \"fe67e551-f42f-499a-8afb-0ed893c71fa3\",\n \"name\": \"Escolha o sabor da pizza\",\n \"externalCode\": \"12\",\n \"status\": \"AVAILABLE\",\n \"optionIds\": [\n \"e5232f14-430c-4a94-8ff6-289d5a16a87a\"\n ]\n }\n ],\n \"categories\": [\n {\n \"id\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"name\": \"Pizzas salgadas\",\n \"index\": 0,\n \"description\": \"Sabores de pizzas salgadas.\",\n \"externalCode\": \"13\",\n \"status\": \"AVAILABLE\"\n }\n ],\n \"items\": [\n {\n \"id\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"name\": \"Pizza de calabresa\",\n \"menu\": [],\n \"price\": {\n \"value\": 50,\n \"originalValue\": 50,\n \"currency\": \"BRL\"\n },\n \"categoryId\": \"92fad022-2c28-4239-a026-989f5b555cb7\",\n \"index\": 0,\n \"description\": \"Calabresa fatiada, cebola e azeitonas.\",\n \"externalCode\": \"233467\",\n \"status\": \"AVAILABLE\",\n \"ean\": \"7896005202074\",\n \"modifiers\": [\n {\n \"id\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"name\": \"Escolha os sabores\",\n \"index\": 0,\n \"externalCode\": \"<string>\",\n \"status\": \"AVAILABLE\",\n \"rule\": \"ADDITION\",\n \"minPermitted\": 1,\n \"maxPermitted\": 4,\n \"optionGroups\": [\n {\n \"optionGroupId\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"index\": 0,\n \"options\": [\n {\n \"optionId\": \"732bd31e-77fc-47ee-88ee-a0437f97b198\",\n \"index\": 0,\n \"status\": \"AVAILABLE\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"title": "Unauthorized",
"status": 401
}{
"status": "404",
"title": "Record not found"
}{
"status": "404",
"title": "Record not found"
}{
"status": "404",
"title": "Record not found"
}Autorizações
Token de acesso opaco emitido pela API de autenticação (POST /authentication/v1/oauth/token).
Parâmetros de caminho
Id (UUID) da loja na plataforma. A loja precisa estar autorizada para o aplicativo.
Corpo
Id da loja.
"dbc7e35a-c936-4665-9e13-eb55eb8b6824"
Data e hora da última alteração da loja.
"2021-05-27T20:45:10-03:00"
Tempo de validade dos dados, em segundos. Na leitura, sempre 3600.
3600
Indica se a loja está aberta (AVAILABLE) ou fechada (UNAVAILABLE).
AVAILABLE, UNAVAILABLE "AVAILABLE"
Informações básicas da loja.
Show child attributes
Show child attributes
Serviços da loja (entrega e retirada).
Show child attributes
Show child attributes
Formas de pagamento. Omitido quando a loja não tem complementos cadastrados.
Show child attributes
Show child attributes
Complementos. Omitido quando a loja não tem complementos.
Show child attributes
Show child attributes
Grupos de complementos. Omitido quando a loja não tem grupos.
Show child attributes
Show child attributes
Categorias. Omitido quando a loja não tem categorias.
Show child attributes
Show child attributes
Itens do cardápio. Omitido quando a loja não tem itens.
Show child attributes
Show child attributes
Resposta
Dados recebidos e processados com sucesso. Sem conteúdo na resposta.