4. Booking
Send booking request
POST /{id}/book
Creates a booking request and, if necessary, a new patient in the system.
Parameters
id: Clinic ID (required)
apikey: API Key (required)
createFromEmail: Whether to create a patient from the email address (optional)
personalNumber: Personal identification number (required if createFromEmail is not set)
idTerminology: ID Terminology (required if createFromEmail is not set)
email: Email address (required if createFromEmail is set)
phoneNumber: Phone number (required)
calendarId: Calendar ID (required)
timeslotId: Timeslot ID (required)
groupAppointmentId: Group appointment ID (optional)
medium: Medium of the appointment (optional)
note: Note to be attached to the booking request (optional)
Returns
JsonResponse containing the booking response or an error message.
Example
Request:
POST https://psno-portal.svc.pasientsky.no/partner-api/92fef17c-cd48-11ed-bc1f-fa4d0633c42f/book
{
"apikey":"hello",
"calendarId":"8952d712-cd50-11ed-aa27-1e93d635cf44",
"timeslotId":"8952d712-cd50-11ed-aa27-1e93d635cf44_2_2023-04-21T11:00_7e6d9656-cd51-11ed-ab85-1e93d635cf44",
"groupAppointmentId":null,
"medium":"FACE_TO_FACE",
"note":"",
"personalNumber":"01097541139",
"email":"",
"phoneNumber":"",
"idTerminology":"reference.identificationNumber.norwegian.birthNumber"
}
Last updated