Example of GET and POST company:
GET https://{host}/rest/v1/{unitId}/companies?id={companyId}
GET https://{host}/rest/v1/{unitId}/companies?registration={companyRegistration}
POST https://{host}/rest/v1/{unitId}/companies
{
"type": "COMPANY",
"name": "Adidas corporation",
"isCertified": true,
"isDisabled": false,
"isDraft": false,
"isClient": true,
"isSupplier": false,
"salesMaturity": 14,
"purchaseMaturity": 14,
"category": "CATEGORY.COMPANY-CAT1",
"industry": "Retail",
"tags": ["Sport","Retail"],
"orderingAddressId": -2000,
"correspondingAddressId": -2000,
"regOfficeAddressId": -2000,
"registrations": {
"Company ID": "12345678",
"VAT ID": "CZ12345678"
},
"persons": [
{
"id": -1000,
"jobTitle": "CEO",
"salut": "Mr",
"namePrefix": "Dr.",
"firstName": "Marcus",
"lastName": "Aurelius",
"nameSuffix": "Phd.",
"birthday": "1968-02-13",
"comment": "This is our comment",
"addressId": -2000,
"contacts": [
{
"name": "Mobile",
"value": "+42012345678"
},
{
"name": "Phone",
"value": "+42098765432"
}
]
}
],
"addresses": [
{
"id": -2000,
"street": "Pekarska 641/16",
"city": "Praha",
"zip": "15500",
"country": "CZ",
"state": null
}
],
"brands": [
{
"name": "Adidas",
"personId": -1000,
"isDefault": false
}
],
"contacts": [
{
"name": "Web",
"value": "www.adidas.com"
},
{
"name": "Phone",
"value": "+42012345678"
}
],
"bankAccounts": [
{
"number": "1234567890",
"bankRoutingNumber": "0100",
"bankBranchNumber": "",
"iban": "CZ0000001234567890",
"swift": "SWIFTB1",
"bankName": "City Bank",
"isDefault": false
}
],
"properties": {
"bodyRichtext-1": "<p>This is <strong>BODY</strong> text </p>"
},
"acl": {}
}