price_rule_id
path parameter is the ID of the price rule that the discount code belongs to.discount_code_id
path parameter is the ID of the discount code to delete for the associated price rule.curl --location --request DELETE 'https://demo.myshopify.com//admin/api//price_rules//discount_codes/.json'
null