To create a discount:
Concepts
Discounts
Tasks
Applying Discounts on Contract Lines
Reference
Discount Fields