Páginas filhas
  • Valor base da provisão (GET)

Informações da Mensagem

  • Tipo de Envio: Assíncrona / Síncrona
  • Tipo de Evento: Listagem

URL de Conexão

http://localhost:8180/TOTVS/CONTRATOS_WS.asmx/apiAcertoProv

Exemplos de Mensagens

Mensagem XML

Family_Envio
POST /TOTVS/CONTRATOS_WS.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "CONTRATOS_WS/apiAcertoProv"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <apiAcertoProv xmlns="CONTRATOS_WS">
      <instancia>string</instancia>
      <tpRegistro>string</tpRegistro>
      <cdUnidInd>string</cdUnidInd>
      <cdUpnivel1>string</cdUpnivel1>
      <amAcerto>string</amAcerto>
      <cdSafra>string</cdSafra>
    </apiAcertoProv>
  </soap:Body>
</soap:Envelope>
Family_Retorno
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <apiAcertoProvResponse xmlns="CONTRATOS_WS">
      <apiAcertoProvResult>string</apiAcertoProvResult>
    </apiAcertoProvResponse>
  </soap:Body>
</soap:Envelope>

Mensagem JSON

Family_Envio
{
    "instancia":"UC",
     "tpRegistro":"P", 
     "cdUnidInd":"2", 
     "cdUpnivel1":" 10500", 
     "amAcerto":"01/06/2018", 
     "cdSafra":"2018"
 }
Family_Retorno
{
    "d": "[{\"instancia\":\"UC\",\"tpRegistro\":\"P\",\"cdUnidInd\":2.0,\"deUnidInd\":\"Usina Cresciumal\",\"cdFazenda\":\"202019\",\"deFazenda\":\"FAZENDA CRESCIUMAL \",\"amAcerto\":\"2008-06-01T00:00:00\",\"pcAcerto\":100.0,\"cdTpCalc\":99.0,\"deTpCalc\":\"CONSECANA\",\"cdFornec\":20900006.0,\"deFornec\":\"LOUIS DREYFUS COMMODITIES BIOENERGIA S.A\",\"dtBaseATR\":\"2008-06-30T00:00:00\",\"cdSafra\":2006.0,\"vlATR\":140.78,\"vlTonCana\":44.3457,\"qtCanaEnt\":4973760.0,\"vlCanaBruto\":220564.87,\"vlCanaLiq\":220564.87,\"vlFatorK\":1.0,\"vlPg100\":null,\"vlAcertoATR\":null,\"cdTpPropr\":1.0,\"deTpPropr\":\"Própria\",\"vlTotServ\":0.0,\"fgAcertoFinal\":\"\",\"fgIndividual\":\"N\",\"vlAcAtrReceb\":0.0,\"vlKgATR\":0.3150,\"vlTotBonus\":0.0,\"vlTotServCorr\":null,\"fgAcertoAnual\":\"\",\"fgContrRescind\":\"\",\"instContr\":\"UC\",\"cdEmpContr\":\"2\",\"noContrCana\":0.0,\"vlRefAno\":null,\"fgProvMensal\":\"\",\"fgTpProc\":\"\",\"vlIcms\":null,\"vlDescGeocana\":null,\"qtAtrSemPremio\":null},{\"instancia\":\"UC\",\"tpRegistro\":\"P\",\"cdUnidInd\":2.0,\"deUnidInd\":\"Usina Cresciumal\",\"cdFazenda\":\"203723\",\"deFazenda\":\"FAZENDA BARRANCO VERMELHO\",\"amAcerto\":\"2008-06-01T00:00:00\",\"pcAcerto\":100.0,\"cdTpCalc\":99.0,\"deTpCalc\":\"CONSECANA\",\"cdFornec\":20050180.0,\"deFornec\":\"CLEIDE NILZA MOURÃO\",\"dtBaseATR\":\"2008-06-30T00:00:00\",\"cdSafra\":2006.0,\"vlATR\":141.38,\"vlTonCana\":44.5347,\"qtCanaEnt\":1735556.0,\"vlCanaBruto\":77292.47,\"vlCanaLiq\":77292.47,\"vlFatorK\":1.0,\"vlPg100\":null,\"vlAcertoATR\":null,\"cdTpPropr\":8.0,\"deTpPropr\":\"Parceria Pago Fornec\",\"vlTotServ\":0.0,\"fgAcertoFinal\":\"\",\"fgIndividual\":\"N\",\"vlAcAtrReceb\":0.0,\"vlKgATR\":0.3150,\"vlTotBonus\":0.0,\"vlTotServCorr\":null,\"fgAcertoAnual\":\"\",\"fgContrRescind\":\"\",\"instContr\":\"UC\",\"cdEmpContr\":\"2\",\"noContrCana\":0.0,\"vlRefAno\":null,\"fgProvMensal\":\"\",\"fgTpProc\":\"\",\"vlIcms\":null,\"vlDescGeocana\":null,\"qtAtrSemPremio\":null}]"
}

Descrição Detalhada das Tags

SEGMENTOTAGSTIPOTAMANHODESCRITIVO DA TAG


  





Event


instanciaString5Instancia
tpRegistroString1Tp Registro(P=Provisao - N=NF c/ Acerto - F=Folha com Acerto - M=Mensal)
cdUnidIndString3Codigo da Unidade de Medida
cdUpnivel1String6Codigo da Unidade de Producao Nivel 1
amAcertoString10Ano/Mes do Acerto
cdSafraString5Código da Safra
  • Sem rótulos