The Customer Account API now includes a discounts connection on customer subscription contracts, mirroring functionality that already exists in the Admin API.
This is a companion discussion topic for the original entry at https://shopify.dev/changelog/subscription-discounts-are-now-available-in-the-customer-api