A Discount Code can be added only if no [DirectDiscount](ctp:api:type:DirectDiscount) has been applied to the Order.
The maximum number of Discount Codes in a Cart is restricted by a [limit](/../api/limits#carts).
Specific Error Code: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError)
Adds a DiscountCode to the Order to activate the related Cart Discounts. If the related Cart Discounts are inactive or invalid, or belong to a different Store than the Order, a DiscountCodeNonApplicableError is returned.