openapi: 3.0.3
info:
  title: 'ERP Prodesys API'
  description: 'API para integração de dados com o sistema ERP Prodesys'
  version: 1.0.0
servers:
  -
    url: 'https://api.prodesys.com.br'
paths:
  /api/ping:
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  pong: true
                properties:
                  pong:
                    type: boolean
                    example: true
      tags:
        - '1. Ping'
      security: []
  /api/login:
    post:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Operation successful'
          content:
            application/json:
              schema:
                type: object
                example:
                  token: 2|AYocaOcQ1jFcEkVfj0mMRuG25E0eXtGM1QtmtnCb
                properties:
                  token:
                    type: string
                    example: 2|AYocaOcQ1jFcEkVfj0mMRuG25E0eXtGM1QtmtnCb
      tags:
        - '2. Autenticação'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: ''
                  example: numquam
                password:
                  type: string
                  description: 'Quando concluído com sucesso o login irá retornar um token de acesso. Este token deverá ser informado para os métodos que requerem autenticação'
                  example: non
              required:
                - email
                - password
      security: []
  /api/logout:
    post:
      summary: 'Logout do Usuario'
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses: {  }
      tags:
        - '2. Autenticação'
      security: []
  /api/produtos:
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Operation successful'
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 1
                    codigo: 1001.100.001
                    descricao: 'TUBO BASE'
                    un: UN
                    grupo: 'PECA PRODUCAO INTERNA'
                    subgrupo: TUBOS
                    familia: PULVERIZADOR
                    percentual_ipi: '0.000'
                    ncm: 0
                    created_at: '2022-08-22T17:34:10.000000Z'
                    updated_at: '2022-08-22T17:34:10.000000Z'
                  -
                    id: 2
                    codigo: 1001.100.002
                    descricao: 'TUBO BASE 2 CM'
                    un: UN
                    grupo: 'PECA PRODUCAO INTERNA'
                    subgrupo: TUBOS
                    familia: PULVERIZADOR
                    percentual_ipi: '0.000'
                    ncm: 0
                    created_at: '2022-08-22T17:34:10.000000Z'
                    updated_at: '2022-08-22T17:34:10.000000Z'
        401:
          description: 'Invalid Token'
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Usuario nao esta logado'
                properties:
                  message:
                    type: string
                    example: 'Usuario nao esta logado'
      tags:
        - '3. Produtos'
  '/api/produtos/{id}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Operation successful'
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 51
                  codigo: 1001.100.015
                  descricao: 'TUBO BASE'
                  un: UN
                  grupo: 'PECA PRODUCAO INTERNA'
                  subgrupo: TUBOS
                  familia: PULVERIZADOR
                  percentual_ipi: '0.000'
                  ncm: 0
                  created_at: '2022-08-22T17:34:10.000000Z'
                  updated_at: '2022-08-22T17:34:10.000000Z'
                properties:
                  id:
                    type: integer
                    example: 51
                  codigo:
                    type: string
                    example: 1001.100.015
                  descricao:
                    type: string
                    example: 'TUBO BASE'
                  un:
                    type: string
                    example: UN
                  grupo:
                    type: string
                    example: 'PECA PRODUCAO INTERNA'
                  subgrupo:
                    type: string
                    example: TUBOS
                  familia:
                    type: string
                    example: PULVERIZADOR
                  percentual_ipi:
                    type: string
                    example: '0.000'
                  ncm:
                    type: integer
                    example: 0
                  created_at:
                    type: string
                    example: '2022-08-22T17:34:10.000000Z'
                  updated_at:
                    type: string
                    example: '2022-08-22T17:34:10.000000Z'
      tags:
        - '3. Produtos'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the produto.'
        example: 20
        required: true
        schema:
          type: integer
  '/api/produtos/search/{name}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Operation successful'
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 51
                  codigo: 1001.100.015
                  descricao: 'TUBO BASE'
                  un: UN
                  grupo: 'PECA PRODUCAO INTERNA'
                  subgrupo: TUBOS
                  familia: PULVERIZADOR
                  percentual_ipi: '0.000'
                  ncm: 0
                  created_at: '2022-08-22T17:34:10.000000Z'
                  updated_at: '2022-08-22T17:34:10.000000Z'
                properties:
                  id:
                    type: integer
                    example: 51
                  codigo:
                    type: string
                    example: 1001.100.015
                  descricao:
                    type: string
                    example: 'TUBO BASE'
                  un:
                    type: string
                    example: UN
                  grupo:
                    type: string
                    example: 'PECA PRODUCAO INTERNA'
                  subgrupo:
                    type: string
                    example: TUBOS
                  familia:
                    type: string
                    example: PULVERIZADOR
                  percentual_ipi:
                    type: string
                    example: '0.000'
                  ncm:
                    type: integer
                    example: 0
                  created_at:
                    type: string
                    example: '2022-08-22T17:34:10.000000Z'
                  updated_at:
                    type: string
                    example: '2022-08-22T17:34:10.000000Z'
      tags:
        - '3. Produtos'
    parameters:
      -
        in: path
        name: name
        description: ''
        example: libero
        required: true
        schema:
          type: string
  '/api/produtos/searchcodigo/{codigo}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Operation successful'
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 51
                  codigo: 1001.100.015
                  descricao: 'TUBO BASE'
                  un: UN
                  grupo: 'PECA PRODUCAO INTERNA'
                  subgrupo: TUBOS
                  familia: PULVERIZADOR
                  percentual_ipi: '0.000'
                  ncm: 0
                  created_at: '2022-08-22T17:34:10.000000Z'
                  updated_at: '2022-08-22T17:34:10.000000Z'
                properties:
                  id:
                    type: integer
                    example: 51
                  codigo:
                    type: string
                    example: 1001.100.015
                  descricao:
                    type: string
                    example: 'TUBO BASE'
                  un:
                    type: string
                    example: UN
                  grupo:
                    type: string
                    example: 'PECA PRODUCAO INTERNA'
                  subgrupo:
                    type: string
                    example: TUBOS
                  familia:
                    type: string
                    example: PULVERIZADOR
                  percentual_ipi:
                    type: string
                    example: '0.000'
                  ncm:
                    type: integer
                    example: 0
                  created_at:
                    type: string
                    example: '2022-08-22T17:34:10.000000Z'
                  updated_at:
                    type: string
                    example: '2022-08-22T17:34:10.000000Z'
      tags:
        - '3. Produtos'
    parameters:
      -
        in: path
        name: codigo
        description: ''
        example: odit
        required: true
        schema:
          type: string
  /api/representantes:
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: Unauthenticated.
                properties:
                  message:
                    type: string
                    example: Unauthenticated.
      tags:
        - '4. Representantes'
  '/api/representantes/{id}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: Unauthenticated.
                properties:
                  message:
                    type: string
                    example: Unauthenticated.
      tags:
        - '4. Representantes'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the representante.'
        example: 6
        required: true
        schema:
          type: integer
  '/api/representantes/search/{name}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: Unauthenticated.
                properties:
                  message:
                    type: string
                    example: Unauthenticated.
      tags:
        - '4. Representantes'
    parameters:
      -
        in: path
        name: name
        description: ''
        example: quis
        required: true
        schema:
          type: string
  /api/clientes:
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: Unauthenticated.
                properties:
                  message:
                    type: string
                    example: Unauthenticated.
      tags:
        - '5. Clientes'
    post:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Operation successful'
          content:
            application/json:
              schema:
                type: object
                example:
                  nome: 'EMPRESA 123 LTDA'
                  pfj: J
                  cnpj: 90.123.456/0001-01
                  email: empresa123@teste.com.br
                  endereco: 'AV BRASIL 900'
                  bairro: CENTRO
                  uf: RS
                  pais: BRASIL
                  cep: '99010220'
                  fone: '54 3300-000'
                  celular: '54 99999-9999'
                  updated_at: '2022-09-02T19:15:27.000000Z'
                  created_at: '2022-09-02T19:15:27.000000Z'
                  id: 6613
                properties:
                  nome:
                    type: string
                    example: 'EMPRESA 123 LTDA'
                  pfj:
                    type: string
                    example: J
                  cnpj:
                    type: string
                    example: 90.123.456/0001-01
                  email:
                    type: string
                    example: empresa123@teste.com.br
                  endereco:
                    type: string
                    example: 'AV BRASIL 900'
                  bairro:
                    type: string
                    example: CENTRO
                  uf:
                    type: string
                    example: RS
                  pais:
                    type: string
                    example: BRASIL
                  cep:
                    type: string
                    example: '99010220'
                  fone:
                    type: string
                    example: '54 3300-000'
                  celular:
                    type: string
                    example: '54 99999-9999'
                  updated_at:
                    type: string
                    example: '2022-09-02T19:15:27.000000Z'
                  created_at:
                    type: string
                    example: '2022-09-02T19:15:27.000000Z'
                  id:
                    type: integer
                    example: 6613
        422:
          description: 'Validation Error'
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'The given data was invalid.'
                  errors:
                    nome:
                      - 'The nome field is required.'
                properties:
                  message:
                    type: string
                    example: 'The given data was invalid.'
                  errors:
                    type: object
                    example:
                      nome:
                        - 'The nome field is required.'
      tags:
        - '5. Clientes'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                codigo:
                  type: string
                  description: ''
                  example: null
                nome:
                  type: string
                  description: ''
                  example: 'EMPRESA 123'
                pfj:
                  type: string
                  description: ''
                  example: 'F (pessoa fisica) ou J (pessoa juridica)'
                cnpj:
                  type: string
                  description: ''
                  example: 12.123.456/0001-01
                representante_id:
                  type: integer
                  description: ''
                  example: 5
                uf:
                  type: string
                  description: ''
                  example: RS
                endereco:
                  type: string
                  description: ''
                  example: 'AV BRASIL 900'
                bairro:
                  type: string
                  description: ''
                  example: CENTRO
                ie:
                  type: string
                  description: ''
                  example: 091/1234578
                cep:
                  type: integer
                  description: ''
                  example: 99010220
                municipio:
                  type: string
                  description: ''
                  example: 'PASSO FUNDO'
                pais:
                  type: string
                  description: ''
                  example: BRASIL
                email:
                  type: string
                  description: ''
                  example: empresa123@teste.com.br
                fone:
                  type: string
                  description: ''
                  example: '54 3300-000'
                celular:
                  type: string
                  description: ''
                  example: '54 99999-9999'
              required:
                - nome
                - pfj
                - cnpj
  '/api/clientes/{id}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: Unauthenticated.
                properties:
                  message:
                    type: string
                    example: Unauthenticated.
      tags:
        - '5. Clientes'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the cliente.'
        example: 4
        required: true
        schema:
          type: integer
  '/api/clientes/search/{name}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: Unauthenticated.
                properties:
                  message:
                    type: string
                    example: Unauthenticated.
      tags:
        - '5. Clientes'
    parameters:
      -
        in: path
        name: name
        description: ''
        example: explicabo
        required: true
        schema:
          type: string
  '/api/clientes/searchcnpj/{cnpj}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: Unauthenticated.
                properties:
                  message:
                    type: string
                    example: Unauthenticated.
      tags:
        - '5. Clientes'
    parameters:
      -
        in: path
        name: cnpj
        description: ''
        example: velit
        required: true
        schema:
          type: string
  /api/cond_pagamentos:
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: Unauthenticated.
                properties:
                  message:
                    type: string
                    example: Unauthenticated.
      tags:
        - '6. Condições de Pagamento'
  '/api/cond_pagamentos/{id}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: Unauthenticated.
                properties:
                  message:
                    type: string
                    example: Unauthenticated.
      tags:
        - '6. Condições de Pagamento'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the cond pagamento.'
        example: 20
        required: true
        schema:
          type: integer
  '/api/cond_pagamentos/search/{name}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: Unauthenticated.
                properties:
                  message:
                    type: string
                    example: Unauthenticated.
      tags:
        - '6. Condições de Pagamento'
    parameters:
      -
        in: path
        name: name
        description: ''
        example: aspernatur
        required: true
        schema:
          type: string
  /api/pedidos:
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Operation successful'
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 1
                    data_emissao: '2022-08-17'
                    status: LIBERADO
                    cliente_id: 100
                    representante_id: 1
                    cond_pagamento_id: 3
                    observacao: 'observacao do novo pedido 3'
                    mensagem_importacao: null
                    itens_pedido:
                      -
                        id: 1
                        pedido_id: 1
                        produto_id: 1
                        codigo_produto: 0110.000.003
                        quantidade: 2
                        preco: '18.25'
      tags:
        - '7. Pedidos'
    post:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Operation successful'
          content:
            application/json:
              schema:
                type: object
                example:
                  data_emissao: 2022/08/17
                  status: LIBERADO
                  cliente_id: 100
                  cond_pagamento_id: 3
                  representante_id: 1
                  observacao: 'observacao do novo pedido 3'
                  updated_at: '2022-08-18T13:40:16.000000Z'
                  created_at: '2022-08-18T13:40:16.000000Z'
                  id: 2
                  itens:
                    -
                      id: 3
                      pedido_id: 2
                      produto_id: 1
                      codigo_produto: 0110.000.003
                      created_at: '2022-08-18T13:40:16.000000Z'
                      updated_at: '2022-08-18T13:40:16.000000Z'
                      quantidade: 2
                      preco: '18.25'
                    -
                      id: 4
                      pedido_id: 2
                      produto_id: 2
                      codigo_produto: 0110.000.004
                      created_at: '2022-08-18T13:40:16.000000Z'
                      updated_at: '2022-08-18T13:40:16.000000Z'
                      quantidade: 17
                      preco: '101.93'
                      un: KG
                properties:
                  data_emissao:
                    type: string
                    example: 2022/08/17
                  status:
                    type: string
                    example: LIBERADO
                  cliente_id:
                    type: integer
                    example: 100
                  cond_pagamento_id:
                    type: integer
                    example: 3
                  representante_id:
                    type: integer
                    example: 1
                  observacao:
                    type: string
                    example: 'observacao do novo pedido 3'
                  updated_at:
                    type: string
                    example: '2022-08-18T13:40:16.000000Z'
                  created_at:
                    type: string
                    example: '2022-08-18T13:40:16.000000Z'
                  id:
                    type: integer
                    example: 2
                  itens:
                    type: array
                    example:
                      -
                        id: 3
                        pedido_id: 2
                        produto_id: 1
                        codigo_produto: 0110.000.003
                        created_at: '2022-08-18T13:40:16.000000Z'
                        updated_at: '2022-08-18T13:40:16.000000Z'
                        quantidade: 2
                        preco: '18.25'
                      -
                        id: 4
                        pedido_id: 2
                        produto_id: 2
                        codigo_produto: 0110.000.004
                        created_at: '2022-08-18T13:40:16.000000Z'
                        updated_at: '2022-08-18T13:40:16.000000Z'
                        quantidade: 17
                        preco: '101.93'
                        un: KG
                    items:
                      type: object
        422:
          description: 'Validation Error'
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'The given data was invalid.'
                  errors:
                    itens.1.produto_id:
                      - 'The selected itens.1.produto_id is invalid.'
                properties:
                  message:
                    type: string
                    example: 'The given data was invalid.'
                  errors:
                    type: object
                    example:
                      itens.1.produto_id:
                        - 'The selected itens.1.produto_id is invalid.'
      tags:
        - '7. Pedidos'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                data_emissao:
                  type: string
                  description: ''
                  example: 2025/06/16
                data_entrega:
                  type: string
                  description: ''
                  example: 2025/08/31
                status:
                  type: string
                  description: ''
                  example: LIBERADO
                cliente_id:
                  type: integer
                  description: ''
                  example: 123
                representante_id:
                  type: integer
                  description: ''
                  example: 4
                cond_pagamento_id:
                  type: integer
                  description: ''
                  example: 1
                observacao:
                  type: string
                  description: 'Must not be greater than 500 characters.'
                  example: lwuwouunyrxrpbyhsezawilluswgytx
                tipo_frete:
                  type: 'Example:'
                  description: P
                  example: et
                itens:
                  type: object
                  description: ''
                  example: []
                  properties:
                    produto_id:
                      type: string
                      description: ''
                      example: facilis
                    quantidade:
                      type: number
                      description: ''
                      example: 3049.2471958
                    preco:
                      type: number
                      description: ''
                      example: 51483022.125698
                parcelas:
                  type: object
                  description: ''
                  example: []
                  properties:
                    valor:
                      type: number
                      description: ''
                      example: 515.0
                revenda_id:
                  type: integer
                  description: ''
                  example: 123
                percentual_revenda:
                  type: number
                  description: ''
                  example: 3.5
              required:
                - data_emissao
                - data_entrega
                - status
                - cliente_id
                - representante_id
                - cond_pagamento_id
                - itens
  '/api/pedidos/{id}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Consultando uma id de pedido que já foi importado pelo ERP'
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 2
                  data_emissao: '2022-08-17'
                  status: IMPORTADO
                  cliente_id: 100
                  representante_id: 1
                  cond_pagamento_id: 3
                  observacao: 'observacao do novo pedido 3'
                  mensagem_importacao: 'Pedido ERP: P -00000111'
                  created_at: '2022-08-18T13:40:16.000000Z'
                  updated_at: '2022-08-18T13:40:17.000000Z'
                  itens_pedido:
                    -
                      id: 3
                      pedido_id: 2
                      produto_id: 1
                      codigo_produto: 0110.000.003
                      created_at: '2022-08-18T13:40:16.000000Z'
                      updated_at: '2022-08-18T13:40:16.000000Z'
                      quantidade: 2
                      preco: '18.25'
                    -
                      id: 4
                      pedido_id: 2
                      produto_id: 2
                      codigo_produto: 0110.000.004
                      created_at: '2022-08-18T13:40:16.000000Z'
                      updated_at: '2022-08-18T13:40:16.000000Z'
                      quantidade: 17
                      preco: '101.93'
                properties:
                  id:
                    type: integer
                    example: 2
                  data_emissao:
                    type: string
                    example: '2022-08-17'
                  status:
                    type: string
                    example: IMPORTADO
                  cliente_id:
                    type: integer
                    example: 100
                  representante_id:
                    type: integer
                    example: 1
                  cond_pagamento_id:
                    type: integer
                    example: 3
                  observacao:
                    type: string
                    example: 'observacao do novo pedido 3'
                  mensagem_importacao:
                    type: string
                    example: 'Pedido ERP: P -00000111'
                  created_at:
                    type: string
                    example: '2022-08-18T13:40:16.000000Z'
                  updated_at:
                    type: string
                    example: '2022-08-18T13:40:17.000000Z'
                  itens_pedido:
                    type: array
                    example:
                      -
                        id: 3
                        pedido_id: 2
                        produto_id: 1
                        codigo_produto: 0110.000.003
                        created_at: '2022-08-18T13:40:16.000000Z'
                        updated_at: '2022-08-18T13:40:16.000000Z'
                        quantidade: 2
                        preco: '18.25'
                      -
                        id: 4
                        pedido_id: 2
                        produto_id: 2
                        codigo_produto: 0110.000.004
                        created_at: '2022-08-18T13:40:16.000000Z'
                        updated_at: '2022-08-18T13:40:16.000000Z'
                        quantidade: 17
                        preco: '101.93'
                    items:
                      type: object
      tags:
        - '7. Pedidos'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the pedido.'
        example: 20
        required: true
        schema:
          type: integer
  '/api/ocorrenciapedidos/pedido/{id}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Consultando Ocorrencias de um pedido'
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 1
                  pedido_id: 123
                  data_hora: '2025-04-20T09:15:00'
                  info: 'Pedido Faturado - NF 12345'
                  info_situacao: ''
                  info_documento: 12345
                properties:
                  id:
                    type: integer
                    example: 1
                  pedido_id:
                    type: integer
                    example: 123
                  data_hora:
                    type: string
                    example: '2025-04-20T09:15:00'
                  info:
                    type: string
                    example: 'Pedido Faturado - NF 12345'
                  info_situacao:
                    type: string
                    example: ''
                  info_documento:
                    type: integer
                    example: 12345
      tags:
        - '7. Pedidos'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the pedido.'
        example: 8
        required: true
        schema:
          type: integer
  '/api/ocorrenciapedidos/data/{data}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Consultando Ocorrencias em uma data'
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 1
                    pedido_id: 123
                    data_hora: '2025-04-20T09:15:00'
                    info: 'Pedido Faturado - NF 12345'
                    info_situacao: ''
                    info_documento: 12345
                  -
                    id: 2
                    pedido_id: 124
                    data_hora: '2025-04-20T14:45:00'
                    info: 'Data Entrega alterada para 15/06/2025'
                    info_situacao: ''
                    info_documento: 0
      tags:
        - '7. Pedidos'
    parameters:
      -
        in: path
        name: data
        description: 'The data.'
        example: tempora
        required: true
        schema:
          type: string
  /api/listaprecos:
    post:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Operation successful'
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 1
                  lista: 999
                  produto_id: 1
                  preco: '251.35120'
                properties:
                  id:
                    type: integer
                    example: 1
                  lista:
                    type: integer
                    example: 999
                  produto_id:
                    type: integer
                    example: 1
                  preco:
                    type: string
                    example: '251.35120'
        422:
          description: 'Validation Error'
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'The given data was invalid.'
                  errors:
                    itens.1.produto_id:
                      - 'The selected itens.1.produto_id is invalid.'
                properties:
                  message:
                    type: string
                    example: 'The given data was invalid.'
                  errors:
                    type: object
                    example:
                      itens.1.produto_id:
                        - 'The selected itens.1.produto_id is invalid.'
      tags:
        - '8. Lista de Preco'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                precos:
                  type: array
                  description: ''
                  example:
                    - []
                  items:
                    type: object
                    properties:
                      produto_id:
                        type: string
                        description: ''
                        example: ut
                      lista:
                        type: number
                        description: ''
                        example: 132139.2046365
                      preco:
                        type: number
                        description: ''
                        example: 938.001426854
                    required:
                      - produto_id
                      - lista
                      - preco
                lista:
                  type: integer
                  description: ''
                  example: 1
                produto_id:
                  type: integer
                  description: ''
                  example: 123
                preco:
                  type: number
                  description: ''
                  example: 1250.75
              required:
                - lista
                - preco
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Operation successful'
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 1
                    lista: 999
                    produto_id: 1
                    produto_erp: 0110.000.003
                    preco: '251.35120'
                    created_at: '2024-12-06T12:18:13.000000Z'
                    updated_at: '2024-12-06T12:18:13.000000Z'
      tags:
        - '8. Lista de Preco'
  '/api/listaprecos/{id}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Consultando uma id de um item da lista que já foi importado pelo ERP'
          content:
            application/json:
              schema:
                type: object
                example:
                  lista: 999
                  produto_id: 1
                  preco: 251.3512
                properties:
                  lista:
                    type: integer
                    example: 999
                  produto_id:
                    type: integer
                    example: 1
                  preco:
                    type: number
                    example: 251.3512
      tags:
        - '8. Lista de Preco'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the listapreco.'
        example: 8
        required: true
        schema:
          type: integer
  '/api/notafiscal/{id}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Operation successful'
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 16965
                  numero: 16965
                  serie: '1'
                  data_emissao: '2025-01-10'
                  cliente_id: 3811
                  operacao: 'VENDA DE PRODUÇÃO'
                  representante_id: 46
                  representante2_id: null
                  observacao: 'O EQUIPAMENTO DESCRITO NESTA NOTA FISCAL FOI FINANCIADO.'
                  numero_pedido: 14482
                  chave_acesso: ' '
                  status: emitida
                  valor_total: '23000.00'
                  transportadora_id: 1313
                  codigo_rastreio: XX-12345678
                  created_at: '2025-04-11T13:25:18.000000Z'
                  updated_at: '2025-04-11T13:25:18.000000Z'
                  itens:
                    -
                      id: 16965001
                      nota_fiscal_id: 16965
                      produto_id: 15674
                      descricao: 'GUINCHO BAG TRASEIRO 2500'
                      quantidade: '1.00000'
                      unidade: UN
                      valor_unitario: '23000.00'
                      valor_total: '23000.00'
                      cfop: '6.101'
                      aliquota_icms: '12.00'
                      valor_icms: '1609.91'
                      aliquota_ipi: '0.00'
                      valor_ipi: '0.00'
                      valor_st: '0.00'
                      desconto: '0.00'
                      created_at: '2025-04-11T13:25:18.000000Z'
                      updated_at: '2025-04-11T13:25:18.000000Z'
                properties:
                  id:
                    type: integer
                    example: 16965
                  numero:
                    type: integer
                    example: 16965
                  serie:
                    type: string
                    example: '1'
                  data_emissao:
                    type: string
                    example: '2025-01-10'
                  cliente_id:
                    type: integer
                    example: 3811
                  operacao:
                    type: string
                    example: 'VENDA DE PRODUÇÃO'
                  representante_id:
                    type: integer
                    example: 46
                  representante2_id:
                    type: string
                    example: null
                  observacao:
                    type: string
                    example: 'O EQUIPAMENTO DESCRITO NESTA NOTA FISCAL FOI FINANCIADO.'
                  numero_pedido:
                    type: integer
                    example: 14482
                  chave_acesso:
                    type: string
                    example: ' '
                  status:
                    type: string
                    example: emitida
                  valor_total:
                    type: string
                    example: '23000.00'
                  transportadora_id:
                    type: integer
                    example: 1313
                  codigo_rastreio:
                    type: string
                    example: XX-12345678
                  created_at:
                    type: string
                    example: '2025-04-11T13:25:18.000000Z'
                  updated_at:
                    type: string
                    example: '2025-04-11T13:25:18.000000Z'
                  itens:
                    type: array
                    example:
                      -
                        id: 16965001
                        nota_fiscal_id: 16965
                        produto_id: 15674
                        descricao: 'GUINCHO BAG TRASEIRO 2500'
                        quantidade: '1.00000'
                        unidade: UN
                        valor_unitario: '23000.00'
                        valor_total: '23000.00'
                        cfop: '6.101'
                        aliquota_icms: '12.00'
                        valor_icms: '1609.91'
                        aliquota_ipi: '0.00'
                        valor_ipi: '0.00'
                        valor_st: '0.00'
                        desconto: '0.00'
                        created_at: '2025-04-11T13:25:18.000000Z'
                        updated_at: '2025-04-11T13:25:18.000000Z'
                    items:
                      type: object
      tags:
        - '9. Nota Fiscal'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the notafiscal.'
        example: 2
        required: true
        schema:
          type: integer
  '/api/notafiscal/cliente/{id}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Operation successful'
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 16965
                    numero: 16965
                    serie: '1'
                    data_emissao: '2025-01-10'
                    cliente_id: 3811
                    operacao: 'VENDA DE PRODUÇÃO'
                    representante_id: 46
                    representante2_id: null
                    observacao: 'O EQUIPAMENTO DESCRITO NESTA NOTA FISCAL FOI FINANCIADO.'
                    numero_pedido: 14482
                    chave_acesso: ' '
                    status: emitida
                    valor_total: '23000.00'
                    transportadora_id: 1313
                    codigo_rastreio: XX-12345678
                    created_at: '2025-04-11T13:25:18.000000Z'
                    updated_at: '2025-04-11T13:25:18.000000Z'
                    itens:
                      -
                        id: 16965001
                        nota_fiscal_id: 16965
                        produto_id: 15674
                        descricao: 'GUINCHO BAG TRASEIRO 2500'
                        quantidade: '1.00000'
                        unidade: UN
                        valor_unitario: '23000.00'
                        valor_total: '23000.00'
                        cfop: '6.101'
                        aliquota_icms: '12.00'
                        valor_icms: '1609.91'
                        aliquota_ipi: '0.00'
                        valor_ipi: '0.00'
                        valor_st: '0.00'
                        desconto: '0.00'
                        created_at: '2025-04-11T13:25:18.000000Z'
                        updated_at: '2025-04-11T13:25:18.000000Z'
      tags:
        - '9. Nota Fiscal'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the cliente.'
        example: 15
        required: true
        schema:
          type: integer
  /api/faturasaberto:
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Consultando Faturas em Aberto'
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 11
                    fatura: E1016997-01
                    parcela: 1
                    cliente_id: 4147
                    nota_fiscal: 16997
                    serie: '1'
                    data_emissao: '2025-01-20'
                    data_vencimento: '2025-02-15'
                    data_pagamento: null
                    observacao: ' '
                    cod_barras_boleto: '00192999300169750000000001905970000001267017'
                    status: aberto
                    valor_total: '169750.00'
                    valor_pago: '0.00'
                    created_at: '2025-04-23T17:39:25.000000Z'
                    updated_at: '2025-04-23T17:39:25.000000Z'
      tags:
        - '10. Faturas'
  '/api/faturascliente/{id}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Consultando Faturas de um Cliente'
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 11
                    fatura: E1016997-01
                    parcela: 1
                    cliente_id: 4147
                    nota_fiscal: 16997
                    serie: '1'
                    data_emissao: '2025-01-20'
                    data_vencimento: '2025-02-15'
                    data_pagamento: null
                    observacao: ' '
                    cod_barras_boleto: '00192999300169750000000001905970000001267017'
                    status: aberto
                    valor_total: '169750.00'
                    valor_pago: '0.00'
                    created_at: '2025-04-23T17:39:25.000000Z'
                    updated_at: '2025-04-23T17:39:25.000000Z'
      tags:
        - '10. Faturas'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the faturascliente.'
        example: consequuntur
        required: true
        schema:
          type: string
  '/api/faturasnf/{id}':
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: 'Consultando Faturas de uma Nota Fiscal'
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 11
                    fatura: E1016997-01
                    parcela: 1
                    cliente_id: 4147
                    nota_fiscal: 16997
                    serie: '1'
                    data_emissao: '2025-01-20'
                    data_vencimento: '2025-02-15'
                    data_pagamento: null
                    observacao: ' '
                    cod_barras_boleto: '00192999300169750000000001905970000001267017'
                    status: aberto
                    valor_total: '169750.00'
                    valor_pago: '0.00'
                    created_at: '2025-04-23T17:39:25.000000Z'
                    updated_at: '2025-04-23T17:39:25.000000Z'
      tags:
        - '10. Faturas'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the faturasnf.'
        example: aspernatur
        required: true
        schema:
          type: string
  /api/transportadoras:
    get:
      summary: ''
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
        -
          in: header
          name: Accept
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: Unauthenticated.
                properties:
                  message:
                    type: string
                    example: Unauthenticated.
      tags:
        - '11. Transportadoras'
tags:
  -
    name: '1. Ping'
    description: ''
  -
    name: '2. Autenticação'
    description: ''
  -
    name: '3. Produtos'
    description: ''
  -
    name: '4. Representantes'
    description: ''
  -
    name: '5. Clientes'
    description: ''
  -
    name: '6. Condições de Pagamento'
    description: ''
  -
    name: '7. Pedidos'
    description: ''
  -
    name: '8. Lista de Preco'
    description: ''
  -
    name: '9. Nota Fiscal'
    description: ''
  -
    name: '10. Faturas'
    description: ''
  -
    name: '11. Transportadoras'
    description: ''
