Mudanças entre as edições de "Controllr/API/REST-HTTP/Área Administrativa"

De BrByte Wiki
< Controllr‎ | API‎ | REST-HTTP
Linha 4: Linha 4:
  
 
É diferente do acesso dá área do cliente, que utiliza por padrão a porta 80, através do acesso do Hotsite.
 
É diferente do acesso dá área do cliente, que utiliza por padrão a porta 80, através do acesso do Hotsite.
 +
 +
{| class="table table-responsive table-striped"
 +
! style="text-align:center;" colspan="3"| COMANDOS WHERE
 +
|-
 +
! FIELD
 +
! OPER
 +
! VALUE
 +
|-
 +
| style="text-align:left;" | Nome da tabela que irá utilizar o filtro || Código do comando Where || Valor que usará para retornar o filtro desejado
 +
|-
 +
! style="text-align:center;" colspan="3"| EXEMPLOS
 +
|-
 +
| style="text-align:left;" colspan="2" | where = [{"field":"client.client_doc1","oper":5,"value":"69120603070"}]
 +
| style="text-align:left;" | Usamos o código 5 do OPER que representa (=) Igualdade
 +
|-
 +
| style="text-align:left;" colspan="2" | [{"field":"client.client_complete_name","oper":10,"value":"Teste%"}]
 +
| style="text-align:left;" | Usamos o código 10 do OPER que representa o ILIKE, lista todos nomes compatíveis usando o %
 +
|}
 +
 +
"OPER":1 = Menor Que <
 +
"OPER":2 = Maior Que >
 +
"OPER":3 = Menor ou Igual à <=
 +
"OPER":4 = Maior ou Igual à >=
 +
"OPER":5 = Igual =
 +
"OPER":6 = Diferente !=
 +
"OPER":7 = é IS
 +
"OPER":8 = Não é IS NOT
 +
"OPER":9 = LIKE
 +
"OPER":10 = ILIKE
 +
  
 
=='''Listagem dos Clientes'''==
 
=='''Listagem dos Clientes'''==
Linha 63: Linha 93:
 
             "cli_addr_state": "MS",
 
             "cli_addr_state": "MS",
 
             "cli_addr_completation": ""
 
             "cli_addr_completation": ""
        }
 
</pre></blockquote>
 
 
=='''Alterar senha do Login'''==
 
 
<div>
 
<span class="label label-info">POST</span> <span class="label label-concrete">/session/setpassword</span>
 
</div>
 
 
 
{| class='table table-responsive table-striped'
 
! PROPRIEDADE
 
! TIPO
 
! TAMANHO
 
! OBRIGATÓRIO
 
! DESCRIÇÃO
 
|-
 
| user_password || Texto || 8~16 || Sim || Senha
 
|-
 
| user_password_repeat || Texto || 8~16 || Sim || Senha de novo
 
|-
 
|}
 
 
<blockquote><pre>
 
 
curl -i -X POST \
 
    -H "Content-Type:application/x-www-form-urlencoded" \
 
    -H "Accept:application/json" \
 
    -d "user_password: Nova senha" \
 
    -d "user_password_repeat: Nova senha" \
 
    <nowiki>'http://192.168.142.23/session/setpassword'</nowiki>
 
 
</pre></blockquote>
 
 
<div>
 
<span class="label label-success">Resposta</span> <span class="label label-concrete">JSON</span>
 
</div>
 
 
<blockquote class="blockquote-neutral"><pre>
 
 
{
 
    "success": true,
 
    "total": 1,
 
    "results": [
 
        {
 
            "client_username": "teste",
 
            "client_pk": 1
 
 
         }
 
         }
 
     ]
 
     ]
 
}
 
}
 
 
</pre></blockquote>
 
</pre></blockquote>
  
=='''Listagem do Contratos'''==
 
  
<div>
+
Exemplo de como usar o parâmetro WHERE
<span class="label label-info">POST</span> <span class="label label-concrete">/controllr_client/contract/list</span>
 
</div>
 
  
<blockquote><pre>
+
Localizar o clientes através do CPF/CNPJ
  
  curl -i -X POST \
+
where = [{"field":"client.client_doc1","oper":5,"value":"69120603070"}]
        -H "Content-Type:application/x-www-form-urlencoded" \
 
        -H "Accept:application/json" \
 
        -d "limit: 10" \
 
        -d "start: 0" \
 
        -d "sort: contract_pk" \
 
        -d "dir: ASC" \
 
      <nowiki>'http://192.168.142.23/controllr_client/contract/list'</nowiki>
 
  
</pre></blockquote>
+
Localizar o clientes através do nome Completo
  
<div>
+
where = [{"field":"client.client_complete_name","oper":5,"value":"Teste1 BrByte"}]
<span class="label label-success">Resposta</span> <span class="label label-concrete">JSON</span>
 
</div>
 
  
<blockquote class="blockquote-neutral"><pre>
 
  
{
 
    "success": true,
 
    "total": 1,
 
    "results": [
 
        {
 
            "contract_pk": 3,
 
            "contract_number": 3,
 
            "contract_pay_day": 10,
 
            "contract_amount": "1",
 
            "contract_date_cad": "2018-05-15 16:19:45"
 
        }
 
    ]
 
}
 
  
</pre></blockquote>
 
  
=='''Listagem de Cobranças'''==
+
"OPER":0 = Nulo NULL
 +
"OPER":1 = Menor Que <
 +
"OPER":2 = Maior Que >
 +
"OPER":3 = Menor ou Igual à <=
 +
"OPER":4 = Maior ou Igual à >=
 +
"OPER":5 = Igual =
 +
"OPER":6 = Diferente !=
 +
"OPER":7 = é IS
 +
"OPER":8 = Não é IS NOT
 +
"OPER":9 = LIKE
 +
"OPER":10 = ILIKE
  
<div>
 
<span class="label label-info">POST</span> <span class="label label-concrete">/invoice_ctl/invoice/list</span>
 
</div>
 
  
<blockquote><pre>
+
==='''Listagem dos Contratos'''===
 
 
  curl -i -X POST \
 
        -H "Content-Type:application/x-www-form-urlencoded" \
 
        -H "Accept:application/json" \
 
        -d "limit: 15" \
 
        -d "start: 0" \
 
        -d "page: 0" \
 
        -d "sort: invoice_date_due" \
 
        -d "dir: DESC" \
 
      <nowiki>'http://192.168.142.23/invoice_ctl/invoice/list'</nowiki>
 
 
 
</pre></blockquote>
 
  
 
<div>
 
<div>
<span class="label label-success">Resposta</span> <span class="label label-concrete">JSON</span>
+
<span class="label label-info">POST</span> <span class="label label-concrete">/controllrctl/contract/list</span>
</div>
 
 
 
<blockquote class="blockquote-neutral"><pre>
 
 
 
{
 
    "success": true,
 
    "total": 2,
 
    "results": [
 
        {
 
            "contract_pk": null,
 
            "contract_number": null,
 
            "invoice_pk": 11,
 
            "bank_account_code": "0",
 
            "invoice_gn_link": null,
 
            "invoice_date_due": "2018-05-11",
 
            "invoice_amount_document": "15",
 
            "invoice_date_credit": "2018-05-11",
 
            "invoice_amount_paid": "15.00",
 
            "invoice_type": 1,
 
            "invoice_state": 0,
 
            "invoice_obs": 4
 
        },
 
        {
 
            "contract_pk": null,
 
            "contract_number": null,
 
            "invoice_pk": 2,
 
            "bank_account_code": "0",
 
            "invoice_gn_link": null,
 
            "invoice_date_due": "2018-05-09",
 
            "invoice_amount_document": "123",
 
            "invoice_date_credit": "2018-05-14",
 
            "invoice_amount_paid": "123.00",
 
            "invoice_type": 1,
 
            "invoice_state": 0,
 
            "invoice_obs": 4
 
        }
 
    ]
 
}
 
 
 
</pre></blockquote>
 
 
 
=='''Listagem de Conexões'''==
 
 
 
<div>
 
<span class="label label-info">POST</span> <span class="label label-concrete">/controllr_client/cpe/list</span>
 
 
</div>
 
</div>
  
Linha 230: Linha 135:
 
   curl -i -X POST \
 
   curl -i -X POST \
 
         -H "Content-Type:application/x-www-form-urlencoded" \
 
         -H "Content-Type:application/x-www-form-urlencoded" \
         -H "Accept:application/json" \
+
         -H "Accept:application/json" \ 
 +
        -d "where: [{"field":"contract_deleted","oper":5,"value":false},{"field":"AND"},{"field":"contract_status","oper":5,"value":0}]" \
 +
        -d "client_complete_name:" \
 +
        -d "offices_pk: 0" \
 +
        -d "username: admin" \
 +
        -d "page: 1" \       
 +
        -d "start: 0" \
 
         -d "limit: 15" \
 
         -d "limit: 15" \
        -d "start: 0" \
+
         -d "sort: contract_number" \
        -d "page: 0" \
 
        -d "sort: contract_pk" \
 
        -d "dir: DESC" \
 
      <nowiki>'http://192.168.142.23/controllr_client/cpe/list'</nowiki>
 
 
 
</pre></blockquote>
 
 
 
<div>
 
<span class="label label-success">Resposta</span> <span class="label label-concrete">JSON</span>
 
</div>
 
 
 
<blockquote class="blockquote-neutral"><pre>
 
 
 
{
 
    "success": true,
 
    "total": 1,
 
    "results": [
 
        {
 
            "network_cpe_pk": 2,
 
            "network_cpe_automac": false,
 
            "network_cpe_autoip": false,
 
            "network_cpe_status": 0,
 
            "network_cpe_ip": "",
 
            "network_cpe_mac": "",
 
            "network_cpe_mac_status": 2,
 
            "network_cpe_ip_status": 2,
 
            "network_cpe_username": "123",
 
            "network_cpe_password": "123",
 
            "network_cpe_authentication_type": 3,
 
            "network_cpe_date_cad": "2018-05-15 16:20:34",
 
            "network_cpe_deleted": false,
 
            "network_cpe_commom_interface": null,
 
            "network_cpe_commom_device_name": null,
 
            "network_cpe_commom_lastip": null,
 
            "network_cpe_commom_rates": null,
 
            "network_cpe_commom_rx_rate": null,
 
            "network_cpe_commom_tx_rate": null,
 
            "network_cpe_commom_distance": null,
 
            "network_cpe_commom_tx_ccq": null,
 
            "network_cpe_commom_signal_rx": null,
 
            "network_cpe_commom_signal_tx": null,
 
            "network_cpe_commom_noisefloor": null,
 
            "network_cpe_commom_idle": null,
 
            "network_cpe_commom_tx_bytes": null,
 
            "network_cpe_commom_rx_bytes": null,
 
            "network_cpe_especdata": null,
 
            "network_cpe_commom_rx_ccq": null,
 
            "network_cpe_commom_ping": null,
 
            "network_cpe_commom_uptime": null,
 
            "network_cpe_lending": 0,
 
            "network_cpe_lastupdate": null,
 
            "network_cpe_reduced_speed": false,
 
            "network_cpe_reduced_speed_date": null,
 
            "network_cpe_turbo_active": false,
 
            "network_cpe_wifi_encryption_type": 0,
 
            "network_cpe_wifi_encryption_password": null,
 
            "network_cpe_access_login": "",
 
            "network_cpe_access_password": "",
 
            "network_cpe_access_port": "22",
 
            "network_cpe_longitude": "0",
 
            "network_cpe_latitude": "0",
 
            "network_cpe_circuit_id": "",
 
            "network_cpe_circuit_id_hex": null,
 
            "network_cpe_fiber": 0,
 
            "network_cpe_fiber_onu_mac": null,
 
            "network_cpe_fiber_device_pk": null,
 
            "network_cpe_fiber_onu_pppoe_svc_name": null,
 
            "network_cpe_req_origin": 0,
 
            "suppliers_pk": null,
 
            "network_devices_pk": 3,
 
            "network_cpe_model_pk": null,
 
            "radius_plans_pk": 1,
 
            "contract_pk": 3,
 
            "network_subnets_pk": 1,
 
            "client_pk": 1,
 
            "panel_pk": 1,
 
            "network_cpe_control_pk": 0
 
        }
 
    ]
 
}
 
 
 
</pre></blockquote>
 
 
 
=='''Listagem de Suportes'''==
 
 
 
<div>
 
<span class="label label-info">POST</span> <span class="label label-concrete">/controllr_client/support/list</span>
 
</div>
 
 
 
<blockquote><pre>
 
 
 
  curl -i -X POST \
 
        -H "Content-Type:application/x-www-form-urlencoded" \
 
        -H "Accept:application/json" \
 
        -d "limit: 10" \
 
        -d "start: 0" \
 
        -d "page: 0" \
 
         -d "sort: os_date_entry" \
 
 
         -d "dir: ASC" \
 
         -d "dir: ASC" \
      <nowiki>'http://192.168.142.23/controllr_client/support/list'</nowiki>
+
        <nowiki>'http://192.168.144.10:8080/controllrctl/contract/list'</nowiki>
  
 
</pre></blockquote>
 
</pre></blockquote>
Linha 342: Linha 155:
 
<blockquote class="blockquote-neutral"><pre>
 
<blockquote class="blockquote-neutral"><pre>
  
{
+
{
 
     "success": true,
 
     "success": true,
 
     "total": 1,
 
     "total": 1,
 
     "results": [
 
     "results": [
 
         {
 
         {
             "support_protocol": "2018051515386",
+
             "contract_pk": 466,
             "os_obs": "Sua descrição",
+
            "contract_number": 464,
             "os_date_entry": "2018-05-15 15:38:45",
+
             "contract_pay_day": 10,
             "os_date_soluction": null,
+
            "contract_free": 0,
             "os_date_sched": "2018-05-15 15:38:45",
+
             "contract_amount": "45.00",
             "os_done": 0,
+
            "contract_pay_discount": null,
             "os_amount": null,
+
            "contract_date_cad": "2017-02-08 18:30:11",
             "task_name": "Viabilidade",
+
            "contract_status": 0,
             "task_desc": "Teste de viabilidade técnica para instalação de internet"
+
            "contract_deleted": false,
 +
            "contract_observations": "",
 +
            "contract_block_type": 0,
 +
            "contract_date_last_paymentobservation": null,
 +
            "contract_tax_cfop": 5307,
 +
            "contract_tax_icms": "1.25",
 +
            "contract_tax_ibpt": "13.45",
 +
             "contract_block_auto": 1,
 +
            "address_pk": 346,
 +
            "client_pk": 464,
 +
            "client_status": 0,
 +
            "client_type": 0,
 +
            "client_username": "admin",
 +
            "client_password": "admin",
 +
            "client_name": "Teste1",
 +
            "client_lastname": "BrByte",
 +
            "client_mail": "softov@brbyte.com",
 +
            "client_doc1": "69120603070",
 +
            "client_doc2": "",
 +
            "client_date_cad": "2017-02-08 00:00:00",
 +
             "client_date_birth": "2017-02-08 00:00:00",
 +
            "client_complete_name": "Teste1 BrByte",
 +
            "offices_pk": 1,
 +
            "offices_identification": "Matriz",
 +
            "bank_account_pk": 1,
 +
            "bank_account_code": "756",
 +
            "bank_account_identification": "Sicoob Credivale",
 +
            "contract_layouts_pk": 1,
 +
            "client_phones": "Fixo#-#67981234276",
 +
            "cli_addr_address": "",
 +
            "cli_addr_number": "",
 +
            "cli_addr_neighborhood": "",
 +
            "cli_addr_zipcode": "",
 +
            "cli_addr_province": "Grão Pará",
 +
            "cli_addr_state": "SC",
 +
            "cli_addr_completation": "",
 +
            "ctt_addr_address": "",
 +
            "ctt_addr_number": "",
 +
            "ctt_addr_neighborhood": "",
 +
             "ctt_addr_zipcode": "",
 +
             "ctt_addr_province": "Grão Pará",
 +
             "ctt_addr_state": "SC",
 +
             "ctt_addr_completation": ""
 
         }
 
         }
 
     ]
 
     ]
}
+
}
  
 
</pre></blockquote>
 
</pre></blockquote>
 
=='''Criação de Suporte Técnico'''==
 
 
<div>
 
<span class="label label-info">POST</span> <span class="label label-concrete">/controllr_client/support/create</span>
 
</div>
 
 
<blockquote><pre>
 
 
  curl -i -X POST \
 
        -H "Content-Type:application/x-www-form-urlencoded" \
 
        -H "Accept:application/json" \
 
        -d "priority: 0" \
 
        -d "task_pk: 1" \
 
        -d "phone: 67998083499" \
 
        -d "os_obs: Sua Descrição" \
 
      <nowiki>'http://192.168.142.23/controllr_client/support/create'</nowiki>
 
 
</pre></blockquote>
 
 
<div>
 
<span class="label label-success">Resposta</span> <span class="label label-concrete">JSON</span>
 
</div>
 
 
<blockquote class="blockquote-neutral"><pre>
 
 
{
 
    "success": true,
 
    "total": 1,
 
    "results": [
 
        {
 
            "os_pk": -1,
 
            "os_obs": "1.12337081805556",
 
            "os_desc": null,
 
            "os_date_entry": null,
 
            "os_date_soluction": null,
 
            "os_date_sched": null,
 
            "os_done": null,
 
            "os_deleted": null,
 
            "os_amount": null,
 
            "staff_pk": null,
 
            "task_pk": null,
 
            "os_create_type": null,
 
            "support_pk": null
 
        }
 
    ]
 
}
 
 
</pre></blockquote>
 
 
=='''Listagem de Tarefas do Suporte Técnico'''==
 
 
<div>
 
<span class="label label-info">POST</span> <span class="label label-concrete">/controllr_client/support/tasklist</span>
 
</div>
 
 
<blockquote><pre>
 
 
  curl -i -X POST \
 
        -H "Content-Type:application/x-www-form-urlencoded" \
 
        -H "Accept:application/json" \
 
        -d "sort: task_name" \
 
        -d "dir: ASC" \
 
    <nowiki>'http://192.168.142.23/controllr_client/support/tasklist'</nowiki>
 
 
</pre></blockquote>
 
 
<div>
 
<span class="label label-success">Resposta</span> <span class="label label-concrete">JSON</span>
 
</div>
 
 
<blockquote class="blockquote-neutral"><pre>
 
 
{
 
    "success": true,
 
    "total": 6,
 
    "results": [
 
        {
 
            "task_pk": 5,
 
            "task_name": "Desinstalação"
 
        },
 
        {
 
            "task_pk": 8,
 
            "task_name": "Desinstalação Equipamento"
 
        },
 
        {
 
            "task_pk": 2,
 
            "task_name": "Instalação"
 
        },
 
        {
 
            "task_pk": 3,
 
            "task_name": "Suporte Técnico"
 
        },
 
        {
 
            "task_pk": 4,
 
            "task_name": "Troca de Equipamento"
 
        },
 
        {
 
            "task_pk": 1,
 
            "task_name": "Viabilidade"
 
        }
 
    ]
 
}
 
 
</pre></blockquote>
 
 
 
__NOEDITSECTION__
 

Edição das 14h43min de 3 de maio de 2019

OBS: A área administrativa, deve ser acessada através da porta WEB que por padrão é a 8080

Exemplo http://192.168.144.10:8080

É diferente do acesso dá área do cliente, que utiliza por padrão a porta 80, através do acesso do Hotsite.

COMANDOS WHERE
FIELD OPER VALUE
Nome da tabela que irá utilizar o filtro Código do comando Where Valor que usará para retornar o filtro desejado
EXEMPLOS
where = [{"field":"client.client_doc1","oper":5,"value":"69120603070"}] Usamos o código 5 do OPER que representa (=) Igualdade
[{"field":"client.client_complete_name","oper":10,"value":"Teste%"}] Usamos o código 10 do OPER que representa o ILIKE, lista todos nomes compatíveis usando o %

"OPER":1 = Menor Que < "OPER":2 = Maior Que > "OPER":3 = Menor ou Igual à <= "OPER":4 = Maior ou Igual à >= "OPER":5 = Igual = "OPER":6 = Diferente != "OPER":7 = é IS "OPER":8 = Não é IS NOT "OPER":9 = LIKE "OPER":10 = ILIKE


Listagem dos Clientes

POST /controllrctl/client/list


  curl -i -X POST \
        -H "Content-Type:application/x-www-form-urlencoded" \
        -H "Accept:application/json" \  
        -d "where: [{"field":"client_status","oper":5,"value":0}]" \
        -d "username: admin" \
        -d "page: 1" \
        -d "start: 0" \
        -d "limit: 15" \
        -d "sort: client_complete_name" \
        -d "dir: ASC" \
        'http://192.168.144.10:8080/controllrctl/client/list'  

Resposta JSON

 
{
    "success": true,
    "total": 493,
    "results": [
        {
            "client_pk": 430,
            "client_status": 3,
            "client_type": 0,
            "client_username": "",
            "client_password": "",
            "client_name": "teste",
            "client_lastname": "brbyte",
            "client_mail": "",
            "client_doc1": "",
            "client_doc2": "",
            "client_date_cad": "2016-09-20 00:00:00",
            "client_date_deactivation": null,
            "client_date_birth": "2016-09-20 00:00:00",
            "client_observations": "",
            "offices_pk": 1,
            "offices_identification": "Matriz",
            "client_complete_name": "teste brbyte",
            "client_phones": null,
            "cli_addr_address": "Rua Oscar Ferreira Bugre",
            "cli_addr_number": "88",
            "cli_addr_neighborhood": "Vila Nasser",
            "cli_addr_zipcode": "79.117-101",
            "cli_addr_province": "Campo Grande",
            "cli_addr_state": "MS",
            "cli_addr_completation": ""
        }
    ]
}


Exemplo de como usar o parâmetro WHERE

Localizar o clientes através do CPF/CNPJ

where = [{"field":"client.client_doc1","oper":5,"value":"69120603070"}]

Localizar o clientes através do nome Completo

where = [{"field":"client.client_complete_name","oper":5,"value":"Teste1 BrByte"}]



"OPER":0 = Nulo NULL "OPER":1 = Menor Que < "OPER":2 = Maior Que > "OPER":3 = Menor ou Igual à <= "OPER":4 = Maior ou Igual à >= "OPER":5 = Igual = "OPER":6 = Diferente != "OPER":7 = é IS "OPER":8 = Não é IS NOT "OPER":9 = LIKE "OPER":10 = ILIKE


Listagem dos Contratos

POST /controllrctl/contract/list


  curl -i -X POST \
        -H "Content-Type:application/x-www-form-urlencoded" \
        -H "Accept:application/json" \  
        -d "where: [{"field":"contract_deleted","oper":5,"value":false},{"field":"AND"},{"field":"contract_status","oper":5,"value":0}]" \
        -d "client_complete_name:" \
        -d "offices_pk: 0" \
        -d "username: admin" \
        -d "page: 1" \        
        -d "start: 0" \
        -d "limit: 15" \
        -d "sort: contract_number" \
        -d "dir: ASC" \
        'http://192.168.144.10:8080/controllrctl/contract/list'  

Resposta JSON


{
    "success": true,
    "total": 1,
    "results": [
        {
            "contract_pk": 466,
            "contract_number": 464,
            "contract_pay_day": 10,
            "contract_free": 0,
            "contract_amount": "45.00",
            "contract_pay_discount": null,
            "contract_date_cad": "2017-02-08 18:30:11",
            "contract_status": 0,
            "contract_deleted": false,
            "contract_observations": "",
            "contract_block_type": 0,
            "contract_date_last_paymentobservation": null,
            "contract_tax_cfop": 5307,
            "contract_tax_icms": "1.25",
            "contract_tax_ibpt": "13.45",
            "contract_block_auto": 1,
            "address_pk": 346,
            "client_pk": 464,
            "client_status": 0,
            "client_type": 0,
            "client_username": "admin",
            "client_password": "admin",
            "client_name": "Teste1",
            "client_lastname": "BrByte",
            "client_mail": "softov@brbyte.com",
            "client_doc1": "69120603070",
            "client_doc2": "",
            "client_date_cad": "2017-02-08 00:00:00",
            "client_date_birth": "2017-02-08 00:00:00",
            "client_complete_name": "Teste1 BrByte",
            "offices_pk": 1,
            "offices_identification": "Matriz",
            "bank_account_pk": 1,
            "bank_account_code": "756",
            "bank_account_identification": "Sicoob Credivale",
            "contract_layouts_pk": 1,
            "client_phones": "Fixo#-#67981234276",
            "cli_addr_address": "",
            "cli_addr_number": "",
            "cli_addr_neighborhood": "",
            "cli_addr_zipcode": "",
            "cli_addr_province": "Grão Pará",
            "cli_addr_state": "SC",
            "cli_addr_completation": "",
            "ctt_addr_address": "",
            "ctt_addr_number": "",
            "ctt_addr_neighborhood": "",
            "ctt_addr_zipcode": "",
            "ctt_addr_province": "Grão Pará",
            "ctt_addr_state": "SC",
            "ctt_addr_completation": ""
        }
    ]
}