Changing the state of a booking is done via actions. Some actions will autoplay and some can be manually triggered via this endpoint.
The actions available for a given booking are dependent on which graph the booking follows and which state the booking is in.
Some actions can take inputs/settings. For example, in the
confirm_decline graph, the
decline action can take a message and be enabled/disabled. Please see the reference for the relevant graph to see which inputs are valid.
If the action you're performing results in a final state where the booking cannot take other actions (e.g. completed, paid, declined etc), the response will have a
completed key set to
Confirm a booking: use the action
Decline a booking: use the action
Cancel a booking: use the action
cancel (if the resource cancels) or
cancel_by_customer (if its the customer that initiates the cancellation)