Microsoft Dynamics · Capability

Microsoft Dynamics 365 Business Central API — Sales Invoices

Microsoft Dynamics 365 Business Central API — Sales Invoices. 2 operations. Lead operation: Microsoft Dynamics List sales invoices. Self-contained Naftiko capability covering one Microsoft Dynamics business surface.

Run with Naftiko Microsoft DynamicsSales Invoices

What You Can Do

GET
Listsalesinvoices — Microsoft Dynamics List sales invoices
/v1/companies-companyid/salesinvoices
POST
Createsalesinvoice — Microsoft Dynamics Create a sales invoice
/v1/companies-companyid/salesinvoices

MCP Tools

microsoft-dynamics-list-sales-invoices

Microsoft Dynamics List sales invoices

read-only idempotent
microsoft-dynamics-create-sales-invoice

Microsoft Dynamics Create a sales invoice

Capability Spec

business-central-sales-invoices.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Dynamics 365 Business Central API — Sales Invoices
  description: 'Microsoft Dynamics 365 Business Central API — Sales Invoices. 2 operations. Lead operation: Microsoft Dynamics
    List sales invoices. Self-contained Naftiko capability covering one Microsoft Dynamics business surface.'
  tags:
  - Microsoft Dynamics
  - Sales Invoices
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_DYNAMICS_API_KEY: MICROSOFT_DYNAMICS_API_KEY
capability:
  consumes:
  - type: http
    namespace: business-central-sales-invoices
    baseUri: https://api.businesscentral.dynamics.com/v2.0/{tenantId}/{environment}/api/v2.0
    description: Microsoft Dynamics 365 Business Central API — Sales Invoices business capability. Self-contained, no shared
      references.
    resources:
    - name: companies({companyId})-salesInvoices
      path: /companies({companyId})/salesInvoices
      operations:
      - name: listsalesinvoices
        method: GET
        description: Microsoft Dynamics List sales invoices
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createsalesinvoice
        method: POST
        description: Microsoft Dynamics Create a sales invoice
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_DYNAMICS_API_KEY}}'
  exposes:
  - type: rest
    namespace: business-central-sales-invoices-rest
    port: 8080
    description: REST adapter for Microsoft Dynamics 365 Business Central API — Sales Invoices. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/companies-companyid/salesinvoices
      name: companies-companyid-salesinvoices
      description: REST surface for companies({companyId})-salesInvoices.
      operations:
      - method: GET
        name: listsalesinvoices
        description: Microsoft Dynamics List sales invoices
        call: business-central-sales-invoices.listsalesinvoices
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createsalesinvoice
        description: Microsoft Dynamics Create a sales invoice
        call: business-central-sales-invoices.createsalesinvoice
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: business-central-sales-invoices-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Dynamics 365 Business Central API — Sales Invoices. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: microsoft-dynamics-list-sales-invoices
      description: Microsoft Dynamics List sales invoices
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: business-central-sales-invoices.listsalesinvoices
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-dynamics-create-sales-invoice
      description: Microsoft Dynamics Create a sales invoice
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: business-central-sales-invoices.createsalesinvoice
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.