Job category:
Software Engineering

Carts API: Line Items, Totals, and Inventory Snapshots

Introduce shopping carts and cart items. You’ll create carts, add and update items, and return computed totals. This module establishes the data flow that powers checkout in the final module.
PostgreSQL
Remix
TypeScript
3 lessons
12 practices
2 hours
Badge for Data Management and Database Querying,

Course details

Managing Shopping Carts
Observe how carts are created and fetched with totals
Implement POST /api/carts to create a cart
Implement GET /api/carts/:id to return items and totals
Validate cart id and map errors correctly in the loader

Turn screen time into skills time

Practice anytime, anywhere with our mobile app.
Sign up

Join the 1M+ learners on CodeSignal

Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal