created a purchased_cart_item view in couchbase and used it to create api for history page