01. DADOS GERAIS

Linha de Produto:TOTVS RENTAL
Segmento:Serviços
Módulo:SIGALOC
Função:

ALTERAOS

Ticket:Não há.
Story:

DSERLOCA-5964

02. SITUAÇÃO/REQUISITO

Criar API do Tipo Post para enviar o Json com a informações para alteração dos insumos da Ordem de Serviço no APP

03. SOLUÇÃO

Foi criada a API no seguinte end point:/ALTERAOS

Parâmetros de entrada:


Json recebido do app para os insumos da Ordem de Serviço:

{
  "cnpj_empresa": "53485215000106",
  "Ordem": "000279",
  "Itens": [
    {
      "valor_uni": "10.0",
      "produto": "00001298",
      "qtd": "30.0",
      "seq_tar": "001",
      "Anexos": [
        {
          "name": "anexo_item1_DENNIS.jpg",
          "size": "25600",
          "base64": "base64string"
        },
        {
          "name": "anexo2_item1_DENNIS2.jpg",
          "size": "25600",
          "base64": "base64string"
        }        
      ]
    },
    {
      "valor_uni": "20.0",
      "produto": "00001299",
      "qtd": "50.0",
      "seq_tar": "002",
      "Anexos": [
        {
          "name": "anexo_item2_DENNIS.jpg",
          "size": "25600",
          "base64": "base64string"
        },
        {
          "name": "anexo2_item2_DENNIS.jpg",
          "size": "25600",
          "base64": "base64string"
        }        
      ]
    },
    {
      "valor_uni": "30.0",
      "produto": "00001300",
      "qtd": "50.0",
      "seq_tar": "003",
      "Anexos": [
        {
          "name": "anexo_item3_DENNIS.jpg",
          "size": "25600",
          "base64": "base64string"
        },
        {
          "name": "anexo2_item3_DENNIS2.pdf",
          "size": "25600",
          "base64": "base64string"
        }        
      ]
    }
  ]
}

Retorno esperado:
Response:

{
   "Retorno": "OK",
}

04. DEMAIS INFORMAÇÕES

Tabela envolvida STL - DETALHES DA ORDEM DE SERVIÇO

                            FH1 - INSUMOS MTBF RENTAL

05. ASSUNTOS RELACIONADOS

Apps RENTAL