Companies
Create a new company
Create a new company within an organization
post/companies
Request body
Example request
{
"name": "Acme Logistics Inc",
"addressLine1": "123 Main St",
"addressLine2": "Suite 400",
"city": "Chicago",
"country": "USA",
"fax": "+1-555-0123",
"invoiceVerbiage": "Please remit payment within 30 days",
"primaryContactName": "John Smith",
"primaryContactEmail": "john.smith@acmelogistics.com",
"primaryContactPhone": "+1-555-0100",
"key": "ERP-COMPANY-ACME-001"
}Response
Company created successfully
Example response
{
"object": "COMPANY",
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Acme Logistics Inc",
"addressLine1": "123 Main St",
"addressLine2": "Suite 400",
"city": "Chicago",
"country": "USA",
"fax": "+1-555-0123",
"invoiceVerbiage": "Please remit payment within 30 days",
"primaryContactName": "John Smith",
"primaryContactEmail": "john.smith@acmelogistics.com",
"primaryContactPhone": "+1-555-0100",
"createdBy": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"key": "ERP-USER-12345",
"email": "john.doe@example.com",
"name": "John Doe",
"phone": "+1-555-123-4567",
"phoneExt": "123",
"status": "ACTIVE",
"avatarId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"createdAt": "2025-01-15T10:00:00Z",
"updatedAt": "2025-01-15T14:30:00Z"
},
"key": "ERP-COMPANY-ACME-001",
"createdAt": "2025-01-15T10:00:00Z",
"updatedAt": "2025-01-15T14:30:00Z"
}