Microsoft Dynamics · Capability

Microsoft Dynamics 365 Finance & Operations Data API — Purchase Orders

Microsoft Dynamics 365 Finance & Operations Data API — Purchase Orders. 2 operations. Lead operation: Microsoft Dynamics List purchase order headers. Self-contained Naftiko capability covering one Microsoft Dynamics business surface.

Run with Naftiko Microsoft DynamicsPurchase Orders

What You Can Do

GET
Listpurchaseorderheaders — Microsoft Dynamics List purchase order headers
/v1/purchaseorderheaders
POST
Createpurchaseorderheader — Microsoft Dynamics Create a purchase order header
/v1/purchaseorderheaders

MCP Tools

microsoft-dynamics-list-purchase-order

Microsoft Dynamics List purchase order headers

read-only idempotent
microsoft-dynamics-create-purchase-order

Microsoft Dynamics Create a purchase order header

Capability Spec

finance-operations-purchase-orders.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Dynamics 365 Finance & Operations Data API — Purchase Orders
  description: 'Microsoft Dynamics 365 Finance & Operations Data API — Purchase Orders. 2 operations. Lead operation: Microsoft
    Dynamics List purchase order headers. Self-contained Naftiko capability covering one Microsoft Dynamics business surface.'
  tags:
  - Microsoft Dynamics
  - Purchase Orders
  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: finance-operations-purchase-orders
    baseUri: https://{environment}.operations.dynamics.com/data
    description: Microsoft Dynamics 365 Finance & Operations Data API — Purchase Orders business capability. Self-contained,
      no shared references.
    resources:
    - name: PurchaseOrderHeaders
      path: /PurchaseOrderHeaders
      operations:
      - name: listpurchaseorderheaders
        method: GET
        description: Microsoft Dynamics List purchase order headers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createpurchaseorderheader
        method: POST
        description: Microsoft Dynamics Create a purchase order header
        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: finance-operations-purchase-orders-rest
    port: 8080
    description: REST adapter for Microsoft Dynamics 365 Finance & Operations Data API — Purchase Orders. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/purchaseorderheaders
      name: purchaseorderheaders
      description: REST surface for PurchaseOrderHeaders.
      operations:
      - method: GET
        name: listpurchaseorderheaders
        description: Microsoft Dynamics List purchase order headers
        call: finance-operations-purchase-orders.listpurchaseorderheaders
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createpurchaseorderheader
        description: Microsoft Dynamics Create a purchase order header
        call: finance-operations-purchase-orders.createpurchaseorderheader
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: finance-operations-purchase-orders-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Dynamics 365 Finance & Operations Data API — Purchase Orders. One tool per consumed
      operation, routed inline through this capability's consumes block.
    tools:
    - name: microsoft-dynamics-list-purchase-order
      description: Microsoft Dynamics List purchase order headers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: finance-operations-purchase-orders.listpurchaseorderheaders
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-dynamics-create-purchase-order
      description: Microsoft Dynamics Create a purchase order header
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: finance-operations-purchase-orders.createpurchaseorderheader
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.