Obter loja.
curl --request GET \
--url https://api.parcelemais.com.br/integration/v1/establishment/{estabelecimentoId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.parcelemais.com.br/integration/v1/establishment/{estabelecimentoId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.parcelemais.com.br/integration/v1/establishment/{estabelecimentoId}', 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.parcelemais.com.br/integration/v1/establishment/{estabelecimentoId}",
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.parcelemais.com.br/integration/v1/establishment/{estabelecimentoId}"
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.parcelemais.com.br/integration/v1/establishment/{estabelecimentoId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.parcelemais.com.br/integration/v1/establishment/{estabelecimentoId}")
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{
"estabelecimentoId": "9c0969d7-561e-4fae-88e7-790968fd1ddf",
"documento": "12345678000199",
"razaoSocial": "Loja Centro LTDA",
"nomeFantasia": "Loja Centro",
"ativa": true,
"modeloDesembolso": 1,
"responsavel": {
"nome": "Maria Souza",
"email": "maria.souza@lojacentro.com.br",
"celular": "+5511999998888"
},
"contaBancaria": {
"banco": "341",
"agencia": "1234",
"digitoAgencia": "",
"conta": "56789",
"digitoConta": "0",
"tipoConta": 1
},
"endereco": {
"rua": "Av. Paulista",
"numero": "1578",
"complemento": "Loja 3",
"bairro": "Bela Vista",
"cidade": "São Paulo",
"estado": "SP",
"cep": "01310100",
"pais": "Brasil"
}
}{
"tipo": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"titulo": "Requisição inválida.",
"status": 400,
"detalhe": "O campo 'cpf' é obrigatório.",
"instancia": "/v1/order",
"erros": {
"cpf": [
"O campo 'cpf' é obrigatório."
]
},
"correlationId": "0HN7E4B8Q9K3D:00000001"
}Loja
Obter loja
Retorna os dados de uma loja do parceiro pelo identificador.
GET
/
v1
/
establishment
/
{estabelecimentoId}
Obter loja.
curl --request GET \
--url https://api.parcelemais.com.br/integration/v1/establishment/{estabelecimentoId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.parcelemais.com.br/integration/v1/establishment/{estabelecimentoId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.parcelemais.com.br/integration/v1/establishment/{estabelecimentoId}', 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.parcelemais.com.br/integration/v1/establishment/{estabelecimentoId}",
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.parcelemais.com.br/integration/v1/establishment/{estabelecimentoId}"
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.parcelemais.com.br/integration/v1/establishment/{estabelecimentoId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.parcelemais.com.br/integration/v1/establishment/{estabelecimentoId}")
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{
"estabelecimentoId": "9c0969d7-561e-4fae-88e7-790968fd1ddf",
"documento": "12345678000199",
"razaoSocial": "Loja Centro LTDA",
"nomeFantasia": "Loja Centro",
"ativa": true,
"modeloDesembolso": 1,
"responsavel": {
"nome": "Maria Souza",
"email": "maria.souza@lojacentro.com.br",
"celular": "+5511999998888"
},
"contaBancaria": {
"banco": "341",
"agencia": "1234",
"digitoAgencia": "",
"conta": "56789",
"digitoConta": "0",
"tipoConta": 1
},
"endereco": {
"rua": "Av. Paulista",
"numero": "1578",
"complemento": "Loja 3",
"bairro": "Bela Vista",
"cidade": "São Paulo",
"estado": "SP",
"cep": "01310100",
"pais": "Brasil"
}
}{
"tipo": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"titulo": "Requisição inválida.",
"status": 400,
"detalhe": "O campo 'cpf' é obrigatório.",
"instancia": "/v1/order",
"erros": {
"cpf": [
"O campo 'cpf' é obrigatório."
]
},
"correlationId": "0HN7E4B8Q9K3D:00000001"
}Authorizations
Cabeçalho de autenticação Bearer no formato Bearer <token> onde <token> é seu TOKEN de autenticação
Path Parameters
Identificador da loja, retornado no cadastro.
Response
OK
CNPJ da loja.
Situação da loja. Uma loja inativa não aceita novos pedidos.
1: a rede recebe; 2: a própria loja recebe; 3: conta de terceiro.
Show child attributes
Show child attributes
Ausente quando a loja não tem conta bancária cadastrada.
Show child attributes
Show child attributes
Ausente quando a loja não tem endereço cadastrado.
Show child attributes
Show child attributes