Snipcart · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Snipcart REST Discounts API

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

What the actions change

x-apievangelist-phrasing

Targets 6

$.info
$.paths['/discounts'].get
$.paths['/discounts'].post
$.paths['/discounts/{id}'].get
$.paths['/discounts/{id}'].put
$.paths['/discounts/{id}'].delete

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 Snipcart REST Discounts API
  version: 1.0.0
extends: openapi/snipcart-discounts-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-20'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 5
- target: $.paths['/discounts'].get
  update:
    x-apievangelist-phrasing:
      intent: List all store discounts
      effect: read
      questions:
      - What discount codes are set up on my store?
      - Can I see every discount we offer?
      instructions:
      - text: List all discounts.
      - text: Show every discount code in my store.
      method: generated
      generated: '2026-11-20'
- target: $.paths['/discounts'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a discount
      effect: write
      questions:
      - How do I add a percentage discount for my customers?
      - Can I cap how many times a discount can be used?
      instructions:
      - text: Create a {type} discount named {name}.
        slots:
          type: requestBody.type
          name: requestBody.name
      - text: Add a {type} discount {name} with code {code} and a cap of {maxNumberOfUsages} uses.
        slots:
          type: requestBody.type
          name: requestBody.name
          code: requestBody.code
          maxNumberOfUsages: requestBody.maxNumberOfUsages
      method: generated
      generated: '2026-11-20'
- target: $.paths['/discounts/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a discount
      effect: read
      questions:
      - What amount or rate does a particular discount apply?
      - When does a specific discount expire?
      instructions:
      - text: Get discount {id}.
        slots:
          id: path.id
      - text: Show the details of discount {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-20'
- target: $.paths['/discounts/{id}'].put
  update:
    x-apievangelist-phrasing:
      intent: Update a discount
      effect: write
      questions:
      - Can I change the amount of an existing discount?
      - Is it possible to extend a discount's expiry date?
      instructions:
      - text: Update discount {id} to {rate} percent.
        slots:
          id: path.id
          rate: requestBody.rate
      - text: Set the expiration of discount {id} to {expirationDate}.
        slots:
          id: path.id
          expirationDate: requestBody.expirationDate
      method: generated
      generated: '2026-11-20'
- target: $.paths['/discounts/{id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a discount
      effect: destructive
      questions:
      - Can I remove a discount that was already used in a completed order?
      - What happens to orders when a discount is deleted?
      instructions:
      - text: Delete discount {id}.
        slots:
          id: path.id
      - text: Remove the discount {id} from my store.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-20'

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/snipcart-discounts-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.