Check your learning

Learn how to apply your knowledge of Shopping List implementation through practical SDK scenarios.

After completing this page, you should be able to:

  • Apply SDK methods to update Shopping Lists, incorporating best practices for batching actions, concurrency control, and user transitions.
Zen Electron's development team is refining the gift registry feature. A junior developer, Alex, has been assigned a task. A registered customer (customerId: "cust-abc-123") is viewing their existing "Wedding Registry" list (shoppingListId: "reg-xyz-789", version: 3). The customer wants to perform two actions simultaneously:
  • Add a specific Espresso Machine (productId: "coffee-master-5000", variantId: 1) to the registry with a quantity of 1.
  • Add a note for guests with the value of "Please include a gift note!".

Alex needs to write the TypeScript SDK code to update the Shopping List in a single API call.