Shopify MCP Server

create-discount

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" }