{ "opencollection": "1.0.0", "info": { "name": "Duty Of Care API", "version": "v1.0" }, "items": [ { "info": { "name": "availability-probes-controller", "type": "folder" }, "items": [ { "info": { "name": "liveness", "type": "http" }, "http": { "method": "GET", "url": "https://apis.egencia.com/dutyofcare/api/base/liveness" } }, { "info": { "name": "readiness", "type": "http" }, "http": { "method": "GET", "url": "https://apis.egencia.com/dutyofcare/api/base/readiness" } } ] }, { "info": { "name": "version-controller", "type": "folder" }, "items": [ { "info": { "name": "version", "type": "http" }, "http": { "method": "GET", "url": "https://apis.egencia.com/dutyofcare/api/base/version" } }, { "info": { "name": "version_1", "type": "http" }, "http": { "method": "POST", "url": "https://apis.egencia.com/dutyofcare/api/base/version" } }, { "info": { "name": "version_2", "type": "http" }, "http": { "method": "PUT", "url": "https://apis.egencia.com/dutyofcare/api/base/version" } }, { "info": { "name": "version_4", "type": "http" }, "http": { "method": "PATCH", "url": "https://apis.egencia.com/dutyofcare/api/base/version" } }, { "info": { "name": "version_3", "type": "http" }, "http": { "method": "DELETE", "url": "https://apis.egencia.com/dutyofcare/api/base/version" } }, { "info": { "name": "version_5", "type": "http" }, "http": { "method": "HEAD", "url": "https://apis.egencia.com/dutyofcare/api/base/version" } }, { "info": { "name": "version_6", "type": "http" }, "http": { "method": "OPTIONS", "url": "https://apis.egencia.com/dutyofcare/api/base/version" } } ] }, { "info": { "name": "gdpr-controller", "type": "folder" }, "items": [ { "info": { "name": "validate", "type": "http" }, "http": { "method": "GET", "url": "https://apis.egencia.com/dutyofcare/api/gdpr", "params": [ { "name": "user_id", "value": "", "type": "query" } ] } }, { "info": { "name": "process", "type": "http" }, "http": { "method": "DELETE", "url": "https://apis.egencia.com/dutyofcare/api/gdpr", "params": [ { "name": "user_id", "value": "", "type": "query" } ] } } ] }, { "info": { "name": "DutyOfCare Data", "type": "folder" }, "items": [ { "info": { "name": "Create Metadata based on the Search Request", "type": "http" }, "http": { "method": "POST", "url": "https://apis.egencia.com/dutyofcare/api/v1/bookings", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://apis.egencia.com/auth/v1/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "

In general, the DoC API uses HTTPs POST requests with JSON arguments and JSON responses. This API call allows the client to submit a request for retrieving paginated booking data for a specified search criterion.

\n
\n

Request Parameters:

\n\n \n \n \n \n \n \n \n \n \n \n
FieldTypeRequired/OptionalDescription
\n Sample Request \n
\n    \n
\n GET\n https://apis.egencia.com/dutyofcare/api/v1/bookings/89ef5828-6d9f-4429-ab73-5ee40cf7b4e7\n
\n
\n
\n
\n

Sample Response

\n
\n    \n   {\n    \"record_list\": [\n        {\n            \"record_locator\": \"5f19782e74b12400018f9e7d-169294509\",\n            \"company_id\": 35067,\n            \"trip_id\": \"0600-2564-655\",\n            \"booking_status\": \"CONFIRMED\",\n            \"line_"
        }
      ]
    },
    {
      "info": {
        "name": "doc-audit-clean-up-controller",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "cleanup",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://apis.egencia.com/dutyofcare/api/v1/sensitive/audit/clean",
            "params": [
              {
                "name": "year",
                "value": "",
                "type": "query"
              }
            ]
          }
        }
      ]
    }
  ],
  "bundled": true
}