Páginas filhas
  • Histórico Deduções Fornecedores (POST)

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

  • Código;
  • Descrição da família;
  • Classificação da família.

Exemplos de Mensagens

Mensagem XML

...

Exemplos de Mensagens

Mensagem XML

Bloco de código
languagexml
titleFamily_Envio
linenumberstrue
collapsetrue
POST /CONTRATOS_WS/CONTRATOS_WS.asmx HTTP/1.1
Host: 10.173.14.69
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "CONTRATOS_WS/apiHTTP_POST_HISTDED"

<?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>
    <apiHTTP_POST_HISTDED xmlns="CONTRATOS_WS">
      <oACERTOPROV>
        <instancia>string</instancia>
        <tpRegistro>string</tpRegistro>
        <cdUnidInd>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </cdUnidInd>
        <deUnidInd>string</deUnidInd>
        <cdFazenda>string</cdFazenda>
        <deFazenda>string</deFazenda>
        <amAcerto>
          <Value>dateTime</Value>
          <IsNull>boolean</IsNull>
        </amAcerto>
        <pcAcerto>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </pcAcerto>
        <cdTpCalc>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </cdTpCalc>
        <deTpCalc>string</deTpCalc>
        <cdFornec>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </cdFornec>
        <deFornec>string</deFornec>
        <dtBaseATR>
          <Value>dateTime</Value>
          <IsNull>boolean</IsNull>
        </dtBaseATR>
        <cdSafra>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </cdSafra>
        <vlATR>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlATR>
        <vlTonCana>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlTonCana>
        <qtCanaEnt>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </qtCanaEnt>
        <vlCanaBruto>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlCanaBruto>
        <vlCanaLiq>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlCanaLiq>
        <vlFatorK>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlFatorK>
        <vlPg100>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlPg100>
        <vlAcertoATR>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlAcertoATR>
        <cdTpPropr>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </cdTpPropr>
        <deTpPropr>string</deTpPropr>
        <vlTotServ>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlTotServ>
        <fgAcertoFinal>string</fgAcertoFinal>
        <fgIndividual>string</fgIndividual>
        <vlAcAtrReceb>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlAcAtrReceb>
        <vlKgATR>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlKgATR>
        <vlTotBonus>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlTotBonus>
        <vlTotServCorr>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlTotServCorr>
        <fgAcertoAnual>string</fgAcertoAnual>
        <fgContrRescind>string</fgContrRescind>
        <instContr>string</instContr>
        <cdEmpContr>string</cdEmpContr>
        <noContrCana>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </noContrCana>
        <vlRefAno>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlRefAno>
        <fgProvMensal>string</fgProvMensal>
        <fgTpProc>string</fgTpProc>
        <vlIcms>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlIcms>
        <vlDescGeocana>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlDescGeocana>
        <qtAtrSemPremio>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </qtAtrSemPremio>
      </oACERTOPROV>
    </apiHTTP_POST_HISTDED>
  </soap:Body>
</soap:Envelope>
Bloco de código
languagexml
titleFamily_Retorno
linenumberstrue
collapsetrue
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>
    <apiHTTP_POST_HISTDEDResponse xmlns="CONTRATOS_WS">
      <apiHTTP_POST_HISTDEDResult>string</apiHTTP_POST_HISTDEDResult>
    </apiHTTP_POST_HISTDEDResponse>
  </soap:Body>
</soap:Envelope>

Mensagem JSON

Bloco de código
languagejs
titleFamily_Envio
linenumberstrue
collapsetrue
{
	"TOTVSMessage" : {
		"MessageInformation" : {
			"@version" : "2.002",
			"BranchId" : "D MG 01 ",
			"CompanyId" : "T1",
			"DeliveryType" : "Sync",
			"GeneratedOn" : "2018-03-21T19:27:54Z",
			"Product" : {
				"@name" : "ERP",
				"@version" : "12"
			},
			"SourceApplication" : "P12_DEV_SERVERT1",
			"StandardVersion" : "1.000",
			"Transaction" : "FAMILY",
			"Type" : "BusinessMessage",
			"UUID" : "01da1810-a305-6677-bdaf-cda337c8a412"
		},
		"BusinessMessage" : {
			"BusinessEvent" : {
				"Entity" : "FAMILY",
				"Event" : "upsert",
				"Identification" : {
					"key" : {
						"@name" : "InternalId",
						"$" : "T1|D MG 01|456"
					}
				}
			},
			"BusinessContent" : {
				"CompanyId" : "T1",
				"BranchId" : "D MG 01 ",
				"CompanyInternalId" : "T1|D MG 01 ",
				"Code" : "456 ",
				"InternalId" : "T1|D MG 01|456",
				"Description" : "Peças Automotivas",
				"FamilyClassificationCode" : "2"
			}
		}
	}
}
Bloco de código
languagejs
titleFamily_Retorno
linenumberstrue
collapsetrue
{
	"TOTVSMessage" : {
		"MessageInformation" : {
			"@version" : "2.002",
			"BranchId" : "D MG 01 ",
			"CompanyId" : "T1",
			"DeliveryType" : "Sync",
			"GeneratedOn" : "2018-03-21T16:24:02",
			"Product" : {
				"@name" : "PIMS",
				"@version" : "12.1.20"
			},
			"SourceApplication" : "PIMSCONNECTOR",
			"StandardVersion" : "1.000",
			"Transaction" : "FAMILY",
			"Type" : "Response",
			"UUID" : "aee6b73a-3d4d-4cac-bd20-85d9bc95fd0c"
		},
		"ResponseMessage" : {
			"ProcessingInformation" : {
				"ProcessedOn" : "2018-03-21T16:24:02",
				"Status" : "OK"
			},
			"ReceivedMessage" : {
				"MessageContent" : null,
				"SentBy" : "ERP",
				"UUID" : "01da1810-a305-6677-bdaf-cda337c8a412"
			},
			"ReturnContent" : {
				"ListOfInternalId" : {
					"InternalId" : {
						"Destination" : "||959851251781955913",
						"Name" : "FAMILY",
						"Origin" : "T1|D MG 01|456"
					}
				}
			}
		}
	}
}

Mensagem JSON

...

Descrição Detalhada das Tags

SEGMENTOTAGSTIPOTAMANHODESCRITIVO DA TAG


Event

instancia
String5Código da Instância
FG_TP_PROCString1Tipo de Processo
CD_UPNIVEL1String6Codigo da Unidade Producao Nivel1           



Event

DT_INI_PERDate10
DT_FIM_PERDate10
CD_EVTO

number

3
DT_EVTODate10
VL_DEDUCAONumber13
CD_GRP_EVTONumber 2
CD_SAFRANumber5
datedate10
NO_CONTRATONumber10
PC_TXNumber5Percentual de Taxas
VL_TXNumber13Valor da taxa
VL_IND_ECONumber17Valor do indice economico
DE_LANCTOString35Descrição de Lançamento
CD_TRANSPNumber8Código do Transporte
DE_EVTOString30Descrição Evento
DE_TRANSPString40Descrição Transporte
ROWVERSIONNumber5Controle Interno

...