curl --location --request PUT 'https://api.veniocrm.com/dev/v1/Customers' \
--header 'Ocp-Apim-Subscription-Key;' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"owners": [
"string"
],
"contactName": "string",
"customerCode": "string",
"customerName": "string",
"customerType": 0,
"phone": "string",
"mobile": "string",
"notes": "string",
"isActive": true,
"email": "string",
"socialAccount": "string",
"sourceOfLead": 0,
"locations": [{
"addressId": 0,
"branch": "string",
"locationName": "string",
"location": "string",
"address": "string",
"province": "string",
"zipCode": "string",
"placeId": "string",
"latitude": 0.0,
"longitude": 0.0
}],
"aliases": [
"string"
],
"interestIds": [
0
],
"classificationId": 0,
"groupId": 0,
"creditLimit": 0.0
}'
{
"data": {
"value": {
"customerId": xxxxxx,
"companyId": xxxx,
"customerCode": "code-xxx",
"customerName": "namexxxx",
"type": 13002,
"customerType": 11100,
"isActive": true,
"createdByUserId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"dateCreated": "2021-09-15 14:48:21.5133456+07:00",
"modifiedByUserId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"dateModified": "2021-09-15 14:48:21.5133474+07:00",
"leadStatus": 110064,
"email": "test@gmail.com",
"sourceOfLead": 110130,
"name": "nametest",
"customerOwnersStr": [],
"pictureUrl": "Customer/xxxxxx/Thumbnail?v=xxxxxxxxxxx",
"addresses": [],
"customerInterests": []
},
"formatters": [],
"statusCode": 200
},
"statusCode": 1000,
"httpStatusCode": 200
}