Skip to main content
Glama

Shopify MCP Server

create-discount

Generate a discount code for Shopify stores by defining title, code, value type, value, start date, and single-use settings. Manage promotions effectively with this tool.

Instructions

Create a basic discount code

Input Schema

NameRequiredDescriptionDefault
appliesOncePerCustomerYesWhether discount can be used only once per customer
codeYesDiscount code that customers will enter
endsAtNoOptional end date in ISO format
startsAtYesStart date in ISO format
titleYesTitle of the discount
valueYesDiscount value (percentage as decimal or fixed amount)
valueTypeYesType of discount

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "appliesOncePerCustomer": { "description": "Whether discount can be used only once per customer", "type": "boolean" }, "code": { "description": "Discount code that customers will enter", "type": "string" }, "endsAt": { "description": "Optional end date in ISO format", "type": "string" }, "startsAt": { "description": "Start date in ISO format", "type": "string" }, "title": { "description": "Title of the discount", "type": "string" }, "value": { "description": "Discount value (percentage as decimal or fixed amount)", "type": "number" }, "valueType": { "description": "Type of discount", "enum": [ "percentage", "fixed_amount" ], "type": "string" } }, "required": [ "title", "code", "valueType", "value", "startsAt", "appliesOncePerCustomer" ], "type": "object" }

You must be authenticated.

Other Tools from Shopify MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amir-bengherbi/shopify-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server