Our app (Wholesale Pricing Discount) uses the “Draft Order” API to apply discounts. The “Draft Order” API doesn’t have the ability to accept discount codes. Please see a recent conversation in Shopify Forum on the Draft Orders API and this issue. This is why we have to build our own where we calculate the extra discount through our system before the checkout and create the draft order accordingly.