Catch up on all the news, sessions, and announcements from Google I/O 2021. Watch now.

Cancel taxi reservation

Action ID
actions.intent.CANCEL_TAXI_RESERVATION
Description
Initiate cancellation of an in-progress reservation or ride. Your app must confirm with the user before finalizing the cancellation.

Locale support

Functionality Locales
Preview creation using App Actions test tool en-US, en-GB, en-CA, en-IN, en-BE, en-SG, en-AU, id-ID
User invocation from Google Assistant en-US, en-GB, en-CA, en-IN, en-BE, en-SG, en-AU, id-ID

Example queries

Sample XML files

For information about the actions.xml schema, see Create actions.xml. For information about the shortcuts.xml schema, see Create shorcuts.xml.

Handle BII parameters

shortcuts.xml

<?xml version="1.0" encoding="utf-8"?>
<!-- This is a sample shortcuts.xml -->
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
  <capability android:name="actions.intent.CANCEL_TAXI_RESERVATION">
    <intent
      android:action="android.intent.action.VIEW"
      android:targetPackage="YOUR_UNIQUE_APPLICATION_ID"
      android:targetClass="YOUR_TARGET_CLASS">
    </intent>
  </capability>
</shortcuts>
      

actions.xml

<?xml version="1.0" encoding="utf-8"?>
<!-- This is a sample actions.xml -->
<actions>
  <action intentName="actions.intent.CANCEL_TAXI_RESERVATION">
    <fulfillment urlTemplate="myapp://custom-deeplink">
    </fulfillment>
  </action>
</actions>