naftiko: 1.0.0-alpha2 info: label: Apideck Accounting API — Purchase Orders description: 'Apideck Accounting API — Purchase Orders. 5 operations. Lead operation: Apideck List Purchase Orders. Self-contained Naftiko capability covering one Apideck business surface.' tags: - Apideck - Purchase Orders created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: APIDECK_API_KEY: APIDECK_API_KEY capability: consumes: - type: http namespace: accounting-purchase-orders baseUri: https://unify.apideck.com description: Apideck Accounting API — Purchase Orders business capability. Self-contained, no shared references. resources: - name: accounting-purchase-orders path: /accounting/purchase-orders operations: - name: purchaseordersall method: GET description: Apideck List Purchase Orders outputRawFormat: json outputParameters: - name: result type: object value: $. - name: purchaseordersadd method: POST description: Apideck Create Purchase Order outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: accounting-purchase-orders-id path: /accounting/purchase-orders/{id} operations: - name: purchaseordersone method: GET description: Apideck Get Purchase Order outputRawFormat: json outputParameters: - name: result type: object value: $. - name: purchaseordersupdate method: PATCH description: Apideck Update Purchase Order outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: purchaseordersdelete method: DELETE description: Apideck Delete Purchase Order outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: Authorization value: '{{env.APIDECK_API_KEY}}' placement: header exposes: - type: rest namespace: accounting-purchase-orders-rest port: 8080 description: REST adapter for Apideck Accounting API — Purchase Orders. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accounting/purchase-orders name: accounting-purchase-orders description: REST surface for accounting-purchase-orders. operations: - method: GET name: purchaseordersall description: Apideck List Purchase Orders call: accounting-purchase-orders.purchaseordersall outputParameters: - type: object mapping: $. - method: POST name: purchaseordersadd description: Apideck Create Purchase Order call: accounting-purchase-orders.purchaseordersadd with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/accounting/purchase-orders/{id} name: accounting-purchase-orders-id description: REST surface for accounting-purchase-orders-id. operations: - method: GET name: purchaseordersone description: Apideck Get Purchase Order call: accounting-purchase-orders.purchaseordersone outputParameters: - type: object mapping: $. - method: PATCH name: purchaseordersupdate description: Apideck Update Purchase Order call: accounting-purchase-orders.purchaseordersupdate with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: purchaseordersdelete description: Apideck Delete Purchase Order call: accounting-purchase-orders.purchaseordersdelete outputParameters: - type: object mapping: $. - type: mcp namespace: accounting-purchase-orders-mcp port: 9090 transport: http description: MCP adapter for Apideck Accounting API — Purchase Orders. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: apideck-list-purchase-orders description: Apideck List Purchase Orders hints: readOnly: true destructive: false idempotent: true call: accounting-purchase-orders.purchaseordersall outputParameters: - type: object mapping: $. - name: apideck-create-purchase-order description: Apideck Create Purchase Order hints: readOnly: false destructive: false idempotent: false call: accounting-purchase-orders.purchaseordersadd with: body: tools.body outputParameters: - type: object mapping: $. - name: apideck-get-purchase-order description: Apideck Get Purchase Order hints: readOnly: true destructive: false idempotent: true call: accounting-purchase-orders.purchaseordersone outputParameters: - type: object mapping: $. - name: apideck-update-purchase-order description: Apideck Update Purchase Order hints: readOnly: false destructive: false idempotent: true call: accounting-purchase-orders.purchaseordersupdate with: body: tools.body outputParameters: - type: object mapping: $. - name: apideck-delete-purchase-order description: Apideck Delete Purchase Order hints: readOnly: false destructive: true idempotent: true call: accounting-purchase-orders.purchaseordersdelete outputParameters: - type: object mapping: $.