Is there a way to get the code applied to the order?

Based on Order Discounts API, I’m looking to leverage the Shopify Order Discounts API to retrieve the discount code applied to an order and subsequently compare specific parameters within Shopify. Could you offer guidance or assistance on effectively utilizing this API within the Shopify platform?