Iterable · Capability

Iterable REST API — Commerce

Iterable REST API — Commerce. 2 operations. Lead operation: Track a purchase event. Self-contained Naftiko capability covering one Iterable business surface.

Run with Naftiko IterableCommerce

What You Can Do

POST
Trackpurchase — Track a purchase event
/v1/commerce/trackpurchase
POST
Updatecart — Update a user's shopping cart
/v1/commerce/updatecart

MCP Tools

track-purchase-event

Track a purchase event

update-user-s-shopping-cart

Update a user's shopping cart

Capability Spec

rest-commerce.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Iterable REST API — Commerce
  description: 'Iterable REST API — Commerce. 2 operations. Lead operation: Track a purchase event. Self-contained Naftiko
    capability covering one Iterable business surface.'
  tags:
  - Iterable
  - Commerce
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ITERABLE_API_KEY: ITERABLE_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-commerce
    baseUri: https://api.iterable.com/api
    description: Iterable REST API — Commerce business capability. Self-contained, no shared references.
    resources:
    - name: commerce-trackPurchase
      path: /commerce/trackPurchase
      operations:
      - name: trackpurchase
        method: POST
        description: Track a purchase event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: commerce-updateCart
      path: /commerce/updateCart
      operations:
      - name: updatecart
        method: POST
        description: Update a user's shopping cart
        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: Api-Key
      value: '{{env.ITERABLE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: rest-commerce-rest
    port: 8080
    description: REST adapter for Iterable REST API — Commerce. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/commerce/trackpurchase
      name: commerce-trackpurchase
      description: REST surface for commerce-trackPurchase.
      operations:
      - method: POST
        name: trackpurchase
        description: Track a purchase event
        call: rest-commerce.trackpurchase
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/commerce/updatecart
      name: commerce-updatecart
      description: REST surface for commerce-updateCart.
      operations:
      - method: POST
        name: updatecart
        description: Update a user's shopping cart
        call: rest-commerce.updatecart
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-commerce-mcp
    port: 9090
    transport: http
    description: MCP adapter for Iterable REST API — Commerce. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: track-purchase-event
      description: Track a purchase event
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-commerce.trackpurchase
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-user-s-shopping-cart
      description: Update a user's shopping cart
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-commerce.updatecart
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.