{
  "openapi": "3.0.4",
  "info": {
    "title": "CHECKMOB - API Integração",
    "description": "Versão atual do contrato de integração: REST orientado a recurso, contrato em português, erros em application/problem+json e sync incremental. Comece por POST /v2/token para obter o token de acesso.",
    "version": "v2"
  },
  "paths": {
    "/v2/token": {
      "post": {
        "tags": [
          "Autenticação"
        ],
        "summary": "Gera um token de acesso a partir do login e senha.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenCriarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenCriarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TokenCriarV2Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        }
      }
    },
    "/v2/clientes/list": {
      "post": {
        "tags": [
          "Clientes"
        ],
        "summary": "Lista clientes.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaClientesQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaClientesQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaClientesQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClienteV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/clientes/{id}": {
      "get": {
        "tags": [
          "Clientes"
        ],
        "summary": "Obtém um cliente pelo id.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClienteV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Clientes"
        ],
        "summary": "Substitui um cliente.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClienteCriarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ClienteCriarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ClienteCriarV2Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClienteV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Clientes"
        ],
        "summary": "Atualiza parcialmente um cliente.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClienteAtualizarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ClienteAtualizarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ClienteAtualizarV2Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClienteV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Clientes"
        ],
        "summary": "Exclui um cliente.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/clientes": {
      "post": {
        "tags": [
          "Clientes"
        ],
        "summary": "Cria um cliente.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClienteCriarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ClienteCriarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ClienteCriarV2Request"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClienteV2Dto"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/clientes/criar-lote": {
      "post": {
        "tags": [
          "Clientes"
        ],
        "summary": "Cria clientes em lote (máx. 500 por requisição), com resultado por item (207).",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClienteLoteV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ClienteLoteV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ClienteLoteV2Request"
              }
            }
          }
        },
        "responses": {
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultadoCriacaoLoteV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/clientes/pessoas/vincular": {
      "post": {
        "tags": [
          "Clientes"
        ],
        "summary": "Vincula o cliente a uma ou mais pessoas de uma vez (máx. 500).",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularPessoasV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularPessoasV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VincularPessoasV2Request"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/clientes/pessoas/desvincular": {
      "post": {
        "tags": [
          "Clientes"
        ],
        "summary": "Desfaz o vínculo do cliente com uma ou mais pessoas de uma vez (máx. 500).",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularPessoasV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularPessoasV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VincularPessoasV2Request"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/deslocamentos/usuarios/list": {
      "post": {
        "tags": [
          "Deslocamentos"
        ],
        "summary": "Lista o resumo de deslocamento consolidado por usuário.",
        "description": "`aprovacao`: 0 aprovado · 1 desconsiderado · 2 em verificação · 3 não avaliado · 4 rejeitado.\n`pagamento`: 0 em aberto · 2 aguardando avaliação · 3 pago.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaDeslocamentoUsuariosQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaDeslocamentoUsuariosQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaDeslocamentoUsuariosQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeslocamentoUsuarioV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/deslocamentos/dias/list": {
      "post": {
        "tags": [
          "Deslocamentos"
        ],
        "summary": "Lista os dias de deslocamento de um usuário.",
        "description": "Use o `id_dia` de cada item para buscar os percursos daquele dia.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaDeslocamentoDiasQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaDeslocamentoDiasQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaDeslocamentoDiasQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeslocamentoDiaV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/deslocamentos/percursos/list": {
      "post": {
        "tags": [
          "Deslocamentos"
        ],
        "summary": "Lista os percursos (origem → destino) de um dia de deslocamento.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaDeslocamentoPercursosQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaDeslocamentoPercursosQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaDeslocamentoPercursosQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeslocamentoPercursoV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/clientes/{idCliente}/endereco": {
      "get": {
        "tags": [
          "Endereços"
        ],
        "summary": "Lista os endereços de um cliente.",
        "parameters": [
          {
            "name": "idCliente",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "description": "Busca textual ampla. Vazia/ausente = ignorada.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ordenar",
            "in": "query",
            "description": "Campos de ordenação separados por vírgula; prefixo - = decrescente.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "por_pagina",
            "in": "query",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "atualizado_apos",
            "in": "query",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnderecoV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Endereços"
        ],
        "summary": "Substitui o endereço principal de um cliente.",
        "parameters": [
          {
            "name": "idCliente",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnderecoCriarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EnderecoCriarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EnderecoCriarV2Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnderecoV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/pessoas/{idPessoa}/endereco": {
      "get": {
        "tags": [
          "Endereços"
        ],
        "summary": "Obtém o endereço de uma pessoa.",
        "parameters": [
          {
            "name": "idPessoa",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnderecoPessoaV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Endereços"
        ],
        "summary": "Substitui o endereço de uma pessoa.",
        "parameters": [
          {
            "name": "idPessoa",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnderecoPessoaCriarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EnderecoPessoaCriarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EnderecoPessoaCriarV2Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnderecoPessoaV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/grupos/list": {
      "post": {
        "tags": [
          "Grupos"
        ],
        "summary": "Lista grupos.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaGruposQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaGruposQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaGruposQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GrupoV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/grupos/{id}": {
      "get": {
        "tags": [
          "Grupos"
        ],
        "summary": "Obtém um grupo.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GrupoV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Grupos"
        ],
        "summary": "Substitui um grupo (atualiza; nunca cria registro novo).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrupoCriarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GrupoCriarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GrupoCriarV2Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GrupoV2Dto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Grupos"
        ],
        "summary": "Exclui um grupo.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/grupos/post": {
      "post": {
        "tags": [
          "Grupos"
        ],
        "summary": "Cria um grupo.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrupoCriarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GrupoCriarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GrupoCriarV2Request"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GrupoV2Dto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/clientes/{idCliente}/notas/list": {
      "post": {
        "tags": [
          "Notas de Cliente"
        ],
        "summary": "Lista as notas de um cliente.",
        "parameters": [
          {
            "name": "idCliente",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotaClienteV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/clientes/{idCliente}/notas": {
      "post": {
        "tags": [
          "Notas de Cliente"
        ],
        "summary": "Cria uma nota para um cliente.",
        "parameters": [
          {
            "name": "idCliente",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NotaClienteCriarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/NotaClienteCriarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/NotaClienteCriarV2Request"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotaClienteV2Dto"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/notas-cliente/{id}": {
      "put": {
        "tags": [
          "Notas de Cliente"
        ],
        "summary": "Atualiza uma nota.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NotaClienteCriarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/NotaClienteCriarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/NotaClienteCriarV2Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotaClienteV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Notas de Cliente"
        ],
        "summary": "Exclui uma nota.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/ordens-servico/list": {
      "post": {
        "tags": [
          "Ordens de Serviço"
        ],
        "summary": "Lista ordens de serviço.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaOrdensServicoQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaOrdensServicoQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaOrdensServicoQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrdemServicoV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/ordens-servico/{id}": {
      "get": {
        "tags": [
          "Ordens de Serviço"
        ],
        "summary": "Obtém uma ordem de serviço.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrdemServicoV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Ordens de Serviço"
        ],
        "summary": "Substitui uma ordem de serviço. Campo ausente no corpo preserva o valor atual.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrdemServicoCriarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OrdemServicoCriarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OrdemServicoCriarV2Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrdemServicoV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Ordens de Serviço"
        ],
        "summary": "Exclui uma ordem de serviço.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/ordens-servico/post": {
      "post": {
        "tags": [
          "Ordens de Serviço"
        ],
        "summary": "Cria uma ordem de serviço.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrdemServicoCriarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OrdemServicoCriarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OrdemServicoCriarV2Request"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrdemServicoV2Dto"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/ordens-servico/excluir": {
      "post": {
        "tags": [
          "Ordens de Serviço"
        ],
        "summary": "Exclui ordens de serviço em lote (máx. 500), com resultado por item (207).",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExclusaoLoteV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExclusaoLoteV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExclusaoLoteV2Request"
              }
            }
          }
        },
        "responses": {
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultadoLoteV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/ordens-servico/status": {
      "get": {
        "tags": [
          "Ordens de Serviço"
        ],
        "summary": "Lista os status de ordem de serviço disponíveis.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusOrdemServicoV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/ordens-servico/{id}/status": {
      "put": {
        "tags": [
          "Ordens de Serviço"
        ],
        "summary": "Altera o status de uma ordem de serviço.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlterarStatusV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AlterarStatusV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AlterarStatusV2Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrdemServicoV2Dto"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/pessoas/list": {
      "post": {
        "tags": [
          "Pessoas"
        ],
        "summary": "Lista pessoas/contatos.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaPessoasQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaPessoasQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaPessoasQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PessoaV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/pessoas/{id}": {
      "get": {
        "tags": [
          "Pessoas"
        ],
        "summary": "Obtém uma pessoa.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PessoaV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Pessoas"
        ],
        "summary": "Atualiza uma pessoa.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PessoaAtualizarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PessoaAtualizarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PessoaAtualizarV2Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PessoaV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Pessoas"
        ],
        "summary": "Exclui uma pessoa.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/pessoas/post": {
      "post": {
        "tags": [
          "Pessoas"
        ],
        "summary": "Cria uma pessoa.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PessoaCriarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PessoaCriarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PessoaCriarV2Request"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PessoaV2Dto"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/pessoas/status": {
      "post": {
        "tags": [
          "Pessoas"
        ],
        "summary": "Ativa ou inativa pessoas em lote (máx. 500).",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusPessoasV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusPessoasV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StatusPessoasV2Request"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/pessoas/clientes/vincular": {
      "post": {
        "tags": [
          "Pessoas"
        ],
        "summary": "Vincula a pessoa a um ou mais clientes de uma vez (máx. 500).",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularClientesV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularClientesV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VincularClientesV2Request"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/pessoas/clientes/desvincular": {
      "post": {
        "tags": [
          "Pessoas"
        ],
        "summary": "Desfaz o vínculo da pessoa com um ou mais clientes de uma vez (máx. 500).",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularClientesV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularClientesV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VincularClientesV2Request"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/questionarios/list": {
      "post": {
        "tags": [
          "Questionários"
        ],
        "summary": "Lista questionários (checklists).",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuestionariosQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuestionariosQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuestionariosQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuestionarioV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/questionarios/{id}": {
      "get": {
        "tags": [
          "Questionários"
        ],
        "summary": "Obtém um questionário.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuestionarioV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/questionarios/{id}/grupos": {
      "post": {
        "tags": [
          "Questionários"
        ],
        "summary": "Vincula um grupo ao questionário.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularGrupoV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularGrupoV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VincularGrupoV2Request"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/questionarios/{id}/grupos/{idGrupo}": {
      "delete": {
        "tags": [
          "Questionários"
        ],
        "summary": "Desvincula um grupo do questionário.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "idGrupo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/questionarios/{id}/segmentos": {
      "post": {
        "tags": [
          "Questionários"
        ],
        "summary": "Vincula um segmento ao questionário.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularSegmentoV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularSegmentoV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VincularSegmentoV2Request"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/questionarios/{id}/segmentos/{idSegmento}": {
      "delete": {
        "tags": [
          "Questionários"
        ],
        "summary": "Desvincula um segmento do questionário.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "idSegmento",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/registros/list": {
      "post": {
        "tags": [
          "Registros"
        ],
        "summary": "Lista registros de execução de serviço.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaRegistrosQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaRegistrosQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaRegistrosQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistroV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/registros/{id}": {
      "get": {
        "tags": [
          "Registros"
        ],
        "summary": "Obtém um registro de execução de serviço.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistroV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Registros"
        ],
        "summary": "Edita campos não sensíveis de um registro. Campo ausente preserva o valor atual.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegistroAtualizarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegistroAtualizarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegistroAtualizarV2Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistroV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/registros/post": {
      "post": {
        "tags": [
          "Registros"
        ],
        "summary": "Cria um registro agendado.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegistroAgendadoCriarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegistroAgendadoCriarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegistroAgendadoCriarV2Request"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistroV2Dto"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/respostas-questionario/list": {
      "post": {
        "tags": [
          "Respostas de Questionário"
        ],
        "summary": "Lista questionários respondidos.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaPaginadaQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaPaginadaQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaPaginadaQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RespostaQuestionarioResumoV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/respostas-questionario/{idRegistro}": {
      "get": {
        "tags": [
          "Respostas de Questionário"
        ],
        "summary": "Obtém as respostas de um registro (serviço).",
        "parameters": [
          {
            "name": "idRegistro",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RespostasQuestionarioV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/respostas-questionario/ordem-servico/{idOrdemServico}": {
      "get": {
        "tags": [
          "Respostas de Questionário"
        ],
        "summary": "Obtém as respostas pela ordem de serviço.",
        "parameters": [
          {
            "name": "idOrdemServico",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RespostasQuestionarioV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/segmentos/list": {
      "post": {
        "tags": [
          "Segmentos"
        ],
        "summary": "Lista segmentos.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaSegmentosQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaSegmentosQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaSegmentosQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SegmentoV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/segmentos/{id}": {
      "get": {
        "tags": [
          "Segmentos"
        ],
        "summary": "Obtém um segmento.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SegmentoV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Segmentos"
        ],
        "summary": "Substitui um segmento. `ativo` omitido preserva o estado atual.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SegmentoAtualizarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SegmentoAtualizarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SegmentoAtualizarV2Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SegmentoV2Dto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Segmentos"
        ],
        "summary": "Exclui um segmento.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/segmentos/post": {
      "post": {
        "tags": [
          "Segmentos"
        ],
        "summary": "Cria um segmento.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SegmentoCriarV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SegmentoCriarV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SegmentoCriarV2Request"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SegmentoV2Dto"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/segmentos/{id}/vinculos": {
      "get": {
        "tags": [
          "Segmentos"
        ],
        "summary": "Lista os vínculos (usuários e grupos) de um segmento.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VinculosSegmentoV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/segmentos/{id}/clientes": {
      "post": {
        "tags": [
          "Segmentos"
        ],
        "summary": "Vincula um cliente ao segmento.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularIdsV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularIdsV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VincularIdsV2Request"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/segmentos/{id}/clientes/{idCliente}": {
      "delete": {
        "tags": [
          "Segmentos"
        ],
        "summary": "Desvincula um cliente do segmento.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "idCliente",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/segmentos/{id}/grupos": {
      "post": {
        "tags": [
          "Segmentos"
        ],
        "summary": "Vincula um grupo ao segmento.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularIdsV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularIdsV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VincularIdsV2Request"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/segmentos/{id}/grupos/{idGrupo}": {
      "delete": {
        "tags": [
          "Segmentos"
        ],
        "summary": "Desvincula um grupo do segmento.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "idGrupo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/segmentos/{id}/usuarios": {
      "post": {
        "tags": [
          "Segmentos"
        ],
        "summary": "Vincula um usuário ao segmento.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularIdsV2Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VincularIdsV2Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VincularIdsV2Request"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/segmentos/{id}/usuarios/{idUsuario}": {
      "delete": {
        "tags": [
          "Segmentos"
        ],
        "summary": "Desvincula um usuário do segmento.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "idUsuario",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/campos-personalizados/list": {
      "post": {
        "tags": [
          "Tabelas de Apoio"
        ],
        "summary": "Lista campos personalizados (filtro opcional por origem: clientes | pessoas).",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaReferenciaQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaReferenciaQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaReferenciaQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemReferenciaV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/campos-personalizados/clientes/list": {
      "post": {
        "tags": [
          "Tabelas de Apoio"
        ],
        "summary": "Lista os campos personalizados de clientes (sem necessidade do filtro origem).",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampoPersonalizadoV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/campos-personalizados/pessoas/list": {
      "post": {
        "tags": [
          "Tabelas de Apoio"
        ],
        "summary": "Lista os campos personalizados de pessoas (sem necessidade do filtro origem).",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampoPersonalizadoV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/categorias/list": {
      "post": {
        "tags": [
          "Tabelas de Apoio"
        ],
        "summary": "Lista categorias.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaReferenciaQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaReferenciaQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaReferenciaQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemReferenciaV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/etapas/list": {
      "post": {
        "tags": [
          "Tabelas de Apoio"
        ],
        "summary": "Lista etapas.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemReferenciaV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/objetivos/list": {
      "post": {
        "tags": [
          "Tabelas de Apoio"
        ],
        "summary": "Lista objetivos.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemReferenciaV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/setores-mercado/list": {
      "post": {
        "tags": [
          "Tabelas de Apoio"
        ],
        "summary": "Lista setores de mercado.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemReferenciaV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/status-servico/list": {
      "post": {
        "tags": [
          "Tabelas de Apoio"
        ],
        "summary": "Lista status de serviço.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemReferenciaV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/temperaturas/list": {
      "post": {
        "tags": [
          "Tabelas de Apoio"
        ],
        "summary": "Lista temperaturas.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemReferenciaV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/tipos-servico/list": {
      "post": {
        "tags": [
          "Tabelas de Apoio"
        ],
        "summary": "Lista tipos de serviço.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemReferenciaV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/usuarios/list": {
      "post": {
        "tags": [
          "Usuários"
        ],
        "summary": "Lista usuários.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaUsuariosQuery"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaUsuariosQuery"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaUsuariosQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsuarioV2DtoPaginaResultado"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/usuarios/{id}": {
      "get": {
        "tags": [
          "Usuários"
        ],
        "summary": "Obtém um usuário.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsuarioV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/usuarios/{id}/localizacao": {
      "get": {
        "tags": [
          "Usuários"
        ],
        "summary": "Obtém a(s) localização(ões) registrada(s) do usuário.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Set the API response language (Default = en-US)",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pt-BR": {
                "value": "pt-BR"
              },
              "en-US": {
                "value": "en-US"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LocalizacaoUsuarioV2Dto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida — erros por campo em `erros[]`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado (`NAO_AUTENTICADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "403": {
            "description": "Sem permissão para o recurso (`SEM_PERMISSAO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "404": {
            "description": "Recurso não encontrado (`NAO_ENCONTRADO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "429": {
            "description": "Limite de requisições excedido (`LIMITE_EXCEDIDO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          },
          "500": {
            "description": "Erro interno (`ERRO_INTERNO`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problema"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AlterarStatusV2Request": {
        "type": "object",
        "properties": {
          "id_status": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CampoPersonalizadoV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "obrigatorio": {
            "type": "boolean"
          },
          "opcoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpcaoCampoV2Dto"
            },
            "nullable": true
          },
          "atualizado_em": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CampoPersonalizadoV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CampoPersonalizadoV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "ClienteAtualizarV2Request": {
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string",
            "nullable": true
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "documento": {
            "type": "string",
            "nullable": true
          },
          "ativo": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ClienteCriarV2Request": {
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string",
            "nullable": true
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "documento": {
            "type": "string",
            "nullable": true
          },
          "ativo": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ClienteLoteV2Request": {
        "type": "object",
        "properties": {
          "clientes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClienteCriarV2Request"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ClienteV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "codigo": {
            "type": "string",
            "nullable": true
          },
          "tipo": {
            "type": "string",
            "nullable": true
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "documento": {
            "type": "string",
            "nullable": true
          },
          "ativo": {
            "type": "boolean"
          },
          "telefone": {
            "type": "string",
            "nullable": true
          },
          "telefone_secundario": {
            "type": "string",
            "nullable": true
          },
          "responsavel": {
            "type": "string",
            "nullable": true
          },
          "email_responsavel": {
            "type": "string",
            "nullable": true
          },
          "telefone_responsavel": {
            "type": "string",
            "nullable": true
          },
          "cargo_responsavel": {
            "type": "string",
            "nullable": true
          },
          "informacoes_adicionais": {
            "type": "string",
            "nullable": true
          },
          "qr_code": {
            "type": "string",
            "nullable": true
          },
          "raio_checkin": {
            "type": "integer",
            "format": "int32"
          },
          "id_categoria": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_temperatura": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_setor_mercado": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_etapa": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "data_proximo_acompanhamento": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "valor_negocio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "data_esperada_fechamento": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ids_segmentos": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "data_criacao": {
            "type": "string",
            "format": "date-time"
          },
          "atualizado_em": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ClienteV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClienteV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "ConsultaClientesQuery": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "format": "int32",
            "nullable": true
          },
          "por_pagina": {
            "type": "integer",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "format": "int32",
            "nullable": true
          },
          "atualizado_apos": {
            "type": "string",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "format": "date-time",
            "nullable": true
          },
          "busca": {
            "type": "string",
            "description": "Busca textual ampla. Vazia/ausente = ignorada.",
            "nullable": true
          },
          "ordenar": {
            "type": "string",
            "description": "Campos de ordenação separados por vírgula; prefixo - = decrescente.",
            "nullable": true
          },
          "ativo": {
            "type": "boolean",
            "nullable": true
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "codigos": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "documento": {
            "type": "string",
            "nullable": true
          },
          "ids_segmento": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_categoria": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_temperatura": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_setor_mercado": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_etapa": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "data_criacao_apos": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_criacao_antes": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Corpo da listagem de clientes (base + filtros da v1 + classificação e intervalo de criação)."
      },
      "ConsultaDeslocamentoDiasQuery": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "format": "int32",
            "nullable": true
          },
          "por_pagina": {
            "type": "integer",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "format": "int32",
            "nullable": true
          },
          "atualizado_apos": {
            "type": "string",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "format": "date-time",
            "nullable": true
          },
          "busca": {
            "type": "string",
            "description": "Busca textual ampla. Vazia/ausente = ignorada.",
            "nullable": true
          },
          "ordenar": {
            "type": "string",
            "description": "Campos de ordenação separados por vírgula; prefixo - = decrescente.",
            "nullable": true
          },
          "data_inicio": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_fim": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "aprovacao": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "0 aprovado · 1 desconsiderado · 2 em verificação · 3 não avaliado · 4 rejeitado.",
            "nullable": true
          },
          "pagamento": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "0 em aberto · 2 aguardando avaliação · 3 pago.",
            "nullable": true
          },
          "ativo": {
            "type": "boolean",
            "nullable": true
          },
          "id_usuario": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false,
        "description": "Corpo da listagem de dias de deslocamento de um usuário."
      },
      "ConsultaDeslocamentoPercursosQuery": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "format": "int32",
            "nullable": true
          },
          "por_pagina": {
            "type": "integer",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "format": "int32",
            "nullable": true
          },
          "atualizado_apos": {
            "type": "string",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "format": "date-time",
            "nullable": true
          },
          "busca": {
            "type": "string",
            "description": "Busca textual ampla. Vazia/ausente = ignorada.",
            "nullable": true
          },
          "ordenar": {
            "type": "string",
            "description": "Campos de ordenação separados por vírgula; prefixo - = decrescente.",
            "nullable": true
          },
          "id_dia": {
            "type": "integer",
            "format": "int64"
          },
          "id_usuario": {
            "type": "integer",
            "format": "int64"
          },
          "data_inicio": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_fim": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Corpo da listagem de percursos de um dia."
      },
      "ConsultaDeslocamentoUsuariosQuery": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "format": "int32",
            "nullable": true
          },
          "por_pagina": {
            "type": "integer",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "format": "int32",
            "nullable": true
          },
          "atualizado_apos": {
            "type": "string",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "format": "date-time",
            "nullable": true
          },
          "busca": {
            "type": "string",
            "description": "Busca textual ampla. Vazia/ausente = ignorada.",
            "nullable": true
          },
          "ordenar": {
            "type": "string",
            "description": "Campos de ordenação separados por vírgula; prefixo - = decrescente.",
            "nullable": true
          },
          "data_inicio": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_fim": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "aprovacao": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "0 aprovado · 1 desconsiderado · 2 em verificação · 3 não avaliado · 4 rejeitado.",
            "nullable": true
          },
          "pagamento": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "0 em aberto · 2 aguardando avaliação · 3 pago.",
            "nullable": true
          },
          "ativo": {
            "type": "boolean",
            "nullable": true
          },
          "ids_usuario": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_grupo": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Corpo da listagem do resumo de deslocamento por usuário."
      },
      "ConsultaGruposQuery": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "format": "int32",
            "nullable": true
          },
          "por_pagina": {
            "type": "integer",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "format": "int32",
            "nullable": true
          },
          "atualizado_apos": {
            "type": "string",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "format": "date-time",
            "nullable": true
          },
          "busca": {
            "type": "string",
            "description": "Busca textual ampla. Vazia/ausente = ignorada.",
            "nullable": true
          },
          "ordenar": {
            "type": "string",
            "description": "Campos de ordenação separados por vírgula; prefixo - = decrescente.",
            "nullable": true
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_usuario": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Corpo da listagem de grupos (base + ids e usuários)."
      },
      "ConsultaOrdensServicoQuery": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "format": "int32",
            "nullable": true
          },
          "por_pagina": {
            "type": "integer",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "format": "int32",
            "nullable": true
          },
          "atualizado_apos": {
            "type": "string",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "format": "date-time",
            "nullable": true
          },
          "busca": {
            "type": "string",
            "description": "Busca textual ampla. Vazia/ausente = ignorada.",
            "nullable": true
          },
          "ordenar": {
            "type": "string",
            "description": "Campos de ordenação separados por vírgula; prefixo - = decrescente.",
            "nullable": true
          },
          "id_cliente": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "codigo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "concluida": {
            "type": "boolean",
            "nullable": true
          },
          "ativa": {
            "type": "boolean",
            "nullable": true
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_cliente": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_status": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_tipo_servico": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_contato": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_grupo": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_segmento": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_usuario": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "data_criacao_apos": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_criacao_antes": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_agendada_apos": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_agendada_antes": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "prioridade_min": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "prioridade_max": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Corpo da listagem de ordens de serviço (filtros da v1 + extras da v2)."
      },
      "ConsultaPaginadaQuery": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "format": "int32",
            "nullable": true
          },
          "por_pagina": {
            "type": "integer",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "format": "int32",
            "nullable": true
          },
          "atualizado_apos": {
            "type": "string",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Base mínima de toda listagem da v2: paginação e sync incremental. Recursos que\nsuportam busca textual e ordenação usam API_Integracao.V2.Consultas.ConsultaQuery; os que não\nsuportam herdam daqui, para que `busca`/`ordenar` sejam rejeitados com\n400 em vez de aceitos e ignorados em silêncio."
      },
      "ConsultaPessoasQuery": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "format": "int32",
            "nullable": true
          },
          "por_pagina": {
            "type": "integer",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "format": "int32",
            "nullable": true
          },
          "atualizado_apos": {
            "type": "string",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "format": "date-time",
            "nullable": true
          },
          "busca": {
            "type": "string",
            "description": "Busca textual ampla. Vazia/ausente = ignorada.",
            "nullable": true
          },
          "ordenar": {
            "type": "string",
            "description": "Campos de ordenação separados por vírgula; prefixo - = decrescente.",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "ativo": {
            "type": "boolean",
            "nullable": true
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_clientes": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Corpo da listagem de pessoas/contatos (base + filtros da v1 + ids, ativo e vínculo com cliente)."
      },
      "ConsultaQuery": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "format": "int32",
            "nullable": true
          },
          "por_pagina": {
            "type": "integer",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "format": "int32",
            "nullable": true
          },
          "atualizado_apos": {
            "type": "string",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "format": "date-time",
            "nullable": true
          },
          "busca": {
            "type": "string",
            "description": "Busca textual ampla. Vazia/ausente = ignorada.",
            "nullable": true
          },
          "ordenar": {
            "type": "string",
            "description": "Campos de ordenação separados por vírgula; prefixo - = decrescente.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Corpo (JSON) padrão das listagens da v2: paginação (herdada) + busca textual e\nordenação. Os endpoints de listagem são POST e recebem filtros + paginação no\ncorpo (mais escalável que query string quando os filtros crescem).\nCampos desconhecidos são rejeitados (400), preservando o \"filtro desconhecido → 400\".\nRecursos específicos herdam e adicionam seus próprios filtros."
      },
      "ConsultaQuestionariosQuery": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "format": "int32",
            "nullable": true
          },
          "por_pagina": {
            "type": "integer",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "format": "int32",
            "nullable": true
          },
          "atualizado_apos": {
            "type": "string",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "format": "date-time",
            "nullable": true
          },
          "busca": {
            "type": "string",
            "description": "Busca textual ampla. Vazia/ausente = ignorada.",
            "nullable": true
          },
          "ordenar": {
            "type": "string",
            "description": "Campos de ordenação separados por vírgula; prefixo - = decrescente.",
            "nullable": true
          },
          "ativo": {
            "type": "boolean",
            "nullable": true
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "vigente_em": {
            "type": "string",
            "description": "Apenas questionários vigentes na data informada.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Corpo da listagem de questionários."
      },
      "ConsultaReferenciaQuery": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "format": "int32",
            "nullable": true
          },
          "por_pagina": {
            "type": "integer",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "format": "int32",
            "nullable": true
          },
          "atualizado_apos": {
            "type": "string",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "format": "date-time",
            "nullable": true
          },
          "busca": {
            "type": "string",
            "description": "Busca textual ampla. Vazia/ausente = ignorada.",
            "nullable": true
          },
          "ordenar": {
            "type": "string",
            "description": "Campos de ordenação separados por vírgula; prefixo - = decrescente.",
            "nullable": true
          },
          "origem": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Corpo de listagem de tabelas de apoio que aceitam o filtro opcional origem."
      },
      "ConsultaRegistrosQuery": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "format": "int32",
            "nullable": true
          },
          "por_pagina": {
            "type": "integer",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "format": "int32",
            "nullable": true
          },
          "atualizado_apos": {
            "type": "string",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "format": "date-time",
            "nullable": true
          },
          "busca": {
            "type": "string",
            "description": "Busca textual ampla. Vazia/ausente = ignorada.",
            "nullable": true
          },
          "ordenar": {
            "type": "string",
            "description": "Campos de ordenação separados por vírgula; prefixo - = decrescente.",
            "nullable": true
          },
          "codigo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_ordem_servico": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_cliente": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_usuario": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_grupo": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_segmento": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_objetivo": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_status": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "agendado": {
            "type": "boolean",
            "nullable": true
          },
          "ativo": {
            "type": "boolean",
            "nullable": true
          },
          "concluido": {
            "type": "boolean",
            "nullable": true
          },
          "data_realizacao_apos": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_realizacao_antes": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_agendada_apos": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_agendada_antes": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Corpo da listagem de registros (execução de serviço em campo)."
      },
      "ConsultaSegmentosQuery": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "format": "int32",
            "nullable": true
          },
          "por_pagina": {
            "type": "integer",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "format": "int32",
            "nullable": true
          },
          "atualizado_apos": {
            "type": "string",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "format": "date-time",
            "nullable": true
          },
          "busca": {
            "type": "string",
            "description": "Busca textual ampla. Vazia/ausente = ignorada.",
            "nullable": true
          },
          "ordenar": {
            "type": "string",
            "description": "Campos de ordenação separados por vírgula; prefixo - = decrescente.",
            "nullable": true
          },
          "ativo": {
            "type": "boolean",
            "nullable": true
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Corpo da listagem de segmentos (base + filtro ativo da v1)."
      },
      "ConsultaUsuariosQuery": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "description": "Página a buscar (começa em 1). Ausente ou inválida = 1.",
            "format": "int32",
            "nullable": true
          },
          "por_pagina": {
            "type": "integer",
            "description": "Itens por página. Default 25; acima do teto (100) usa o teto.",
            "format": "int32",
            "nullable": true
          },
          "atualizado_apos": {
            "type": "string",
            "description": "Sync incremental: registros com atualizado_em posterior a este instante.",
            "format": "date-time",
            "nullable": true
          },
          "busca": {
            "type": "string",
            "description": "Busca textual ampla. Vazia/ausente = ignorada.",
            "nullable": true
          },
          "ordenar": {
            "type": "string",
            "description": "Campos de ordenação separados por vírgula; prefixo - = decrescente.",
            "nullable": true
          },
          "ativo": {
            "type": "boolean",
            "nullable": true
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_grupo": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "id_perfil": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Corpo da listagem de usuários (base + ativo, ids, grupo e perfil)."
      },
      "DeslocamentoDiaV2Dto": {
        "type": "object",
        "properties": {
          "id_dia": {
            "type": "integer",
            "format": "int64"
          },
          "data": {
            "type": "string",
            "format": "date-time"
          },
          "dia_semana": {
            "type": "integer",
            "format": "int32"
          },
          "distancia": {
            "type": "number",
            "format": "double"
          },
          "percursos": {
            "type": "integer",
            "format": "int32"
          },
          "distancia_media": {
            "type": "number",
            "format": "double"
          },
          "valor": {
            "type": "number",
            "format": "double"
          },
          "aprovacao": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pagamento": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "usuario_ultima_alteracao": {
            "type": "string",
            "nullable": true
          },
          "ultima_alteracao": {
            "type": "string",
            "nullable": true
          },
          "ativo": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "DeslocamentoDiaV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeslocamentoDiaV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "DeslocamentoPercursoV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "id_usuario": {
            "type": "integer",
            "format": "int64"
          },
          "ordem": {
            "type": "integer",
            "format": "int32"
          },
          "origem": {
            "type": "string",
            "nullable": true
          },
          "destino": {
            "type": "string",
            "nullable": true
          },
          "distancia": {
            "type": "number",
            "format": "double"
          },
          "custo": {
            "type": "number",
            "format": "double"
          },
          "tipo_origem": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tipo_destino": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "alerta_origem": {
            "type": "boolean"
          },
          "alerta_destino": {
            "type": "boolean"
          },
          "ativo": {
            "type": "boolean"
          },
          "latitude_origem": {
            "type": "string",
            "nullable": true
          },
          "longitude_origem": {
            "type": "string",
            "nullable": true
          },
          "latitude_destino": {
            "type": "string",
            "nullable": true
          },
          "longitude_destino": {
            "type": "string",
            "nullable": true
          },
          "aprovacao": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pagamento": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "id_cliente_origem": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_cliente_destino": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_registro_origem": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_registro_destino": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "alteracao_manual": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "DeslocamentoPercursoV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeslocamentoPercursoV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "DeslocamentoUsuarioV2Dto": {
        "type": "object",
        "properties": {
          "id_usuario": {
            "type": "integer",
            "format": "int64"
          },
          "usuario": {
            "type": "string",
            "nullable": true
          },
          "distancia_total": {
            "type": "number",
            "format": "double"
          },
          "valor_total": {
            "type": "number",
            "format": "double"
          },
          "percursos": {
            "type": "integer",
            "format": "int32"
          },
          "distancia_media": {
            "type": "number",
            "format": "double"
          },
          "valor_aprovado": {
            "type": "number",
            "format": "double"
          },
          "valor_a_pagar": {
            "type": "number",
            "format": "double"
          },
          "valor_pago": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "DeslocamentoUsuarioV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeslocamentoUsuarioV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "EnderecoCriarV2Request": {
        "type": "object",
        "properties": {
          "id_cliente": {
            "type": "integer",
            "format": "int64"
          },
          "descricao": {
            "type": "string",
            "nullable": true
          },
          "logradouro": {
            "type": "string",
            "nullable": true
          },
          "numero": {
            "type": "string",
            "nullable": true
          },
          "complemento": {
            "type": "string",
            "nullable": true
          },
          "bairro": {
            "type": "string",
            "nullable": true
          },
          "cidade": {
            "type": "string",
            "nullable": true
          },
          "estado": {
            "type": "string",
            "nullable": true
          },
          "cep": {
            "type": "string",
            "nullable": true
          },
          "latitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "longitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EnderecoPessoaCriarV2Request": {
        "type": "object",
        "properties": {
          "titulo": {
            "type": "string",
            "nullable": true
          },
          "numero": {
            "type": "string",
            "nullable": true
          },
          "complemento": {
            "type": "string",
            "nullable": true
          },
          "bairro": {
            "type": "string",
            "nullable": true
          },
          "cep": {
            "type": "string",
            "nullable": true
          },
          "id_cidade": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_estado": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "latitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "longitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EnderecoPessoaV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "id_pessoa": {
            "type": "integer",
            "format": "int64"
          },
          "titulo": {
            "type": "string",
            "nullable": true
          },
          "numero": {
            "type": "string",
            "nullable": true
          },
          "complemento": {
            "type": "string",
            "nullable": true
          },
          "bairro": {
            "type": "string",
            "nullable": true
          },
          "cep": {
            "type": "string",
            "nullable": true
          },
          "id_cidade": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_estado": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "latitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "longitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "atualizado_em": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "EnderecoV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "id_cliente": {
            "type": "integer",
            "format": "int64"
          },
          "descricao": {
            "type": "string",
            "nullable": true
          },
          "logradouro": {
            "type": "string",
            "nullable": true
          },
          "numero": {
            "type": "string",
            "nullable": true
          },
          "complemento": {
            "type": "string",
            "nullable": true
          },
          "bairro": {
            "type": "string",
            "nullable": true
          },
          "cidade": {
            "type": "string",
            "nullable": true
          },
          "estado": {
            "type": "string",
            "nullable": true
          },
          "cep": {
            "type": "string",
            "nullable": true
          },
          "latitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "longitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "atualizado_em": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "EnderecoV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnderecoV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "ErroCampo": {
        "type": "object",
        "properties": {
          "campo": {
            "type": "string",
            "nullable": true
          },
          "codigo": {
            "type": "string",
            "nullable": true
          },
          "mensagem": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExclusaoLoteV2Request": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GrupoCriarV2Request": {
        "type": "object",
        "properties": {
          "nome": {
            "type": "string",
            "nullable": true
          },
          "id_origem": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "ids_usuarios": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GrupoV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "id_origem": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "ids_usuarios": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "data_criacao": {
            "type": "string",
            "format": "date-time"
          },
          "atualizado_em": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "GrupoV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GrupoV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "ItemReferenciaV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "origem": {
            "type": "string",
            "nullable": true
          },
          "atualizado_em": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ItemReferenciaV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemReferenciaV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "LocalizacaoUsuarioV2Dto": {
        "type": "object",
        "properties": {
          "id_usuario": {
            "type": "integer",
            "format": "int64"
          },
          "latitude": {
            "type": "number",
            "format": "double"
          },
          "longitude": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "NotaClienteCriarV2Request": {
        "type": "object",
        "properties": {
          "nota": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NotaClienteV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "id_cliente": {
            "type": "integer",
            "format": "int64"
          },
          "usuario": {
            "type": "string",
            "nullable": true
          },
          "nota": {
            "type": "string",
            "nullable": true
          },
          "data_criacao": {
            "type": "string",
            "format": "date-time"
          },
          "atualizado_em": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "NotaClienteV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NotaClienteV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "OpcaoCampoV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "nome": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OrdemServicoCriarV2Request": {
        "type": "object",
        "properties": {
          "nome": {
            "type": "string",
            "nullable": true
          },
          "ativa": {
            "type": "boolean",
            "nullable": true
          },
          "concluida": {
            "type": "boolean",
            "nullable": true
          },
          "id_cliente": {
            "type": "integer",
            "format": "int64"
          },
          "id_grupo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_segmento": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_contato": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_tipo_servico": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "inicio_agendado": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_agendada": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "comentario": {
            "type": "string",
            "nullable": true
          },
          "criada_para_mim": {
            "type": "boolean",
            "nullable": true
          },
          "exige_checklist_conclusao": {
            "type": "boolean",
            "nullable": true
          },
          "prioridade": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ids_usuarios": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OrdemServicoV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "codigo": {
            "type": "integer",
            "format": "int64"
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "id_status": {
            "type": "integer",
            "format": "int64"
          },
          "ids_usuarios": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ativa": {
            "type": "boolean"
          },
          "concluida": {
            "type": "boolean"
          },
          "id_cliente": {
            "type": "integer",
            "format": "int64"
          },
          "id_grupo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_segmento": {
            "type": "integer",
            "format": "int64"
          },
          "id_contato": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_tipo_servico": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "inicio_agendado": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_agendada": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "comentario": {
            "type": "string",
            "nullable": true
          },
          "criada_para_mim": {
            "type": "boolean"
          },
          "exige_checklist_conclusao": {
            "type": "boolean"
          },
          "prioridade": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "data_criacao": {
            "type": "string",
            "format": "date-time"
          },
          "atualizado_em": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "OrdemServicoV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrdemServicoV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "Paginacao": {
        "type": "object",
        "properties": {
          "pagina": {
            "type": "integer",
            "format": "int32"
          },
          "por_pagina": {
            "type": "integer",
            "format": "int32"
          },
          "total_itens": {
            "type": "integer",
            "format": "int32"
          },
          "total_paginas": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PessoaAtualizarV2Request": {
        "type": "object",
        "properties": {
          "nome": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "telefone": {
            "type": "string",
            "nullable": true
          },
          "celular": {
            "type": "string",
            "nullable": true
          },
          "ativo": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PessoaCriarV2Request": {
        "type": "object",
        "properties": {
          "nome": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "telefone": {
            "type": "string",
            "nullable": true
          },
          "celular": {
            "type": "string",
            "nullable": true
          },
          "ids_clientes": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PessoaV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "ativo": {
            "type": "boolean"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "telefone": {
            "type": "string",
            "nullable": true
          },
          "celular": {
            "type": "string",
            "nullable": true
          },
          "ids_clientes": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "data_criacao": {
            "type": "string",
            "format": "date-time"
          },
          "atualizado_em": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PessoaV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PessoaV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "Problema": {
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string",
            "nullable": true
          },
          "titulo": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "codigo": {
            "type": "string",
            "nullable": true
          },
          "detalhe": {
            "type": "string",
            "nullable": true
          },
          "instancia": {
            "type": "string",
            "nullable": true
          },
          "erros": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErroCampo"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QuestaoRespostaV2Dto": {
        "type": "object",
        "properties": {
          "id_item": {
            "type": "integer",
            "format": "int64"
          },
          "numero_questao": {
            "type": "string",
            "nullable": true
          },
          "nome_questao": {
            "type": "string",
            "nullable": true
          },
          "nome_item": {
            "type": "string",
            "nullable": true
          },
          "selecionado": {
            "type": "boolean",
            "nullable": true
          },
          "resposta_texto": {
            "type": "string",
            "nullable": true
          },
          "url_imagem": {
            "type": "string",
            "nullable": true
          },
          "comentario": {
            "type": "string",
            "nullable": true
          },
          "data_imagem": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QuestionarioV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "descricao": {
            "type": "string",
            "nullable": true
          },
          "ativo": {
            "type": "boolean"
          },
          "obrigatorio": {
            "type": "boolean"
          },
          "inicio_vigencia": {
            "type": "string",
            "format": "date-time"
          },
          "fim_vigencia": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "id_usuario_criador": {
            "type": "integer",
            "format": "int64"
          },
          "data_criacao": {
            "type": "string",
            "format": "date-time"
          },
          "atualizado_em": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "QuestionarioV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionarioV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "RegistroAgendadoCriarV2Request": {
        "type": "object",
        "properties": {
          "id_cliente": {
            "type": "integer",
            "format": "int64"
          },
          "id_segmento": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_contato": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_ordem_servico": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_objetivo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_equipe": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_usuario": {
            "type": "integer",
            "format": "int64"
          },
          "data_inicio_esperada": {
            "type": "string",
            "format": "date-time"
          },
          "data_conclusao_esperada": {
            "type": "string",
            "format": "date-time"
          },
          "ativo": {
            "type": "boolean"
          },
          "instrucoes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RegistroAtualizarV2Request": {
        "type": "object",
        "properties": {
          "data_inicio": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_realizacao": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "id_cliente": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_objetivo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "observacao": {
            "type": "string",
            "nullable": true
          },
          "latitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "longitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RegistroV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "codigo": {
            "type": "integer",
            "format": "int64"
          },
          "id_status": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "id_ordem_servico": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_cliente": {
            "type": "integer",
            "format": "int64"
          },
          "id_contato": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_usuario": {
            "type": "integer",
            "format": "int64"
          },
          "id_grupo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_segmento": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id_objetivo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "agendado": {
            "type": "boolean"
          },
          "ativo": {
            "type": "boolean"
          },
          "concluido": {
            "type": "boolean"
          },
          "inicio_agendado": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_agendada": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_inicio": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_realizacao": {
            "type": "string",
            "format": "date-time"
          },
          "observacao": {
            "type": "string",
            "nullable": true
          },
          "instrucoes": {
            "type": "string",
            "nullable": true
          },
          "latitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "longitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "data_criacao": {
            "type": "string",
            "format": "date-time"
          },
          "atualizado_em": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "RegistroV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegistroV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "RespostaQuestionarioResumoV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "codigo": {
            "type": "integer",
            "format": "int32"
          },
          "id_registro": {
            "type": "integer",
            "format": "int64"
          },
          "id_ordem_servico": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "nome_questionario": {
            "type": "string",
            "nullable": true
          },
          "inicio": {
            "type": "string",
            "nullable": true
          },
          "conclusao": {
            "type": "string",
            "nullable": true
          },
          "responsavel": {
            "type": "string",
            "nullable": true
          },
          "concluido": {
            "type": "boolean"
          },
          "id_cliente": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RespostaQuestionarioResumoV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RespostaQuestionarioResumoV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "RespostasQuestionarioV2Dto": {
        "type": "object",
        "properties": {
          "secoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SecaoRespostaV2Dto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResultadoCriacaoClienteV2Dto": {
        "type": "object",
        "properties": {
          "indice": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "recurso": {
            "$ref": "#/components/schemas/ClienteV2Dto"
          },
          "mensagem": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResultadoCriacaoLoteV2Dto": {
        "type": "object",
        "properties": {
          "resultados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResultadoCriacaoClienteV2Dto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResultadoExclusaoV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResultadoLoteV2Dto": {
        "type": "object",
        "properties": {
          "resultados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResultadoExclusaoV2Dto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SecaoRespostaV2Dto": {
        "type": "object",
        "properties": {
          "data_conclusao": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "usuario": {
            "type": "string",
            "nullable": true
          },
          "id_secao": {
            "type": "integer",
            "format": "int64"
          },
          "numero_secao": {
            "type": "integer",
            "format": "int64"
          },
          "nome_secao": {
            "type": "string",
            "nullable": true
          },
          "questoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestaoRespostaV2Dto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SegmentoAtualizarV2Request": {
        "type": "object",
        "properties": {
          "nome": {
            "type": "string",
            "nullable": true
          },
          "ativo": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SegmentoCriarV2Request": {
        "type": "object",
        "properties": {
          "nome": {
            "type": "string",
            "nullable": true
          },
          "ids_usuarios": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ids_grupos": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SegmentoV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "ativo": {
            "type": "boolean"
          },
          "data_criacao": {
            "type": "string",
            "format": "date-time"
          },
          "atualizado_em": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "SegmentoV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SegmentoV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "StatusOrdemServicoV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "tipo": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "StatusOrdemServicoV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusOrdemServicoV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "StatusPessoasV2Request": {
        "type": "object",
        "properties": {
          "ids_pessoas": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ativo": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TokenCriarV2Request": {
        "type": "object",
        "properties": {
          "login": {
            "type": "string",
            "nullable": true
          },
          "senha": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TokenV2Dto": {
        "type": "object",
        "properties": {
          "token_acesso": {
            "type": "string",
            "nullable": true
          },
          "tipo_token": {
            "type": "string",
            "nullable": true
          },
          "expira_em": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "UsuarioV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "login": {
            "type": "string",
            "nullable": true
          },
          "ativo": {
            "type": "boolean"
          },
          "telefone": {
            "type": "string",
            "nullable": true
          },
          "telefone_secundario": {
            "type": "string",
            "nullable": true
          },
          "fuso": {
            "type": "string",
            "nullable": true
          },
          "id_perfil": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "data_criacao": {
            "type": "string",
            "format": "date-time"
          },
          "atualizado_em": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "UsuarioV2DtoPaginaResultado": {
        "type": "object",
        "properties": {
          "dados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsuarioV2Dto"
            },
            "nullable": true
          },
          "paginacao": {
            "$ref": "#/components/schemas/Paginacao"
          }
        },
        "additionalProperties": false
      },
      "VincularClientesV2Request": {
        "type": "object",
        "properties": {
          "id_pessoa": {
            "type": "integer",
            "format": "int64"
          },
          "ids_clientes": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VincularGrupoV2Request": {
        "type": "object",
        "properties": {
          "id_grupo": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "VincularIdsV2Request": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VincularPessoasV2Request": {
        "type": "object",
        "properties": {
          "id_cliente": {
            "type": "integer",
            "format": "int64"
          },
          "ids_pessoas": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VincularSegmentoV2Request": {
        "type": "object",
        "properties": {
          "id_segmento": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "VinculoGrupoV2Dto": {
        "type": "object",
        "properties": {
          "id_grupo": {
            "type": "integer",
            "format": "int64"
          },
          "nome": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VinculoUsuarioV2Dto": {
        "type": "object",
        "properties": {
          "id_usuario": {
            "type": "integer",
            "format": "int64"
          },
          "nome": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VinculosSegmentoV2Dto": {
        "type": "object",
        "properties": {
          "id_segmento": {
            "type": "integer",
            "format": "int64"
          },
          "usuarios": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VinculoUsuarioV2Dto"
            },
            "nullable": true
          },
          "grupos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VinculoGrupoV2Dto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "Insert the token like this: Bearer token",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "tags": [
    {
      "name": "Autenticação"
    },
    {
      "name": "Clientes"
    },
    {
      "name": "Deslocamentos"
    },
    {
      "name": "Endereços"
    },
    {
      "name": "Grupos"
    },
    {
      "name": "Notas de Cliente"
    },
    {
      "name": "Ordens de Serviço"
    },
    {
      "name": "Pessoas"
    },
    {
      "name": "Questionários"
    },
    {
      "name": "Registros"
    },
    {
      "name": "Respostas de Questionário"
    },
    {
      "name": "Segmentos"
    },
    {
      "name": "Tabelas de Apoio"
    },
    {
      "name": "Usuários"
    }
  ]
}