All Release Notes

Smaller product payloads projected on locales

12 March 2020
Composable Commerce
HTTP API
Enhancement
CartsProduct catalogSearchProject configuration

When querying Product Projections the response payload contains all existing translations of localized fields. To remove unneeded translations and reduce the payload you can now use one of two new query parameters: storeProjection and localeProjection. In both cases the returned projections only contain values in the specified locales.

When using Stores, you can add languages to a given store and use storeProjection to fetch the list of locales automatically from that store. Another benefit of this approach is that line items of carts bound to the store are projected accordingly.

If you don't use stores you can use localeProjection to specify the needed locales directly in the query.