Konumlar
Perakende fiyatlarını getir
Tek bir konumun randevusuz müşterilere uyguladığı panel ve tekil biyobelirteç fiyatlarını getir
GET
/
api
/
v1
/
locations
/
{id}
/
retail-prices
curl --request GET \
--url https://anivahealth.com/api/v1/locations/008ef220-6581-497d-a62c-7252a9149a67/retail-prices \
--header 'x-api-key: YOUR_API_KEY'
{
"location_id": "008ef220-6581-497d-a62c-7252a9149a67",
"currency": "EUR",
"panels": [
{
"id": "777fa4a6-42a5-4704-90f4-7dc90b46eb98",
"name": "Blood Sugar Check",
"gross_price_cents": null,
"biomarkers": [{ "id": 103, "name": "Hemoglobin A1c (HbA1c)" }]
},
{
"id": "985b451a-80e7-4fc2-b7f9-fbf11d82f84f",
"name": "Cholesterol Check",
"gross_price_cents": 2990,
"biomarkers": [
{ "id": 15, "name": "Cholesterol, total" },
{ "id": 17, "name": "HDL cholesterol" },
{ "id": 18, "name": "LDL cholesterol" },
{ "id": 19, "name": "Triglycerides" }
]
}
],
"biomarkers": [{ "id": 194, "name": "Anti-Müllerian Hormone (AMH)", "gross_price_cents": 4990 }]
}
Bir konumun randevusuz müşterilere sattığı her panel ve tekil biyobelirtecin fiyatını getir. Bir
location.retail_prices.updated webhook olayının url değeri burayı işaret eder.
retail_prices_view kapsamını gerektirir. locations_view kapsamı bunu içermez.
İstek
Yol parametreleri
Yanıt
Başarılı olduğunda API, perakende fiyatları nesnesiyle birlikte200 OK döndürür.
Randevusuz bir müşterinin konumda satın alabileceği paneller, ada göre sıralı. Eczaneler için
dolu; diğer tüm konumlar için boş bir dizi.
Konumun tek başına sattığı tekil biyobelirteçler, ada göre sıralı. Yalnızca yayınlanmış fiyatı
olan biyobelirteçler görünür. Eczaneler için dolu; diğer tüm konumlar için boş bir dizi.
Hata yanıtları
| Durum | Açıklama |
|---|---|
400 | id bir UUID değil. |
401 | API anahtarı eksik veya geçersiz. |
403 | API anahtarın retail_prices_view kapsamına sahip değil. |
404 | Konum mevcut değil, etkin değil veya erişimin dışında. |
500 | Dahili sunucu hatası. |
curl --request GET \
--url https://anivahealth.com/api/v1/locations/008ef220-6581-497d-a62c-7252a9149a67/retail-prices \
--header 'x-api-key: YOUR_API_KEY'
{
"location_id": "008ef220-6581-497d-a62c-7252a9149a67",
"currency": "EUR",
"panels": [
{
"id": "777fa4a6-42a5-4704-90f4-7dc90b46eb98",
"name": "Blood Sugar Check",
"gross_price_cents": null,
"biomarkers": [{ "id": 103, "name": "Hemoglobin A1c (HbA1c)" }]
},
{
"id": "985b451a-80e7-4fc2-b7f9-fbf11d82f84f",
"name": "Cholesterol Check",
"gross_price_cents": 2990,
"biomarkers": [
{ "id": 15, "name": "Cholesterol, total" },
{ "id": 17, "name": "HDL cholesterol" },
{ "id": 18, "name": "LDL cholesterol" },
{ "id": 19, "name": "Triglycerides" }
]
}
],
"biomarkers": [{ "id": 194, "name": "Anti-Müllerian Hormone (AMH)", "gross_price_cents": 4990 }]
}
⌘I
curl --request GET \
--url https://anivahealth.com/api/v1/locations/008ef220-6581-497d-a62c-7252a9149a67/retail-prices \
--header 'x-api-key: YOUR_API_KEY'
{
"location_id": "008ef220-6581-497d-a62c-7252a9149a67",
"currency": "EUR",
"panels": [
{
"id": "777fa4a6-42a5-4704-90f4-7dc90b46eb98",
"name": "Blood Sugar Check",
"gross_price_cents": null,
"biomarkers": [{ "id": 103, "name": "Hemoglobin A1c (HbA1c)" }]
},
{
"id": "985b451a-80e7-4fc2-b7f9-fbf11d82f84f",
"name": "Cholesterol Check",
"gross_price_cents": 2990,
"biomarkers": [
{ "id": 15, "name": "Cholesterol, total" },
{ "id": 17, "name": "HDL cholesterol" },
{ "id": 18, "name": "LDL cholesterol" },
{ "id": 19, "name": "Triglycerides" }
]
}
],
"biomarkers": [{ "id": 194, "name": "Anti-Müllerian Hormone (AMH)", "gross_price_cents": 4990 }]
}