1
Settings -> Apps and sales channels
2
Allow Legacy Custom App development (if needed)
3
Create a legacy custom app: Discounts Generator
4
API Credentials -> Configure Admin API Scopes:
read_products
read_discounts
write_discounts
read_price_rules
write_price_rules
Click Save
5
API credentials -> Install app -> Reveal token once
6
Copy the token and paste it above