Docplanner Integrations API (1.23.1)

Fundamentals

Domain

IP Whitelisting

Http verbs

Expanding

Body

Date and time

Pagination

Errors

Rate Limiting

Rate Limiting Headers

Facilities

getFacilities

Authorizations:
oauth2

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
{
  • "_items": [
    • {
      • "id": "1",
      • "name": "Sample hospital"
      },
    • {
      • "id": "2",
      • "name": "Another sample hospital"
      }
    ]
}

getFacility

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

query Parameters
with
Array of strings (FacilityScopes) unique
Items Value: "facility.doctors"

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
Example
{
  • "id": "1",
  • "name": "Sample hospital"
}

Doctors

getDoctors

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

query Parameters
with
Array of strings (DoctorsScopes) unique
Items Enum: "doctor.profile_url" "doctor.specializations" "doctor.license_numbers"

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
Example
{
  • "_items": [
    • {
      • "id": "123",
      • "name": "Sample",
      • "surname": "Doctor 123"
      },
    • {
      • "id": "234",
      • "name": "Sample",
      • "surname": "Doctor 234"
      }
    ]
}

getDoctor

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

query Parameters
with
Array of strings (DoctorScopes) unique
Items Enum: "doctor.profile_url" "doctor.addresses" "doctor.license_numbers" "address.booking_extra_fields" "address.online_only" "address.visit_payment" "address.commercial_type"

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
Example
{
  • "id": "123",
  • "name": "Sample",
  • "surname": "Doctor 123",
  • "specializations": {
    • "_items": [
      • {
        • "id": "12",
        • "name": "Specialization example 12"
        }
      ]
    }
}

Addresses

getAddresses

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

query Parameters
with
Array of strings (AddressesScopes) unique
Items Enum: "address.online_only" "address.visit_payment" "address.commercial_type" "address.insurance_support"

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
Example
{
  • "_items": [
    • {
      • "id": "111",
      • "name": "Example hospital",
      • "city_name": "Some city",
      • "post_code": "xx-xxx",
      • "street": "Some street",
      • "booking_extra_fields": {
        • "birth_date": false,
        • "gender": false,
        • "nin": false
        }
      }
    ]
}

getAddress

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

query Parameters
with
Array of strings (AddressesScopes) unique
Items Enum: "address.online_only" "address.visit_payment" "address.commercial_type" "address.insurance_support"

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
Example
{
  • "id": "111",
  • "name": "Example hospital",
  • "city_name": "Some city",
  • "post_code": "xx-xxx",
  • "street": "Some street",
  • "booking_extra_fields": {
    • "birth_date": false,
    • "gender": false,
    • "nin": false
    }
}

updateAddress

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

Request Body schema: application/json
required
insurance_support
string
Enum: "private" "insurance" "private_and_insurance"

Responses

Request samples

Content type
application/json
{
  • "insurance_support": "private_and_insurance"
}

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
{
  • "id": "111",
  • "name": "Example hospital",
  • "city_name": "Some city",
  • "post_code": "xx-xxx",
  • "street": "Some street",
  • "booking_extra_fields": {
    • "birth_date": false,
    • "gender": false,
    • "nin": false
    },
  • "insurance_support": "private"
}

removeAddressIntegration

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

Responses

Response samples

Content type
application/vnd.error+docplanner+json
Example
{
  • "errors": [ ],
  • "message": "You are not authorized to use this feature"
}

getAddressPaymentSettings

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
{
  • "online_payments": true,
  • "schedule_managed_by_docplanner": false,
  • "online_payments_account_active": true,
  • "upfront_payment_policies": {
    • "patient_bookings": {
      • "new_patients": "mandatory",
      • "returning_patients": "optional"
      },
    • "admin_bookings": {
      • "new_patients": "optional",
      • "returning_patients": "inactive"
      }
    },
  • "book_now_pay_later": {
    • "available": true,
    • "enabled": true,
    • "late_cancellation_window_hours": 24,
    • "no_show_fee_percentage": 100
    }
}

updateAddressPaymentSettings

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

Request Body schema: application/json
required
online_payments
required
boolean

Without an active Docplanner payment account for the address, it can only be turned off

required
object

The two patient_bookings policies cannot both be inactive. book-now-pay-later is not accepted for admin_bookings

required
object

Responses

Request samples

Content type
application/json
{
  • "online_payments": true,
  • "upfront_payment_policies": {
    • "patient_bookings": {
      • "new_patients": "book-now-pay-later",
      • "returning_patients": "optional"
      },
    • "admin_bookings": {
      • "new_patients": "optional",
      • "returning_patients": "inactive"
      }
    },
  • "book_now_pay_later": {
    • "enabled": true,
    • "late_cancellation_window_hours": 48,
    • "no_show_fee_percentage": 50
    }
}

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
{
  • "online_payments": true,
  • "schedule_managed_by_docplanner": false,
  • "online_payments_account_active": true,
  • "upfront_payment_policies": {
    • "patient_bookings": {
      • "new_patients": "mandatory",
      • "returning_patients": "optional"
      },
    • "admin_bookings": {
      • "new_patients": "optional",
      • "returning_patients": "inactive"
      }
    },
  • "book_now_pay_later": {
    • "available": true,
    • "enabled": true,
    • "late_cancellation_window_hours": 24,
    • "no_show_fee_percentage": 100
    }
}

Services

getServices

Authorizations:
oauth2
query Parameters
with
Array of strings (ServicesScopes) unique
Items Value: "services.only_diagnostics"
specialization_id
integer
Example: specialization_id=12

Filters services by specialization. When provided, only services associated with the given specialization are returned.

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
{
  • "_items": [
    • {
      • "id": "1",
      • "name": "USG"
      },
    • {
      • "id": "2",
      • "name": "EKG"
      },
    • {
      • "id": "3",
      • "name": "EEG"
      }
    ]
}

getAddressServices

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

query Parameters
start
string <date-time>
Example: start=2021-05-16T14:00:00+01:00

Slot start date (parameter must be urlencoded before sending request). Limits results to only those linked to slots that start on that date.

with
Array of strings (AddressServicesScopes) unique
Items Enum: "address_service.allowed_patients" "address_service.custom_name" "address_service.public_insurance_flow"

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
Example
{
  • "_items": [
    • {
      • "id": "101",
      • "name": "USG",
      • "is_default": true,
      • "is_price_from": false,
      • "price": 100,
      • "description": "Description of service",
      • "service_id": "1",
      • "is_visible": true,
      • "allowed_patients": {
        • "minimum_age": 18,
        • "maximum_age": 65
        }
      },
    • {
      • "id": "103",
      • "name": "EEG",
      • "is_default": true,
      • "is_price_from": false,
      • "price": null,
      • "description": "Description of service",
      • "service_id": "3",
      • "is_visible": false,
      • "allowed_patients": null
      }
    ]
}

addAddressService

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

Request Body schema: application/json
required
service_id
required
string

ID of a service

is_price_from
boolean

If true, the price is the minimum price of the service

price
number or null

Service price. Maximum 2 decimal places; additional decimals are truncated. Invalid formats are rejected with 400 Bad Request

description
string or null
is_visible
boolean
default_duration
integer or null
object or null
custom_name
string or null non-empty

A custom display name for the service. Cannot be an empty string.

Responses

Request samples

Content type
application/json
{
  • "service_id": "2",
  • "is_price_from": true,
  • "price": 200,
  • "description": "Address service description",
  • "is_visible": true,
  • "default_duration": 20,
  • "allowed_patients": {
    • "minimum_age": 18,
    • "maximum_age": 65
    },
  • "custom_name": "Custom USG Name"
}

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
{
  • "id": "101",
  • "name": "USG",
  • "is_default": true,
  • "is_price_from": false,
  • "price": 169.9,
  • "description": "Description of service",
  • "service_id": "1",
  • "is_visible": true
}

getAddressService

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

address_service_id
required
string
Example: 123

ID of an address service

query Parameters
with
Array of strings (AddressServiceScopes) unique
Items Enum: "address_service.allowed_patients" "address_service.custom_name" "address_service.public_insurance_flow"

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
Example
{
  • "id": "101",
  • "name": "USG",
  • "is_default": true,
  • "is_price_from": false,
  • "price": 169.9,
  • "description": "Description of service",
  • "service_id": "1",
  • "is_visible": true
}

updateAddressService

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

address_service_id
required
string
Example: 123

ID of an address service

Request Body schema: application/json
required
is_price_from
boolean

If true, the price is the minimum price of the service

price
number or null

Service price. Maximum 2 decimal places; additional decimals are truncated. Invalid formats are rejected with 400 Bad Request

description
string or null
default_duration
integer
is_visible
boolean
object or null
custom_name
string or null non-empty

A custom display name for the service. Cannot be an empty string. Send null to clear the custom name.

Responses

Request samples

Content type
application/json
{
  • "price": 200,
  • "is_price_from": true,
  • "description": "Address service description",
  • "default_duration": 20,
  • "is_visible": true,
  • "allowed_patients": {
    • "minimum_age": 21,
    • "maximum_age": 60
    },
  • "custom_name": "Custom USG Name"
}

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
{
  • "id": "101",
  • "name": "USG",
  • "is_default": true,
  • "is_price_from": true,
  • "price": 200,
  • "description": "Address service description",
  • "service_id": "1",
  • "is_visible": true
}

deleteAddressService

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

address_service_id
required
string
Example: 123

ID of an address service

Responses

Response samples

Content type
application/vnd.error+docplanner+json
Example
{
  • "errors": [ ],
  • "message": "You are not authorized to see this facility"
}

Insurances

getInsuranceProviders

Authorizations:
oauth2

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
{
  • "_items": [
    • {
      • "insurance_provider_id": "1",
      • "name": "Insurance provider 1"
      },
    • {
      • "insurance_provider_id": "2",
      • "name": "Insurance provider 2"
      },
    • {
      • "insurance_provider_id": "3",
      • "name": "Insurance provider 3"
      }
    ]
}

getInsurancePlans

Authorizations:
oauth2
path Parameters
insurance_provider_id
required
string
Example: 123

ID of an insurance provider from DP dictionary

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
{
  • "_items": [
    • {
      • "insurance_plan_id": "999",
      • "name": "Insurance plan 999"
      },
    • {
      • "insurance_plan_id": "1000",
      • "name": "Insurance plan 1000"
      }
    ]
}

getAddressInsuranceProviders

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
{
  • "_items": [
    • {
      • "insurance_provider_id": "1",
      • "name": "Insurance provider 1",
      • "insurance_plans": {
        • "_items": [
          • {
            },
          • {
            }
          ]
        }
      },
    • {
      • "insurance_provider_id": "2",
      • "name": "Insurance provider 2",
      • "insurance_plans": {
        • "_items": [ ]
        }
      }
    ]
}

addAddressInsuranceProvider

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

Request Body schema: application/json
required
insurance_provider_id
required
string

ID of an insurance provider from DP dictionary

Array of objects

Responses

Request samples

Content type
application/json
Example
{
  • "insurance_provider_id": "3"
}

Response samples

Content type
application/vnd.error+docplanner+json
{
  • "errors": [ ],
  • "message": "Validation error message, e.g.: Insurance provider with given ID is already assigned to this address."
}

updateOrCreateAddressInsuranceProvider

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

Request Body schema: application/json
required
insurance_provider_id
required
string

ID of an insurance provider from DP dictionary

Array of objects

Responses

Request samples

Content type
application/json
{
  • "insurance_provider_id": "3",
  • "insurance_plans": [
    • {
      • "insurance_plan_id": "999"
      },
    • {
      • "insurance_plan_id": "1000"
      }
    ]
}

Response samples

Content type
application/vnd.error+docplanner+json
Example
{
  • "errors": [ ],
  • "message": "You are not authorized to see this facility"
}

deleteAddressInsuranceProvider

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

insurance_provider_id
required
string
Example: 123

ID of an insurance provider from DP dictionary

Responses

Response samples

Content type
application/vnd.error+docplanner+json
{
  • "errors": [ ],
  • "message": "Validation error message, e.g.: Insurance provider with given ID is not assigned to this address."
}

Calendars

getCalendar

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
Example
{
  • "status": "enabled"
}

enableCalendar

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

Responses

Response samples

Content type
application/vnd.error+docplanner+json
{
  • "errors": [ ],
  • "message": "Could not enable calendar on disabled address"
}

disableCalendar

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

Responses

Response samples

Content type
application/vnd.error+docplanner+json
Example
{
  • "errors": [ ],
  • "message": "You are not authorized to see this facility"
}

Calendar Breaks

getCalendarBreaks

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

query Parameters
since
required
string <date-time>
Example: since=2021-05-16T14:00:00+01:00
till
required
string <date-time>
Example: till=2021-05-16T15:00:00+01:00

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
{
  • "id": "567",
  • "since": "2020-12-16T14:00:00+01:00",
  • "till": "2020-12-16T14:30:00+01:00",
  • "description": "Optional description"
}

addCalendarBreak

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

Request Body schema: application/json
required
since
required
string <date-time>
till
required
string <date-time>
description
string
apply_on_coupled_addresses
boolean
Default: false

When true, the same break is also created on the coupled addresses of this doctor in this facility - the online-only ones for an offline address and the other way round. Those breaks are moved and removed together with this one. The response describes only the break created on the requested address.

Responses

Request samples

Content type
application/json
{
  • "since": "2021-05-16T14:00:00+01:00",
  • "till": "2021-05-16T15:00:00+01:00",
  • "description": "Optional reason for adding this particular break",
  • "apply_on_coupled_addresses": true
}

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
{
  • "id": "567",
  • "since": "2020-12-16T14:00:00+01:00",
  • "till": "2020-12-16T14:30:00+01:00",
  • "description": "Optional description"
}

getCalendarBreak

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

break_id
required
string
Example: 123

ID of the Calendar Break

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
{
  • "id": "567",
  • "since": "2020-12-16T14:00:00+01:00",
  • "till": "2020-12-16T14:30:00+01:00",
  • "description": "Optional description"
}

moveCalendarBreak

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

break_id
required
string
Example: 123

ID of the Calendar Break

Request Body schema: application/json
required
since
required
string <date-time>
till
required
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "since": "2021-05-16T14:00:00+01:00",
  • "till": "2021-05-16T15:00:00+01:00"
}

Response samples

Content type
application/vnd.error+docplanner+json
Example
{
  • "errors": [ ],
  • "message": "Param \"since\" is required!"
}

deleteCalendarBreak

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

break_id
required
string
Example: 123

ID of the Calendar Break

Responses

Response samples

Content type
application/vnd.error+docplanner+json
Example
{
  • "errors": [ ],
  • "message": "You are not authorized to see this facility"
}

Slots

getSlots

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

query Parameters
start
required
string <date-time>
Example: start=2021-05-16T14:00:00+01:00

Slot start date (parameter must be urlencoded before sending request)

end
required
string <date-time>
Example: end=2021-05-16T15:00:00+01:00

Slot end date (parameter must be urlencoded before sending request)

with
Array of strings (SlotsScopes) unique
Items Value: "slot.services"

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
Example
{
  • "_items": [
    • {
      • "start": "2020-12-16T14:00:00+01:00"
      },
    • {
      • "start": "2020-12-16T14:30:00+01:00"
      }
    ]
}

replaceSlots

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

Request Body schema: application/json
required
required
Array of objects

Responses

Request samples

Content type
application/json
{
  • "slots": [
    • {
      • "address_services": [
        • {
          • "address_service_id": "111",
          • "duration": 30
          },
        • {
          • "address_service_id": "112",
          • "duration": 15
          }
        ],
      • "start": "2021-05-16T14:00:00+01:00",
      • "end": "2021-05-16T15:00:00+01:00",
      • "insurance_accepted": "with-insurance-only",
      • "insurance_providers": [
        • 52,
        • 67
        ]
      },
    • {
      • "address_services": [
        • {
          • "address_service_id": "112",
          • "duration": 15
          }
        ],
      • "start": "2021-05-16T15:00:00+01:00",
      • "end": "2021-05-16T16:00:00+01:00"
      }
    ]
}

Response samples

Content type
application/vnd.error+docplanner+json
Example
{
  • "errors": [ ],
  • "message": "Validation error message, e.g.: Slots comes from different days"
}

bookSlot

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

start
required
string <date-time>
Example: 2021-05-16T14:00:00+01:00

Slot start date (parameter must be urlencoded before sending request)

Request Body schema: application/json
required
address_service_id
required
string
is_returning
boolean
required
object (Patient)
duration
required
integer
label
string or null
Default: null
comment
string or null
Default: null
insurance_provider_id
string or null
Default: null
insurance_plan_id
string or null
Default: null
is_recurring
boolean
Default: false

Whether the visit should be marked as recurrent (there will be no confirmation notification sent to the patient)

acted_by
string or null
Default: null
Enum: "patient" "facility"

Who performed the action - patient for the patient, facility for the facility acting for them. Optional; when omitted the booking is recorded without a stated actor and behaves exactly as it does today. The two values belong to this field only. booked_by and canceled_by on a booking response name the channel the action arrived through. confirmed_by on booking confirmation accepts user and admin.

no_show_protection
boolean or null
Default: null

Send true when the practice asks the patient to pay by a deadline. Optional; send a JSON boolean. Applies to a booking stated as acted_by facility, for a visit that starts more than 48 hours after booking, at a practice that takes online payments for the booking; in every other case the value is ignored. The deadline is 5 days before the visit when the visit is a week or more away, and 24 hours after booking otherwise. A booking not paid by the deadline is canceled. While the payment is owed, the response and later reads carry payment_url. Show it to the patient.

Responses

Request samples

Content type
application/json
{
  • "address_service_id": "113",
  • "is_returning": false,
  • "duration": 30,
  • "label": "label",
  • "comment": "comment",
  • "insurance_provider_if": "14",
  • "insurance_plan_id": "null",
  • "is_recurring": false,
  • "patient": {
    • "name": "Abraham",
    • "surname": "Lincoln",
    • "email": "example@example.com",
    • "phone": 48123123123,
    • "birth_date": "1985-01-01",
    • "nin": 894237492,
    • "gender": "m",
    • "marketing_consent": true,
    • "data_privacy_consent": true
    }
}

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
{
  • "id": "2134124",
  • "status": "booked",
  • "start_at": "2021-05-16T14:00:00+01:00",
  • "end_at": "2021-05-16T14:30:00+01:00",
  • "duration": 30,
  • "booked_by": "user",
  • "canceled_by": "",
  • "booked_at": "2021-05-12T12:00:00+01:00",
  • "canceled_at": "2021-05-16T14:30:00+01:00",
  • "comment": "comment"
}

deleteSlots

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

date
required
string <date>
Example: 2021-05-16

Responses

Response samples

Content type
application/vnd.error+docplanner+json
Example
{
  • "errors": [ ],
  • "message": "You are not authorized to see this facility"
}

Bookings

addBooking

getBookings

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

query Parameters
start
required
string <date-time>
Example: start=2021-05-16T14:00:00+01:00

Slot start date (parameter must be urlencoded before sending request)

end
required
string <date-time>
Example: end=2021-05-16T15:00:00+01:00

Slot end date (parameter must be urlencoded before sending request)

page
integer
Example: page=1

Page number to use for pagination. If not provided the pagination is not applied.

limit
integer
Example: limit=100

Maximum number of items per page. If not provided the default value of 100 is applied if pagination is used.

with
Array of strings (BookingsScopes) unique
Items Enum: "booking.patient" "booking.address_service" "booking.presence" "address_service.public_insurance_flow"

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
Example
{
  • "_items": [
    • {
      • "id": "2134124",
      • "status": "booked",
      • "start_at": "2021-05-16T14:00:00+01:00",
      • "end_at": "2021-05-16T14:30:00+01:00",
      • "duration": 30,
      • "booked_by": "user",
      • "canceled_by": "",
      • "booked_at": "2021-05-12T12:00:00+01:00",
      • "canceled_at": null,
      • "comment": "comment",
      • "insurance": {
        • "id": "11",
        • "name": "Axa",
        • "plan": null,
        • "plan_id": null
        }
      },
    • {
      • "id": "2134125",
      • "status": "booked",
      • "start_at": "2021-05-16T17:00:00+01:00",
      • "end_at": "2021-05-16T17:30:00+01:00",
      • "duration": 15,
      • "booked_by": "doctor",
      • "canceled_by": "doctor",
      • "booked_at": "2021-05-12T13:00:00+01:00",
      • "canceled_at": "2021-05-16T14:30:00+01:00",
      • "comment": null,
      • "insurance": {
        • "id": "11",
        • "name": "Axa",
        • "plan": null,
        • "plan_id": null
        }
      }
    ]
}

getBooking

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

booking_id
required
string
Example: 123

ID of the Booking

query Parameters
with
Array of strings (BookingScopes) unique
Items Enum: "booking.moving" "address_service.public_insurance_flow"

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
Example
{
  • "id": "2134124",
  • "status": "booked",
  • "start_at": "2021-05-16T14:00:00+01:00",
  • "end_at": "2021-05-16T14:30:00+01:00",
  • "duration": 30,
  • "booked_by": "user",
  • "canceled_by": "",
  • "booked_at": "2021-05-12T12:00:00+01:00",
  • "canceled_at": null,
  • "patient": {
    • "name": "Abraham",
    • "surname": "Lincoln",
    • "email": "example@example.com",
    • "phone": 48123123123,
    • "birth_date": "1985-01-01",
    • "nin": 894237492,
    • "gender": "m",
    • "is_returning": false,
    • "insurance_number": null
    },
  • "address_service": {
    • "id": "101",
    • "name": "USG",
    • "price": 100,
    • "is_price_from": false,
    • "is_default": true,
    • "service_id": "1",
    • "description": "Description of service",
    • "is_visible": true
    },
  • "comment": "comment",
  • "insurance": {
    • "id": "11",
    • "name": "Axa",
    • "plan": null,
    • "plan_id": null
    }
}

cancelBooking

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

booking_id
required
string
Example: 123

ID of the Booking

Request Body schema: application/json
optional
reason
string

Reason why visit was canceled

acted_by
string or null
Default: null
Enum: "patient" "facility"

Who performed the action - patient for the patient, facility for the facility acting for them. Optional; when omitted the booking is recorded without a stated actor and behaves exactly as it does today. The two values belong to this field only. booked_by and canceled_by on a booking response name the channel the action arrived through. confirmed_by on booking confirmation accepts user and admin.

Responses

Request samples

Content type
application/json
{
  • "reason": "Doctor will not be present on that day in the clinic"
}

Response samples

Content type
application/vnd.error+docplanner+json
Example
{
  • "errors": [ ],
  • "message": "Validation error message, e.g.: Visit 12345 cannot be canceled because it is not booked"
}

moveBooking

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

booking_id
required
string
Example: 123

ID of the Booking

query Parameters
with
Array of strings (MoveBookingScopes) unique
Items Value: "address_service.public_insurance_flow"
Request Body schema: application/json
required
address_service_id
required
string
start
string <date-time>
duration
integer
address_id
string
acted_by
string or null
Default: null
Enum: "patient" "facility"

Who performed the action - patient for the patient, facility for the facility acting for them. Optional; when omitted the booking is recorded without a stated actor and behaves exactly as it does today. The two values belong to this field only. booked_by and canceled_by on a booking response name the channel the action arrived through. confirmed_by on booking confirmation accepts user and admin.

Responses

Request samples

Content type
application/json
Example
{
  • "address_service_id": "112",
  • "start": "2021-05-26T16:00:00+01:00",
  • "duration": 30
}

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
Example
{
  • "id": "2134124",
  • "status": "booked",
  • "start_at": "2021-05-16T14:00:00+01:00",
  • "end_at": "2021-05-16T14:30:00+01:00",
  • "duration": 30,
  • "booked_by": "user",
  • "canceled_by": "",
  • "booked_at": "2021-05-12T12:00:00+01:00",
  • "canceled_at": null,
  • "patient": {
    • "name": "Abraham",
    • "surname": "Lincoln",
    • "email": "example@example.com",
    • "phone": 48123123123,
    • "birth_date": "1985-01-01",
    • "nin": 894237492,
    • "gender": "m",
    • "is_returning": false,
    • "insurance_number": null
    },
  • "address_service": {
    • "id": "101",
    • "name": "USG",
    • "price": 100,
    • "is_price_from": false,
    • "is_default": true,
    • "service_id": "1",
    • "description": "Description of service",
    • "is_visible": true
    },
  • "comment": "comment",
  • "insurance": {
    • "id": "11",
    • "name": "Axa",
    • "plan": null,
    • "plan_id": null
    }
}

confirmBooking

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

booking_id
required
string
Example: 123

ID of the Booking

Request Body schema: application/json
required
confirmed_by
required
string
Enum: "user" "admin"

Who confirmed the booking

Responses

Request samples

Content type
application/json
{
  • "confirmed_by": "user"
}

Response samples

Content type
application/vnd.error+docplanner+json
Example
{
  • "errors": [ ],
  • "message": "Validation error message, e.g.: confirmed_by value is invalid"
}

requestOpinion

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

Request Body schema: application/json
phone
required
string

Responses

Request samples

Content type
application/json
{
  • "phone": "123456789"
}

Response samples

Content type
application/vnd.error+docplanner+json
{
  • "errors": [ ],
  • "message": "Validation error message, e.g.: Phone number is invalid."
}

Patient Presence

markPatientPresence

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

booking_id
required
string
Example: 123

ID of the Booking

Responses

Response samples

Content type
application/vnd.error+docplanner+json
{
  • "errors": [ ],
  • "message": "Validation error message, e.g.: Visit is in the future"
}

markPatientAbsence

Authorizations:
oauth2
path Parameters
facility_id
required
string
Example: 1

ID of the Facility

doctor_id
required
string
Example: 123

ID of a doctor in a facility

address_id
required
string
Example: 123

ID of a doctor`s address in a facility

booking_id
required
string
Example: 123

ID of the Booking

Responses

Response samples

Content type
application/vnd.error+docplanner+json
{
  • "errors": [ ],
  • "message": "Validation error message, e.g.: Visit is in the future"
}

API Notification Callbacks

Push Notifications

Responses

Callbacks

Callback payload samples

Callback
Content type
application/json
Example
{
  • "name": "slot-booking",
  • "data": {
    • "facility": {
      • "id": "1",
      • "name": "Sample hospital"
      },
    • "doctor": {
      • "id": "123",
      • "name": "Sample",
      • "surname": "Doctor 123"
      },
    • "address": {
      • "id": "111",
      • "name": "Example hospital",
      • "street": "Some street",
      • "post_code": "xx-xxx"
      },
    • "visit_booking_request": {
      • "booking_at": "2021-05-12T10:18:24+01:00",
      • "booking_by": "user",
      • "duration": 30,
      • "start_at": "2021-05-26T16:00:00+01:00",
      • "end_at": "2021-05-26T16:30:00+01:00",
      • "address_service": {
        • "id": "243665",
        • "name": "biopsja nerki",
        • "price": 50,
        • "is_price_from": false,
        • "is_visible": true
        },
      • "patient": {
        • "name": "Abraham",
        • "surname": "Lincoln",
        • "email": "example@example.com",
        • "phone": "+48123123123",
        • "birth_date": "1985-01-01",
        • "nin": "894237492",
        • "gender": "m",
        • "insurance_number": "CARD-7654321"
        },
      • "comment": "Additional information about the visit"
      }
    },
  • "created_at": "2021-05-12T10:18:34+01:00"
}

Pull Notification

Authorizations:
oauth2

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
Example
{
  • "name": "slot-booking",
  • "data": {
    • "facility": {
      • "id": "1",
      • "name": "Sample hospital"
      },
    • "doctor": {
      • "id": "123",
      • "name": "Sample",
      • "surname": "Doctor 123"
      },
    • "address": {
      • "id": "111",
      • "name": "Example hospital",
      • "street": "Some street",
      • "post_code": "xx-xxx"
      },
    • "visit_booking_request": {
      • "booking_at": "2021-05-12T10:18:24+01:00",
      • "booking_by": "user",
      • "duration": 30,
      • "start_at": "2021-05-26T16:00:00+01:00",
      • "end_at": "2021-05-26T16:30:00+01:00",
      • "address_service": {
        • "id": "243665",
        • "name": "biopsja nerki",
        • "price": 50,
        • "is_price_from": false,
        • "is_visible": true
        },
      • "patient": {
        • "name": "Abraham",
        • "surname": "Lincoln",
        • "email": "example@example.com",
        • "phone": "+48123123123",
        • "birth_date": "1985-01-01",
        • "nin": "894237492",
        • "gender": "m",
        • "insurance_number": "CARD-7654321"
        },
      • "comment": "Additional information about the visit"
      }
    },
  • "created_at": "2021-05-12T10:18:34+01:00"
}

Pull Multiple Notification

Authorizations:
oauth2
query Parameters
limit
integer
Example: limit=5

Maximum number of notifications pulled. Can take value from 1 to 100. If not provided the default value of 1 is applied.

Responses

Response samples

Content type
application/vnd.docplanner+json; charset=UTF-8
Example
{
  • "notifications": [
    • {
      • "name": "break-created",
      • "data": {
        • "facility": {
          • "id": "1",
          • "name": "Sample hospital"
          },
        • "doctor": {
          • "id": "123",
          • "name": "Sample",
          • "surname": "Doctor 123"
          },
        • "address": {
          • "id": "111",
          • "name": "Example hospital",
          • "street": "Some street",
          • "post_code": "xx-xxx"
          },
        • "break": {
          • "id": "2573784",
          • "since": "2021-05-25T10:00:00+01:00",
          • "till": "2021-05-25T12:00:00+01:00"
          }
        },
      • "created_at": "2021-05-14T15:46:34+01:00"
      },
    • {
      • "name": "presence-marked",
      • "data": {
        • "facility": {
          • "id": "1",
          • "name": "Sample hospital"
          },
        • "doctor": {
          • "id": "123",
          • "name": "Sample",
          • "surname": "Doctor 123"
          },
        • "address": {
          • "id": "111",
          • "name": "Example hospital",
          • "street": "Some street",
          • "post_code": "xx-xxx"
          },
        • "visit_booking": {
          • "id": "6264532",
          • "status": "booked",
          • "start_at": "2021-05-27T11:00:00+01:00",
          • "end_at": "2021-05-27T11:30:00+01:00",
          • "duration": 30,
          • "booked_by": "user",
          • "canceled_by": "",
          • "booked_at": "2021-05-14T10:19:02+01:00",
          • "patient": {
            },
          • "signature": "f6b9b2fc-4faa-feab-58d9-26a3767f1426"
          },
        • "presence": "ABSENT"
        },
      • "created_at": "2021-05-14T15:46:34+01:00"
      }
    ],
  • "remaining": 5
}

Release Notifications

Authorizations:
oauth2

Responses

Response samples

Content type
application/vnd.error+docplanner+json
{
  • "errors": [ ],
  • "message": "You are not allowed to use this method"
}