Automatically applied discounts / EDI integration

Topic summary

Issue: A storewide “Back to School” automatic discount applies correctly in Shopify (order and checkout) but the discount data isn’t passing to the EDI integration.

Integration context: EDI partner is TrueCommerce, connected to Microsoft Dynamics 365 (D365). A custom mapping in TrueCommerce rolls all discounts up to the order header (not line level). The TrueCommerce field “Order Discount Code” is not populated for automatic discounts, but is populated when customers use a manual/static discount code at checkout.

Suspected cause: A metadata difference between Shopify automatic discounts and code-based discounts that the current TrueCommerce mapping doesn’t account for, likely requiring an update on the EDI side.

Request: Guidance on the underlying Shopify metadata for automatic vs manual discounts to provide to TrueCommerce to resolve the mapping gap.

Status: Unresolved/ongoing. The poster acknowledges Shopify can’t support all external integrations and believes the fix likely lies with TrueCommerce’s mapping rather than Shopify.

Summarized with AI on December 24. AI used: gpt-5.

Hello,

We have a unique situation that I’m hoping someone will be able to help with. We created a Back to School automatic discount for all items in our store, and while it’s functioning fine on the order and checkout processes, the discount amount is not being sent back to our EDI integration with Shopify. Our EDI partner is TrueCommerce, which is integrated with D365.

We had TrueCommerce create a custom mapping where all discounts roll up at the order header rather than the line level. The field in TC that isn’t being populated is called “Order Discount Code,” however, when orders come in with a static discount code that customers have to manually type in at checkout, that field is populated with the discount.

I realize Shopify can’t support all outside integrations, but I’m hoping someone in here will be able to shed some light on the underlying metadata differences between these two discount types and provide a clue that we can send back to TrueCommerce, as ultimately, this seems like it’s an issue on their side.

Thanks!

Ben