Happy Business Starts Here

[REST] Add filter possibilities to product catalog call in REST API

I'm using the product catalog call to return the entire catalog of products to show all available prodcuts in an application.

However I'd only need the products currently active (see "Effective Start" and "Effective End").

For subscriptions there is an option in the call to filter for active subscriptions (using ?charge-detail=current-segment).

 

I suggest implementing a similar option for the product catalog, e.g.:

?currently-active=true

which should only return products where the "Effective Start" date is after and the "Effective End" date is before the current date.