Medusa · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Medusa Admin Promotions API

12 actions 12 updates phrasing extends openapi/medusa-promotions-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Medusa's API. It is a proposal applied on top of the contract, not a document Medusa publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 12

$.info
$.paths['/admin/promotions'].get
$.paths['/admin/promotions'].post
$.paths['/admin/promotions/rule-attribute-options/{rule_type}'].get
$.paths['/admin/promotions/rule-value-options/{rule_type}/{rule_attribute_id}'].get
$.paths['/admin/promotions/{id}'].get
$.paths['/admin/promotions/{id}'].post
$.paths['/admin/promotions/{id}'].delete
$.paths['/admin/promotions/{id}/buy-rules/batch'].post
$.paths['/admin/promotions/{id}/rules/batch'].post
$.paths['/admin/promotions/{id}/target-rules/batch'].post
$.paths['/admin/promotions/{id}/{rule_type}'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Medusa Admin Promotions API
  version: 1.0.0
extends: openapi/medusa-promotions-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-26'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 11
- target: $.paths['/admin/promotions'].get
  update:
    x-apievangelist-phrasing:
      intent: List promotions
      effect: read
      questions:
      - Which promotions are set up in my store?
      - Can I find a promotion by its code?
      instructions:
      - text: List all promotions.
      - text: Find the promotion with code {code}.
        slots:
          code: query.code
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/promotions'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a promotion
      effect: write
      questions:
      - How do I create a new promotion for a campaign?
      - Can a promotion be applied automatically?
      instructions:
      - text: Create a {type} promotion {code} under campaign {campaign_id} with application method {application_method}.
        slots:
          type: requestBody.type
          code: requestBody.code
          campaign_id: requestBody.campaign_id
          application_method: requestBody.application_method
      - text: Add automatic promotion {code} of type {type} to campaign {campaign_id}, method {application_method}.
        slots:
          code: requestBody.code
          type: requestBody.type
          campaign_id: requestBody.campaign_id
          application_method: requestBody.application_method
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/promotions/rule-attribute-options/{rule_type}'].get
  update:
    x-apievangelist-phrasing:
      intent: List rule attributes for a promotion type
      effect: read
      questions:
      - What attributes can I use to set up a promotion's rules?
      - Which attributes are available for a buyget promotion?
      instructions:
      - text: List rule attributes for {rule_type} of promotion type {promotion_type}.
        slots:
          rule_type: path.rule_type
          promotion_type: query.promotion_type
      - text: Show {rule_type} attributes for application method {application_method_type}.
        slots:
          rule_type: path.rule_type
          application_method_type: query.application_method_type
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/promotions/rule-value-options/{rule_type}/{rule_attribute_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: List rule values for an attribute
      effect: read
      questions:
      - What values can a promotion rule attribute take?
      - Can I see the currency options for a promotion rule?
      instructions:
      - text: List values for {rule_type} attribute {rule_attribute_id}.
        slots:
          rule_type: path.rule_type
          rule_attribute_id: path.rule_attribute_id
      - text: Show {rule_type} rule values for attribute {rule_attribute_id} matching {value}.
        slots:
          rule_type: path.rule_type
          rule_attribute_id: path.rule_attribute_id
          value: query.value
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/promotions/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a promotion
      effect: read
      questions:
      - What are the details of one promotion?
      - Can I look up a promotion by its ID?
      instructions:
      - text: Get promotion {id}.
        slots:
          id: path.id
      - text: Show the details of promotion {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/promotions/{id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Update a promotion
      effect: write
      questions:
      - How do I change a promotion's code or type?
      - Can I switch which campaign a promotion belongs to?
      instructions:
      - text: Update promotion {id} to code {code}, type {type}, campaign {campaign_id}.
        slots:
          id: path.id
          code: requestBody.code
          type: requestBody.type
          campaign_id: requestBody.campaign_id
      - text: Set promotion {id} to application method {application_method}.
        slots:
          id: path.id
          application_method: requestBody.application_method
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/promotions/{id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a promotion
      effect: destructive
      questions:
      - How do I remove a promotion?
      - Can I delete a promotion by its ID?
      instructions:
      - text: Delete promotion {id}.
        slots:
          id: path.id
      - text: Remove promotion {id} from the store.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/promotions/{id}/buy-rules/batch'].post
  update:
    x-apievangelist-phrasing:
      intent: Create, update or delete a promotion's buy rules
      effect: write
      questions:
      - How do I add or change the buy rules of a buyget promotion?
      - Can I delete a buy rule from a promotion?
      instructions:
      - text: Apply buy rules {create} to promotion {id}.
        slots:
          id: path.id
          create: requestBody.create
      - text: Update buy rules {update} on promotion {id}.
        slots:
          id: path.id
          update: requestBody.update
      - text: Delete buy rules {delete} from promotion {id}.
        slots:
          id: path.id
          delete: requestBody.delete
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/promotions/{id}/rules/batch'].post
  update:
    x-apievangelist-phrasing:
      intent: Create, update or delete a promotion's rules
      effect: write
      questions:
      - How do I manage the rules of a standard promotion?
      - Can I add or remove promotion rules in bulk?
      instructions:
      - text: Apply rules {create} to promotion {id}.
        slots:
          id: path.id
          create: requestBody.create
      - text: Update rules {update} on promotion {id}.
        slots:
          id: path.id
          update: requestBody.update
      - text: Delete rules {delete} from promotion {id}.
        slots:
          id: path.id
          delete: requestBody.delete
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/promotions/{id}/target-rules/batch'].post
  update:
    x-apievangelist-phrasing:
      intent: Create, update or delete a promotion's target rules
      effect: write
      questions:
      - How do I manage the target rules of a promotion?
      - Can I change which items a promotion applies to?
      instructions:
      - text: Apply target rules {create} to promotion {id}.
        slots:
          id: path.id
          create: requestBody.create
      - text: Update target rules {update} on promotion {id}.
        slots:
          id: path.id
          update: requestBody.update
      - text: Delete target rules {delete} from promotion {id}.
        slots:
          id: path.id
          delete: requestBody.delete
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/promotions/{id}/{rule_type}'].get
  update:
    x-apievangelist-phrasing:
      intent: List a promotion's rules
      effect: read
      questions:
      - What rules does a promotion have?
      - Can I see only the target rules of a promotion?
      instructions:
      - text: List {rule_type} rules of promotion {id}.
        slots:
          rule_type: path.rule_type
          id: path.id
      - text: Show {rule_type} rules for promotion {id} of type {promotion_type}.
        slots:
          rule_type: path.rule_type
          id: path.id
          promotion_type: query.promotion_type
      method: generated
      generated: '2026-11-26'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/medusa-promotions-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.