Listagem de Sellers
curl --request GET \
--url https://api.example.com/sellersimport requests
url = "https://api.example.com/sellers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/sellers', 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.example.com/sellers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/sellers"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/sellers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/sellers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "seller_123",
"name": "Loja do João",
"document": "123.456.789-00",
"status": "active"
},
{
"id": "seller_456",
"name": "Mega Store",
"document": "98.765.432/0001-10",
"status": "active"
},
{
"id": "seller_789",
"name": "Boutique Maria",
"document": "456.789.123-00",
"status": "inactive"
}
]
Sellers
Listagem de Sellers
Endpoint para listar todos os sellers da plataforma
GET
/
sellers
Listagem de Sellers
curl --request GET \
--url https://api.example.com/sellersimport requests
url = "https://api.example.com/sellers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/sellers', 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.example.com/sellers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/sellers"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/sellers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/sellers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "seller_123",
"name": "Loja do João",
"document": "123.456.789-00",
"status": "active"
},
{
"id": "seller_456",
"name": "Mega Store",
"document": "98.765.432/0001-10",
"status": "active"
},
{
"id": "seller_789",
"name": "Boutique Maria",
"document": "456.789.123-00",
"status": "inactive"
}
]
Listagem de Sellers
Este endpoint permite obter uma lista de todos os sellers cadastrados na sua conta, incluindo informações básicas como nome, documento e status.Parâmetros
Este endpoint não requer parâmetros específicos.Resposta
[
{
"id": "seller_123",
"name": "Loja do João",
"document": "123.456.789-00",
"status": "active"
},
{
"id": "seller_456",
"name": "Mega Store",
"document": "98.765.432/0001-10",
"status": "active"
},
{
"id": "seller_789",
"name": "Boutique Maria",
"document": "456.789.123-00",
"status": "inactive"
}
]
Códigos de Resposta
200- Lista de sellers retornada com sucesso401- Erro de autenticação
Observações
- O campo
statuspode ter os valores: “active”, “inactive”, “pending” ou “blocked”. - Este endpoint retorna no máximo 100 sellers por página. Para resultados paginados, utilize os parâmetros
pageelimit(não disponíveis nesta versão inicial). - A ordem de retorno é por data de criação, do mais recente para o mais antigo.
