Suíomhanna
Faigh suíomh
Faigh suíomh tástála amháin de réir a ID
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"]
}
Aisghabh suíomh amháin. Tá an struchtúr céanna aige is atá ag iontráil de
Liostaigh suímh. Díríonn an
url d’imeacht location.*
webhook anseo.
Teastaíonn an raon feidhme locations_view nó appointments_schedule.
Iarratas
Paraiméadair chosáin
Freagra
Nuair a éiríonn leis, tugann an API200 OK ar ais le réad an tsuímh.
Stát nó cúige. D’fhéadfadh sé a bheith
null nuair nach bhfuil aon stát nasctha leis an gcathair
(m.sh. cathairstáit nó iompórtálacha neamhmhapáilte).Cód ISO 3166-2 an stáit gan réimír na tíre (m.sh.
BW do Baden-Württemberg). D’fhéadfadh sé a
bheith null.Uaireanta oscailte seachtainiúla. Mapálann gach eochair lae seachtaine (
monday–sunday) chuig
eagar de raonta ama oscailte/dúnta. Ciallaíonn eagar folamh go bhfuil an suíomh dúnta an lá sin.
Tá an réad iomlán null nuair nach bhfuil uaireanta ar fáil don suíomh.Conas a thógtar an fhuil ag coinne anseo mura socraíonn an choinne a
draw_method féin:
capillary (barr méire nó lámh uachtarach, i micreachoimeádáin) nó venous (ón bhféith, i bhfeadáin).Na modhanna tógála fola a bhfuil coimeádáin i stoc ag an suíomh dóibh, sórtáilte. Ní féidir le
coinne anseo ach ceann amháin díobh seo a shocrú mar a
draw_method.Freagraí earráide
| Stádas | Cur síos |
|---|---|
400 | Ní UUID é an id. |
401 | Tá an eochair API ar iarraidh nó neamhbhailí. |
403 | Níl an raon feidhme riachtanach ag d’eochair API. |
404 | Níl an suíomh ann, tá sé neamhghníomhach, nó tá sé lasmuigh de do rochtain. |
500 | Earráid inmheánach freastalaí. |
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"]
}