GET api/v2/tenant/getunidades?Longitude={Longitude}&Latitude={Latitude}&TenantId={TenantId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Longitude

string

None.

Latitude

string

None.

TenantId

globally unique identifier

None.

Body Parameters

None.

Response Information

Resource Description

GetUnidadesBidingResult
NameDescriptionTypeAdditional information
Unidades

Collection of Unidade

None.

Succeeded

boolean

None.

Errors

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Unidades": [
    {
      "TenantId": "6a589c7b-3b2b-4021-8c60-780110a0d855",
      "Descricao": "sample string 2",
      "Endereco": {
        "EnderecoId": 1,
        "NomeEndereco": "sample string 2",
        "Endereco": "sample string 3",
        "Cidade": "sample string 4",
        "Estado": "sample string 5",
        "Cep": "sample string 6",
        "Numero": "sample string 7",
        "Bairro": "sample string 8",
        "Complemento": "sample string 9",
        "Latitude": "sample string 10",
        "Longitude": "sample string 11",
        "Distancia": "sample string 12",
        "Duracao": "sample string 13",
        "DistanciaValue": 14
      },
      "Filiais": [
        {
          "EnderecoId": 1,
          "NomeEndereco": "sample string 2",
          "Endereco": "sample string 3",
          "Cidade": "sample string 4",
          "Estado": "sample string 5",
          "Cep": "sample string 6",
          "Numero": "sample string 7",
          "Bairro": "sample string 8",
          "Complemento": "sample string 9",
          "Latitude": "sample string 10",
          "Longitude": "sample string 11",
          "Distancia": "sample string 12",
          "Duracao": "sample string 13",
          "DistanciaValue": 14
        },
        {
          "EnderecoId": 1,
          "NomeEndereco": "sample string 2",
          "Endereco": "sample string 3",
          "Cidade": "sample string 4",
          "Estado": "sample string 5",
          "Cep": "sample string 6",
          "Numero": "sample string 7",
          "Bairro": "sample string 8",
          "Complemento": "sample string 9",
          "Latitude": "sample string 10",
          "Longitude": "sample string 11",
          "Distancia": "sample string 12",
          "Duracao": "sample string 13",
          "DistanciaValue": 14
        }
      ],
      "DescrFiliais": [
        {
          "Id": 1,
          "TpFarmacia": "sample string 2",
          "TenantId": "sample string 3",
          "SubClientId": "sample string 4",
          "CdFilial": "sample string 5",
          "Nome": "sample string 6",
          "TenantGroupId": "sample string 7",
          "EnderecoId": 8,
          "Ender": "sample string 9",
          "EndNr": "sample string 10",
          "Bairr": "sample string 11",
          "Munic": "sample string 12",
          "Estado": "sample string 13",
          "NrCep": "sample string 14",
          "Distancia": "sample string 15",
          "DistanciaOrdenar": 16.1
        },
        {
          "Id": 1,
          "TpFarmacia": "sample string 2",
          "TenantId": "sample string 3",
          "SubClientId": "sample string 4",
          "CdFilial": "sample string 5",
          "Nome": "sample string 6",
          "TenantGroupId": "sample string 7",
          "EnderecoId": 8,
          "Ender": "sample string 9",
          "EndNr": "sample string 10",
          "Bairr": "sample string 11",
          "Munic": "sample string 12",
          "Estado": "sample string 13",
          "NrCep": "sample string 14",
          "Distancia": "sample string 15",
          "DistanciaOrdenar": 16.1
        }
      ],
      "Destino": "d1925167-f3d4-4ff6-8df7-6dbd5ea261fc"
    },
    {
      "TenantId": "6a589c7b-3b2b-4021-8c60-780110a0d855",
      "Descricao": "sample string 2",
      "Endereco": {
        "EnderecoId": 1,
        "NomeEndereco": "sample string 2",
        "Endereco": "sample string 3",
        "Cidade": "sample string 4",
        "Estado": "sample string 5",
        "Cep": "sample string 6",
        "Numero": "sample string 7",
        "Bairro": "sample string 8",
        "Complemento": "sample string 9",
        "Latitude": "sample string 10",
        "Longitude": "sample string 11",
        "Distancia": "sample string 12",
        "Duracao": "sample string 13",
        "DistanciaValue": 14
      },
      "Filiais": [
        {
          "EnderecoId": 1,
          "NomeEndereco": "sample string 2",
          "Endereco": "sample string 3",
          "Cidade": "sample string 4",
          "Estado": "sample string 5",
          "Cep": "sample string 6",
          "Numero": "sample string 7",
          "Bairro": "sample string 8",
          "Complemento": "sample string 9",
          "Latitude": "sample string 10",
          "Longitude": "sample string 11",
          "Distancia": "sample string 12",
          "Duracao": "sample string 13",
          "DistanciaValue": 14
        },
        {
          "EnderecoId": 1,
          "NomeEndereco": "sample string 2",
          "Endereco": "sample string 3",
          "Cidade": "sample string 4",
          "Estado": "sample string 5",
          "Cep": "sample string 6",
          "Numero": "sample string 7",
          "Bairro": "sample string 8",
          "Complemento": "sample string 9",
          "Latitude": "sample string 10",
          "Longitude": "sample string 11",
          "Distancia": "sample string 12",
          "Duracao": "sample string 13",
          "DistanciaValue": 14
        }
      ],
      "DescrFiliais": [
        {
          "Id": 1,
          "TpFarmacia": "sample string 2",
          "TenantId": "sample string 3",
          "SubClientId": "sample string 4",
          "CdFilial": "sample string 5",
          "Nome": "sample string 6",
          "TenantGroupId": "sample string 7",
          "EnderecoId": 8,
          "Ender": "sample string 9",
          "EndNr": "sample string 10",
          "Bairr": "sample string 11",
          "Munic": "sample string 12",
          "Estado": "sample string 13",
          "NrCep": "sample string 14",
          "Distancia": "sample string 15",
          "DistanciaOrdenar": 16.1
        },
        {
          "Id": 1,
          "TpFarmacia": "sample string 2",
          "TenantId": "sample string 3",
          "SubClientId": "sample string 4",
          "CdFilial": "sample string 5",
          "Nome": "sample string 6",
          "TenantGroupId": "sample string 7",
          "EnderecoId": 8,
          "Ender": "sample string 9",
          "EndNr": "sample string 10",
          "Bairr": "sample string 11",
          "Munic": "sample string 12",
          "Estado": "sample string 13",
          "NrCep": "sample string 14",
          "Distancia": "sample string 15",
          "DistanciaOrdenar": 16.1
        }
      ],
      "Destino": "d1925167-f3d4-4ff6-8df7-6dbd5ea261fc"
    }
  ],
  "Succeeded": true,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<GetUnidadesBidingResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models.Results">
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <Succeeded xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">true</Succeeded>
  <Unidades>
    <Unidade>
      <DescrFiliais xmlns:d4p1="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models.v1.Results">
        <d4p1:GetFiliaisItemResult>
          <d4p1:Bairr>sample string 11</d4p1:Bairr>
          <d4p1:CdFilial>sample string 5</d4p1:CdFilial>
          <d4p1:Distancia>sample string 15</d4p1:Distancia>
          <d4p1:DistanciaOrdenar>16.1</d4p1:DistanciaOrdenar>
          <d4p1:EndNr>sample string 10</d4p1:EndNr>
          <d4p1:Ender>sample string 9</d4p1:Ender>
          <d4p1:EnderecoId>8</d4p1:EnderecoId>
          <d4p1:Estado>sample string 13</d4p1:Estado>
          <d4p1:Id>1</d4p1:Id>
          <d4p1:Munic>sample string 12</d4p1:Munic>
          <d4p1:Nome>sample string 6</d4p1:Nome>
          <d4p1:NrCep>sample string 14</d4p1:NrCep>
          <d4p1:SubClientId>sample string 4</d4p1:SubClientId>
          <d4p1:TenantGroupId>sample string 7</d4p1:TenantGroupId>
          <d4p1:TenantId>sample string 3</d4p1:TenantId>
          <d4p1:TpFarmacia>sample string 2</d4p1:TpFarmacia>
        </d4p1:GetFiliaisItemResult>
        <d4p1:GetFiliaisItemResult>
          <d4p1:Bairr>sample string 11</d4p1:Bairr>
          <d4p1:CdFilial>sample string 5</d4p1:CdFilial>
          <d4p1:Distancia>sample string 15</d4p1:Distancia>
          <d4p1:DistanciaOrdenar>16.1</d4p1:DistanciaOrdenar>
          <d4p1:EndNr>sample string 10</d4p1:EndNr>
          <d4p1:Ender>sample string 9</d4p1:Ender>
          <d4p1:EnderecoId>8</d4p1:EnderecoId>
          <d4p1:Estado>sample string 13</d4p1:Estado>
          <d4p1:Id>1</d4p1:Id>
          <d4p1:Munic>sample string 12</d4p1:Munic>
          <d4p1:Nome>sample string 6</d4p1:Nome>
          <d4p1:NrCep>sample string 14</d4p1:NrCep>
          <d4p1:SubClientId>sample string 4</d4p1:SubClientId>
          <d4p1:TenantGroupId>sample string 7</d4p1:TenantGroupId>
          <d4p1:TenantId>sample string 3</d4p1:TenantId>
          <d4p1:TpFarmacia>sample string 2</d4p1:TpFarmacia>
        </d4p1:GetFiliaisItemResult>
      </DescrFiliais>
      <Descricao>sample string 2</Descricao>
      <Destino>d1925167-f3d4-4ff6-8df7-6dbd5ea261fc</Destino>
      <Endereco xmlns:d4p1="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">
        <d4p1:Bairro>sample string 8</d4p1:Bairro>
        <d4p1:Cep>sample string 6</d4p1:Cep>
        <d4p1:Cidade>sample string 4</d4p1:Cidade>
        <d4p1:Complemento>sample string 9</d4p1:Complemento>
        <d4p1:Distancia>sample string 12</d4p1:Distancia>
        <d4p1:DistanciaValue>14</d4p1:DistanciaValue>
        <d4p1:Duracao>sample string 13</d4p1:Duracao>
        <d4p1:Endereco>sample string 3</d4p1:Endereco>
        <d4p1:EnderecoId>1</d4p1:EnderecoId>
        <d4p1:Estado>sample string 5</d4p1:Estado>
        <d4p1:Latitude>sample string 10</d4p1:Latitude>
        <d4p1:Longitude>sample string 11</d4p1:Longitude>
        <d4p1:NomeEndereco>sample string 2</d4p1:NomeEndereco>
        <d4p1:Numero>sample string 7</d4p1:Numero>
      </Endereco>
      <Filiais xmlns:d4p1="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">
        <d4p1:GetEnderecosItemResult>
          <d4p1:Bairro>sample string 8</d4p1:Bairro>
          <d4p1:Cep>sample string 6</d4p1:Cep>
          <d4p1:Cidade>sample string 4</d4p1:Cidade>
          <d4p1:Complemento>sample string 9</d4p1:Complemento>
          <d4p1:Distancia>sample string 12</d4p1:Distancia>
          <d4p1:DistanciaValue>14</d4p1:DistanciaValue>
          <d4p1:Duracao>sample string 13</d4p1:Duracao>
          <d4p1:Endereco>sample string 3</d4p1:Endereco>
          <d4p1:EnderecoId>1</d4p1:EnderecoId>
          <d4p1:Estado>sample string 5</d4p1:Estado>
          <d4p1:Latitude>sample string 10</d4p1:Latitude>
          <d4p1:Longitude>sample string 11</d4p1:Longitude>
          <d4p1:NomeEndereco>sample string 2</d4p1:NomeEndereco>
          <d4p1:Numero>sample string 7</d4p1:Numero>
        </d4p1:GetEnderecosItemResult>
        <d4p1:GetEnderecosItemResult>
          <d4p1:Bairro>sample string 8</d4p1:Bairro>
          <d4p1:Cep>sample string 6</d4p1:Cep>
          <d4p1:Cidade>sample string 4</d4p1:Cidade>
          <d4p1:Complemento>sample string 9</d4p1:Complemento>
          <d4p1:Distancia>sample string 12</d4p1:Distancia>
          <d4p1:DistanciaValue>14</d4p1:DistanciaValue>
          <d4p1:Duracao>sample string 13</d4p1:Duracao>
          <d4p1:Endereco>sample string 3</d4p1:Endereco>
          <d4p1:EnderecoId>1</d4p1:EnderecoId>
          <d4p1:Estado>sample string 5</d4p1:Estado>
          <d4p1:Latitude>sample string 10</d4p1:Latitude>
          <d4p1:Longitude>sample string 11</d4p1:Longitude>
          <d4p1:NomeEndereco>sample string 2</d4p1:NomeEndereco>
          <d4p1:Numero>sample string 7</d4p1:Numero>
        </d4p1:GetEnderecosItemResult>
      </Filiais>
      <TenantId>6a589c7b-3b2b-4021-8c60-780110a0d855</TenantId>
    </Unidade>
    <Unidade>
      <DescrFiliais xmlns:d4p1="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models.v1.Results">
        <d4p1:GetFiliaisItemResult>
          <d4p1:Bairr>sample string 11</d4p1:Bairr>
          <d4p1:CdFilial>sample string 5</d4p1:CdFilial>
          <d4p1:Distancia>sample string 15</d4p1:Distancia>
          <d4p1:DistanciaOrdenar>16.1</d4p1:DistanciaOrdenar>
          <d4p1:EndNr>sample string 10</d4p1:EndNr>
          <d4p1:Ender>sample string 9</d4p1:Ender>
          <d4p1:EnderecoId>8</d4p1:EnderecoId>
          <d4p1:Estado>sample string 13</d4p1:Estado>
          <d4p1:Id>1</d4p1:Id>
          <d4p1:Munic>sample string 12</d4p1:Munic>
          <d4p1:Nome>sample string 6</d4p1:Nome>
          <d4p1:NrCep>sample string 14</d4p1:NrCep>
          <d4p1:SubClientId>sample string 4</d4p1:SubClientId>
          <d4p1:TenantGroupId>sample string 7</d4p1:TenantGroupId>
          <d4p1:TenantId>sample string 3</d4p1:TenantId>
          <d4p1:TpFarmacia>sample string 2</d4p1:TpFarmacia>
        </d4p1:GetFiliaisItemResult>
        <d4p1:GetFiliaisItemResult>
          <d4p1:Bairr>sample string 11</d4p1:Bairr>
          <d4p1:CdFilial>sample string 5</d4p1:CdFilial>
          <d4p1:Distancia>sample string 15</d4p1:Distancia>
          <d4p1:DistanciaOrdenar>16.1</d4p1:DistanciaOrdenar>
          <d4p1:EndNr>sample string 10</d4p1:EndNr>
          <d4p1:Ender>sample string 9</d4p1:Ender>
          <d4p1:EnderecoId>8</d4p1:EnderecoId>
          <d4p1:Estado>sample string 13</d4p1:Estado>
          <d4p1:Id>1</d4p1:Id>
          <d4p1:Munic>sample string 12</d4p1:Munic>
          <d4p1:Nome>sample string 6</d4p1:Nome>
          <d4p1:NrCep>sample string 14</d4p1:NrCep>
          <d4p1:SubClientId>sample string 4</d4p1:SubClientId>
          <d4p1:TenantGroupId>sample string 7</d4p1:TenantGroupId>
          <d4p1:TenantId>sample string 3</d4p1:TenantId>
          <d4p1:TpFarmacia>sample string 2</d4p1:TpFarmacia>
        </d4p1:GetFiliaisItemResult>
      </DescrFiliais>
      <Descricao>sample string 2</Descricao>
      <Destino>d1925167-f3d4-4ff6-8df7-6dbd5ea261fc</Destino>
      <Endereco xmlns:d4p1="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">
        <d4p1:Bairro>sample string 8</d4p1:Bairro>
        <d4p1:Cep>sample string 6</d4p1:Cep>
        <d4p1:Cidade>sample string 4</d4p1:Cidade>
        <d4p1:Complemento>sample string 9</d4p1:Complemento>
        <d4p1:Distancia>sample string 12</d4p1:Distancia>
        <d4p1:DistanciaValue>14</d4p1:DistanciaValue>
        <d4p1:Duracao>sample string 13</d4p1:Duracao>
        <d4p1:Endereco>sample string 3</d4p1:Endereco>
        <d4p1:EnderecoId>1</d4p1:EnderecoId>
        <d4p1:Estado>sample string 5</d4p1:Estado>
        <d4p1:Latitude>sample string 10</d4p1:Latitude>
        <d4p1:Longitude>sample string 11</d4p1:Longitude>
        <d4p1:NomeEndereco>sample string 2</d4p1:NomeEndereco>
        <d4p1:Numero>sample string 7</d4p1:Numero>
      </Endereco>
      <Filiais xmlns:d4p1="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">
        <d4p1:GetEnderecosItemResult>
          <d4p1:Bairro>sample string 8</d4p1:Bairro>
          <d4p1:Cep>sample string 6</d4p1:Cep>
          <d4p1:Cidade>sample string 4</d4p1:Cidade>
          <d4p1:Complemento>sample string 9</d4p1:Complemento>
          <d4p1:Distancia>sample string 12</d4p1:Distancia>
          <d4p1:DistanciaValue>14</d4p1:DistanciaValue>
          <d4p1:Duracao>sample string 13</d4p1:Duracao>
          <d4p1:Endereco>sample string 3</d4p1:Endereco>
          <d4p1:EnderecoId>1</d4p1:EnderecoId>
          <d4p1:Estado>sample string 5</d4p1:Estado>
          <d4p1:Latitude>sample string 10</d4p1:Latitude>
          <d4p1:Longitude>sample string 11</d4p1:Longitude>
          <d4p1:NomeEndereco>sample string 2</d4p1:NomeEndereco>
          <d4p1:Numero>sample string 7</d4p1:Numero>
        </d4p1:GetEnderecosItemResult>
        <d4p1:GetEnderecosItemResult>
          <d4p1:Bairro>sample string 8</d4p1:Bairro>
          <d4p1:Cep>sample string 6</d4p1:Cep>
          <d4p1:Cidade>sample string 4</d4p1:Cidade>
          <d4p1:Complemento>sample string 9</d4p1:Complemento>
          <d4p1:Distancia>sample string 12</d4p1:Distancia>
          <d4p1:DistanciaValue>14</d4p1:DistanciaValue>
          <d4p1:Duracao>sample string 13</d4p1:Duracao>
          <d4p1:Endereco>sample string 3</d4p1:Endereco>
          <d4p1:EnderecoId>1</d4p1:EnderecoId>
          <d4p1:Estado>sample string 5</d4p1:Estado>
          <d4p1:Latitude>sample string 10</d4p1:Latitude>
          <d4p1:Longitude>sample string 11</d4p1:Longitude>
          <d4p1:NomeEndereco>sample string 2</d4p1:NomeEndereco>
          <d4p1:Numero>sample string 7</d4p1:Numero>
        </d4p1:GetEnderecosItemResult>
      </Filiais>
      <TenantId>6a589c7b-3b2b-4021-8c60-780110a0d855</TenantId>
    </Unidade>
  </Unidades>
</GetUnidadesBidingResult>