SAP Ariba · Capability

SAP Ariba Procurement API — Receipts

SAP Ariba Procurement API — Receipts. 2 operations. Lead operation: List Receipts for a Purchase Order. Self-contained Naftiko capability covering one Sap Ariba business surface.

Run with Naftiko Sap AribaReceipts

What You Can Do

GET
Listreceipts — List Receipts for a Purchase Order
/v1/orders/{orderid}/receipts
POST
Createreceipt — Create a Receipt
/v1/orders/{orderid}/receipts

MCP Tools

list-receipts-purchase-order

List Receipts for a Purchase Order

read-only idempotent
create-receipt

Create a Receipt

Capability Spec

procurement-receipts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SAP Ariba Procurement API — Receipts
  description: 'SAP Ariba Procurement API — Receipts. 2 operations. Lead operation: List Receipts for a Purchase Order. Self-contained
    Naftiko capability covering one Sap Ariba business surface.'
  tags:
  - Sap Ariba
  - Receipts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SAP_ARIBA_API_KEY: SAP_ARIBA_API_KEY
capability:
  consumes:
  - type: http
    namespace: procurement-receipts
    baseUri: https://openapi.ariba.com/api/procurement/v1
    description: SAP Ariba Procurement API — Receipts business capability. Self-contained, no shared references.
    resources:
    - name: orders-orderId-receipts
      path: /orders/{orderId}/receipts
      operations:
      - name: listreceipts
        method: GET
        description: List Receipts for a Purchase Order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createreceipt
        method: POST
        description: Create a Receipt
        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.SAP_ARIBA_API_KEY}}'
  exposes:
  - type: rest
    namespace: procurement-receipts-rest
    port: 8080
    description: REST adapter for SAP Ariba Procurement API — Receipts. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/orders/{orderid}/receipts
      name: orders-orderid-receipts
      description: REST surface for orders-orderId-receipts.
      operations:
      - method: GET
        name: listreceipts
        description: List Receipts for a Purchase Order
        call: procurement-receipts.listreceipts
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createreceipt
        description: Create a Receipt
        call: procurement-receipts.createreceipt
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: procurement-receipts-mcp
    port: 9090
    transport: http
    description: MCP adapter for SAP Ariba Procurement API — Receipts. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-receipts-purchase-order
      description: List Receipts for a Purchase Order
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: procurement-receipts.listreceipts
      outputParameters:
      - type: object
        mapping: $.
    - name: create-receipt
      description: Create a Receipt
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: procurement-receipts.createreceipt
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.