Get a booking
/care/v1/booking/{booking_id}/get/documentbooking:readBAA requiredReturns one visit your company booked, with the note. A visit the patient booked themselves, or
that another company booked, answers 404. Answers 409 connection_not_active when the
patient's connection with your company was revoked: the visit stays booked, but you can no
longer read or change it.
If the visit was canceled by the patient or the specialist, the answer says so and a
booking.canceled event is raised once.
Needs the booking:read scope.
Path parameters
booking_idstringrequiredThe ID of the booking.
Min length 1 · Max length 200 · Pattern ^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$
Response 200
booking_idstringrequiredThe ID of the booking.
booking_namestringrequiredThe name of the booking.
client_notestringnullableThe note for the specialist. Only when you read one booking.
created_atstring (date-time)requiredWhen your company booked the visit.
end_datestring (date-time)requiredWhen the visit ends, in UTC.
has_reportbooleanrequiredWhether a report exists for the visit.
is_insurance_selectedbooleanrequiredWhether insurance was selected. Always
falsefor a booking made through this API.service_snapshotBookingServicerequiredThe service, as of the booking.
Show child attributesHide child attributes
accepted_insurance_providersarray of stringThe insurance providers accepted for the service.
is_insurance_acceptedbooleanrequiredWhether insurance was accepted for the service.
service_currencystringrequiredThe currency of the price.
service_descriptionstringnullableThe description of the service.
service_duration_in_minutesintegerrequiredThe length of the visit in minutes.
service_idstringrequiredThe ID of the service.
service_image_urlstringnullableThe URL of an image of the service.
service_mode_of_deliveryenumrequiredHow the visit is delivered:
In PersonorVirtual.In PersonVirtual
service_namestringrequiredThe name of the service.
service_price_in_centsintegerrequiredThe price in cents, as it was when the visit was booked.
specialiststringrequiredThe ID of the specialist.
specialist_snapshotBookingSpecialistrequiredThe specialist, as of the booking.
Show child attributesHide child attributes
first_namestringrequiredThe first name.
last_namestringrequiredThe last name.
profile_picture_urlstringnullableThe URL of the photo.
specialist_idstringrequiredThe ID of the specialist.
specialist_typeenumrequiredThe kind of specialist.
DietitianCertified Nutrition SpecialistPhysical Trainer
start_datestring (date-time)requiredWhen the visit starts, in UTC.
statusenumrequiredThe status of the booking:
booked,meeting_rescheduled,meeting_completed,meeting_cancelledorno_show.bookedmeeting_rescheduledmeeting_completedmeeting_cancelledno_show
timezonestringrequiredThe IANA timezone the visit was booked in.
updated_atstring (date-time)requiredWhen the record of the visit last changed.
userstringrequiredThe ID of the patient.
Errors
Every error has this shape. Branch on code, not on message. request_id equals the X-Request-Id response header.
{
"error": {
"code": "not_found",
"message": "The object does not exist.",
"request_id": "req_0123456789abcdef0123456789abcdef"
}
}| Status | Code | Meaning |
|---|---|---|
401 | invalid_api_key | The API key is missing or not valid. |
403 | company_archived | This company is archived. |
403 | company_not_live | The company must be live to use prod keys. |
403 | company_suspended | This company is suspended. |
403 | connection_scope_not_granted | The connection does not hold the care.bookings scope. |
403 | scope_not_granted | This API key does not have the booking:read scope. |
404 | not_found | The requested resource was not found. |
409 | connection_not_active | The connection is not active. |
422 | validation_error | path.booking_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$' |
429 | rate_limited | Too many requests. Wait before calling again. |
500 | internal_error | Something went wrong on our side. Please try again later. |
502 | upstream_error | A Nurish'd service could not complete the request. |
503 | upstream_unavailable | A Nurish'd service is unavailable. Please try again later. |
504 | upstream_timeout | A Nurish'd service did not answer in time. Please try again. |