curl --location '/companies' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"customerType": 2,
"contact": {
"title": "mr",
"firstName": "Marlon",
"lastName": "Larson",
"telephone": "1-232-973-3423 x94286",
"mobile": "238-231-8243",
"email": "Colleen49@gmail.com"
},
"companyName": "Test Company",
"addressLine1": "4591 Market Street",
"addressLine2": "Suite 833",
"addressLine3": "amet do",
"town": "Bartoletticester",
"provinceID": 1,
"postcode": "38085",
"accountingSystemReference": "604f2b05-713c-4d34-a424-71182dcw221d6",
"vacant": "No",
"advertisingID": 1,
"buildingTypeID": 1,
"priceBookID": 2,
"creditorsDayID": 1,
"hasAfterSalesCareBeenTurnedOn": false
}'{
"id": 0,
"createdByType": "string",
"createdByID": 0,
"createdByUser": "string",
"createdOnDateTime": "2019-08-24T14:15:22.123Z",
"lastUpdatedOnDateTime": "2019-08-24T14:15:22.123Z",
"type": "customer",
"customerType": 0,
"status": "active",
"contact": {
"id": "string",
"title": "string",
"firstName": "string",
"lastName": "string",
"telephone": "string",
"mobile": "string",
"email": "string"
},
"companyName": "string",
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"town": "string",
"province": "string",
"provinceID": 0,
"postcode": "string",
"latitude": "string",
"longitude": "string",
"accountingSystemReference": "stringstringstringst",
"vacant": "Yes",
"advertisingName": "string",
"advertisingID": 0,
"buildingType": "string",
"buildingTypeID": 0,
"priceBookName": "string",
"priceBookID": 0,
"creditorDays": "string",
"creditorsDayID": 0,
"hasAfterSalesCareBeenTurnedOn": true,
"links": {
"self": "string",
"assets": "string",
"contracts": "string",
"opportunities": "string",
"jobs": "string"
}
}