curl --request POST \
--url https://api.example.com/v1/customers \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"phone": "<string>",
"dateOfBirth": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>"
},
"tags": [
{}
],
"notes": "<string>",
"preferredLocationId": "<string>",
"marketingConsent": true,
"companyId": "<string>"
}
'