{
  "components": {
    "schemas": {
      "AnuncioDaCredencialResponse": {
        "properties": {
          "ano": {
            "format": "int32",
            "type": "integer"
          },
          "anuncioId": {
            "format": "uuid",
            "type": "string"
          },
          "atualizadoEm": {
            "format": "date-time",
            "type": "string"
          },
          "identificadorExterno": {
            "type": "string"
          },
          "marca": {
            "type": "string"
          },
          "modelo": {
            "type": "string"
          },
          "preco": {
            "type": "number"
          },
          "status": {
            "type": "string"
          },
          "urlPublica": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AnuncioParceiroResponse": {
        "properties": {
          "anuncioId": {
            "format": "uuid",
            "type": "string"
          },
          "fotos": {
            "items": {
              "$ref": "#/components/schemas/FotoParceiroResponse"
            },
            "type": "array"
          },
          "identificadorExterno": {
            "type": "string"
          },
          "motivoRejeicao": {
            "type": "string"
          },
          "motivoRevisao": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "urlPublica": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AutenticarRequest": {
        "properties": {
          "clientId": {
            "example": "cli_AbC123dEf456",
            "minLength": 1,
            "type": "string"
          },
          "credencial": {
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "clientId",
          "credencial"
        ],
        "type": "object"
      },
      "ContatoDoParceiroResponse": {
        "properties": {
          "email": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "telefone": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "CursorPageAnuncioDaCredencialResponse": {
        "properties": {
          "itens": {
            "items": {
              "$ref": "#/components/schemas/AnuncioDaCredencialResponse"
            },
            "type": "array"
          },
          "proximoCursorCriadoEm": {
            "format": "date-time",
            "type": "string"
          },
          "proximoCursorId": {
            "format": "uuid",
            "type": "string"
          }
        },
        "type": "object"
      },
      "CursorPageLeadDoParceiroResponse": {
        "properties": {
          "itens": {
            "items": {
              "$ref": "#/components/schemas/LeadDoParceiroResponse"
            },
            "type": "array"
          },
          "proximoCursorCriadoEm": {
            "format": "date-time",
            "type": "string"
          },
          "proximoCursorId": {
            "format": "uuid",
            "type": "string"
          }
        },
        "type": "object"
      },
      "DetalhesMaquinaAgricolaDoParceiroRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DetalhesVeiculoDoParceiroRequest"
          },
          {
            "properties": {
              "horasDeUso": {
                "format": "int32",
                "type": "integer"
              },
              "implementosCompativeis": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "potenciaCv": {
                "format": "int32",
                "type": "integer"
              },
              "tipo": {
                "enum": [
                  "TRATOR",
                  "COLHEITADEIRA",
                  "PULVERIZADOR",
                  "PLANTADEIRA",
                  "ROCADEIRA",
                  "OUTRO"
                ],
                "type": "string"
              },
              "tracao": {
                "description": "Opcional. Ausente na atualização mantém a gravada; NAO_SE_APLICA para implemento sem tração própria (plantadeira, grade...).",
                "enum": [
                  "QUATRO_X_DOIS",
                  "QUATRO_X_DOIS_TDA",
                  "QUATRO_X_QUATRO",
                  "SEIS_X_SEIS",
                  "MEIA_ESTEIRA",
                  "ESTEIRA",
                  "NAO_SE_APLICA"
                ],
                "type": "string"
              }
            },
            "type": "object"
          }
        ],
        "required": [
          "tipo"
        ]
      },
      "DetalhesNauticoDoParceiroRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DetalhesVeiculoDoParceiroRequest"
          },
          {
            "properties": {
              "caladoMetros": {
                "type": "number"
              },
              "capacidadePassageiros": {
                "format": "int32",
                "type": "integer"
              },
              "combustivelMotor": {
                "enum": [
                  "GASOLINA",
                  "ETANOL",
                  "FLEX",
                  "DIESEL",
                  "ELETRICO",
                  "HIBRIDO",
                  "GNV"
                ],
                "type": "string"
              },
              "comprimentoMetros": {
                "type": "number"
              },
              "horasDeUsoMotor": {
                "format": "int32",
                "type": "integer"
              },
              "registroCapitania": {
                "type": "string"
              },
              "tipoEmbarcacao": {
                "enum": [
                  "LANCHA",
                  "BARCO",
                  "JET_SKI",
                  "VELEIRO",
                  "IATE"
                ],
                "type": "string"
              }
            },
            "type": "object"
          }
        ],
        "required": [
          "caladoMetros",
          "comprimentoMetros",
          "tipoEmbarcacao"
        ]
      },
      "DetalhesRodoviarioDoParceiroRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DetalhesVeiculoDoParceiroRequest"
          },
          {
            "properties": {
              "cambio": {
                "enum": [
                  "MANUAL",
                  "AUTOMATICO",
                  "AUTOMATIZADO",
                  "CVT"
                ],
                "type": "string"
              },
              "carroceria": {
                "enum": [
                  "HATCH",
                  "SEDA",
                  "SUV",
                  "PICAPE",
                  "PERUA",
                  "MINIVAN",
                  "CUPE",
                  "CONVERSIVEL",
                  "VAN",
                  "FURGAO",
                  "JIPE",
                  "OUTRA"
                ],
                "type": "string"
              },
              "chassiFinal": {
                "type": "string"
              },
              "codigoFipe": {
                "type": "string"
              },
              "combustivel": {
                "enum": [
                  "GASOLINA",
                  "ETANOL",
                  "FLEX",
                  "DIESEL",
                  "ELETRICO",
                  "HIBRIDO",
                  "GNV"
                ],
                "type": "string"
              },
              "placa": {
                "type": "string"
              },
              "portas": {
                "format": "int32",
                "type": "integer"
              },
              "potenciaCv": {
                "format": "int32",
                "type": "integer"
              },
              "quilometragem": {
                "format": "int32",
                "type": "integer"
              },
              "renavam": {
                "type": "string"
              }
            },
            "type": "object"
          }
        ],
        "required": [
          "cambio",
          "combustivel",
          "quilometragem"
        ]
      },
      "DetalhesVeiculoDoParceiroRequest": {
        "discriminator": {
          "propertyName": "tipoDetalhes"
        },
        "properties": {
          "tipoDetalhes": {
            "type": "string"
          }
        },
        "required": [
          "tipoDetalhes"
        ]
      },
      "EstatisticasDoAnuncioResponse": {
        "properties": {
          "anuncioId": {
            "format": "uuid",
            "type": "string"
          },
          "cliques": {
            "format": "int64",
            "type": "integer"
          },
          "contatos": {
            "format": "int64",
            "type": "integer"
          },
          "curtidas": {
            "format": "int64",
            "type": "integer"
          },
          "dias": {
            "format": "int32",
            "type": "integer"
          },
          "exposicoes": {
            "format": "int64",
            "type": "integer"
          },
          "identificadorExterno": {
            "type": "string"
          },
          "visitas": {
            "format": "int64",
            "type": "integer"
          },
          "visitasUnicas": {
            "format": "int64",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "FotoExternaRequest": {
        "properties": {
          "ordem": {
            "format": "int32",
            "type": "integer"
          },
          "url": {
            "maxLength": 2048,
            "minLength": 0,
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "FotoParceiroResponse": {
        "properties": {
          "erro": {
            "type": "string"
          },
          "ordem": {
            "format": "int32",
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ItemDaNotaResponse": {
        "properties": {
          "chave": {
            "type": "string"
          },
          "conquistado": {
            "type": "boolean"
          },
          "dica": {
            "type": "string"
          },
          "pontos": {
            "format": "int32",
            "type": "integer"
          },
          "rotulo": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "LeadDoParceiroResponse": {
        "properties": {
          "anuncioId": {
            "format": "uuid",
            "type": "string"
          },
          "contato": {
            "$ref": "#/components/schemas/ContatoDoParceiroResponse"
          },
          "criadoEm": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "identificado": {
            "type": "boolean"
          },
          "identificadorExterno": {
            "type": "string"
          },
          "mensagem": {
            "type": "string"
          },
          "origem": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "vendedorAtribuidoId": {
            "format": "uuid",
            "type": "string"
          }
        },
        "type": "object"
      },
      "NotaDoAnuncioResponse": {
        "properties": {
          "anuncioId": {
            "format": "uuid",
            "type": "string"
          },
          "faixa": {
            "type": "string"
          },
          "identificadorExterno": {
            "type": "string"
          },
          "itens": {
            "items": {
              "$ref": "#/components/schemas/ItemDaNotaResponse"
            },
            "type": "array"
          },
          "maximo": {
            "format": "int32",
            "type": "integer"
          },
          "nota": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "SituacaoDoAnuncioResponse": {
        "properties": {
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "TokenResponse": {
        "properties": {
          "accessToken": {
            "type": "string"
          },
          "expiresIn": {
            "description": "Segundos até o token expirar.",
            "format": "int64",
            "type": "integer"
          },
          "tokenType": {
            "description": "Sempre \"Bearer\".",
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpsertAnuncioRequest": {
        "properties": {
          "ano": {
            "format": "int32",
            "type": "integer"
          },
          "categoria": {
            "enum": [
              "CARRO",
              "MOTO",
              "CAMINHAO",
              "ONIBUS",
              "MOTORHOME",
              "NAUTICA",
              "MAQUINA_AGRICOLA"
            ],
            "type": "string"
          },
          "condicao": {
            "enum": [
              "NOVO",
              "SEMINOVO",
              "USADO"
            ],
            "type": "string"
          },
          "cor": {
            "minLength": 1,
            "type": "string"
          },
          "descricao": {
            "maxLength": 5000,
            "minLength": 0,
            "type": "string"
          },
          "detalhes": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DetalhesMaquinaAgricolaDoParceiroRequest"
              },
              {
                "$ref": "#/components/schemas/DetalhesNauticoDoParceiroRequest"
              },
              {
                "$ref": "#/components/schemas/DetalhesRodoviarioDoParceiroRequest"
              }
            ]
          },
          "fotos": {
            "items": {
              "$ref": "#/components/schemas/FotoExternaRequest"
            },
            "type": "array"
          },
          "identificadorExterno": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "linkVideo": {
            "description": "Link https de vídeo (YouTube/Vimeo). Ausente ou null mantém o gravado; \"\" remove.",
            "maxLength": 500,
            "minLength": 0,
            "type": "string"
          },
          "marca": {
            "minLength": 1,
            "type": "string"
          },
          "modelo": {
            "minLength": 1,
            "type": "string"
          },
          "opcionais": {
            "description": "Opcionais do veículo. Categorias rodoviárias (CARRO, MOTO, CAMINHAO, ONIBUS, MOTORHOME): nomes do vocabulário do portal; nome desconhecido é ignorado e devolvido em opcionaisIgnorados. NAUTICA e MAQUINA_AGRICOLA: nomes em texto livre; cada um é aparado e tem os espaços internos colapsados, vale com 1 a 60 caracteres, repetidos (sem diferenciar maiúsculas) contam uma vez com a grafia do primeiro e ficam no máximo os 30 primeiros; vazio, longo demais e o que passa de 30 não são erro: são ignorados e devolvidos em opcionaisIgnorados. Em todas as categorias: ausente ou null mantém os gravados; [] limpa.",
            "items": {
              "type": "string"
            },
            "maxItems": 120,
            "minItems": 0,
            "type": "array"
          },
          "preco": {
            "type": "number"
          },
          "status": {
            "enum": [
              "DISPONIVEL",
              "VENDIDO",
              "REMOVIDO"
            ],
            "type": "string"
          }
        },
        "required": [
          "ano",
          "categoria",
          "condicao",
          "cor",
          "descricao",
          "detalhes",
          "identificadorExterno",
          "marca",
          "modelo",
          "preco"
        ],
        "type": "object"
      },
      "UpsertAnuncioResponse": {
        "properties": {
          "anuncioId": {
            "format": "uuid",
            "type": "string"
          },
          "fotosPendentes": {
            "format": "int32",
            "type": "integer"
          },
          "opcionaisIgnorados": {
            "description": "Opcionais enviados que não foram gravados: nas categorias rodoviárias, nomes fora do vocabulário do portal; em NAUTICA e MAQUINA_AGRICOLA, nomes vazios, com mais de 60 caracteres ou além dos 30 primeiros (normalizados). Nulo no replay idempotente.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "resultado": {
            "type": "string"
          },
          "urlPublica": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "VendaResponse": {
        "properties": {
          "status": {
            "type": "string"
          },
          "vendidoEm": {
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object"
      },
      "WebhookDoParceiroRequest": {
        "properties": {
          "tipos": {
            "items": {
              "enum": [
                "LEAD_RECEBIDO",
                "ANUNCIO_APROVADO",
                "ANUNCIO_REJEITADO",
                "ANUNCIO_PUBLICADO",
                "ANUNCIO_VENDIDO",
                "ANUNCIO_REMOVIDO",
                "FOTO_EXTERNA_FALHOU",
                "ANUNCIO_EM_REVISAO",
                "ANUNCIO_PAUSADO",
                "ANUNCIO_DESPUBLICADO"
              ],
              "type": "string"
            },
            "minItems": 1,
            "type": "array",
            "uniqueItems": true
          },
          "url": {
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "tipos",
          "url"
        ],
        "type": "object"
      },
      "WebhookDoParceiroResponse": {
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "outrasAssinaturas": {
            "format": "int32",
            "type": "integer"
          },
          "segredo": {
            "description": "Segredo HMAC em claro. Só vem na resposta do PUT que cria a assinatura; nas demais é nulo. Se a assinatura foi criada no painel da revenda, o segredo ficou com a revenda e não é devolvido aqui.",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "tipos": {
            "items": {
              "enum": [
                "LEAD_RECEBIDO",
                "ANUNCIO_APROVADO",
                "ANUNCIO_REJEITADO",
                "ANUNCIO_PUBLICADO",
                "ANUNCIO_VENDIDO",
                "ANUNCIO_REMOVIDO",
                "FOTO_EXTERNA_FALHOU",
                "ANUNCIO_EM_REVISAO",
                "ANUNCIO_PAUSADO",
                "ANUNCIO_DESPUBLICADO"
              ],
              "type": "string"
            },
            "type": "array",
            "uniqueItems": true
          },
          "url": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "JWT",
        "description": "Access token emitido por POST /auth/login ou POST /auth/refresh.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "As rotas que o sistema de gestão (ERP) de uma revenda usa para manter o estoque dela no portal. A documentação completa, com exemplos e a seção de webhooks, está em https://veiculosnosul.com.br/integracao",
    "title": "Veículos no Sul — API de integração de estoque",
    "version": "0.1.0-SNAPSHOT"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/integracoes/anuncios": {
      "get": {
        "operationId": "listar",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "atualizadoDesde",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursorAtualizadoEm",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursorId",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limite",
            "required": false,
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/CursorPageAnuncioDaCredencialResponse"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "Estoque e leads"
        ]
      },
      "post": {
        "operationId": "upsert",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertAnuncioRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/UpsertAnuncioResponse"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "Estoque e leads"
        ]
      }
    },
    "/v1/integracoes/anuncios/{identificadorExterno}": {
      "delete": {
        "operationId": "retirar",
        "parameters": [
          {
            "in": "path",
            "name": "identificadorExterno",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          }
        },
        "tags": [
          "Estoque e leads"
        ]
      },
      "get": {
        "operationId": "consultar_1",
        "parameters": [
          {
            "in": "path",
            "name": "identificadorExterno",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/AnuncioParceiroResponse"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "Estoque e leads"
        ]
      }
    },
    "/v1/integracoes/anuncios/{identificadorExterno}/estatisticas": {
      "get": {
        "operationId": "consultarEstatisticas",
        "parameters": [
          {
            "in": "path",
            "name": "identificadorExterno",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "dias",
            "required": false,
            "schema": {
              "default": 30,
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/EstatisticasDoAnuncioResponse"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "Estoque e leads"
        ]
      }
    },
    "/v1/integracoes/anuncios/{identificadorExterno}/nota": {
      "get": {
        "operationId": "consultarNota",
        "parameters": [
          {
            "in": "path",
            "name": "identificadorExterno",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/NotaDoAnuncioResponse"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "Estoque e leads"
        ]
      }
    },
    "/v1/integracoes/anuncios/{identificadorExterno}/pausar": {
      "post": {
        "operationId": "pausar",
        "parameters": [
          {
            "in": "path",
            "name": "identificadorExterno",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/SituacaoDoAnuncioResponse"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "Estoque e leads"
        ]
      }
    },
    "/v1/integracoes/anuncios/{identificadorExterno}/reativar": {
      "post": {
        "operationId": "reativar",
        "parameters": [
          {
            "in": "path",
            "name": "identificadorExterno",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/SituacaoDoAnuncioResponse"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "Estoque e leads"
        ]
      }
    },
    "/v1/integracoes/anuncios/{identificadorExterno}/vender": {
      "post": {
        "operationId": "vender",
        "parameters": [
          {
            "in": "path",
            "name": "identificadorExterno",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/VendaResponse"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "Estoque e leads"
        ]
      }
    },
    "/v1/integracoes/auth": {
      "post": {
        "operationId": "autenticar",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutenticarRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "integracao-auth-controller"
        ]
      }
    },
    "/v1/integracoes/leads": {
      "get": {
        "operationId": "listarLeads",
        "parameters": [
          {
            "in": "query",
            "name": "desde",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursorCriadoEm",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursorId",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limite",
            "required": false,
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/CursorPageLeadDoParceiroResponse"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "Estoque e leads"
        ]
      }
    },
    "/v1/integracoes/webhook": {
      "delete": {
        "operationId": "remover",
        "responses": {
          "204": {
            "description": "No Content"
          }
        },
        "tags": [
          "Webhook"
        ]
      },
      "get": {
        "operationId": "consultar",
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDoParceiroResponse"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "Webhook"
        ]
      },
      "put": {
        "operationId": "definir",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDoParceiroRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDoParceiroResponse"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "Webhook"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.veiculosnosul.com.br"
    }
  ],
  "tags": [
    {
      "description": "As rotas que o ERP da loja usa para enviar veículos, retirá-los e ler os contatos recebidos.",
      "name": "Estoque e leads"
    },
    {
      "description": "As rotas que o ERP da loja usa para enviar veículos, retirá-los e ler os contatos recebidos.",
      "name": "Webhook"
    }
  ]
}