Ayarlio Appointment API ile harici sistemlerden güvenli şekilde randevu oluşturabilir, müşteri bilgilerini doğrudan sisteme aktarabilirsiniz.
POST Endpoint
https://api.ayarlio.com/api/public/appointmentHeaders
Content-Type: application/json
{
"tenantId": "69e6c6cdbdf8985d0b2ba46a",
"customerName": "Jhosdn",
"customerEmail": "jhdas2o12333n@example.com",
"customerPhone": "905424978185",
"date": "2026-08-31T23:00:00.000Z",
"serviceId": "69f364c65544141c14cd3823",
"staffId": "69f365745544141c14cd3825",
"notes": ""
}tenantId
İşletme / tenant kimliği
customerName
Müşteri adı
customerEmail
Müşteri e-posta adresi
customerPhone
Müşteri telefon numarası
date
ISO 8601 formatında randevu tarihi
serviceId
Hizmet kimliği
staffId
Personel kimliği
notes
Opsiyonel müşteri notu
curl --location 'https://api.ayarlio.com/api/public/appointment' \
--header 'Content-Type: application/json' \
--data-raw '{
"tenantId": "69e6c6cdbdf8985d0b2ba46a",
"customerName": "Jhosdn",
"customerEmail": "jhdas2o12333n@example.com",
"customerPhone": "905424978185",
"date": "2026-08-31T23:00:00.000Z",
"serviceId": "69f364c65544141c14cd3823",
"staffId": "69f365745544141c14cd3825",
"notes": ""
}'const response = await fetch(
"https://api.ayarlio.com/api/public/appointment",
{
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
tenantId: "69e6c6cdbdf8985d0b2ba46a",
customerName: "Jhosdn",
customerEmail: "jhdas2o12333n@example.com",
customerPhone: "905424978185",
date: "2026-08-31T23:00:00.000Z",
serviceId: "69f364c65544141c14cd3823",
staffId: "69f365745544141c14cd3825",
notes: ""
})
}
);
const data = await response.json();
console.log(data);{
"success": true,
"message": "Appointment created successfully",
"data": {
"appointmentId": "70a123456789abcdef123456"
}
}