Updated API for basket adding and retrieval