target · Capability

Target API — Inventory

Target API — Inventory. 1 operations. Lead operation: Get Product Fulfillment. Self-contained Naftiko capability covering one Target business surface.

Run with Naftiko TargetInventory

What You Can Do

GET
Getproductfulfillment — Get Product Fulfillment
/v1/products/v3/{tcin}/fulfillment

MCP Tools

get-product-fulfillment

Get Product Fulfillment

read-only idempotent

Capability Spec

target-inventory.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Target API — Inventory
  description: 'Target API — Inventory. 1 operations. Lead operation: Get Product Fulfillment. Self-contained Naftiko capability
    covering one Target business surface.'
  tags:
  - Target
  - Inventory
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TARGET_API_KEY: TARGET_API_KEY
capability:
  consumes:
  - type: http
    namespace: target-inventory
    baseUri: https://api.target.com
    description: Target API — Inventory business capability. Self-contained, no shared references.
    resources:
    - name: products-v3-tcin-fulfillment
      path: /products/v3/{tcin}/fulfillment
      operations:
      - name: getproductfulfillment
        method: GET
        description: Get Product Fulfillment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: tcin
          in: path
          type: string
          description: Target Corporation Item Number
          required: true
        - name: store_id
          in: query
          type: string
          description: Store ID for in-store availability
        - name: zip
          in: query
          type: string
          description: ZIP code for ship-to-home availability
        - name: latitude
          in: query
          type: number
          description: Latitude for nearby store lookup
        - name: longitude
          in: query
          type: number
          description: Longitude for nearby store lookup
    authentication:
      type: bearer
      token: '{{env.TARGET_API_KEY}}'
  exposes:
  - type: rest
    namespace: target-inventory-rest
    port: 8080
    description: REST adapter for Target API — Inventory. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/products/v3/{tcin}/fulfillment
      name: products-v3-tcin-fulfillment
      description: REST surface for products-v3-tcin-fulfillment.
      operations:
      - method: GET
        name: getproductfulfillment
        description: Get Product Fulfillment
        call: target-inventory.getproductfulfillment
        with:
          tcin: rest.tcin
          store_id: rest.store_id
          zip: rest.zip
          latitude: rest.latitude
          longitude: rest.longitude
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: target-inventory-mcp
    port: 9090
    transport: http
    description: MCP adapter for Target API — Inventory. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-product-fulfillment
      description: Get Product Fulfillment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: target-inventory.getproductfulfillment
      with:
        tcin: tools.tcin
        store_id: tools.store_id
        zip: tools.zip
        latitude: tools.latitude
        longitude: tools.longitude
      outputParameters:
      - type: object
        mapping: $.