Gopuff Interview Question

How would you design an API for their shopping cart?