Discount API - Associated discount codes must be included in the enteredDiscountCodesAccept operation

Hi guys, i am trying to use the new Discount API
What i am expecting: use a Code discount (manual) that will give 20% OFF + Free Shipping.Here is my logic in general:

I have one file genearte_cart_run with an operation orderDiscountAdd and is listening to candidates associatedDiscountCode: {code: "CODEHERE"}

My other file is generate_delivery_run
with an operation deliveryDiscountsAdd
candidates associatedDiscountCode: {code: "CODEHERE"}

Till here all good and no compilation errors. However, when running a test, the first operation orderDiscountAdd is running good, but my deliveryDiscountsAdd is giving me an error in the log file:

Associated discount codes must be included in the enteredDiscountCodesAccept operation