Skip to content

[FEAT]: Add the plan property in list subscriptions endpoint results #3299

@Thibault2ss

Description

@Thibault2ss

Is your feature request related to a problem? Please describe.
The Subscription entity returned from the "List Subscription" endpoint doesn't include the plan property (defining the plan overrides, if any is defined for this subscription). The only way to get that is to call the "Get Subscription" endpoint, which result does include this plan property.

As a developer, when listing all the subscriptions of a customer, that forces me to do a "List" followed by one or many "Get" (as many as there are subscriptions) in order to get the subscription details along with the potential plan overrides.

The goal is to display the actual price(s) of the subscription(s) that a given customer has (which is potentially custom and "overridden")

Not urgent, but just better dev XP

Describe the solution you'd like
Include the plan property in the results of "List Subscriptions" endpoint, as currently done in "Get Subscription".

Describe alternatives you've considered
As an alternative, we can call "List Subscriptions" followed by multiple "Get Subscription" requests, for each individual subscription.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions