fabric · Capability

fabric Offers — Real-time Pricing Engine

fabric Offers — Real-time Pricing Engine. 3 operations. Lead operation: Calculate Prices for Products by Ids. Self-contained Naftiko capability covering one fabric business surface.

fabric Offers — Real-time Pricing Engine is a Naftiko capability published by fabric, one of 25 capabilities the APIs.io network indexes for this provider. It bundles 3 operations across the POST method rooted at /v1/price-engine/actions.

The capability includes 3 state-changing operations. Lead operation: Calculate Prices for Products by Ids. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Fabric and Real-time Pricing Engine.

Run with Naftiko FabricReal-time Pricing Engine

What You Can Do

POST
Calculate prices for products by ids — Calculate Prices for Products by Ids
/v1/price-engine/actions/evaluate-products-by-id
POST
Calculate prices for products by skus — Calculate Prices for Products by Skus
/v1/price-engine/actions/evaluate-products-by-sku
POST
Evaluate cart promotions — Evaluate Cart Promotions
/v1/price-engine/actions/evaluate-cart

MCP Tools

fabric-calculate-prices-for-products-by-ids

Calculate Prices for Products by Ids

fabric-calculate-prices-for-products-by-skus

Calculate Prices for Products by Skus

fabric-evaluate-cart-promotions

Evaluate Cart Promotions

Capability Spec

offers-pricing-engine.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: fabric Offers — Real-time Pricing Engine
  description: 'fabric Offers — Real-time Pricing Engine. 3 operations. Lead operation: Calculate Prices for Products by Ids. Self-contained Naftiko capability covering one fabric business surface.'
  tags:
  - Fabric
  - Real-time Pricing Engine
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    FABRIC_ACCESS_TOKEN: FABRIC_ACCESS_TOKEN
capability:
  consumes:
  - type: http
    namespace: offers-pricing-engine
    baseUri: https://api.fabric.inc/v3
    description: fabric Offers — Real-time Pricing Engine consumed operations from fabric-offers-pricing-openapi.yml.
    resources:
    - name: price-engine-actions-evaluate-products-by-id
      path: /price-engine/actions/evaluate-products-by-id
      operations:
      - name: calculate-prices-for-products-by-ids
        method: POST
        description: 'Calculate Prices for Products by Ids'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: price-engine-actions-evaluate-products-by-sku
      path: /price-engine/actions/evaluate-products-by-sku
      operations:
      - name: calculate-prices-for-products-by-skus
        method: POST
        description: 'Calculate Prices for Products by Skus'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: price-engine-actions-evaluate-cart
      path: /price-engine/actions/evaluate-cart
      operations:
      - name: evaluate-cart-promotions
        method: POST
        description: 'Evaluate Cart Promotions'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      value: '{{env.FABRIC_ACCESS_TOKEN}}'
      placement: header
  exposes:
  - type: rest
    namespace: offers-pricing-engine-rest
    port: 8080
    description: REST adapter for fabric Offers — Real-time Pricing Engine. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/price-engine/actions/evaluate-products-by-id
      name: price-engine-actions-evaluate-products-by-id
      description: REST surface for price-engine-actions-evaluate-products-by-id.
      operations:
      - method: POST
        name: calculate-prices-for-products-by-ids
        description: 'Calculate Prices for Products by Ids'
        call: offers-pricing-engine.calculate-prices-for-products-by-ids
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/price-engine/actions/evaluate-products-by-sku
      name: price-engine-actions-evaluate-products-by-sku
      description: REST surface for price-engine-actions-evaluate-products-by-sku.
      operations:
      - method: POST
        name: calculate-prices-for-products-by-skus
        description: 'Calculate Prices for Products by Skus'
        call: offers-pricing-engine.calculate-prices-for-products-by-skus
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/price-engine/actions/evaluate-cart
      name: price-engine-actions-evaluate-cart
      description: REST surface for price-engine-actions-evaluate-cart.
      operations:
      - method: POST
        name: evaluate-cart-promotions
        description: 'Evaluate Cart Promotions'
        call: offers-pricing-engine.evaluate-cart-promotions
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: offers-pricing-engine-mcp
    port: 9090
    transport: http
    description: MCP adapter for fabric Offers — Real-time Pricing Engine. One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: fabric-calculate-prices-for-products-by-ids
      description: 'Calculate Prices for Products by Ids'
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: offers-pricing-engine.calculate-prices-for-products-by-ids
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fabric-calculate-prices-for-products-by-skus
      description: 'Calculate Prices for Products by Skus'
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: offers-pricing-engine.calculate-prices-for-products-by-skus
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fabric-evaluate-cart-promotions
      description: 'Evaluate Cart Promotions'
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: offers-pricing-engine.evaluate-cart-promotions
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.