Árvore de páginas

Versões comparadas

Chave

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

...

Expandir
titleExemplos de arquivo JSON
Deck of Cards
idTags
effectTypefade
Card
id1
labelEnvio
effectTypefade
Bloco de código
languageyml
themeMidnight
firstline1
titleJSON de envio (GET)
linenumberstrue
{
   "Header":{
      "UUID":"436601c4b72d51be-51c995fe-eff29dac-2ee243d0-b678a055b9b83ecf110a0813",
      "Type":"BusinessMessage",
      "SubType":"event",
      "Event":"upsert",
      "Transaction":"CUSTOMERVENDORSELLER",
      "StandardVersion":"1.000",
      "Version":"2.002001",
      "SourceApplication":"P1212310T1",
      "CompanyId":"T1",
      "BranchId":"D MG 01 ",
      "Enterprise":"D ",
      "BusinessUnit":"MG ",
      "ProductName":"Protheus",
      "ProductVersion":"12",
      "GeneratedOn":"2025-0304-25T1809T19:1200:36Z49Z",
      "DeliveryType":"Async"
   },
   "Content":{
      "CompanyId":"T1",
      "BranchId":"D MG 01 ",
      "CompanyInternalId":"T1|D MG 01 ",
      "Code":"FTC009",
      "StoreId":"01VEND01",
      "InternalId":"T1|D MG|FTC009|01|CVEND01",
      "ShortNameName":"CT009VENDEDOR -INTEGRACAO IncluirJSON",
      "NameShortName":"IncluiVEND -INT Envio EAI JSON - CT009",
      "TypeActive":1"0",
      "StrategicCustomerTypeLogin":"1000773",
      "EntityTypeRepresentativeType":1,
      "RegisterDate":"1990-03-01""I",
      "RegisterSituationPersonalIdentification":"Active63407313000189",
      "GovernmentalInformationSalesChargeInformation":[{
         { "CustomerVendorInternalId":"T1|D MG|VEND01|01|F",
            "NameSalesChargeInterface":"INSCRICAO ESTADUALS",
      },
      "ScopeAddress":"State",
  {
          "IdAddress":"860883954180"
RUA         }A, 1",
         {
            "Name"District":"INSCRICAOBAIRRO MUNICIPALTESTE",
            "ScopeCity":"Municipal",{
            "IdDescription":"260325SAO PAULO"
         },
         "State":{
            "NameStateCode":"CNPJSP",
            "ScopeStateInternalId":"FederalSP",
            "IdStateDescription":"77337553000169SAO PAULO"
         },
         {},
      "ZipCode":"02511000",
      "NameCommunicationInformation":"SUFRAMA",{
            "ScopePhoneDDD":"Federal011",
            "IdPhoneNumber":"202503260123456789",
         }"FaxDDD":"",
         {"FaxNumber":"123456789",
            "NameFaxNumberExtension":"INSCRICAO RURAL",
            "ScopeHomePage":"StateTESTE.COM.BR",
            "IdEmail":"11223344[email protected]"
      }
   },
         {
            "Name":"RG",
            "Scope":"Federal",
            "Id":"11223345"
         }
      ],
      "Segment":[
         {
            "Name":"Segment1",
            "InternalId":"T1||000001",
            "CodeERP":"000001",
            "Description":"Industria Quimica\/Resinas\/Tintas\/Sinteticos"
         },
         {
            "Name":"Segment2",
            "InternalId":"T1||000002",
            "CodeERP":"000002",
            "Description":"Industria Faramaceutica\/Veterinaria"
         },
         {
            "Name":"Segment3",
            "InternalId":"T1||000003",
            "CodeERP":"000003",
            "Description":"Industria Refino Petroleo\/Destilacao Alcool"
         },
         {
            "Name":"Segment4",
            "InternalId":"T1||000004",
            "CodeERP":"000004",
            "Description":"Industria Plasticos"
         },
         {
            "Name":"Segment5",
            "InternalId":"T1||000005",
            "CodeERP":"000005",
            "Description":"Industria Textil"
         },
         {
            "Name":"Segment6",
            "InternalId":"T1||000006",
            "CodeERP":"000006",
            "Description":"Industria Vestuario\/Confeccoes"
         },
         {
            "Name":"Segment7",
            "InternalId":"T1||000007",
            "CodeERP":"000007",
            "Description":"Industria Informatica"
         },
         {
            "Name":"Segment8",
            "InternalId":"T1||000008",
            "CodeERP":"000008",
            "Description":"Industria Nautica"
         }
      ],
      "FreightType":{
         "Code":"C",
         "Description":"CIF"
      },
      "Carrier":{
         "CodeERP":"FAT001",
         "InternalId":"T1|D MG|FAT001",
         "Description":"TRANSPORTADORA FATURAMENTO PADRAO"
      },
      "Address":{
         "Address":"RUA TESTE",
         "Number":"1",
         "Complement":"CASA 1",
         "City":{
            "CityCode":"3550308",
            "CityInternalId":"3550308",
            "CityDescription":"SAO PAULO"
         },
         "District":"SANTANA",
         "State":{
            "StateCode":"SP",
            "StateInternalId":"SP",
            "StateDescription":"SAO PAULO"
         },
         "Country":{
            "CountryCode":"105",
            "CountryInternalId":"105",
            "CountryDescription":"BRASIL"
         },
         "Region":{
            "RegionCode":"001",
            "RegionInternalId":"T1||001",
            "RegionDescription":"NORTE"
         },
         "ZIPCode":"02510000",
         "POBox":"C1058"
      },
      "ShippingAddress":{
         "Address":"RUA TESTE",
         "Number":"2",
         "Complement":"BLOCO A",
         "City":{
            "CityCode":"3550308",
            "CityDescription":"SAO PAULO"
         },
         "District":"SANTANA",
         "State":{
            "StateCode":"SP"
         },
         "ZIPCode":"04278050"
      },
      "ListOfCommunicationInformation":[
         {
            "PhoneNumber":"551112345678",
            "FaxNumber":"87654321",
            "HomePage":"www.teste.com.br",
            "Email":"[email protected]"
         }
      ],
      "ListOfContacts":[
         {
            "ContactInformationName":"TESTE"
         }
      ],
      "BillingInformation":{
         "Address":{
            "Address":"RUA TESTE",
            "Number":"3",
            "Complement":"",
            "District":"IPIRANGA",
            "ZIPCode":"04278050",
            "City":{
               "CityDescription":"SAO PAULO"
            },
            "State":{
               "StateCode":"SP"
            }
         }
      },
      "VendorInformation":{
         "VendorType":{
            "Code":"FAT001",
            "VendorInformationInternalID":"T1|D MG|FAT001"
         }
      },
      "PaymentConditionCode":"030",
      "PaymentConditionInternalId":"T1|D MG 01|030",
      "PriceListHeaderItemCode":"001",
      "PriceListHeaderItemInternalId":"T1|D MG|001",
      "CreditInformation":{
         "CreditLimit":1
      },
      "Taxpayer":"1"
   }
}
Card
id2
labelRecebimento
effectTypefade

}
Card
id2
labelRecebimento
effectTypefade
Bloco de código
languagejs
themeMidnight
firstline1
titleJSON de Recebimento (POST)
linenumberstrue
{
   "Header":{
      "ProductVersion":"12
Bloco de código
languagejs
themeMidnight
firstline1
titleJSON de Recebimento (POST)
linenumberstrue
{
   "Header":{
      "UUID":"DSERFAT-31227-15931641-JSON-FTAG0101",
      "Type":"BusinessMessage",
      "SubType":"event",
      "Event":"upsert",
      "Transaction":"CUSTOMERVENDOR",
      "StandardVersion":"1.000",
      "Version":"2.000",
      "SourceApplication":"environment",
      "CompanyId":"T1",
      "BranchId":"D MG 01",
      "Enterprise":"D",
      "BusinessUnit":"MG",
      "ProductName":"PROTHEUS",
      "ProductVersion":"12",
      "GeneratedOn":"2025-03-31T00:20:27Z",
      "DeliveryType":"sync"
   },
   "Content":{
      "CompanyId":"T1",
      "BranchId":"D MG 01",
      "CompanyInternalId":"T1|D MG 01",
      "Code":"FTAG01",
      "StoreId":"01",
      "InternalId":"T1|D MG|FTAG01|01|C",
      "ShortName":"CLIENTE FTAG01",
      "Name":"CADASTRO CLIENTE FTAG01",
      "Type":1,
      "StrategicCustomerType":"3",
      "EntityType":2,
      "RegisterDate":"1999-01-04",
      "RegisterSituation":"Active",
      "GovernmentalInformation":[
         {
            "Name":"INSCRICAO ESTADUAL",
            "Scope":"State",
            "Id":"860883954180"
         },
         {
            "Name":"INSCRICAO MUNICIPAL",
            "Scope":"Municipal",
            "Id":"260325"
         },
         {
            "Name":"CNPJ",
            "Scope":"Federal",
            "Id":"77337553000169"
         },
         {
            "Name":"SUFRAMA",
            "Scope":"Federal",
            "Id":"202503260"
         },
         {
            "Name":"RG",
            "Scope":"Federal",
            "Id":"11223345"
         },
         {
            "Name":"INSCRICAO RURAL",
            "Scope":"State",
            "Id":"11223344"
         }
      ],
      "Segment":[
         {
            "Name":"Segment1",
            "InternalId":"T1||000001",
            "CodeERP":"000001",
            "Description":"Industria Quimica\/Resinas\/Tintas\/Sinteticos"
         },
         {
            "Name":"Segment2",
            "InternalId":"T1||000002",
            "CodeERP":"000002",
            "Description":"Industria Faramaceutica\/Veterinaria"
         },
         {
            "Name":"Segment3",
            "InternalId":"T1||000003",
            "CodeERP":"000003",
            "Description":"Industria Refino Petroleo\/Destilacao Alcool"
         },
         {
            "Name":"Segment4",
            "InternalId":"T1||000004",
            "CodeERP":"000004",
            "Description":"Industria Plasticos"
         },
         {
            "Name":"Segment5",
            "InternalId":"T1||000005",
            "CodeERP":"000005",
            "Description":"Industria Textil"
         },
         {
            "Name":"Segment6",
            "InternalId":"T1||000006",
            "CodeERP":"000006",
            "Description":"Industria Vestuario\/Confeccoes"
         },
         {
            "Name":"Segment7",
            "InternalId":"T1||000007",
            "CodeERP":"000007",
            "Description":"Industria Informatica"
         },
         {
            "Name":"Segment8",
            "InternalId":"T1||000008",
            "CodeERP":"000008",
            "Description":"Industria Nautica"
         }
      ],
      "FreightType":{
         "Code":"S",
         "Description":"Sem frete"
      },
      "Carrier":{
         "CodeERP":"FAT001",
         "InternalId":"T1|D MG|FAT001",
         "Description":"TRANSPORTADORA FATURAMENTO PADRAO"
      },
      "Address":{
         "Address":"RUA TESTE",
         "Number":"1",
         "Complement":"CASA 10",
         "City":{
            "CityCode":"3550308",
            "CityInternalId":"3550308",
            "CityDescription":"SAO PAULO"
         },
         "District":"VILA MADALENA",
         "State":{
            "StateCode":"SP",
            "StateInternalId":"SP",
            "StateDescription":"SAO PAULO"
         },
         "Country":{
            "CountryCode":"105",
            "CountryInternalId":"105",
            "CountryDescription":"BRASIL"
         },
         "Region":{
            "RegionCode":"001",
            "RegionInternalId":"T1||001",
            "RegionDescription":"NORTE"
         },
         "ZIPCode":"05417110",
         "POBox":"C1058"
      },
      "ShippingAddress":{
         "Address":"RUA TESTE",
         "Number":"2",
         "Complement":"BLOCO A",
         "CityBranchId":{
"D MG 01 ",
         "CityCodeCompanyId":"3550308T1",
            "CityDescription"Enterprise":"SAOD PAULO"
         },
         "DistrictBusinessUnit":"IPIRANGAMG ",
         "StateDeliveryType":{
      "Sync",
      "StateCodeType":"SPBusinessMessage",
         }"SourceApplication":"MASTERSALES",
         "ZIPCodeProductName":"04278050PROTHEUS",
      }"Transaction":"SELLER",
      "ListOfCommunicationInformationStandardVersion":["1.000",
      "Version":"2.001",
   {
      "UUID":"DSERFAT-31253-12345678-ADDFIELDS-01",
      "PhoneNumberSubType":"551112342467Event",
      "Event":"Upsert",
      "FaxNumberGeneratedOn":"12342468",2025-04-04T10:05:01Z"
   },
   "Content":{
      "HomePageCompanyId":"www.teste.com.brT1",
            "Email"CompanyInternalId":"[email protected]"
   T1|D MG 01 ",
      }
   "BranchId":"D MG 01 ]",
      "ListOfContactsCode":["VEND02",
         {
"InternalId":"T1|D MG      |VEND02",
      "ContactInformationNameShortName":"TESTE"
VEND INT JSON 2",
      }
      ]"Name":"VENDEDOR INTEGRACAO JSON 2",
      "BillingInformationActive":{
   "0",
      "AddressSellerPassword":{"12345 ",
      "RepresentativeType":"I",
      "AddressZipCode":"RUA TESTE02511000",
      "PersonalIdentification":"61830618000173",
      "NumberSalesChargeInformation":"50",
   {
         "ComplementSalesChargeInterface":"123S",
            "DistrictCustomerVendorInternalId":"IPIRANGA",01|02|003|04"
      },
      "ZIPCodeLogin":"04278050USERORIGEM",
     
       "CityAddress":{
               "CityDescriptionAddress":"SAO PAULO"AV BRAS LEME, 1000",
            }"District":"CASA VERDE",
            "StateCity":{
               "StateCodeDescription":"SPSAO PAULO"
            },
         }"State":{
      },
      "VendorInformation":{
         "VendorType":{StateCode":"SP",
            "CodeStateDescription":"FTEAI2SAO PAULO",
            "VendorInformationInternalIDStateInternalId":"T1|D MG 01 |FTEAI2SP"
         }
      },
      "PaymentConditionCodeCommunicationInformation":"030",{
         "PaymentConditionInternalIdPhoneNumber":"T1|D MG 01|03044557788       ",
         "PriceListHeaderItemCodeFaxNumber":"001",
44557788      "PriceListHeaderItemInternalId":"T1|D MG|001",
         "CreditInformationHomePage":{"www.teste.com.br",
         "CreditLimitPhoneDDD":1"011",
         "MaturityCreditLimitEmail":"2099-10-01[email protected]"
      },
      "Taxpayer":"1"
   }
}


05. Tags

Deck of Cards
idTags
effectTypefade
Card
id1
labelJSON
effectTypefade
ElementoDescriçãoObservação
BusinessContent
CompanyIdEmpresaO campo é preenchido com valor de referência do De/Para de Empresa.
CompanyInternalIdInternalId da empresaO campo é preenchido com valor de referência do De/Para de Empresa e Filial.
BranchIdFilialO campo é preenchido com valor de referência do De/Para de Filial.
CodeCódigo do Vendedor

Código referente ao registro Protheus (A3_COD).

InternalIdInternalId do VendedorO campo é preenchido com valor de referência do De/Para de Vendedores (SA3).
ShortNameNome Reduzido do VendedorCódigo referente ao registro Protheus (A3_NREDUZ).
NameNome do VendedorCódigo referente ao registro Protheus (A3_NOME).
ActiveBloqueia o VendedorCódigo referente ao registro Protheus (A3_MSBLQL).
LoginCódigo de UsuárioCódigo referente ao registro Protheus (A3_CODUSR).
SellerPasswordSenha para uso no dispositivos HandHeld.Código referente ao registro Protheus (A3_SENHA).
RepresentativeTypeTipo de RepresentanteCódigo referente ao registro Protheus (A3_TIPO).
PersonalIdentificationCNPJ/CPF do vendedorCódigo referente ao registro Protheus (A3_CGC).
ZipCodeCEP do VendedorCódigo referente ao registro Protheus (A3_CEP).
SalesChargeInformation

CustomerVendorInternalId

Código do Vendedor como Fornecedor e Loja 

Código referente ao De/Para (XXF).

Para utilização deve possuir o Adapter CUSTOMERVENDOR Adapter CUSTOMERVENDOR (MATA020) cadastrado.

Código referente ao registro Protheus (A3_FORNECE e A3_LOJA).

SalesChargeInterfaceForma de Pagamento

Código referente ao registro Protheus (A3_GERASE2).

Address
AddressEndereço do VendedorCódigo referente ao registro Protheus (A3_END).
DistrictBairro do VendedorCódigo referente ao registro Protheus (A3_BAIRRO).
Address > City
DescriptionMunicípio do VendedorCódigo referente ao registro Protheus (A3_MUN).
Address > State
StateCodeEstado do VendedorCódigo referente ao registro Protheus (A3_EST).
StateInternalIdInternalId do Estado do VendedorCódigo referente ao registro Protheus (A3_EST).
StateDescriptionDescrição do EstadoDescrição do estado (Tabela 12 da SX5).
CommunicationInformation
PhoneDDDCódigo do DDDCódigo referente ao registro Protheus (A3_DDDTEL).
PhoneNumberNúmero do TelefoneCódigo referente ao registro Protheus (A3_TEL).
FaxDDDCódigo do DDD do FAXUsado apenas na mensagem de envio com conteúdo em branco.
FaxNumberNúmero do FAX do VendedorCódigo referente ao registro Protheus (A3_FAX).
FaxNumberExtensionExtensão do Número de FAXUsado apenas na mensagem de envio com conteúdo em branco.
HomePageHome-PageCódigo referente ao registro Protheus (A3_HPAGE).
EmailE-MailCódigo referente ao registro Protheus (A3_EMAIL).

06. PROCESSAMENTO DE CAMPOS SEM TAGS E/OU CUSTOMIZADOS

...