propose_write

Create a basic Shopify discount code. `kind` percentage (value 10 = 10%) or fixed_amount (value in store currency). Opti

Create a basic Shopify discount code. kind percentage (value 10 = 10%) or fixed_amount (value in store currency). Optionally lock to one customer_gid and cap usage. Approval/auto-apply gated.

post/api/v1/tools/shopify_create_discount_code

Request

  • Base URL: https://app.magistry.io
  • URL: https://app.magistry.io/api/v1/tools/shopify_create_discount_code
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://app.magistry.io/api/oauth/authorize, token URL https://app.magistry.io/api/oauth/token, scopes: promotions:write)

Request body

codestring required
kind'percentage' | 'fixed_amount' required
valuenumber required

10 = 10% (percentage) or 10 currency units (fixed_amount).

titlestring
customer_gidstring

gid://shopify/Customer/123 to restrict to one customer.

usage_limitinteger

Default 1 (single-use).

minimum_subtotalnumber

Optional minimum order subtotal.

Response

Tool result

okboolean required
resultunknown required

Changes

No recorded changes to this operation across all 2 revisions of this API.