naftiko: 1.0.0-alpha2 info: label: Endpoints — subpackage_treasury description: 'Endpoints — subpackage_treasury. 2 operations. Lead operation: Create Vendor Bill. Self-contained Naftiko capability covering one Deel business surface.' tags: - Deel - subpackage_treasury created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DEEL_API_KEY: DEEL_API_KEY capability: consumes: - type: http namespace: platform-endpoints-subpackage-treasury baseUri: https://api.letsdeel.com/rest/v2 description: Endpoints — subpackage_treasury business capability. Self-contained, no shared references. resources: - name: accounts-payable-vendor-bills path: /accounts-payable/vendor-bills operations: - name: createvendorbillv20260101 method: POST description: Create Vendor Bill outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: '## Authentication' required: true - name: body in: body type: object description: Request body (JSON). required: false - name: accounts-payable-vendor-bills-vendor_bill_id-attachments path: /accounts-payable/vendor-bills/{vendor_bill_id}/attachments operations: - name: uploadvendorbillattachment method: POST description: Upload Vendor Bill Attachment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: vendor_bill_id in: path type: string description: Vendor bill id to attach the file to required: true - name: Authorization in: header type: string description: '## Authentication' required: true - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.DEEL_API_KEY}}' exposes: - type: rest namespace: platform-endpoints-subpackage-treasury-rest port: 8080 description: REST adapter for Endpoints — subpackage_treasury. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accounts-payable/vendor-bills name: accounts-payable-vendor-bills description: REST surface for accounts-payable-vendor-bills. operations: - method: POST name: createvendorbillv20260101 description: Create Vendor Bill call: platform-endpoints-subpackage-treasury.createvendorbillv20260101 with: Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - path: /v1/accounts-payable/vendor-bills/{vendor-bill-id}/attachments name: accounts-payable-vendor-bills-vendor-bill-id-attachments description: REST surface for accounts-payable-vendor-bills-vendor_bill_id-attachments. operations: - method: POST name: uploadvendorbillattachment description: Upload Vendor Bill Attachment call: platform-endpoints-subpackage-treasury.uploadvendorbillattachment with: vendor_bill_id: rest.vendor_bill_id Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: platform-endpoints-subpackage-treasury-mcp port: 9090 transport: http description: MCP adapter for Endpoints — subpackage_treasury. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-vendor-bill description: Create Vendor Bill hints: readOnly: false destructive: false idempotent: false call: platform-endpoints-subpackage-treasury.createvendorbillv20260101 with: Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: upload-vendor-bill-attachment description: Upload Vendor Bill Attachment hints: readOnly: false destructive: false idempotent: false call: platform-endpoints-subpackage-treasury.uploadvendorbillattachment with: vendor_bill_id: tools.vendor_bill_id Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $.