curl --request POST \
--url https://api.deliveryvip.com.br/partner/v2/{partnerId}/merchants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Pizzaria da Maria",
"corporateName": "Pizzaria da Maria LTDA",
"identifier": "12345678000195",
"email": "contato@pizzariadamaria.com.br",
"personResponsible": {
"name": "Maria Souza",
"email": "maria@pizzariadamaria.com.br",
"phone": {
"number": "11987654321"
},
"identifier": "12345678909"
},
"address": {
"postalCode": "01310100",
"street": "Avenida Paulista",
"number": "1000",
"district": "Bela Vista",
"city": "São Paulo",
"state": "SP"
}
}
'import requests
url = "https://api.deliveryvip.com.br/partner/v2/{partnerId}/merchants"
payload = {
"name": "Pizzaria da Maria",
"corporateName": "Pizzaria da Maria LTDA",
"identifier": "12345678000195",
"email": "contato@pizzariadamaria.com.br",
"personResponsible": {
"name": "Maria Souza",
"email": "maria@pizzariadamaria.com.br",
"phone": { "number": "11987654321" },
"identifier": "12345678909"
},
"address": {
"postalCode": "01310100",
"street": "Avenida Paulista",
"number": "1000",
"district": "Bela Vista",
"city": "São Paulo",
"state": "SP"
}
}
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({
name: 'Pizzaria da Maria',
corporateName: 'Pizzaria da Maria LTDA',
identifier: '12345678000195',
email: 'contato@pizzariadamaria.com.br',
personResponsible: {
name: 'Maria Souza',
email: 'maria@pizzariadamaria.com.br',
phone: {number: '11987654321'},
identifier: '12345678909'
},
address: {
postalCode: '01310100',
street: 'Avenida Paulista',
number: '1000',
district: 'Bela Vista',
city: 'São Paulo',
state: 'SP'
}
})
};
fetch('https://api.deliveryvip.com.br/partner/v2/{partnerId}/merchants', 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/partner/v2/{partnerId}/merchants",
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([
'name' => 'Pizzaria da Maria',
'corporateName' => 'Pizzaria da Maria LTDA',
'identifier' => '12345678000195',
'email' => 'contato@pizzariadamaria.com.br',
'personResponsible' => [
'name' => 'Maria Souza',
'email' => 'maria@pizzariadamaria.com.br',
'phone' => [
'number' => '11987654321'
],
'identifier' => '12345678909'
],
'address' => [
'postalCode' => '01310100',
'street' => 'Avenida Paulista',
'number' => '1000',
'district' => 'Bela Vista',
'city' => 'São Paulo',
'state' => 'SP'
]
]),
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/partner/v2/{partnerId}/merchants"
payload := strings.NewReader("{\n \"name\": \"Pizzaria da Maria\",\n \"corporateName\": \"Pizzaria da Maria LTDA\",\n \"identifier\": \"12345678000195\",\n \"email\": \"contato@pizzariadamaria.com.br\",\n \"personResponsible\": {\n \"name\": \"Maria Souza\",\n \"email\": \"maria@pizzariadamaria.com.br\",\n \"phone\": {\n \"number\": \"11987654321\"\n },\n \"identifier\": \"12345678909\"\n },\n \"address\": {\n \"postalCode\": \"01310100\",\n \"street\": \"Avenida Paulista\",\n \"number\": \"1000\",\n \"district\": \"Bela Vista\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\"\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/partner/v2/{partnerId}/merchants")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Pizzaria da Maria\",\n \"corporateName\": \"Pizzaria da Maria LTDA\",\n \"identifier\": \"12345678000195\",\n \"email\": \"contato@pizzariadamaria.com.br\",\n \"personResponsible\": {\n \"name\": \"Maria Souza\",\n \"email\": \"maria@pizzariadamaria.com.br\",\n \"phone\": {\n \"number\": \"11987654321\"\n },\n \"identifier\": \"12345678909\"\n },\n \"address\": {\n \"postalCode\": \"01310100\",\n \"street\": \"Avenida Paulista\",\n \"number\": \"1000\",\n \"district\": \"Bela Vista\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deliveryvip.com.br/partner/v2/{partnerId}/merchants")
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 \"name\": \"Pizzaria da Maria\",\n \"corporateName\": \"Pizzaria da Maria LTDA\",\n \"identifier\": \"12345678000195\",\n \"email\": \"contato@pizzariadamaria.com.br\",\n \"personResponsible\": {\n \"name\": \"Maria Souza\",\n \"email\": \"maria@pizzariadamaria.com.br\",\n \"phone\": {\n \"number\": \"11987654321\"\n },\n \"identifier\": \"12345678909\"\n },\n \"address\": {\n \"postalCode\": \"01310100\",\n \"street\": \"Avenida Paulista\",\n \"number\": \"1000\",\n \"district\": \"Bela Vista\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"address": {
"country": "<string>",
"state": "<string>",
"city": "<string>",
"district": "<string>",
"street": "<string>",
"number": "<string>",
"postalCode": "<string>",
"formattedAddress": "<string>",
"coordinates": {
"latitude": 123,
"longitude": 123
},
"complement": "<string>",
"reference": "<string>"
},
"subscription": {
"status": "TRIAL",
"agreementCode": "<string>",
"warning": true,
"blocked": true,
"trialExpiresAt": "2023-11-07T05:31:56Z",
"lastActivationAt": "2023-11-07T05:31:56Z",
"lastCancellationAt": "2023-11-07T05:31:56Z",
"lastBlockedAt": "2023-11-07T05:31:56Z",
"lastWarningAt": "2023-11-07T05:31:56Z",
"planId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"features": [
{
"featureType": "DELIVERYBOT_NOTIFICATION",
"status": "ACTIVATED",
"lastActivationAt": "2023-11-07T05:31:56Z",
"lastCancellationAt": "2023-11-07T05:31:56Z"
}
],
"partnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"corporateName": "<string>",
"identifier": "<string>",
"email": "<string>",
"phone": {
"number": "5511987654321"
},
"storeUrl": "<string>",
"personResponsible": {
"name": "<string>",
"email": "<string>",
"phone": {
"number": "5511987654321"
},
"identifier": "<string>"
},
"resaleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"title": "Unauthorized",
"status": 401
}{
"status": "422",
"title": "<string>"
}{
"status": "422",
"title": "<string>"
}Criar loja
Cria uma loja vinculada ao parceiro ou à revenda informada em partnerId. Os campos podem ser enviados na raiz do corpo ou dentro de um objeto merchant.
curl --request POST \
--url https://api.deliveryvip.com.br/partner/v2/{partnerId}/merchants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Pizzaria da Maria",
"corporateName": "Pizzaria da Maria LTDA",
"identifier": "12345678000195",
"email": "contato@pizzariadamaria.com.br",
"personResponsible": {
"name": "Maria Souza",
"email": "maria@pizzariadamaria.com.br",
"phone": {
"number": "11987654321"
},
"identifier": "12345678909"
},
"address": {
"postalCode": "01310100",
"street": "Avenida Paulista",
"number": "1000",
"district": "Bela Vista",
"city": "São Paulo",
"state": "SP"
}
}
'import requests
url = "https://api.deliveryvip.com.br/partner/v2/{partnerId}/merchants"
payload = {
"name": "Pizzaria da Maria",
"corporateName": "Pizzaria da Maria LTDA",
"identifier": "12345678000195",
"email": "contato@pizzariadamaria.com.br",
"personResponsible": {
"name": "Maria Souza",
"email": "maria@pizzariadamaria.com.br",
"phone": { "number": "11987654321" },
"identifier": "12345678909"
},
"address": {
"postalCode": "01310100",
"street": "Avenida Paulista",
"number": "1000",
"district": "Bela Vista",
"city": "São Paulo",
"state": "SP"
}
}
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({
name: 'Pizzaria da Maria',
corporateName: 'Pizzaria da Maria LTDA',
identifier: '12345678000195',
email: 'contato@pizzariadamaria.com.br',
personResponsible: {
name: 'Maria Souza',
email: 'maria@pizzariadamaria.com.br',
phone: {number: '11987654321'},
identifier: '12345678909'
},
address: {
postalCode: '01310100',
street: 'Avenida Paulista',
number: '1000',
district: 'Bela Vista',
city: 'São Paulo',
state: 'SP'
}
})
};
fetch('https://api.deliveryvip.com.br/partner/v2/{partnerId}/merchants', 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/partner/v2/{partnerId}/merchants",
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([
'name' => 'Pizzaria da Maria',
'corporateName' => 'Pizzaria da Maria LTDA',
'identifier' => '12345678000195',
'email' => 'contato@pizzariadamaria.com.br',
'personResponsible' => [
'name' => 'Maria Souza',
'email' => 'maria@pizzariadamaria.com.br',
'phone' => [
'number' => '11987654321'
],
'identifier' => '12345678909'
],
'address' => [
'postalCode' => '01310100',
'street' => 'Avenida Paulista',
'number' => '1000',
'district' => 'Bela Vista',
'city' => 'São Paulo',
'state' => 'SP'
]
]),
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/partner/v2/{partnerId}/merchants"
payload := strings.NewReader("{\n \"name\": \"Pizzaria da Maria\",\n \"corporateName\": \"Pizzaria da Maria LTDA\",\n \"identifier\": \"12345678000195\",\n \"email\": \"contato@pizzariadamaria.com.br\",\n \"personResponsible\": {\n \"name\": \"Maria Souza\",\n \"email\": \"maria@pizzariadamaria.com.br\",\n \"phone\": {\n \"number\": \"11987654321\"\n },\n \"identifier\": \"12345678909\"\n },\n \"address\": {\n \"postalCode\": \"01310100\",\n \"street\": \"Avenida Paulista\",\n \"number\": \"1000\",\n \"district\": \"Bela Vista\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\"\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/partner/v2/{partnerId}/merchants")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Pizzaria da Maria\",\n \"corporateName\": \"Pizzaria da Maria LTDA\",\n \"identifier\": \"12345678000195\",\n \"email\": \"contato@pizzariadamaria.com.br\",\n \"personResponsible\": {\n \"name\": \"Maria Souza\",\n \"email\": \"maria@pizzariadamaria.com.br\",\n \"phone\": {\n \"number\": \"11987654321\"\n },\n \"identifier\": \"12345678909\"\n },\n \"address\": {\n \"postalCode\": \"01310100\",\n \"street\": \"Avenida Paulista\",\n \"number\": \"1000\",\n \"district\": \"Bela Vista\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deliveryvip.com.br/partner/v2/{partnerId}/merchants")
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 \"name\": \"Pizzaria da Maria\",\n \"corporateName\": \"Pizzaria da Maria LTDA\",\n \"identifier\": \"12345678000195\",\n \"email\": \"contato@pizzariadamaria.com.br\",\n \"personResponsible\": {\n \"name\": \"Maria Souza\",\n \"email\": \"maria@pizzariadamaria.com.br\",\n \"phone\": {\n \"number\": \"11987654321\"\n },\n \"identifier\": \"12345678909\"\n },\n \"address\": {\n \"postalCode\": \"01310100\",\n \"street\": \"Avenida Paulista\",\n \"number\": \"1000\",\n \"district\": \"Bela Vista\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"address": {
"country": "<string>",
"state": "<string>",
"city": "<string>",
"district": "<string>",
"street": "<string>",
"number": "<string>",
"postalCode": "<string>",
"formattedAddress": "<string>",
"coordinates": {
"latitude": 123,
"longitude": 123
},
"complement": "<string>",
"reference": "<string>"
},
"subscription": {
"status": "TRIAL",
"agreementCode": "<string>",
"warning": true,
"blocked": true,
"trialExpiresAt": "2023-11-07T05:31:56Z",
"lastActivationAt": "2023-11-07T05:31:56Z",
"lastCancellationAt": "2023-11-07T05:31:56Z",
"lastBlockedAt": "2023-11-07T05:31:56Z",
"lastWarningAt": "2023-11-07T05:31:56Z",
"planId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"features": [
{
"featureType": "DELIVERYBOT_NOTIFICATION",
"status": "ACTIVATED",
"lastActivationAt": "2023-11-07T05:31:56Z",
"lastCancellationAt": "2023-11-07T05:31:56Z"
}
],
"partnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"corporateName": "<string>",
"identifier": "<string>",
"email": "<string>",
"phone": {
"number": "5511987654321"
},
"storeUrl": "<string>",
"personResponsible": {
"name": "<string>",
"email": "<string>",
"phone": {
"number": "5511987654321"
},
"identifier": "<string>"
},
"resaleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"title": "Unauthorized",
"status": 401
}{
"status": "422",
"title": "<string>"
}{
"status": "422",
"title": "<string>"
}Autorizações
Access token OAuth 2.0 (opaco) com o escopo dv.partner, obtido em POST /authentication/v1/oauth/token.
Parâmetros de caminho
UUID do parceiro ou da revenda.
Corpo
Nome fantasia.
Razão social.
CNPJ ou CPF (somente dígitos). Ambos são aceitos e validados.
E-mail da loja.
Responsável pela loja.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Resposta
Loja criada.
UUID da loja.
Nome fantasia.
Data de criação.
Data da última alteração.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Recursos adicionais da loja.
Show child attributes
Show child attributes
UUID do parceiro.
Razão social. Omitida quando vazia.
CNPJ ou CPF. Omitido quando vazio.
E-mail da loja. Omitido quando vazio.
Show child attributes
Show child attributes
URL do domínio principal da loja. Omitida quando não há domínio.
Responsável pela loja. Omitido quando não há nenhum dado.
Show child attributes
Show child attributes
UUID da revenda. Omitido quando a loja não é de revenda.