Gönderiler
Gönderi randevularını listele
Bir gönderiye bağlı randevuları listele
GET
/
api
/
v1
/
shipments
/
{id}
/
appointments
curl --request GET \
--url https://anivahealth.com/api/v1/shipments/P2611194821/appointments \
--header 'x-api-key: YOUR_API_KEY'
[
{
"id": "c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a",
"profile_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"location_id": "b7e2d1f5-3c4a-4e8b-a2f1-9d0c1e2f3a4b",
"scheduled_at": "2026-04-15T08:30:00Z",
"status": "blood_drawn",
"created_at": "2026-04-01T10:00:00Z",
"updated_at": "2026-04-15T09:00:00Z",
"profile": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"first_name": "Jane",
"last_name": "Doe",
"email": "jane.doe@example.com",
"date_of_birth": "1990-06-15",
"sex": 2
},
"panels": [
{
"panel_id": "f1c2d4a3-7b8e-4f2a-9c1d-2e3f4a5b6c7d",
"added_at": "2026-04-01T10:05:00Z"
}
],
"individual_biomarkers": [],
"shipments": [
{
"id": "P2611194821",
"added_at": "2026-04-15T07:00:00Z"
}
]
}
]
{
"error": "Shipment not found"
}
Bu gönderiye bağlı olup erişim bağlamında yer alan tam randevu nesnelerini en eski bağlantıdan
başlayarak döndürür. Ters okuma,
?appointment_id= ile Gönderileri listele çağrısıdır.
Bağlı randevu yoksa boş dizi. Tam randevu verileri olmadan yalnızca ID’leri kontrol etmek
için Gönderiyi getir yanıtındaki appointments alanını oku.
shipments_view, shipments_manage veya appointments_view kapsamını gerektirir.
İstek
Yol parametreleri
Yanıt
Başarılı olduğunda API, randevu nesnelerinden oluşan bir diziyle200 OK döndürür. Her giriş
Randevuyu getir ile aynı yapıdadır.
Hata yanıtları
| Durum | Açıklama |
|---|---|
400 | Geçersiz ID biçimi. |
403 | Yasak — API anahtarının bu işleme erişimi yok veya gönderi erişim bağlamının dışında. |
404 | Gönderi bulunamadı. |
500 | Dahili sunucu hatası. |
curl --request GET \
--url https://anivahealth.com/api/v1/shipments/P2611194821/appointments \
--header 'x-api-key: YOUR_API_KEY'
[
{
"id": "c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a",
"profile_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"location_id": "b7e2d1f5-3c4a-4e8b-a2f1-9d0c1e2f3a4b",
"scheduled_at": "2026-04-15T08:30:00Z",
"status": "blood_drawn",
"created_at": "2026-04-01T10:00:00Z",
"updated_at": "2026-04-15T09:00:00Z",
"profile": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"first_name": "Jane",
"last_name": "Doe",
"email": "jane.doe@example.com",
"date_of_birth": "1990-06-15",
"sex": 2
},
"panels": [
{
"panel_id": "f1c2d4a3-7b8e-4f2a-9c1d-2e3f4a5b6c7d",
"added_at": "2026-04-01T10:05:00Z"
}
],
"individual_biomarkers": [],
"shipments": [
{
"id": "P2611194821",
"added_at": "2026-04-15T07:00:00Z"
}
]
}
]
{
"error": "Shipment not found"
}
⌘I
curl --request GET \
--url https://anivahealth.com/api/v1/shipments/P2611194821/appointments \
--header 'x-api-key: YOUR_API_KEY'
[
{
"id": "c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a",
"profile_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"location_id": "b7e2d1f5-3c4a-4e8b-a2f1-9d0c1e2f3a4b",
"scheduled_at": "2026-04-15T08:30:00Z",
"status": "blood_drawn",
"created_at": "2026-04-01T10:00:00Z",
"updated_at": "2026-04-15T09:00:00Z",
"profile": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"first_name": "Jane",
"last_name": "Doe",
"email": "jane.doe@example.com",
"date_of_birth": "1990-06-15",
"sex": 2
},
"panels": [
{
"panel_id": "f1c2d4a3-7b8e-4f2a-9c1d-2e3f4a5b6c7d",
"added_at": "2026-04-01T10:05:00Z"
}
],
"individual_biomarkers": [],
"shipments": [
{
"id": "P2611194821",
"added_at": "2026-04-15T07:00:00Z"
}
]
}
]
{
"error": "Shipment not found"
}