{"introduction":"This document provides a reference for both query and response for the Approval Workflow API version 1.0. This document includes a series of notes and instructions that outline the Approval Workflow APIs.","audience":{"label":"Audience","description":"This document is aimed for Approval Workflow API customers, partners and software developers who would like to consume the Approval Workflow API."},"overview":{"label":"Overview","description":"These APIs can be used by a non Egencia system to approve/deny an entire booking or a single item in a booking at the trip level. Partners must pass the authentication in order to use the API. Bookings can be approved and denied if the user is an assigned approver (Super Admin). When doing POST request to do approvals, the requests that succeed will send a success response and the requests that don’t succeed will send back an error."},"versioning":{"versions":[{"id":"1.0","change_description":"First stable version."}]},"error_codes":[{"code":"EGE-ER-OS-4001","description":"You do not have sufficient permissions to perform approve/deny action. Contact your admin."},{"code":"EGE-ER-OS-4002","description":"Resource not found, you are trying to access an invalid or non existent resource."},{"code":"EGE-ER-OS-5001","description":"Unable to process your request right now. Please try again later."},{"code":"EGE-ER-OS-5004","description":"There was an error in approving/denying the following items [list of item ids]. Please try again."},{"code":"EGE-ER-OS-5005","description":"Approval is not required for this trip."}],"api_details":{"label":"Approval Workflow API details","subheadings":[{"label":"","description":"The Egencia Approval Workflow API allows the clients to approve or reject a booking. Clients send the unique identifier for the trip, and the workflow action to be performed (either approve or reject). The Approval API  provides users with a simple, standardised, resource-oriented, RESTful interface with JSON-formatted responses that makes it easy to perform the following the approval/rejection actions."}]},"enumerations":{"Approval Status":[{"name":"DRAFT","description":"Approval is in Draft state."},{"name":"INITIATED","description":"Approval has been initiated."},{"name":"APPROVED","description":"Booking has been approved."},{"name":"REJECTED","description":"Approval has been rejected."},{"name":"CANCELLED","description":"Approval has been cancelled."}]},"http_verbs":[{"label":"HTTP Codes","description":"We are using appropriate HTTP Codes for each action in Approval Workflow APIs.","values":[{"name":"200","description":"OK"},{"name":"400","description":"Bad Request"},{"name":"401","description":"Unauthorized"},{"name":"403","description":"Forbidden"},{"name":"404","description":"Not Found"},{"name":"500","description":"Internal Server Error"}]}],"documentation_link":"https://apis.egencia.com/openconnect/docs/api-docs/ApprovalWorkflowAPI"}