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