Postijiet
Ikseb post
Ikseb post tat-test wieħed skont l-ID tiegħu
GET
/
api
/
v1
/
locations
/
{id}
curl --request GET \
--url https://anivahealth.com/api/v1/locations/b7e2d1f5-3c4a-4e8b-a2f1-9d0c1e2f3a4b \
--header 'x-api-key: YOUR_API_KEY'
{
"id": "b7e2d1f5-3c4a-4e8b-a2f1-9d0c1e2f3a4b",
"name": "Aniva Berlin Mitte",
"company_name": "Aniva GmbH",
"street": "Unter den Linden",
"house_number": "42",
"address_line_2": null,
"city": "Berlin",
"state": "Berlin",
"state_code": "BE",
"postal_code": "10117",
"country_name": "Germany",
"country_code": "DE",
"timezone": "Europe/Berlin",
"latitude": 52.517036,
"longitude": 13.388859,
"contact_phone": "+4930987654321",
"email": "berlin-mitte@anivahealth.com",
"website": "https://anivahealth.com",
"google_maps_url": "https://maps.google.com/?q=Unter+den+Linden+42+Berlin",
"image_url": "https://cdn.anivahealth.com/locations/berlin-mitte.jpg",
"open_hours": {
"monday": [{ "open": "08:00", "close": "18:00" }],
"tuesday": [{ "open": "08:00", "close": "18:00" }],
"wednesday": [{ "open": "08:00", "close": "18:00" }],
"thursday": [{ "open": "08:00", "close": "18:00" }],
"friday": [{ "open": "08:00", "close": "16:00" }],
"saturday": [],
"sunday": []
},
"default_draw_method": "venous",
"draw_methods": ["venous"]
}
Ikseb post wieħed. Għandu l-istess struttura bħal entrata ta’
Elenka l-postijiet. Il-
url ta’ avveniment ta’
webhook location.* jipponta hawn.
Jeħtieġ is-scope locations_view jew appointments_schedule.
Talba
Parametri tal-path
Risposta
Meta tirnexxi, l-API tirritorna200 OK bl-oġġett tal-post.
Stat jew provinċja. Jista’ jkun
null meta l-belt m’għandhiex stat marbut magħha (eż. bliet-stati
jew importazzjonijiet mhux immappjati).Il-kodiċi ISO 3166-2 tal-istat mingħajr il-prefiss tal-pajjiż (eż.
BW għal Baden-Württemberg).
Jista’ jkun null.Ħinijiet tal-ftuħ fil-ġimgħa. Kull ċavetta ta’ ġurnata tal-ġimgħa (
monday–sunday) tirreferi
għal array ta’ firxiet ta’ ħinijiet ta’ ftuħ u għeluq. Array vojt ifisser li l-post ikun magħluq
dakinhar. L-oġġett kollu jkun null meta l-ħinijiet ma jkunux disponibbli għall-post.Kif isir it-teħid tad-demm f’appuntament hawn sakemm l-appuntament ma jistabbilixxix
id-
draw_method tiegħu stess: capillary (minn tarf is-saba’ jew il-parti ta’ fuq tad-driegħ,
f’microtainers) jew venous (mill-vina, f’tubi).Il-metodi ta’ teħid tad-demm li l-post għandu kontenituri għalihom, issortjati. Appuntament hawn
jista’ jistabbilixxi wieħed biss minn dawn bħala d-
draw_method tiegħu.Risposti ta’ żball
| Status | Deskrizzjoni |
|---|---|
400 | L-id mhux UUID. |
401 | Iċ-ċavetta API hija nieqsa jew mhux valida. |
403 | Iċ-ċavetta API tiegħek m’għandhiex is-scope meħtieġ. |
404 | Il-post ma jeżistix, mhux attiv, jew huwa barra mill-aċċess tiegħek. |
500 | Żball intern tas-server. |
curl --request GET \
--url https://anivahealth.com/api/v1/locations/b7e2d1f5-3c4a-4e8b-a2f1-9d0c1e2f3a4b \
--header 'x-api-key: YOUR_API_KEY'
{
"id": "b7e2d1f5-3c4a-4e8b-a2f1-9d0c1e2f3a4b",
"name": "Aniva Berlin Mitte",
"company_name": "Aniva GmbH",
"street": "Unter den Linden",
"house_number": "42",
"address_line_2": null,
"city": "Berlin",
"state": "Berlin",
"state_code": "BE",
"postal_code": "10117",
"country_name": "Germany",
"country_code": "DE",
"timezone": "Europe/Berlin",
"latitude": 52.517036,
"longitude": 13.388859,
"contact_phone": "+4930987654321",
"email": "berlin-mitte@anivahealth.com",
"website": "https://anivahealth.com",
"google_maps_url": "https://maps.google.com/?q=Unter+den+Linden+42+Berlin",
"image_url": "https://cdn.anivahealth.com/locations/berlin-mitte.jpg",
"open_hours": {
"monday": [{ "open": "08:00", "close": "18:00" }],
"tuesday": [{ "open": "08:00", "close": "18:00" }],
"wednesday": [{ "open": "08:00", "close": "18:00" }],
"thursday": [{ "open": "08:00", "close": "18:00" }],
"friday": [{ "open": "08:00", "close": "16:00" }],
"saturday": [],
"sunday": []
},
"default_draw_method": "venous",
"draw_methods": ["venous"]
}
⌘I
curl --request GET \
--url https://anivahealth.com/api/v1/locations/b7e2d1f5-3c4a-4e8b-a2f1-9d0c1e2f3a4b \
--header 'x-api-key: YOUR_API_KEY'
{
"id": "b7e2d1f5-3c4a-4e8b-a2f1-9d0c1e2f3a4b",
"name": "Aniva Berlin Mitte",
"company_name": "Aniva GmbH",
"street": "Unter den Linden",
"house_number": "42",
"address_line_2": null,
"city": "Berlin",
"state": "Berlin",
"state_code": "BE",
"postal_code": "10117",
"country_name": "Germany",
"country_code": "DE",
"timezone": "Europe/Berlin",
"latitude": 52.517036,
"longitude": 13.388859,
"contact_phone": "+4930987654321",
"email": "berlin-mitte@anivahealth.com",
"website": "https://anivahealth.com",
"google_maps_url": "https://maps.google.com/?q=Unter+den+Linden+42+Berlin",
"image_url": "https://cdn.anivahealth.com/locations/berlin-mitte.jpg",
"open_hours": {
"monday": [{ "open": "08:00", "close": "18:00" }],
"tuesday": [{ "open": "08:00", "close": "18:00" }],
"wednesday": [{ "open": "08:00", "close": "18:00" }],
"thursday": [{ "open": "08:00", "close": "18:00" }],
"friday": [{ "open": "08:00", "close": "16:00" }],
"saturday": [],
"sunday": []
},
"default_draw_method": "venous",
"draw_methods": ["venous"]
}