{"introduction":"This document provides a reference for both query and response for the Duty Of Care API version 1. It includes a series of notes and instructions that outline the Duty Of Care API version 1.","audience":{"label":"Audience","description":"This document is intended for The Duty Of Care API customers, partners and software developers who'd like to consume the Duty Of Care API."},"overview":{"label":"Overview","description":"The Duty Of Care API is organized around REST. The API provides users with a simple, standardised, resource-oriented, RESTful interface with JSON-formatted responses that make it easy to fetch, filter and retrieve Booking data. To have a secure data transfer and streamlined integration, we use the HTTPs protocol for API calls."},"versioning":{"versions":[{"id":"1.0","change_description":"First stable version."}]},"api_details":{"label":"Duty Of Care API Details","subheadings":[{"label":"Implementation Method","description":"Doing a POST of the following endpoint: https://apis.egencia.com/dutyofcare/api/v1/bookings will allow partners to create paginated booking data queries and metadata based on the partner ID within the given date range. "}]},"enumerations":{"LOB type":[{"name":"FLIGHT","description":"Air - Line of business"},{"name":"CAR","description":"Car - Line of business"},{"name":"HOTEL","description":"Hotel - Line of business"},{"name":"TRAIN","description":"TRAIN - Line of business"}]},"http_verbs":[{"label":"Info Codes and Messages","description":"\nThis section will help the developer persona understand what following success response messages mean.","values":[{"name":"EGE-ER-DS-BOOKINGS-NOT-AVAILABLE","description":"No bookings available for this particular request"},{"name":"EGE-ER-DS-NO_MORE_BOOKINGS","description":"All records have been fetched. No more bookings available."}]},{"label":"Error Codes and Messages","description":"\nThis section will help the developer persona understand what each error code and corresponding message mean.","values":[{"name":"EGE-ER-DS-INVALID-PARTNER","description":"The request contains an invalid Partner ID. Try again with a valid Partner ID."},{"name":"EGE-ER-DS-COMPANY-NOT-CONFIGURED","description":"The request contains Company Id(s) which is not configured for the specified partner."},{"name":"EGE-ER-DS-COMPANY-ID-EMPTY","description":"The 'company_id' cannot be empty in the request body"},{"name":"EGE-ER-DS-OVERLAPPED-DATE","description":"Start date cannot be greater than End date"},{"name":"EGE-ER-DS-INVALID-DATE","description":"Error! Invalid date format. Please enter the date in the format YYYY-MM-DDTHH:MM:SSZ"},{"name":"EGE-ER-DS-EXCEEDED-COUNT-COMPANY-ID","description":"Company ID count exceeded maximum allowed limit of 10"},{"name":"EGE-ER-DS-INTERNAL-SERVER-ERROR","description":"Internal server error"},{"name":"EGE-ER-DS-FUTURE-REQUESTED-DATE","description":"start_date_time and end_date_time should be less than or equal to the current datetime"},{"name":"EGE-ER-DS-RESOURCE_NOT_FOUND","description":"The requested resource could not be found"},{"name":"EGE-ER-DS-REQUESTED_PAGE_NOT_FOUND","description":"Cannot directly access this page."}]}],"documentation_link":"https://apis.egencia.com/dutyofcare/docs/api-docs/doc-service","api_updates":[{"date":"2024-06-06T00:00:00.000Z","updates":[{"label":"Updates in \"Train Segment\"","description":"We have introduced the \"train_number\" attribute in the API Response for Train bookings. This new attribute indicates the train number associated with the journey."}]}]}