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

ID: bemvhpy885