naftiko: 1.0.0-alpha2 info: label: Mailchimp Marketing API — Promo_code_id description: 'Mailchimp Marketing API — Promo_code_id. 3 operations. Lead operation: Mailchimp Get Promo Code. Self-contained Naftiko capability covering one Mailchimp business surface.' tags: - Mailchimp - Promo_code_id created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MAILCHIMP_API_KEY: MAILCHIMP_API_KEY capability: consumes: - type: http namespace: marketing-promo-code-id baseUri: https://server.api.mailchimp.com/3.0 description: Mailchimp Marketing API — Promo_code_id business capability. Self-contained, no shared references. resources: - name: ecommerce-stores-store_id-promo-rules-promo_rule_id-promo-codes-promo_code_id path: /ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}/promo-codes/{promo_code_id} operations: - name: getecommercestoresidpromocodesid method: GET description: Mailchimp Get Promo Code 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: promo_code_id in: path type: string description: The id for the promo code of a store. required: true - name: patchecommercestoresidpromocodesid method: PATCH description: Mailchimp Update 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: promo_code_id in: path type: string description: The id for the promo code of a store. required: true - name: body in: body type: object required: true - name: deleteecommercestoresidpromocodesid method: DELETE description: Mailchimp Delete 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: promo_code_id in: path type: string description: The id for the promo code of a store. required: true exposes: - type: rest namespace: marketing-promo-code-id-rest port: 8080 description: REST adapter for Mailchimp Marketing API — Promo_code_id. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/ecommerce/stores/{store-id}/promo-rules/{promo-rule-id}/promo-codes/{promo-code-id} name: ecommerce-stores-store-id-promo-rules-promo-rule-id-promo-codes-promo-code-id description: REST surface for ecommerce-stores-store_id-promo-rules-promo_rule_id-promo-codes-promo_code_id. operations: - method: GET name: getecommercestoresidpromocodesid description: Mailchimp Get Promo Code call: marketing-promo-code-id.getecommercestoresidpromocodesid with: fields: rest.fields exclude_fields: rest.exclude_fields store_id: rest.store_id promo_rule_id: rest.promo_rule_id promo_code_id: rest.promo_code_id outputParameters: - type: object mapping: $. - method: PATCH name: patchecommercestoresidpromocodesid description: Mailchimp Update Promo Code call: marketing-promo-code-id.patchecommercestoresidpromocodesid with: store_id: rest.store_id promo_rule_id: rest.promo_rule_id promo_code_id: rest.promo_code_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteecommercestoresidpromocodesid description: Mailchimp Delete Promo Code call: marketing-promo-code-id.deleteecommercestoresidpromocodesid with: store_id: rest.store_id promo_rule_id: rest.promo_rule_id promo_code_id: rest.promo_code_id outputParameters: - type: object mapping: $. - type: mcp namespace: marketing-promo-code-id-mcp port: 9090 transport: http description: MCP adapter for Mailchimp Marketing API — Promo_code_id. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: mailchimp-get-promo-code description: Mailchimp Get Promo Code hints: readOnly: true destructive: false idempotent: true call: marketing-promo-code-id.getecommercestoresidpromocodesid with: fields: tools.fields exclude_fields: tools.exclude_fields store_id: tools.store_id promo_rule_id: tools.promo_rule_id promo_code_id: tools.promo_code_id outputParameters: - type: object mapping: $. - name: mailchimp-update-promo-code description: Mailchimp Update Promo Code hints: readOnly: false destructive: false idempotent: true call: marketing-promo-code-id.patchecommercestoresidpromocodesid with: store_id: tools.store_id promo_rule_id: tools.promo_rule_id promo_code_id: tools.promo_code_id body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-delete-promo-code description: Mailchimp Delete Promo Code hints: readOnly: false destructive: true idempotent: true call: marketing-promo-code-id.deleteecommercestoresidpromocodesid with: store_id: tools.store_id promo_rule_id: tools.promo_rule_id promo_code_id: tools.promo_code_id outputParameters: - type: object mapping: $.