[cart] Refactor api to use update command.