Mailchimp · Capability

Mailchimp Marketing API — Ecommerce

Mailchimp Marketing API — Ecommerce. 29 operations. Lead operation: Mailchimp Get Store Info. Self-contained Naftiko capability covering one Mailchimp business surface.

Run with Naftiko MailchimpEcommerce

What You Can Do

GET
Getecommercestoresid — Mailchimp Get Store Info
/v1/ecommerce/stores/{store-id}
PATCH
Patchecommercestoresid — Mailchimp Update Store
/v1/ecommerce/stores/{store-id}
DELETE
Deleteecommercestoresid — Mailchimp Delete Store
/v1/ecommerce/stores/{store-id}
GET
Getecommercestoresidcartsid — Mailchimp Get Cart Info
/v1/ecommerce/stores/{store-id}/carts/{cart-id}
PATCH
Patchecommercestoresidcartsid — Mailchimp Update Cart
/v1/ecommerce/stores/{store-id}/carts/{cart-id}
DELETE
Deleteecommercestoresidcartsid — Mailchimp Delete Cart
/v1/ecommerce/stores/{store-id}/carts/{cart-id}
GET
Getecommercestoresidcartsidlinesid — Mailchimp Get Cart Line Item
/v1/ecommerce/stores/{store-id}/carts/{cart-id}/lines/{line-id}
PATCH
Patchecommercestoresidcartsidlinesid — Mailchimp Update Cart Line Item
/v1/ecommerce/stores/{store-id}/carts/{cart-id}/lines/{line-id}
DELETE
Deleteecommercestoresidcartslinesid — Mailchimp Delete Cart Line Item
/v1/ecommerce/stores/{store-id}/carts/{cart-id}/lines/{line-id}
GET
Getecommercestoresidcustomersid — Mailchimp Get Customer Info
/v1/ecommerce/stores/{store-id}/customers/{customer-id}
PUT
Putecommercestoresidcustomersid — Mailchimp Add or Update Customer
/v1/ecommerce/stores/{store-id}/customers/{customer-id}
PATCH
Patchecommercestoresidcustomersid — Mailchimp Update Customer
/v1/ecommerce/stores/{store-id}/customers/{customer-id}
DELETE
Deleteecommercestoresidcustomersid — Mailchimp Delete Customer
/v1/ecommerce/stores/{store-id}/customers/{customer-id}
GET
Getecommercestoresidordersidlinesid — Mailchimp Get Order Line Item
/v1/ecommerce/stores/{store-id}/orders/{order-id}/lines/{line-id}
PATCH
Patchecommercestoresidordersidlinesid — Mailchimp Update Order Line Item
/v1/ecommerce/stores/{store-id}/orders/{order-id}/lines/{line-id}
DELETE
Deleteecommercestoresidordersidlinesid — Mailchimp Delete Order Line Item
/v1/ecommerce/stores/{store-id}/orders/{order-id}/lines/{line-id}
GET
Getecommercestoresidproductsidimagesid — Mailchimp Get Product Image Info
/v1/ecommerce/stores/{store-id}/products/{product-id}/images/{image-id}
PATCH
Patchecommercestoresidproductsidimagesid — Mailchimp Update Product Image
/v1/ecommerce/stores/{store-id}/products/{product-id}/images/{image-id}
DELETE
Deleteecommercestoresidproductsidimagesid — Mailchimp Delete Product Image
/v1/ecommerce/stores/{store-id}/products/{product-id}/images/{image-id}
GET
Getecommercestoresidproductsidvariantsid — Mailchimp Get Product Variant Info
/v1/ecommerce/stores/{store-id}/products/{product-id}/variants/{variant-id}
PUT
Putecommercestoresidproductsidvariantsid — Mailchimp Add or Update Product Variant
/v1/ecommerce/stores/{store-id}/products/{product-id}/variants/{variant-id}
PATCH
Patchecommercestoresidproductsidvariantsid — Mailchimp Update Product Variant
/v1/ecommerce/stores/{store-id}/products/{product-id}/variants/{variant-id}
DELETE
Deleteecommercestoresidproductsidvariantsid — Mailchimp Delete Product Variant
/v1/ecommerce/stores/{store-id}/products/{product-id}/variants/{variant-id}
GET
Getecommercestoresidpromorulesid — Mailchimp Get Promo Rule
/v1/ecommerce/stores/{store-id}/promo-rules/{promo-rule-id}
PATCH
Patchecommercestoresidpromorulesid — Mailchimp Update Promo Rule
/v1/ecommerce/stores/{store-id}/promo-rules/{promo-rule-id}
DELETE
Deleteecommercestoresidpromorulesid — Mailchimp Delete Promo Rule
/v1/ecommerce/stores/{store-id}/promo-rules/{promo-rule-id}
GET
Getecommercestoresidpromocodes — Mailchimp List Promo Codes
/v1/ecommerce/stores/{store-id}/promo-rules/{promo-rule-id}/promo-codes
POST
Postecommercestoresidpromocodes — Mailchimp Add Promo Code
/v1/ecommerce/stores/{store-id}/promo-rules/{promo-rule-id}/promo-codes
GET
Getreportsidecommerceproductactivity — Mailchimp List Campaign Product Activity
/v1/reports/{campaign-id}/ecommerce-product-activity

MCP Tools

mailchimp-get-store-info

Mailchimp Get Store Info

read-only idempotent
mailchimp-update-store

Mailchimp Update Store

idempotent
mailchimp-delete-store

Mailchimp Delete Store

idempotent
mailchimp-get-cart-info

Mailchimp Get Cart Info

read-only idempotent
mailchimp-update-cart

Mailchimp Update Cart

idempotent
mailchimp-delete-cart

Mailchimp Delete Cart

idempotent
mailchimp-get-cart-line-item

Mailchimp Get Cart Line Item

read-only idempotent
mailchimp-update-cart-line-item

Mailchimp Update Cart Line Item

idempotent
mailchimp-delete-cart-line-item

Mailchimp Delete Cart Line Item

idempotent
mailchimp-get-customer-info

Mailchimp Get Customer Info

read-only idempotent
mailchimp-add-update-customer

Mailchimp Add or Update Customer

idempotent
mailchimp-update-customer

Mailchimp Update Customer

idempotent
mailchimp-delete-customer

Mailchimp Delete Customer

idempotent
mailchimp-get-order-line-item

Mailchimp Get Order Line Item

read-only idempotent
mailchimp-update-order-line-item

Mailchimp Update Order Line Item

idempotent
mailchimp-delete-order-line-item

Mailchimp Delete Order Line Item

idempotent
mailchimp-get-product-image-info

Mailchimp Get Product Image Info

read-only idempotent
mailchimp-update-product-image

Mailchimp Update Product Image

idempotent
mailchimp-delete-product-image

Mailchimp Delete Product Image

idempotent
mailchimp-get-product-variant-info

Mailchimp Get Product Variant Info

read-only idempotent
mailchimp-add-update-product-variant

Mailchimp Add or Update Product Variant

idempotent
mailchimp-update-product-variant

Mailchimp Update Product Variant

idempotent
mailchimp-delete-product-variant

Mailchimp Delete Product Variant

idempotent
mailchimp-get-promo-rule

Mailchimp Get Promo Rule

read-only idempotent
mailchimp-update-promo-rule

Mailchimp Update Promo Rule

idempotent
mailchimp-delete-promo-rule

Mailchimp Delete Promo Rule

idempotent
mailchimp-list-promo-codes

Mailchimp List Promo Codes

read-only idempotent
mailchimp-add-promo-code

Mailchimp Add Promo Code

mailchimp-list-campaign-product-activity

Mailchimp List Campaign Product Activity

read-only idempotent

Capability Spec

marketing-ecommerce.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Mailchimp Marketing API  — Ecommerce
  description: 'Mailchimp Marketing API  — Ecommerce. 29 operations. Lead operation: Mailchimp Get Store Info. Self-contained
    Naftiko capability covering one Mailchimp business surface.'
  tags:
  - Mailchimp
  - Ecommerce
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MAILCHIMP_API_KEY: MAILCHIMP_API_KEY
capability:
  consumes:
  - type: http
    namespace: marketing-ecommerce
    baseUri: https://server.api.mailchimp.com/3.0
    description: Mailchimp Marketing API  — Ecommerce business capability. Self-contained, no shared references.
    resources:
    - name: ecommerce-stores-store_id
      path: /ecommerce/stores/{store_id}
      operations:
      - name: getecommercestoresid
        method: GET
        description: Mailchimp Get Store Info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
      - name: patchecommercestoresid
        method: PATCH
        description: Mailchimp Update Store
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deleteecommercestoresid
        method: DELETE
        description: Mailchimp Delete Store
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
    - name: ecommerce-stores-store_id-carts-cart_id
      path: /ecommerce/stores/{store_id}/carts/{cart_id}
      operations:
      - name: getecommercestoresidcartsid
        method: GET
        description: Mailchimp Get Cart Info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: cart_id
          in: path
          type: string
          description: The id for the cart.
          required: true
      - name: patchecommercestoresidcartsid
        method: PATCH
        description: Mailchimp Update Cart
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: cart_id
          in: path
          type: string
          description: The id for the cart.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deleteecommercestoresidcartsid
        method: DELETE
        description: Mailchimp Delete Cart
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: cart_id
          in: path
          type: string
          description: The id for the cart.
          required: true
    - name: ecommerce-stores-store_id-carts-cart_id-lines-line_id
      path: /ecommerce/stores/{store_id}/carts/{cart_id}/lines/{line_id}
      operations:
      - name: getecommercestoresidcartsidlinesid
        method: GET
        description: Mailchimp Get Cart Line Item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: cart_id
          in: path
          type: string
          description: The id for the cart.
          required: true
        - name: line_id
          in: path
          type: string
          description: The id for the line item of a cart.
          required: true
      - name: patchecommercestoresidcartsidlinesid
        method: PATCH
        description: Mailchimp Update Cart Line Item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: cart_id
          in: path
          type: string
          description: The id for the cart.
          required: true
        - name: line_id
          in: path
          type: string
          description: The id for the line item of a cart.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deleteecommercestoresidcartslinesid
        method: DELETE
        description: Mailchimp Delete Cart Line Item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: cart_id
          in: path
          type: string
          description: The id for the cart.
          required: true
        - name: line_id
          in: path
          type: string
          description: The id for the line item of a cart.
          required: true
    - name: ecommerce-stores-store_id-customers-customer_id
      path: /ecommerce/stores/{store_id}/customers/{customer_id}
      operations:
      - name: getecommercestoresidcustomersid
        method: GET
        description: Mailchimp Get Customer Info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: customer_id
          in: path
          type: string
          description: The id for the customer of a store.
          required: true
      - name: putecommercestoresidcustomersid
        method: PUT
        description: Mailchimp Add or Update Customer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: customer_id
          in: path
          type: string
          description: The id for the customer of a store.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: patchecommercestoresidcustomersid
        method: PATCH
        description: Mailchimp Update Customer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: customer_id
          in: path
          type: string
          description: The id for the customer of a store.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deleteecommercestoresidcustomersid
        method: DELETE
        description: Mailchimp Delete Customer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: customer_id
          in: path
          type: string
          description: The id for the customer of a store.
          required: true
    - name: ecommerce-stores-store_id-orders-order_id-lines-line_id
      path: /ecommerce/stores/{store_id}/orders/{order_id}/lines/{line_id}
      operations:
      - name: getecommercestoresidordersidlinesid
        method: GET
        description: Mailchimp Get Order Line Item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: order_id
          in: path
          type: string
          description: The id for the order in a store.
          required: true
        - name: line_id
          in: path
          type: string
          description: The id for the line item of an order.
          required: true
      - name: patchecommercestoresidordersidlinesid
        method: PATCH
        description: Mailchimp Update Order Line Item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: order_id
          in: path
          type: string
          description: The id for the order in a store.
          required: true
        - name: line_id
          in: path
          type: string
          description: The id for the line item of an order.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deleteecommercestoresidordersidlinesid
        method: DELETE
        description: Mailchimp Delete Order Line Item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: order_id
          in: path
          type: string
          description: The id for the order in a store.
          required: true
        - name: line_id
          in: path
          type: string
          description: The id for the line item of an order.
          required: true
    - name: ecommerce-stores-store_id-products-product_id-images-image_id
      path: /ecommerce/stores/{store_id}/products/{product_id}/images/{image_id}
      operations:
      - name: getecommercestoresidproductsidimagesid
        method: GET
        description: Mailchimp Get Product Image Info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: product_id
          in: path
          type: string
          description: The id for the product of a store.
          required: true
        - name: image_id
          in: path
          type: string
          description: The id for the product image.
          required: true
      - name: patchecommercestoresidproductsidimagesid
        method: PATCH
        description: Mailchimp Update Product Image
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: product_id
          in: path
          type: string
          description: The id for the product of a store.
          required: true
        - name: image_id
          in: path
          type: string
          description: The id for the product image.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deleteecommercestoresidproductsidimagesid
        method: DELETE
        description: Mailchimp Delete Product Image
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: product_id
          in: path
          type: string
          description: The id for the product of a store.
          required: true
        - name: image_id
          in: path
          type: string
          description: The id for the product image.
          required: true
    - name: ecommerce-stores-store_id-products-product_id-variants-variant_id
      path: /ecommerce/stores/{store_id}/products/{product_id}/variants/{variant_id}
      operations:
      - name: getecommercestoresidproductsidvariantsid
        method: GET
        description: Mailchimp Get Product Variant Info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: product_id
          in: path
          type: string
          description: The id for the product of a store.
          required: true
        - name: variant_id
          in: path
          type: string
          description: The id for the product variant.
          required: true
      - name: putecommercestoresidproductsidvariantsid
        method: PUT
        description: Mailchimp Add or Update Product Variant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: product_id
          in: path
          type: string
          description: The id for the product of a store.
          required: true
        - name: variant_id
          in: path
          type: string
          description: The id for the product variant.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: patchecommercestoresidproductsidvariantsid
        method: PATCH
        description: Mailchimp Update Product Variant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: product_id
          in: path
          type: string
          description: The id for the product of a store.
          required: true
        - name: variant_id
          in: path
          type: string
          description: The id for the product variant.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deleteecommercestoresidproductsidvariantsid
        method: DELETE
        description: Mailchimp Delete Product Variant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: product_id
          in: path
          type: string
          description: The id for the product of a store.
          required: true
        - name: variant_id
          in: path
          type: string
          description: The id for the product variant.
          required: true
    - name: ecommerce-stores-store_id-promo-rules-promo_rule_id
      path: /ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}
      operations:
      - name: getecommercestoresidpromorulesid
        method: GET
        description: Mailchimp Get Promo Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: promo_rule_id
          in: path
          type: string
          description: The id for the promo rule of a store.
          required: true
      - name: patchecommercestoresidpromorulesid
        method: PATCH
        description: Mailchimp Update Promo Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: promo_rule_id
          in: path
          type: string
          description: The id for the promo rule of a store.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deleteecommercestoresidpromorulesid
        method: DELETE
        description: Mailchimp Delete Promo Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: promo_rule_id
          in: path
          type: string
          description: The id for the promo rule of a store.
          required: true
    - name: ecommerce-stores-store_id-promo-rules-promo_rule_id-promo-codes
      path: /ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}/promo-codes
      operations:
      - name: getecommercestoresidpromocodes
        method: GET
        description: Mailchimp List Promo Codes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: count
          in: query
          type: integer
          description: The number of records to return. Default value is 10. Maximum value is 1000
        - name: offset
          in: query
          type: integer
          description: Used for [pagination](https://mailchimp.com/developer/marketing/docs/methods-parameters/#pagination),
            this it the number of records from a collection to skip. D
        - name: promo_rule_id
          in: path
          type: string
          description: The id for the promo rule of a store.
          required: true
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
      - name: postecommercestoresidpromocodes
        method: POST
        description: Mailchimp Add Promo Code
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: promo_rule_id
          in: path
          type: string
          description: The id for the promo rule of a store.
          required: true
        - name: body
          in: body
          type: object
          required: true
    - name: reports-campaign_id-ecommerce-product-activity
      path: /reports/{campaign_id}/ecommerce-product-activity
      operations:
      - name: getreportsidecommerceproductactivity
        method: GET
        description: Mailchimp List Campaign Product Activity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: count
          in: query
          type: integer
          description: The number of records to return. Default value is 10. Maximum value is 1000
        - name: offset
          in: query
          type: integer
          description: Used for [pagination](https://mailchimp.com/developer/marketing/docs/methods-parameters/#pagination),
            this it the number of records from a collection to skip. D
        - name: campaign_id
          in: path
          type: string
          description: The unique id for the campaign.
          required: true
        - name: sort_field
          in: query
          type: string
          description: Returns files sorted by the specified field.
  exposes:
  - type: rest
    namespace: marketing-ecommerce-rest
    port: 8080
    description: REST adapter for Mailchimp Marketing API  — Ecommerce. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/ecommerce/stores/{store-id}
      name: ecommerce-stores-store-id
      description: REST surface for ecommerce-stores-store_id.
      operations:
      - method: GET
        name: getecommercestoresid
        description: Mailchimp Get Store Info
        call: marketing-ecommerce.getecommercestoresid
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          store_id: rest.store_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchecommercestoresid
        description: Mailchimp Update Store
        call: marketing-ecommerce.patchecommercestoresid
        with:
          store_id: rest.store_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteecommercestoresid
        description: Mailchimp Delete Store
        call: marketing-ecommerce.deleteecommercestoresid
        with:
          store_id: rest.store_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ecommerce/stores/{store-id}/carts/{cart-id}
      name: ecommerce-stores-store-id-carts-cart-id
      description: REST surface for ecommerce-stores-store_id-carts-cart_id.
      operations:
      - method: GET
        name: getecommercestoresidcartsid
        description: Mailchimp Get Cart Info
        call: marketing-ecommerce.getecommercestoresidcartsid
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          store_id: rest.store_id
          cart_id: rest.cart_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchecommercestoresidcartsid
        description: Mailchimp Update Cart
        call: marketing-ecommerce.patchecommercestoresidcartsid
        with:
          store_id: rest.store_id
          cart_id: rest.cart_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteecommercestoresidcartsid
        description: Mailchimp Delete Cart
        call: marketing-ecommerce.deleteecommercestoresidcartsid
        with:
          store_id: rest.store_id
          cart_id: rest.cart_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ecommerce/stores/{store-id}/carts/{cart-id}/lines/{line-id}
      name: ecommerce-stores-store-id-carts-cart-id-lines-line-id
      description: REST surface for ecommerce-stores-store_id-carts-cart_id-lines-line_id.
      operations:
      - method: GET
        name: getecommercestoresidcartsidlinesid
        description: Mailchimp Get Cart Line Item
        call: marketing-ecommerce.getecommercestoresidcartsidlinesid
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          store_id: rest.store_id
          cart_id: rest.cart_id
          line_id: rest.line_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchecommercestoresidcartsidlinesid
        description: Mailchimp Update Cart Line Item
        call: marketing-ecommerce.patchecommercestoresidcartsidlinesid
        with:
          store_id: rest.store_id
          cart_id: rest.cart_id
          line_id: rest.line_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteecommercestoresidcartslinesid
        description: Mailchimp Delete Cart Line Item
        call: marketing-ecommerce.deleteecommercestoresidcartslinesid
        with:
          store_id: rest.store_id
          cart_id: rest.cart_id
          line_id: rest.line_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ecommerce/stores/{store-id}/customers/{customer-id}
      name: ecommerce-stores-store-id-customers-customer-id
      description: REST surface for ecommerce-stores-store_id-customers-customer_id.
      operations:
      - method: GET
        name: getecommercestoresidcustomersid
        description: Mailchimp Get Customer Info
        call: marketing-ecommerce.getecommercestoresidcustomersid
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          store_id: rest.store_id
          customer_id: rest.customer_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: putecommercestoresidcustomersid
        description: Mailchimp Add or Update Customer
        call: marketing-ecommerce.putecommercestoresidcustomersid
        with:
          store_id: rest.store_id
          customer_id: rest.customer_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchecommercestoresidcustomersid
        description: Mailchimp Update Customer
        call: marketing-ecommerce.patchecommercestoresidcustomersid
        with:
          store_id: rest.store_id
          customer_id: rest.customer_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteecommercestoresidcustomersid
        description: Mailchimp Delete Customer
        call: marketing-ecommerce.deleteecommercestoresidcustomersid
        with:
          store_id: rest.store_id
          customer_id: rest.customer_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ecommerce/stores/{store-id}/orders/{order-id}/lines/{line-id}
      name: ecommerce-stores-store-id-orders-order-id-lines-line-id
      description: REST surface for ecommerce-stores-store_id-orders-order_id-lines-line_id.
      operations:
      - method: GET
        name: getecommercestoresidordersidlinesid
        description: Mailchimp Get Order Line Item
        call: marketing-ecommerce.getecommercestoresidordersidlinesid
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          store_id: rest.store_id
          order_id: rest.order_id
          line_id: rest.line_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchecommercestoresidordersidlinesid
        description: Mailchimp Update Order Line Item
        call: marketing-ecommerce.patchecommercestoresidordersidlinesid
        with:
          store_id: rest.store_id
          order_id: rest.order_id
          line_id: rest.line_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteecommercestoresidordersidlinesid
        description: Mailchimp Delete Order Line Item
        call: marketing-ecommerce.deleteecommercestoresidordersidlinesid
        with:
          store_id: rest.store_id
          order_id: rest.order_id
          line_id: rest.line_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ecommerce/stores/{store-id}/products/{product-id}/images/{image-id}
      name: ecommerce-stores-store-id-products-product-id-images-image-id
      description: REST surface for ecommerce-stores-store_id-products-product_id-images-image_i

# --- truncated at 32 KB (51 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/mailchimp/refs/heads/main/capabilities/marketing-ecommerce.yaml