I followed the doc at this page: https://docs.snipcart.com/v3/sdk/api#cart
I can update the cart like so:
Snipcart.api.cart.update({ email: \'john.do