{ "opencollection": "1.0.0", "info": { "name": "Egencia Get Booking API", "version": "v1.0" }, "items": [ { "info": { "name": "bookings v1", "type": "folder" }, "items": [ { "info": { "name": "Retrieve trip details for a particular booking based on booking ID", "type": "http" }, "http": { "method": "GET", "url": "https://apis.egencia.com/openconnect/api/v1/bookings/:bookingId", "params": [ { "name": "bookingId", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://apis.egencia.com/auth/v1/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "

Creates a Retrieve Booking details request for a specific Booking Id

\n
\n

The response contains booking level as well as item level action links to approve/deny the booking request. The approve/deny action links will be coming in the response when approval status is PENDING and booking status is BOOKED.

\n
\n

Request Parameters

\n
\n \n \n \n \n
\n Attribute\n \n Typ" }, { "info": { "name": "Retrieve booking item details for a particular item based on booking item Id", "type": "http" }, "http": { "method": "GET", "url": "https://apis.egencia.com/openconnect/api/v1/bookings/:bookingId/items/:itemId", "params": [ { "name": "bookingId", "value": "", "type": "path" }, { "name": "itemId", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://apis.egencia.com/auth/v1/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "

Creates a Retrieve Booking Item details request for specific Booking Item Id

\n
\n

The response contains item level action links to approve/deny the booking item. The approve/deny action links will be coming in the response when approval status is PENDING and booking status is BOOKED. The cancel action link will come when booking status is not CANCELLED.

\n
\n

Request Parameters

\n
\n \n \n \n
\n Attribute\n " }, { "info": { "name": "Cancel booking item for a particular booking", "type": "http" }, "http": { "method": "POST", "url": "https://apis.egencia.com/openconnect/api/v1/bookings/:bookingId/items/:itemId/cancel", "params": [ { "name": "bookingId", "value": "", "type": "path" }, { "name": "itemId", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://apis.egencia.com/auth/v1/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "

Creates a cancel request to cancel a particular booking item present in the booking.

\n

Request Parameters

\n
\n \n \n \n \n \n \n \n \n \n \n \n
\n Attribute\n \n Type\n \n Description\n
metadata
bookingId" }, { "info": { "name": "Delete trip item for a particular booking ID", "type": "http" }, "http": { "method": "POST", "url": "https://apis.egencia.com/openconnect/api/v1/bookings/:bookingId/items/:itemId/delete", "params": [ { "name": "bookingId", "value": "", "type": "path" }, { "name": "itemId", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://apis.egencia.com/auth/v1/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "

Creates a delete request to delete a particular trip item present in the booking.

\n

Request Parameters

\n
\n \n \n \n \n \n \n \n \n \n \n \n
\n Attribute\n \n Type\n \n Description\n
metadata
bookingIdFetch receipt for a booking item

\n

Request Parameters

\n
\n \n \n \n \n \n \n \n \n \n \n \n \n
\n Attribute\n \n Type\n \n Description\n
bookingIdStringId corresponding to the trips summary for which you want to fetch " } ] }, { "info": { "name": "bookings v2", "type": "folder" }, "items": [ { "info": { "name": "Fetch all receipts for a booking item as a zip file", "type": "http" }, "http": { "method": "GET", "url": "https://apis.egencia.com/openconnect/api/v2/bookings/:bookingId/items/:itemId/receipts", "params": [ { "name": "bookingId", "value": "", "type": "path", "description": "Booking id" }, { "name": "itemId", "value": "", "type": "path", "description": "Trip item id" }, { "name": "locale", "value": "", "type": "query", "description": "Locale" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://apis.egencia.com/auth/v1/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "

Fetch all receipts for a booking item as a zip file

\n

Request Parameters

\n
\n \n \n \n \n \n \n \n \n \n \n \n \n
\n Attribute\n \n Type\n \n Description\n
bookingIdStringId corresponding to the trips summary for which" }, { "info": { "name": "Fetch receipt for a booking item by receipt id", "type": "http" }, "http": { "method": "GET", "url": "https://apis.egencia.com/openconnect/api/v2/bookings/:bookingId/items/:itemId/receipts/:receiptId", "params": [ { "name": "bookingId", "value": "", "type": "path", "description": "Booking id" }, { "name": "itemId", "value": "", "type": "path", "description": "Trip item id" }, { "name": "receiptId", "value": "", "type": "path", "description": "Receipt id" }, { "name": "locale", "value": "", "type": "query", "description": "Locale" }, { "name": "traveler_id", "value": "", "type": "query", "description": "Id of the traveler to whom invoice/receipt is issued" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://apis.egencia.com/auth/v1/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "

Fetch receipt for a booking item by receipt id

\n

Request Parameters

\n
\n \n \n \n \n \n \n \n \n \n \n \n \n
\n Attribute\n \n Type\n \n Description\n
bookingIdStringId corresponding to the trips summary for which you " } ] } ], "bundled": true }