Microsoft Dynamics NAV · Capability

Dynamics 365 Business Central API v2.0 — Vendors

Dynamics 365 Business Central API v2.0 — Vendors. 5 operations. Lead operation: List Vendors. Self-contained Naftiko capability covering one Navision business surface.

Run with Naftiko NavisionVendors

What You Can Do

GET
Listvendors — List Vendors
/v1/companies-company-id/vendors
POST
Createvendor — Create a Vendor
/v1/companies-company-id/vendors
GET
Getvendor — Get a Vendor
/v1/companies-company-id/vendors-vendor-id
PATCH
Updatevendor — Update a Vendor
/v1/companies-company-id/vendors-vendor-id
DELETE
Deletevendor — Delete a Vendor
/v1/companies-company-id/vendors-vendor-id

MCP Tools

list-vendors

List Vendors

read-only idempotent
create-vendor

Create a Vendor

get-vendor

Get a Vendor

read-only idempotent
update-vendor

Update a Vendor

idempotent
delete-vendor

Delete a Vendor

idempotent

Capability Spec

business-central-api-v2-vendors.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Dynamics 365 Business Central API v2.0 — Vendors
  description: 'Dynamics 365 Business Central API v2.0 — Vendors. 5 operations. Lead operation: List Vendors. Self-contained
    Naftiko capability covering one Navision business surface.'
  tags:
  - Navision
  - Vendors
  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-vendors
    baseUri: https://api.businesscentral.dynamics.com/v2.0/{environment}/api/v2.0
    description: Dynamics 365 Business Central API v2.0 — Vendors business capability. Self-contained, no shared references.
    resources:
    - name: companies({company_id})-vendors
      path: /companies({company_id})/vendors
      operations:
      - name: listvendors
        method: GET
        description: List Vendors
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createvendor
        method: POST
        description: Create a Vendor
        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})-vendors({vendor_id})
      path: /companies({company_id})/vendors({vendor_id})
      operations:
      - name: getvendor
        method: GET
        description: Get a Vendor
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatevendor
        method: PATCH
        description: Update a Vendor
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletevendor
        method: DELETE
        description: Delete a Vendor
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.NAVISION_API_KEY}}'
  exposes:
  - type: rest
    namespace: business-central-api-v2-vendors-rest
    port: 8080
    description: REST adapter for Dynamics 365 Business Central API v2.0 — Vendors. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/companies-company-id/vendors
      name: companies-company-id-vendors
      description: REST surface for companies({company_id})-vendors.
      operations:
      - method: GET
        name: listvendors
        description: List Vendors
        call: business-central-api-v2-vendors.listvendors
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createvendor
        description: Create a Vendor
        call: business-central-api-v2-vendors.createvendor
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/companies-company-id/vendors-vendor-id
      name: companies-company-id-vendors-vendor-id
      description: REST surface for companies({company_id})-vendors({vendor_id}).
      operations:
      - method: GET
        name: getvendor
        description: Get a Vendor
        call: business-central-api-v2-vendors.getvendor
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatevendor
        description: Update a Vendor
        call: business-central-api-v2-vendors.updatevendor
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletevendor
        description: Delete a Vendor
        call: business-central-api-v2-vendors.deletevendor
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: business-central-api-v2-vendors-mcp
    port: 9090
    transport: http
    description: MCP adapter for Dynamics 365 Business Central API v2.0 — Vendors. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: list-vendors
      description: List Vendors
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: business-central-api-v2-vendors.listvendors
      outputParameters:
      - type: object
        mapping: $.
    - name: create-vendor
      description: Create a Vendor
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: business-central-api-v2-vendors.createvendor
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-vendor
      description: Get a Vendor
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: business-central-api-v2-vendors.getvendor
      outputParameters:
      - type: object
        mapping: $.
    - name: update-vendor
      description: Update a Vendor
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: business-central-api-v2-vendors.updatevendor
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-vendor
      description: Delete a Vendor
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: business-central-api-v2-vendors.deletevendor
      outputParameters:
      - type: object
        mapping: $.