New Features in the Customer Account API
The Customer Account API now includes a discounts connection on customer subscription contracts, enhancing its functionality to align with the Admin API. This update provides merchants with greater flexibility in displaying subscription discounts directly in customer storefronts.
What’s New?
- Query subscription discount details directly through the Customer Account API.
- Access discount types, values, and line-item allocations via the new discounts field in the
SubscriptionContractquery. - No alterations have been made to existing Admin API functionality.
How to Use This Feature
You can now retrieve detailed subscription discount information directly from the Customer Account API. By using the discounts field on subscription contracts, you can access:
- Discount amounts and percentage rates applied to subscriptions.
- The specific subscription line items affected by the discounts.
- Allocation details showing how discounts are distributed across items.
This improvement enables merchants to build richer subscription management experiences. Customers can now see precisely how discounts influence their subscription pricing, improving transparency and user satisfaction.