Guide
  • SDK

    • PHP
    • .NET
  • Postman

    • Postman Collection
Api Docs
Guide
  • SDK

    • PHP
    • .NET
  • Postman

    • Postman Collection
Api Docs
  • Getting Started

    • Getting started
    • Integration process
  • Tools and libraries

    • SDK for PHP
    • SDK for .NET
    • Postman Collection
  • Fundamentals

    • Authorization
    • Errors
    • Extensions
    • Rate Limits
  • API Objects

    • Resources
    • Managing calendars
    • Online Features
    • Patient Presence
  • Callbacks

    • Push vs Pull
    • Real-time requests
  • Mappings

    • Vendor mapping
  • Changelog

    • Changelog
DOCPLANNER INTEGRATIONS

Errors

In Docplanner we're using standard HTTP response codes to indicate the success or failure of an API request.

In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error which has failed given the information provided (e.g., resource is no longer available, request doesn't contain all the required fields, etc.). Codes in the 5xx and codes in the 5xx range indicate a server-side error.

Monitoring Docplanner Status

You can monitor the status of our services by subscribing to our status page, available here

HTTP Status Codes

Below, find the list of all the conventional HTTP status codes with line of coment:

Status CodeDescription
200 - SuccessRequest has been successfully processed
201 - Success (created)New resource has been successfully created
204 - Success (No content)Request has been successfully processed
and returns no content
400 - Bad requestInvalid syntax on a request
401 - UnauthorizedAuthorization has failed,
403 - ForbiddenNo access to a given resource
or conducting forbidden action
404 - Not foundResource has not been found (might be deleted)
405 - Method not allowedAttempted method is not supported by requested endpoint
409 - ConflictRequest conflicts with current state of server i.e resource
is being duplicated
429 - Too many requestsRate limit has been exceeded. Find out more here /link/
500, 502, 503, 504 - Server errorDocplanner server is not operative at the moment
(should happen very rarely)

Every response has specific Content-Type header:

Content-Type: application/vnd.error+docplanner+json

Custom error messages

In the real-time booking flow we allow making the booking functionality dependent of the response to a synchronous call during the process (read more here).

In our interface the system might display custom error message informing patient about the reason of failure on response to error code from 4XX family and header Content-Type: application/json . Body of the response must contain specific error_code defined in a dictionary provided to Integrations Support (via email to integrations@docplanner.com).

{
    "error_code": 1
}

The outcome of the error, would be a communicate displayed to the user during the booking process:

Remember, that in case of using that flow - the boking process won't be successful, therefore patient won't complete the process and the visit won't be booked in Docplanner.

Prev
Authorization
Next
Extensions