Listar faturas das revendas
curl --request GET \
--url https://api.deliveryvip.com.br/partner/v2/{partnerId}/resales/invoices \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.deliveryvip.com.br/partner/v2/{partnerId}/resales/invoices"
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/{partnerId}/resales/invoices', 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}/resales/invoices",
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/{partnerId}/resales/invoices"
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/{partnerId}/resales/invoices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deliveryvip.com.br/partner/v2/{partnerId}/resales/invoices")
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[
{
"resaleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"month": 123,
"year": 123,
"totalPrice": [
{
"type": "PAYABLE",
"value": 123,
"usageTimeValue": 123,
"currency": "BRL"
}
],
"plans": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"code": "<string>",
"totalSubscriptions": 123,
"totalPrice": [
{
"type": "PAYABLE",
"value": 123,
"usageTimeValue": 123,
"currency": "BRL"
}
]
}
],
"items": [
{
"itemType": "DELIVERY_TAKEOUT",
"quantity": 123,
"totalPrice": [
{
"type": "PAYABLE",
"value": 123,
"usageTimeValue": 123,
"currency": "BRL"
}
]
}
]
}
]{
"title": "Unauthorized",
"status": 401
}{
"status": "422",
"title": "<string>"
}Faturas
Listar faturas das revendas
Resume, por revenda, as faturas do mês das revendas do parceiro. Faturas de lojas vendidas diretamente pelo parceiro não entram. Os blocos de preço RECEIVABLE só aparecem quando o parceiro tem tabela de preços própria.
GET
/
partner
/
v2
/
{partnerId}
/
resales
/
invoices
Listar faturas das revendas
curl --request GET \
--url https://api.deliveryvip.com.br/partner/v2/{partnerId}/resales/invoices \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.deliveryvip.com.br/partner/v2/{partnerId}/resales/invoices"
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/{partnerId}/resales/invoices', 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}/resales/invoices",
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/{partnerId}/resales/invoices"
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/{partnerId}/resales/invoices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deliveryvip.com.br/partner/v2/{partnerId}/resales/invoices")
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[
{
"resaleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"month": 123,
"year": 123,
"totalPrice": [
{
"type": "PAYABLE",
"value": 123,
"usageTimeValue": 123,
"currency": "BRL"
}
],
"plans": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"code": "<string>",
"totalSubscriptions": 123,
"totalPrice": [
{
"type": "PAYABLE",
"value": 123,
"usageTimeValue": 123,
"currency": "BRL"
}
]
}
],
"items": [
{
"itemType": "DELIVERY_TAKEOUT",
"quantity": 123,
"totalPrice": [
{
"type": "PAYABLE",
"value": 123,
"usageTimeValue": 123,
"currency": "BRL"
}
]
}
]
}
]{
"title": "Unauthorized",
"status": 401
}{
"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.
Parâmetros de consulta
Ano de referência. Padrão é o ano corrente.
Exemplo:
2026
Mês de referência (1 a 12). Padrão é o mês corrente.
Intervalo obrigatório:
1 <= x <= 12Exemplo:
10
Resposta
Resumo das faturas por revenda.
UUID da revenda.
Mês de referência.
Ano de referência.
Totais da revenda no mês.
Show child attributes
Show child attributes
Totais por plano.
Show child attributes
Show child attributes
Totais por recurso.
Show child attributes
Show child attributes