Endpoints that modify a Cart ( e.g. ) can return one of the available views representing the updated Cart. By using views, you will not need to fetch the updated Cart in a subsequent API call.
The views can be requested by adding a views query parameter to your request with at least one of the following views:
Views
View
Description
Examples
Request
curl-D--XPOST<base_url>/api/v1/carts/<cartId>/lines?views=miniCart \-H'Authorization: Bearer <ACCESS_TOKEN>'-H'Content-Type: application/json' \-d'{ ...<the parameters for the request>... }'