Manipulating Data using Push notification

How can I take input from the user using push notifications?
Is there a way of updating values in the data by taking input frthrough push notification?

Specifically, I want to notify the user when a spot is availble through a push notification. Depending on whether the user wants to book it or not(Y/N input), I want to manipulate my data (change value of spots available, record time at which user responded, delete user’s record from waiting list)

Thanks in advance