naftiko: 1.0.0-alpha2 info: label: Dynamics 365 Business Central API v2.0 — Customers description: 'Dynamics 365 Business Central API v2.0 — Customers. 5 operations. Lead operation: List Customers. Self-contained Naftiko capability covering one Navision business surface.' tags: - Navision - Customers created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: NAVISION_API_KEY: NAVISION_API_KEY capability: consumes: - type: http namespace: business-central-api-v2-customers baseUri: https://api.businesscentral.dynamics.com/v2.0/{environment}/api/v2.0 description: Dynamics 365 Business Central API v2.0 — Customers business capability. Self-contained, no shared references. resources: - name: companies({company_id})-customers path: /companies({company_id})/customers operations: - name: listcustomers method: GET description: List Customers outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createcustomer method: POST description: Create a Customer outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: companies({company_id})-customers({customer_id}) path: /companies({company_id})/customers({customer_id}) operations: - name: getcustomer method: GET description: Get a Customer outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecustomer method: PATCH description: Update a Customer outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletecustomer method: DELETE description: Delete a Customer outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.NAVISION_API_KEY}}' exposes: - type: rest namespace: business-central-api-v2-customers-rest port: 8080 description: REST adapter for Dynamics 365 Business Central API v2.0 — Customers. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/companies-company-id/customers name: companies-company-id-customers description: REST surface for companies({company_id})-customers. operations: - method: GET name: listcustomers description: List Customers call: business-central-api-v2-customers.listcustomers outputParameters: - type: object mapping: $. - method: POST name: createcustomer description: Create a Customer call: business-central-api-v2-customers.createcustomer with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/companies-company-id/customers-customer-id name: companies-company-id-customers-customer-id description: REST surface for companies({company_id})-customers({customer_id}). operations: - method: GET name: getcustomer description: Get a Customer call: business-central-api-v2-customers.getcustomer outputParameters: - type: object mapping: $. - method: PATCH name: updatecustomer description: Update a Customer call: business-central-api-v2-customers.updatecustomer with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecustomer description: Delete a Customer call: business-central-api-v2-customers.deletecustomer outputParameters: - type: object mapping: $. - type: mcp namespace: business-central-api-v2-customers-mcp port: 9090 transport: http description: MCP adapter for Dynamics 365 Business Central API v2.0 — Customers. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-customers description: List Customers hints: readOnly: true destructive: false idempotent: true call: business-central-api-v2-customers.listcustomers outputParameters: - type: object mapping: $. - name: create-customer description: Create a Customer hints: readOnly: false destructive: false idempotent: false call: business-central-api-v2-customers.createcustomer with: body: tools.body outputParameters: - type: object mapping: $. - name: get-customer description: Get a Customer hints: readOnly: true destructive: false idempotent: true call: business-central-api-v2-customers.getcustomer outputParameters: - type: object mapping: $. - name: update-customer description: Update a Customer hints: readOnly: false destructive: false idempotent: true call: business-central-api-v2-customers.updatecustomer with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-customer description: Delete a Customer hints: readOnly: false destructive: true idempotent: true call: business-central-api-v2-customers.deletecustomer outputParameters: - type: object mapping: $.