Detalhes do Seller
curl --request GET \
--url https://api.example.com/sellers/{id}import requests
url = "https://api.example.com/sellers/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/sellers/{id}', 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/{id}",
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/{id}"
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/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/sellers/{id}")
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",
"email": "[email protected]",
"phone": "11 98765-4321",
"createdAt": "2023-01-15T10:30:45Z",
"bank_info": {
"bank_code": "001",
"bank_name": "Banco do Brasil",
"account_type": "checking",
"account_number": "12345-6",
"agency": "1234",
"document": "123.456.789-00",
"document_type": "cpf",
"name": "João da Silva"
},
"address": {
"street": "Rua dos Comerciantes",
"number": "123",
"complement": "Sala 45",
"neighborhood": "Centro",
"city": "São Paulo",
"state": "SP",
"zipcode": "01234-567"
}
}
Sellers
Detalhes do Seller
Endpoint para obter informações detalhadas de um seller específico
GET
/
sellers
/
{id}
Detalhes do Seller
curl --request GET \
--url https://api.example.com/sellers/{id}import requests
url = "https://api.example.com/sellers/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/sellers/{id}', 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/{id}",
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/{id}"
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/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/sellers/{id}")
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",
"email": "[email protected]",
"phone": "11 98765-4321",
"createdAt": "2023-01-15T10:30:45Z",
"bank_info": {
"bank_code": "001",
"bank_name": "Banco do Brasil",
"account_type": "checking",
"account_number": "12345-6",
"agency": "1234",
"document": "123.456.789-00",
"document_type": "cpf",
"name": "João da Silva"
},
"address": {
"street": "Rua dos Comerciantes",
"number": "123",
"complement": "Sala 45",
"neighborhood": "Centro",
"city": "São Paulo",
"state": "SP",
"zipcode": "01234-567"
}
}
Detalhes do Seller
Este endpoint permite obter informações detalhadas de um seller específico, incluindo dados bancários e outras informações não disponíveis na listagem geral.Parâmetros da URL
string
required
ID do seller
Resposta
{
"id": "seller_123",
"name": "Loja do João",
"document": "123.456.789-00",
"status": "active",
"email": "[email protected]",
"phone": "11 98765-4321",
"createdAt": "2023-01-15T10:30:45Z",
"bank_info": {
"bank_code": "001",
"bank_name": "Banco do Brasil",
"account_type": "checking",
"account_number": "12345-6",
"agency": "1234",
"document": "123.456.789-00",
"document_type": "cpf",
"name": "João da Silva"
},
"address": {
"street": "Rua dos Comerciantes",
"number": "123",
"complement": "Sala 45",
"neighborhood": "Centro",
"city": "São Paulo",
"state": "SP",
"zipcode": "01234-567"
}
}
Códigos de Resposta
200- Detalhes do seller retornados com sucesso401- Erro de autenticação404- Seller não encontrado
Observações
- As informações bancárias (
bank_info) só estão disponíveis para sellers que já completaram o cadastro bancário. - O campo
statuspode ter os valores: “active”, “inactive”, “pending” ou “blocked”. - Apenas sellers com status “active” podem receber pagamentos através da plataforma.
