Consultar loja
curl --request GET \
--url https://api.deliveryvip.com.br/partner/v2/merchants/{merchantId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.deliveryvip.com.br/partner/v2/merchants/{merchantId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.deliveryvip.com.br/partner/v2/merchants/{merchantId}', 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/merchants/{merchantId}",
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://api.deliveryvip.com.br/partner/v2/merchants/{merchantId}"
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://api.deliveryvip.com.br/partner/v2/merchants/{merchantId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deliveryvip.com.br/partner/v2/merchants/{merchantId}")
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{
"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>"
}Detalhes
Consultar loja
Retorna uma loja do parceiro ou de uma de suas revendas.
GET
/
partner
/
v2
/
merchants
/
{merchantId}
Consultar loja
curl --request GET \
--url https://api.deliveryvip.com.br/partner/v2/merchants/{merchantId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.deliveryvip.com.br/partner/v2/merchants/{merchantId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.deliveryvip.com.br/partner/v2/merchants/{merchantId}', 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/merchants/{merchantId}",
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://api.deliveryvip.com.br/partner/v2/merchants/{merchantId}"
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://api.deliveryvip.com.br/partner/v2/merchants/{merchantId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deliveryvip.com.br/partner/v2/merchants/{merchantId}")
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{
"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 da loja.
Resposta
Loja encontrada.
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.