Sign in

Update discount code

documented

Update a discount code.

PUT /admin/api/2026-01/price_rules/{price_rule_id}/discount_codes/{discount_code_id}.jsonDiscountsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl \"https://{{$store_domain}}.myshopify.com/admin/api/2026-01/price_rules/{{$price_rule_id}}/discount_codes/{{$discount_code_id}}.json\" \
  -X PUT \
  -H \"X-Shopify-Access-Token: {{OAUTH2_ACCESS_TOKEN}}\" \
  -H \"Content-Type: application/json\" \
  -H \"Accept: application/json\" \
  -d '{\"discount_code\":{\"id\":{{$discount_code_id}},\"code\":\"{{$discount_code_code}}\"}}'
Update discount code · Shopify · OpenIntegrations