Pessoa, estou começando na integração com o Protheus e estou tentando cadastrar um fornecedor PF via postman mesmo pra testar a API porém esta retornando erro 500. Segue JSON enviado no postman. Onde estou errando?
{
"branchId": "",
"companyInternalId": "01 22425 01",
"code": "22425",
"storeId": "01",
"shortName": "EMERSON TEIX",
"name": "EMERSON TEIXEIRA DE SOUSA",
"type": 2,
"entityType": "F",
"registerSituation": "2",
"governmentalInformation": [
{
"Id": [
""
],
"scope": "State",
"name": "INSCRICAO ESTADUAL",
"issueOn": "",
"expireOn": ""
},
{
"Id": [
""
],
"scope": "Municipal",
"name": "INSCRICAO MUNICIPAL",
"issueOn": "",
"expireOn": ""
},
{
"Id": [
"NUMERO CPF"
],
"scope": "Federal",
"name": "CPF",
"issueOn": "",
"expireOn": ""
},
{
"Id": [
""
],
"scope": "Federal",
"name": "INSCRICAO PIS",
"issueOn": "",
"expireOn": ""
},
{
"Id": [
"NUMERO RG"
],
"scope": "State",
"name": "RG",
"issueOn": "",
"expireOn": ""
}
],
"address": {
"address": "ENDERECO",
"number": "",
"complement": "",
"city": {
"cityCode": "IBGE",
"cityInternalId": "IBGE",
"cityDescription": "CIDADE"
},
"district": "BAIRRO",
"state": {
"stateId": "UF",
"stateInternalId": "UF",
"stateDescription": ""
},
"country": {
"countryCode": "105",
"countryInternalId": "105",
"countryDescription": ""
},
"zipCode": "CEP",
"region": "",
"poBox": "",
"mainAddress": true,
"shippingAddress": false,
"billingAddress": false
},
"listOfCommunicationInformation": [
{
"Type": "5",
"PhoneNumber": "TELEFONE",
"PhoneExtension": "",
"FaxNumber": "",
"FaxNumberExtension": "",
"HomePage": "",
"Email": "",
"DiallingCode": "DDD",
"InternationalDiallingCode": ""
}
]
}