DOCUMENTAÇÃO CORPORATIVA

Obter Estabelecimento por ID

GET     /api/broker/estabelecimento/id/{idEstabelecimento}

Endpoint responsável por buscar as informações de um Estabelecimento, através do ID do mesmo.

Headers    

Content-Type

application/json

Authorization

Bearer {token}

 

Request Query String    application/json

Schema:

Campo

Tipo

Descrição

Tamanho Máximo

Obrigatório

IdEstabelecimento

Long

ID que identifica o Estabelecimento previamente cadastrado.

-

Sim

 

Response Body    application/json

Schema:

Campo

Tipo

Descrição

IdEstabelecimento

Long

ID que identifica o Estabelecimento que foi criado.

RazaoSocial

String

Razão Social do Estabelecimento

CnpjEstabelecimento

String

CNPJ do Estabelecimento

NomeFantasia

String

Nome Fantasia do Estabelecimento

Email

String

E-mail do Estabelecimento

IdEstabelecimentoOperador

Long

ID que identifica o Operador que foi criado para o Proprietário informado no cadastro.

JSON:

{ "idEstabelecimento": 26, "razaoSocial": "TARGET MEIO DE PAGAMENTOS S. A.", "cnpjEstabelecimento": "14.821.124/0001-42", "nomeFantasia": "Target MP", "email": "atendimento@targetmp.com.br", "idEstabelecimentoOperador": 27 }


Exemplos de Implementação:

C#

var client = new RestClient("https://localhost:44380/api/OrdemTransacao?Id=1"); var request = new RestRequest(Method.GET); request.AddHeader("Content-Type", "application/json"); request.AddHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6ImNhaW8uZm9udGVzIiwianRpIjoiZDVkMmQ4ZmVlMDgwNDk2MWE3ZjQ3NWY2MjRiMTkxYmQiLCJOZXRDb3JlVXNlcklkIjoiNjdjNjVhMDQtOTM0NC00MzE0LTYwYzgtMDhkN2RjMGNkMmI2IiwiUm9sZUxldmVsIjoiMCIsIklkRXN0YWJlbGVjaW1lbnRvIjoiMCIsIklkRXN0YWJlbGVjaW1lbnRvT3BlcmFkb3IiOiIwIiwiSWRDbGllbnRlQnJva2VyIjpbIjAiLCIwIl0sInJvbGUiOiJFc3RhYmVsZWNpbWVudG8iLCJuYmYiOjE1OTIyNTk1ODcsImV4cCI6MTU5MjI2MzE4NywiaWF0IjoxNTkyMjU5NTkyLCJpc3MiOiJTc29BdWRpZW5jZSIsImF1ZCI6IlNzb0F1ZGllbmNlIn0.ktfw3Hooj022BX0A_Vhyv7qq0led91t71oSrTBkA3OU"); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content);

PHP

<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://localhost:44380/api/OrdemTransacao?Id=1", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "Content-Type: application/json", "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6ImNhaW8uZm9udGVzIiwianRpIjoiZDVkMmQ4ZmVlMDgwNDk2MWE3ZjQ3NWY2MjRiMTkxYmQiLCJOZXRDb3JlVXNlcklkIjoiNjdjNjVhMDQtOTM0NC00MzE0LTYwYzgtMDhkN2RjMGNkMmI2IiwiUm9sZUxldmVsIjoiMCIsIklkRXN0YWJlbGVjaW1lbnRvIjoiMCIsIklkRXN0YWJlbGVjaW1lbnRvT3BlcmFkb3IiOiIwIiwiSWRDbGllbnRlQnJva2VyIjpbIjAiLCIwIl0sInJvbGUiOiJFc3RhYmVsZWNpbWVudG8iLCJuYmYiOjE1OTIyNTk1ODcsImV4cCI6MTU5MjI2MzE4NywiaWF0IjoxNTkyMjU5NTkyLCJpc3MiOiJTc29BdWRpZW5jZSIsImF1ZCI6IlNzb0F1ZGllbmNlIn0.ktfw3Hooj022BX0A_Vhyv7qq0led91t71oSrTBkA3OU" ), )); $response = curl_exec($curl); curl_close($curl); echo $response;