Create a Department based on the provided details.
Security
api_key
- Mock serverhttps://doc.acc.connect.easypost.eu/_mock/public-api/openapi/departments
- https://api.acc.connect.easypost.euhttps://api.acc.connect.easypost.eu/departments
curl -i -X POST \
https://doc.acc.connect.easypost.eu/_mock/public-api/openapi/departments \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-managed-company-id: string' \
-d '{
"identificationNumber": "string",
"name": "string",
"headAddress": {
"street": "string",
"streetNr": "string",
"postalCode": "string",
"box": "string",
"city": "string",
"countryCode": "string",
"addressAdditionalLine": "string"
},
"emailAddress": "user@example.com",
"phoneNumber": "string",
"hasSeparateInvoicing": true,
"isActive": true
}'Response
{ "companyId": "string", "erpId": "string", "id": "string", "identificationNumber": "string", "name": "string", "headAddress": { "street": "string", "streetNr": "string", "postalCode": "string", "box": "string", "city": "string", "countryCode": "string", "addressAdditionalLine": "string" }, "emailAddress": "user@example.com", "phoneNumber": "string", "hasSeparateInvoicing": true, "isActive": true, "createdAt": "string", "lastModifiedAt": "string", "lastModifiedBy": "string" }