Companies
Create a Company
Adds a new company record to the system.
post/v1/company
Request
- Base URLhttps://api.avionte.com/front-office
- URLhttps://api.avionte.com/front-office/v1/company
- Auth
- API key in header x-api-key
- or HTTP bearer
Headers
RequestIdstring uuid
Unique request identifier in UUID format used to correlate request data to log entries and events.
Example:63680b86-c7e0-4a36-ae4a-d0d481089aff
Unique request identifier (UUID) used to correlate request data with log entries and events.
FrontOfficeTenantIdinteger
An integer identifier for the tenant that the request is being made for. Required when Tenant header is not provided.
Tenantstring
Tenant company code that determines data access scope during the request. Required when FrontOfficeTenantId header is not provided.
Request body
Example request
{
"id": 12345,
"name": "Acme Corporation",
"mainAddress": {
"street1": "123 Main Street",
"street2": "Suite 100",
"city": "St. Paul",
"state_Province": "MN",
"postalCode": "55121",
"country": "US",
"county": "Dakota",
"geoCode": "241231070",
"schoolDistrictCode": "00000"
},
"frontOfficeId": 12353,
"link": "https://www.acmecorp.com",
"representativeUsers": [
123498,
123499
],
"sourceName": "Indeed",
"statusId": 128,
"status": "Active",
"industry": "Information Technology",
"origin": "Acme Partner",
"originRecordId": "ACME-12345",
"department": {
"compId": 123456,
"departmentName": "Warehouse",
"officeId": 789012,
"statusId": 263,
"parentDepartmentId": 345678,
"street1": "123 Main Street",
"street2": "Suite 100",
"city": "Eagan",
"stateProvince": "MN",
"postalCode": "55121",
"country": "US",
"geoCode": "241234892",
"departmentPhone": "651-555-1234",
"defaultJobOwnerIDs": [
12345,
67890
],
"origin": "PartnerXYZ",
"weekEndDate": "Friday",
"payPeriod": "Weekly",
"payCycle": "1",
"billingPeriod": "BiWeekly",
"billingCycle": "2",
"originRecordId": "12345-abcde"
},
"weekEndDay": "Friday",
"payPeriod": "Weekly",
"payCycle": "1",
"billingPeriod": "BiWeekly",
"billingCycle": "2",
"isParent": true,
"parentCompanyId": 13839,
"phoneNumber": "305-555-01472"
}Response
The created company.
Example response
{
"id": 12345,
"name": "Acme Corporation",
"mainAddress": {
"street1": "123 Main Street",
"street2": "Suite 100",
"city": "St. Paul",
"state_Province": "MN",
"postalCode": "55121",
"country": "US",
"county": "Dakota",
"geoCode": "241231070",
"schoolDistrictCode": "00000"
},
"frontOfficeId": 12353,
"link": "https://www.acmecorp.com",
"representativeUsers": [
123498,
123499
],
"sourceName": "Indeed",
"statusId": 128,
"status": "Active",
"industry": "Information Technology",
"origin": "Acme Partner",
"originRecordId": "ACME-12345",
"department": {
"compId": 123456,
"departmentName": "Warehouse",
"officeId": 789012,
"statusId": 263,
"parentDepartmentId": 345678,
"street1": "123 Main Street",
"street2": "Suite 100",
"city": "Eagan",
"stateProvince": "MN",
"postalCode": "55121",
"country": "US",
"geoCode": "241234892",
"departmentPhone": "651-555-1234",
"defaultJobOwnerIDs": [
12345,
67890
],
"origin": "PartnerXYZ",
"weekEndDate": "Friday",
"payPeriod": "Weekly",
"payCycle": "1",
"billingPeriod": "BiWeekly",
"billingCycle": "2",
"originRecordId": "12345-abcde"
},
"weekEndDay": "Friday",
"payPeriod": "Weekly",
"payCycle": "1",
"billingPeriod": "BiWeekly",
"billingCycle": "2",
"isParent": true,
"parentCompanyId": 13839,
"phoneNumber": "305-555-01472"
}Changes
No recorded changes to this operation across all 1 revision of this API.