Exemplo 01
Criar um Business Partner somente com nome.
{ "BusinessPartnerCategory": "2", "BusinessPartnerGrouping": "BP02", "OrganizationBPName1": "Business Partner API 2" }
Exemplo 02
- Endereço;
- Setor industrial;
- Identificação fiscal.
{ "BusinessPartnerCategory": "2", "BusinessPartnerGrouping": "BP02", "OrganizationBPName1": "Business Partner API 2", "to_BuPaIndustry" : [ { "IndustrySector" : "01", "IndustrySystemType": "0001", "IsStandardIndustry" : "X"}
],
“to_BusinessPartnerAddress” : [
{
“Country” : “BR”,
“HouseNumber” : “171”,
“StreetName” : “Avenida Paulista”,
“PostalCode” : “01310-100”,
“CityName” : “São Paulo”,
“Region”: “SP”,
“Language” : “PT”,
“to_AddressUsage” : [
{
“AddressUsage” : “XXDEFAULT”,
“ValidityEndDate” : “/Date(253402300799000+0000)/”
}
]
}
],
“to_BusinessPartnerTax” : [
{
“BPTaxType”: “BR3”,
“BPTaxNumber”: “123456456”
},
{
“BPTaxType”: “BR4”,
“BPTaxNumber”: “654321”
}
]
}
Exemplo 03
Criar um Business Partner com os dados abaixo:
- Endereço;
- Setor industrial;
- Identificação fiscal.
- Função de parceiro (FLV000)
{
“BusinessPartnerCategory”: “2”,
“BusinessPartnerGrouping”: “BP02”,
“OrganizationBPName1”: “Business Partner API 2”,
“to_BuPaIndustry” : [
{
“IndustrySector” : “01”,
“IndustrySystemType”: “0001”,
“IsStandardIndustry” : “X”}
],
“to_BusinessPartnerAddress” : [
{
“Country” : “BR”,
“HouseNumber” : “171”,
“StreetName” : “Avenida Paulista”,
“PostalCode” : “01310-100”,
“CityName” : “São Paulo”,
“Region”: “SP”,
“Language” : “PT”,
“to_AddressUsage” : [
{
“AddressUsage” : “XXDEFAULT”,
“ValidityEndDate” : “/Date(253402300799000+0000)/”
}
]
}
],
“to_BusinessPartnerTax” : [
{
“BPTaxType”: “BR3”,
“BPTaxNumber”: “123456456”
},
{
“BPTaxType”: “BR4”,
“BPTaxNumber”: “654321”
}
],
“to_BusinessPartnerRole” : [
{
“BusinessPartnerRole” : “FLVN00”,
“ValidFrom” : “/Date(1484092800000+0000)/”,
“ValidTo” : “/Date(253402300799000+0000)/”
}
],
“to_Supplier”: {
“PaymentIsBlockedForSupplier”: true,
“PostingIsBlocked”: true
}
}
Exemplo 04
- Endereço;
- Setor industrial;
- Identificação fiscal.
- Função de parceiro (FLV000)
- Expandir o fornecedor para empresa 1410
{
“BusinessPartnerCategory”: “2”,
“BusinessPartnerGrouping”: “BP02”,
“OrganizationBPName1”: “Business Partner API 2”,
“to_BuPaIndustry” : [
{
“IndustrySector” : “01”,
“IndustrySystemType”: “0001”,
“IsStandardIndustry” : “X”
}
],
“to_BusinessPartnerAddress” : [
{
“Country” : “BR”,
“HouseNumber” : “171”,
“StreetName” : “Avenida Paulista”,
“PostalCode” : “01310-100”,
“CityName” : “São Paulo”,
“Region”: “SP”,
“Language” : “PT”,
“to_AddressUsage” : [
{
“AddressUsage” : “XXDEFAULT”,
“ValidityEndDate” : “/Date(253402300799000+0000)/”
}
]
}
],
“to_BusinessPartnerTax” : [
{
“BPTaxType”: “BR3”,
“BPTaxNumber”: “123456456”
},
{
“BPTaxType”: “BR4”,
“BPTaxNumber”: “654321”
}
],
“to_BusinessPartnerRole” : [
{
“BusinessPartnerRole” : “FLVN00”,
“ValidFrom” : “/Date(1484092800000+0000)/”,
“ValidTo” : “/Date(253402300799000+0000)/”
}
],
“to_Supplier”: {
“PaymentIsBlockedForSupplier”: true,
“PostingIsBlocked”: true,
“to_SupplierCompany” : [
{
“CompanyCode” : “1410”,
“ReconciliationAccount” : “12110000”
}
]
}
}