naftiko: 1.0.0-alpha2 info: label: SAP Concur Expense Report API — Workflows description: 'SAP Concur Expense Report API — Workflows. 5 operations. Lead operation: Sap Concur Approve an Expense Report. Self-contained Naftiko capability covering one Sap Concur business surface.' tags: - Sap Concur - Workflows created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SAP_CONCUR_API_KEY: SAP_CONCUR_API_KEY capability: consumes: - type: http namespace: expense-workflows baseUri: https://us.api.concursolutions.com description: SAP Concur Expense Report API — Workflows business capability. Self-contained, no shared references. resources: - name: expensereports-v4-users-userID-context-contextType-reports-reportId-approve path: /expensereports/v4/users/{userID}/context/{contextType}/reports/{reportId}/approve operations: - name: approvereport method: PATCH description: Sap Concur Approve an Expense Report outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: contextType in: path type: string description: Must be MANAGER for approval actions required: true - name: body in: body type: object description: Request body (JSON). required: false - name: expensereports-v4-users-userID-context-contextType-reports-reportId-recall path: /expensereports/v4/users/{userID}/context/{contextType}/reports/{reportId}/recall operations: - name: recallreport method: PATCH description: Sap Concur Recall a Submitted Expense Report outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: expensereports-v4-users-userID-context-contextType-reports-reportId-sendBack path: /expensereports/v4/users/{userID}/context/{contextType}/reports/{reportId}/sendBack operations: - name: sendbackreport method: PATCH description: Sap Concur Send Back an Expense Report to the Submitter outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: contextType in: path type: string description: Must be MANAGER for send-back actions required: true - name: body in: body type: object description: Request body (JSON). required: true - name: expensereports-v4-users-userId-reports-reportId-costObjectsForApprover path: /expensereports/v4/users/{userId}/reports/{reportId}/costObjectsForApprover operations: - name: getcostobjectsforapprover method: GET description: Sap Concur Retrieve Cost Objects for an Approver outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: userId in: path type: string description: The unique identifier of the approving manager required: true - name: expensereports-v4-users-userId-reports-reportId-submit path: /expensereports/v4/users/{userId}/reports/{reportId}/submit operations: - name: submitreport method: PATCH description: Sap Concur Submit an Expense Report for Approval outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: userId in: path type: string description: The unique identifier of the report owner required: true authentication: type: bearer token: '{{env.SAP_CONCUR_API_KEY}}' exposes: - type: rest namespace: expense-workflows-rest port: 8080 description: REST adapter for SAP Concur Expense Report API — Workflows. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/expensereports/v4/users/{userid}/context/{contexttype}/reports/{reportid}/approve name: expensereports-v4-users-userid-context-contexttype-reports-reportid-approve description: REST surface for expensereports-v4-users-userID-context-contextType-reports-reportId-approve. operations: - method: PATCH name: approvereport description: Sap Concur Approve an Expense Report call: expense-workflows.approvereport with: contextType: rest.contextType body: rest.body outputParameters: - type: object mapping: $. - path: /v1/expensereports/v4/users/{userid}/context/{contexttype}/reports/{reportid}/recall name: expensereports-v4-users-userid-context-contexttype-reports-reportid-recall description: REST surface for expensereports-v4-users-userID-context-contextType-reports-reportId-recall. operations: - method: PATCH name: recallreport description: Sap Concur Recall a Submitted Expense Report call: expense-workflows.recallreport with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/expensereports/v4/users/{userid}/context/{contexttype}/reports/{reportid}/sendback name: expensereports-v4-users-userid-context-contexttype-reports-reportid-sendback description: REST surface for expensereports-v4-users-userID-context-contextType-reports-reportId-sendBack. operations: - method: PATCH name: sendbackreport description: Sap Concur Send Back an Expense Report to the Submitter call: expense-workflows.sendbackreport with: contextType: rest.contextType body: rest.body outputParameters: - type: object mapping: $. - path: /v1/expensereports/v4/users/{userid}/reports/{reportid}/costobjectsforapprover name: expensereports-v4-users-userid-reports-reportid-costobjectsforapprover description: REST surface for expensereports-v4-users-userId-reports-reportId-costObjectsForApprover. operations: - method: GET name: getcostobjectsforapprover description: Sap Concur Retrieve Cost Objects for an Approver call: expense-workflows.getcostobjectsforapprover with: userId: rest.userId outputParameters: - type: object mapping: $. - path: /v1/expensereports/v4/users/{userid}/reports/{reportid}/submit name: expensereports-v4-users-userid-reports-reportid-submit description: REST surface for expensereports-v4-users-userId-reports-reportId-submit. operations: - method: PATCH name: submitreport description: Sap Concur Submit an Expense Report for Approval call: expense-workflows.submitreport with: userId: rest.userId outputParameters: - type: object mapping: $. - type: mcp namespace: expense-workflows-mcp port: 9090 transport: http description: MCP adapter for SAP Concur Expense Report API — Workflows. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: sap-concur-approve-expense-report description: Sap Concur Approve an Expense Report hints: readOnly: false destructive: false idempotent: true call: expense-workflows.approvereport with: contextType: tools.contextType body: tools.body outputParameters: - type: object mapping: $. - name: sap-concur-recall-submitted-expense description: Sap Concur Recall a Submitted Expense Report hints: readOnly: false destructive: false idempotent: true call: expense-workflows.recallreport with: body: tools.body outputParameters: - type: object mapping: $. - name: sap-concur-send-back-expense description: Sap Concur Send Back an Expense Report to the Submitter hints: readOnly: false destructive: false idempotent: true call: expense-workflows.sendbackreport with: contextType: tools.contextType body: tools.body outputParameters: - type: object mapping: $. - name: sap-concur-retrieve-cost-objects description: Sap Concur Retrieve Cost Objects for an Approver hints: readOnly: true destructive: false idempotent: true call: expense-workflows.getcostobjectsforapprover with: userId: tools.userId outputParameters: - type: object mapping: $. - name: sap-concur-submit-expense-report description: Sap Concur Submit an Expense Report for Approval hints: readOnly: false destructive: false idempotent: true call: expense-workflows.submitreport with: userId: tools.userId outputParameters: - type: object mapping: $.