Mailchimp · Capability
Mailchimp Marketing API — Carts
Mailchimp Marketing API — Carts. 10 operations. Lead operation: Mailchimp List Carts. Self-contained Naftiko capability covering one Mailchimp business surface.
What You Can Do
GET
Getecommercestoresidcarts
— Mailchimp List Carts
/v1/ecommerce/stores/{store-id}/carts
POST
Postecommercestoresidcarts
— Mailchimp Add Cart
/v1/ecommerce/stores/{store-id}/carts
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
Getecommercestoresidcartsidlines
— Mailchimp List Cart Line Items
/v1/ecommerce/stores/{store-id}/carts/{cart-id}/lines
POST
Postecommercestoresidcartsidlines
— Mailchimp Add Cart Line Item
/v1/ecommerce/stores/{store-id}/carts/{cart-id}/lines
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}
MCP Tools
mailchimp-list-carts
Mailchimp List Carts
read-only
idempotent
mailchimp-add-cart
Mailchimp Add Cart
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-list-cart-line-items
Mailchimp List Cart Line Items
read-only
idempotent
mailchimp-add-cart-line-item
Mailchimp Add Cart Line Item
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
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Mailchimp Marketing API — Carts
description: 'Mailchimp Marketing API — Carts. 10 operations. Lead operation: Mailchimp List Carts. Self-contained Naftiko
capability covering one Mailchimp business surface.'
tags:
- Mailchimp
- Carts
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
MAILCHIMP_API_KEY: MAILCHIMP_API_KEY
capability:
consumes:
- type: http
namespace: marketing-carts
baseUri: https://server.api.mailchimp.com/3.0
description: Mailchimp Marketing API — Carts business capability. Self-contained, no shared references.
resources:
- name: ecommerce-stores-store_id-carts
path: /ecommerce/stores/{store_id}/carts
operations:
- name: getecommercestoresidcarts
method: GET
description: Mailchimp List Carts
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: store_id
in: path
type: string
description: The store id.
required: true
- name: postecommercestoresidcarts
method: POST
description: Mailchimp Add Cart
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: 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
path: /ecommerce/stores/{store_id}/carts/{cart_id}/lines
operations:
- name: getecommercestoresidcartsidlines
method: GET
description: Mailchimp List Cart Line Items
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: 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: postecommercestoresidcartsidlines
method: POST
description: Mailchimp Add 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: body
in: body
type: object
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
exposes:
- type: rest
namespace: marketing-carts-rest
port: 8080
description: REST adapter for Mailchimp Marketing API — Carts. One Spectral-compliant resource per consumed operation,
prefixed with /v1.
resources:
- path: /v1/ecommerce/stores/{store-id}/carts
name: ecommerce-stores-store-id-carts
description: REST surface for ecommerce-stores-store_id-carts.
operations:
- method: GET
name: getecommercestoresidcarts
description: Mailchimp List Carts
call: marketing-carts.getecommercestoresidcarts
with:
fields: rest.fields
exclude_fields: rest.exclude_fields
count: rest.count
offset: rest.offset
store_id: rest.store_id
outputParameters:
- type: object
mapping: $.
- method: POST
name: postecommercestoresidcarts
description: Mailchimp Add Cart
call: marketing-carts.postecommercestoresidcarts
with:
store_id: rest.store_id
body: rest.body
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-carts.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-carts.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-carts.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
name: ecommerce-stores-store-id-carts-cart-id-lines
description: REST surface for ecommerce-stores-store_id-carts-cart_id-lines.
operations:
- method: GET
name: getecommercestoresidcartsidlines
description: Mailchimp List Cart Line Items
call: marketing-carts.getecommercestoresidcartsidlines
with:
fields: rest.fields
exclude_fields: rest.exclude_fields
count: rest.count
offset: rest.offset
store_id: rest.store_id
cart_id: rest.cart_id
outputParameters:
- type: object
mapping: $.
- method: POST
name: postecommercestoresidcartsidlines
description: Mailchimp Add Cart Line Item
call: marketing-carts.postecommercestoresidcartsidlines
with:
store_id: rest.store_id
cart_id: rest.cart_id
body: rest.body
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-carts.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-carts.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-carts.deleteecommercestoresidcartslinesid
with:
store_id: rest.store_id
cart_id: rest.cart_id
line_id: rest.line_id
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: marketing-carts-mcp
port: 9090
transport: http
description: MCP adapter for Mailchimp Marketing API — Carts. One tool per consumed operation, routed inline through
this capability's consumes block.
tools:
- name: mailchimp-list-carts
description: Mailchimp List Carts
hints:
readOnly: true
destructive: false
idempotent: true
call: marketing-carts.getecommercestoresidcarts
with:
fields: tools.fields
exclude_fields: tools.exclude_fields
count: tools.count
offset: tools.offset
store_id: tools.store_id
outputParameters:
- type: object
mapping: $.
- name: mailchimp-add-cart
description: Mailchimp Add Cart
hints:
readOnly: false
destructive: false
idempotent: false
call: marketing-carts.postecommercestoresidcarts
with:
store_id: tools.store_id
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: mailchimp-get-cart-info
description: Mailchimp Get Cart Info
hints:
readOnly: true
destructive: false
idempotent: true
call: marketing-carts.getecommercestoresidcartsid
with:
fields: tools.fields
exclude_fields: tools.exclude_fields
store_id: tools.store_id
cart_id: tools.cart_id
outputParameters:
- type: object
mapping: $.
- name: mailchimp-update-cart
description: Mailchimp Update Cart
hints:
readOnly: false
destructive: false
idempotent: true
call: marketing-carts.patchecommercestoresidcartsid
with:
store_id: tools.store_id
cart_id: tools.cart_id
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: mailchimp-delete-cart
description: Mailchimp Delete Cart
hints:
readOnly: false
destructive: true
idempotent: true
call: marketing-carts.deleteecommercestoresidcartsid
with:
store_id: tools.store_id
cart_id: tools.cart_id
outputParameters:
- type: object
mapping: $.
- name: mailchimp-list-cart-line-items
description: Mailchimp List Cart Line Items
hints:
readOnly: true
destructive: false
idempotent: true
call: marketing-carts.getecommercestoresidcartsidlines
with:
fields: tools.fields
exclude_fields: tools.exclude_fields
count: tools.count
offset: tools.offset
store_id: tools.store_id
cart_id: tools.cart_id
outputParameters:
- type: object
mapping: $.
- name: mailchimp-add-cart-line-item
description: Mailchimp Add Cart Line Item
hints:
readOnly: false
destructive: false
idempotent: false
call: marketing-carts.postecommercestoresidcartsidlines
with:
store_id: tools.store_id
cart_id: tools.cart_id
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: mailchimp-get-cart-line-item
description: Mailchimp Get Cart Line Item
hints:
readOnly: true
destructive: false
idempotent: true
call: marketing-carts.getecommercestoresidcartsidlinesid
with:
fields: tools.fields
exclude_fields: tools.exclude_fields
store_id: tools.store_id
cart_id: tools.cart_id
line_id: tools.line_id
outputParameters:
- type: object
mapping: $.
- name: mailchimp-update-cart-line-item
description: Mailchimp Update Cart Line Item
hints:
readOnly: false
destructive: false
idempotent: true
call: marketing-carts.patchecommercestoresidcartsidlinesid
with:
store_id: tools.store_id
cart_id: tools.cart_id
line_id: tools.line_id
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: mailchimp-delete-cart-line-item
description: Mailchimp Delete Cart Line Item
hints:
readOnly: false
destructive: true
idempotent: true
call: marketing-carts.deleteecommercestoresidcartslinesid
with:
store_id: tools.store_id
cart_id: tools.cart_id
line_id: tools.line_id
outputParameters:
- type: object
mapping: $.