Discount information in Carrier Service

The goal is to determine the active discount in checkout to decide if shipping should be free or not.

Shopify provides the Carrier Service with very limited information. We’re missing calculated totals and discount information.

We’ve attempted to abuse the Abandoned checkouts endpoint to obtain the checkout when Carrier Service data is requested. By defenition an Abondoned checkout is a checkout with shipping information but without a payment. This should succeed because Carrier Service data is requested right after the customer provided shipping information. However, this workaround fails because there is an undocumented delay in the availability of abandoned checkouts.

We’re also not able to add custom code to the checkout process.

Is there another workaround to obtain the discount information?