{"openapi":"3.1.0","info":{"title":"Egencia Receipt API","version":"v1.0"},"servers":[{"url":"https://apis.egencia.com/openconnect/api","description":"Generated server url"}],"paths":{"/v1/receipts/{itemId}":{"get":{"description":"

Fetch receipt for a booking item

\n

Request Parameters

\n
\n \n \n \n \n \n \n \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 each booking item receipts
itemIdStringId corresponding to the booking item for which we want to fetch receipt
\n
\n

Response Parameters in case of successful response

\n

In case of successful response receipt pdf will be send to the partner with 200 OK status

\n

Response Parameters in case of failure response

\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n Attribute\n \n Type\n \n Description\n
codeStringError code in case of receipt failure
messageStringError message in case of failure
\n
\n

Below response with 404 Not Found Error HttpStatus

\n
\n
\n   \n   {\n       \"error\": {\n           \"code\": \"EGE-ER-OS-4010\",\n           \"message\": \"Receipt is unavailable for this booking item.\"\n       }\n   }\n   \n
\n
\n","operationId":"getReceipt","parameters":[{"in":"path","name":"itemId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK."},"400":{"description":"Bad Request : Invalid input or request"},"401":{"description":"Unauthorized : authentication token empty, invalid or expired."},"403":{"description":"Forbidden : User not Validated for operation."},"404":{"description":"Not Found : You are trying to access an invalid or non existent resource."},"422":{"description":"Invalid input : invalid or missing required input."},"500":{"description":"Internal Server Error : unable to process request"}},"security":[{"OAuth2":[]}],"summary":"Fetch receipt for a booking item","tags":["receipts"]}}},"components":{"schemas":{},"securitySchemes":{"OAuth2":{"flows":{"clientCredentials":{"tokenUrl":"https://apis.egencia.com/auth/v1/token"}},"type":"oauth2"}}}}