curl --location -g --request POST '{{ecommercev2_url}}/appointments/' \
--header 'Content-Type: application/json' \
--header 'x-access-token;' \
--data-raw '{
"date": "2023-12-15T00:00:00Z",
"time": "14:30",
"timeZone": "America/New_York",
"location": "ONLINE",
"customer": {
"name": "John Doe",
"mobileNumber": "+1234567890",
"email": "john.doe@example.com"
},
"notes": {
"text": "Customer preferred no calls before appointment",
"attachment": {
"url": "https://example.com/files/document.pdf",
"key": "documents/customer-info.pdf",
"fileName": "customer-info.pdf"
}
},
"vendorId": "507f1f77bcf86cd799439011",
"buyerId": "507f1f77bcf86cd799439022"
}'