SAP · Capability

SAP Business One Service Layer API — Invoices

SAP Business One Service Layer API — Invoices. 2 operations. Lead operation: Sap List Ar Invoices. Self-contained Naftiko capability covering one Sap business surface.

Run with Naftiko SapInvoices

What You Can Do

GET
Listinvoices — Sap List Ar Invoices
/v1/invoices
POST
Createinvoice — Sap Create an Ar Invoice
/v1/invoices

MCP Tools

sap-list-ar-invoices

Sap List Ar Invoices

read-only idempotent
sap-create-ar-invoice

Sap Create an Ar Invoice

Capability Spec

business-one-service-layer-invoices.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SAP Business One Service Layer API — Invoices
  description: 'SAP Business One Service Layer API — Invoices. 2 operations. Lead operation: Sap List Ar Invoices. Self-contained
    Naftiko capability covering one Sap business surface.'
  tags:
  - Sap
  - Invoices
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SAP_API_KEY: SAP_API_KEY
capability:
  consumes:
  - type: http
    namespace: business-one-service-layer-invoices
    baseUri: https://{server}:50000/b1s/v1
    description: SAP Business One Service Layer API — Invoices business capability. Self-contained, no shared references.
    resources:
    - name: Invoices
      path: /Invoices
      operations:
      - name: listinvoices
        method: GET
        description: Sap List Ar Invoices
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createinvoice
        method: POST
        description: Sap Create an Ar Invoice
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: B1SESSION
      value: '{{env.SAP_API_KEY}}'
      placement: cookie
  exposes:
  - type: rest
    namespace: business-one-service-layer-invoices-rest
    port: 8080
    description: REST adapter for SAP Business One Service Layer API — Invoices. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/invoices
      name: invoices
      description: REST surface for Invoices.
      operations:
      - method: GET
        name: listinvoices
        description: Sap List Ar Invoices
        call: business-one-service-layer-invoices.listinvoices
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createinvoice
        description: Sap Create an Ar Invoice
        call: business-one-service-layer-invoices.createinvoice
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: business-one-service-layer-invoices-mcp
    port: 9090
    transport: http
    description: MCP adapter for SAP Business One Service Layer API — Invoices. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: sap-list-ar-invoices
      description: Sap List Ar Invoices
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: business-one-service-layer-invoices.listinvoices
      outputParameters:
      - type: object
        mapping: $.
    - name: sap-create-ar-invoice
      description: Sap Create an Ar Invoice
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: business-one-service-layer-invoices.createinvoice
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.