naftiko: 1.0.0-alpha2 info: label: Mailchimp Marketing API — Orders description: 'Mailchimp Marketing API — Orders. 11 operations. Lead operation: Mailchimp List Account Orders. Self-contained Naftiko capability covering one Mailchimp business surface.' tags: - Mailchimp - Orders created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MAILCHIMP_API_KEY: MAILCHIMP_API_KEY capability: consumes: - type: http namespace: marketing-orders baseUri: https://server.api.mailchimp.com/3.0 description: Mailchimp Marketing API — Orders business capability. Self-contained, no shared references. resources: - name: ecommerce-orders path: /ecommerce/orders operations: - name: getecommerceorders method: GET description: Mailchimp List Account Orders 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: query type: string description: Restrict results to orders with a specific `campaign_id` value. - name: outreach_id in: query type: string description: Restrict results to orders with a specific `outreach_id` value. - name: customer_id in: query type: string description: Restrict results to orders made by a specific customer. - name: has_outreach in: query type: boolean description: Restrict results to orders that have an outreach attached. For example, an email campaign or Facebook ad. - name: ecommerce-stores-store_id-orders path: /ecommerce/stores/{store_id}/orders operations: - name: getecommercestoresidorders method: GET description: Mailchimp List Orders 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: customer_id in: query type: string description: Restrict results to orders made by a specific customer. - name: has_outreach in: query type: boolean description: Restrict results to orders that have an outreach attached. For example, an email campaign or Facebook ad. - name: campaign_id in: query type: string description: Restrict results to orders with a specific `campaign_id` value. - name: outreach_id in: query type: string description: Restrict results to orders with a specific `outreach_id` value. - name: postecommercestoresidorders method: POST description: Mailchimp Add Order 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-orders-order_id path: /ecommerce/stores/{store_id}/orders/{order_id} operations: - name: getecommercestoresidordersid method: GET description: Mailchimp Get Order 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: order_id in: path type: string description: The id for the order in a store. required: true - name: patchecommercestoresidordersid method: PATCH description: Mailchimp Update Order 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: deleteecommercestoresidordersid method: DELETE description: Mailchimp Delete Order 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: 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-orders-rest port: 8080 description: REST adapter for Mailchimp Marketing API — Orders. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/ecommerce/orders name: ecommerce-orders description: REST surface for ecommerce-orders. operations: - method: GET name: getecommerceorders description: Mailchimp List Account Orders call: marketing-orders.getecommerceorders with: fields: rest.fields exclude_fields: rest.exclude_fields count: rest.count offset: rest.offset campaign_id: rest.campaign_id outreach_id: rest.outreach_id customer_id: rest.customer_id has_outreach: rest.has_outreach outputParameters: - type: object mapping: $. - path: /v1/ecommerce/stores/{store-id}/orders name: ecommerce-stores-store-id-orders description: REST surface for ecommerce-stores-store_id-orders. operations: - method: GET name: getecommercestoresidorders description: Mailchimp List Orders call: marketing-orders.getecommercestoresidorders with: fields: rest.fields exclude_fields: rest.exclude_fields count: rest.count offset: rest.offset store_id: rest.store_id customer_id: rest.customer_id has_outreach: rest.has_outreach campaign_id: rest.campaign_id outreach_id: rest.outreach_id outputParameters: - type: object mapping: $. - method: POST name: postecommercestoresidorders description: Mailchimp Add Order call: marketing-orders.postecommercestoresidorders with: store_id: rest.store_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/ecommerce/stores/{store-id}/orders/{order-id} name: ecommerce-stores-store-id-orders-order-id description: REST surface for ecommerce-stores-store_id-orders-order_id. operations: - method: GET name: getecommercestoresidordersid description: Mailchimp Get Order Info call: marketing-orders.getecommercestoresidordersid with: fields: rest.fields exclude_fields: rest.exclude_fields store_id: rest.store_id order_id: rest.order_id outputParameters: - type: object mapping: $. - method: PATCH name: patchecommercestoresidordersid description: Mailchimp Update Order call: marketing-orders.patchecommercestoresidordersid with: store_id: rest.store_id order_id: rest.order_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteecommercestoresidordersid description: Mailchimp Delete Order call: marketing-orders.deleteecommercestoresidordersid with: store_id: rest.store_id order_id: rest.order_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-orders.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-orders.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-orders.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-orders.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-orders.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-orders-mcp port: 9090 transport: http description: MCP adapter for Mailchimp Marketing API — Orders. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: mailchimp-list-account-orders description: Mailchimp List Account Orders hints: readOnly: true destructive: false idempotent: true call: marketing-orders.getecommerceorders with: fields: tools.fields exclude_fields: tools.exclude_fields count: tools.count offset: tools.offset campaign_id: tools.campaign_id outreach_id: tools.outreach_id customer_id: tools.customer_id has_outreach: tools.has_outreach outputParameters: - type: object mapping: $. - name: mailchimp-list-orders description: Mailchimp List Orders hints: readOnly: true destructive: false idempotent: true call: marketing-orders.getecommercestoresidorders with: fields: tools.fields exclude_fields: tools.exclude_fields count: tools.count offset: tools.offset store_id: tools.store_id customer_id: tools.customer_id has_outreach: tools.has_outreach campaign_id: tools.campaign_id outreach_id: tools.outreach_id outputParameters: - type: object mapping: $. - name: mailchimp-add-order description: Mailchimp Add Order hints: readOnly: false destructive: false idempotent: false call: marketing-orders.postecommercestoresidorders with: store_id: tools.store_id body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-get-order-info description: Mailchimp Get Order Info hints: readOnly: true destructive: false idempotent: true call: marketing-orders.getecommercestoresidordersid with: fields: tools.fields exclude_fields: tools.exclude_fields store_id: tools.store_id order_id: tools.order_id outputParameters: - type: object mapping: $. - name: mailchimp-update-order description: Mailchimp Update Order hints: readOnly: false destructive: false idempotent: true call: marketing-orders.patchecommercestoresidordersid with: store_id: tools.store_id order_id: tools.order_id body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-delete-order description: Mailchimp Delete Order hints: readOnly: false destructive: true idempotent: true call: marketing-orders.deleteecommercestoresidordersid with: store_id: tools.store_id order_id: tools.order_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-orders.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-orders.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-orders.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-orders.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-orders.deleteecommercestoresidordersidlinesid with: store_id: tools.store_id order_id: tools.order_id line_id: tools.line_id outputParameters: - type: object mapping: $.