| Método | POST |
|---|---|
| Endpoint | /clients/:idInstance/tickets |
| Content-Type | application/json |
{
"cod_external_ticket_origin": "tg",
"ticket_origin_type_id": 1,
"id_external_protocol": 1,
"external_protocol": "string",
"service_code": "string",
"justification": "string",
"description": "string",
"id_worksite": 1,
"state_abbreviation": "AC",
"municipality": "string",
"neighborhood": "string",
"address": "string",
"address_number": 0,
"zip_code": "65903-350",
"latitude": "45.123",
"longitude": "76.486",
"reference_point": "string",
"reporter": "string",
"reporter_phone": "84968718020",
"reporter_birth_date": "01/01/1900",
"nameplate_num": "string",
"age_majority_checkbox": 1
}
{
"id_demanda": 12348,
"operacao": "cria",
"data_recebido": 1711217789710,
"status": "ok",
}
| Método | DELETE |
|---|---|
| Endpoint | /clients/:idInstance/tickets |
| Content-Type | application/json |
{
"cod_external_ticket_origin": "tg",
"id_external_protocol": 1,
"justification": "string"
}
{
"id_protocolo": 12348,
"operacao": "cancela",
"data_recebido": 1711217789710,
"status": "ok",
}
| Método | POST |
|---|---|
| Endpoint | [URL_TALQ]/<endpoint> |
| Content-Type | application/json |
| Campo | Tipo | Descrição |
|---|---|---|
| operacao | String | Tipo de operação da requisição, que neste caso é “encerra” |
| origem | String | Código de origem da ocorrência externa cadastrada na tela de Origens ocorrência externa no sistema da Exati |
| id_protocolo | Integer | Identificação do protocolo |
| justificativa | String | String de descrição do motivo de encerramento da solicita ção |
curl -u user:password -X POST "https://[URL_TALQ]/<endpoint>" \
-H "Content-Type: application/json" \
-d '{
"operacao": "encerra",
"id_protocolo": 1,
"justificativa": "teste",
"origem": "tg"
}'