Page Summary
-
This is a legacy tutorial intended only for maintaining existing integrations, with new integrations advised to use the up-to-date tutorial.
-
The guide is specifically for Actions Center Legacy Starter integration partners who use
action_link(s) for ordering actions. -
Partners must use
action_link_typeto differentiate between food takeout (ACTION_LINK_TYPE_ORDER_FOOD_TAKEOUT) and food delivery (ACTION_LINK_TYPE_ORDER_FOOD_DELIVERY) actions. -
A single
action_linkcan only be associated with oneaction_link_type, but multipleaction_links can be provided for merchants supporting both takeout and delivery. -
If a single URL handles both takeout and delivery, the
action_linkshould be submitted twice, each time with the appropriateaction_link_type.
Legacy Starter Integration partners have the ability to associate different
action_link_type with their
action_link(s).
action_link_type helps identify what kind of action a user can
perform when they are redirected to the partners’ website using that link.
- You can only associate a single
action_link_typewith each action_link.
When ordering food, a user can request the following two actions to be performed:
- Request food pickup from the restaurant (Order Food Takeout)
- Request food delivery to a specific location (Order Food Delivery)
This is recommended for all partners participating in Food Actions, if you
are currently sending us
action_link(s)
with action_link_type = ACTION_LINK_TYPE_ORDER_FOOD or
service_type = SERVICE_TYPE_FOOD_ORDERING we recommend that
you update your feeds to be inline with the current approach.
Merchants supporting ordering food takeout pickup
Merchants
{ "merchant": [ { "merchant_id": "merch10", "name": "Sample Restaurant", "telephone": "+1-650-123-4567", "url": "https://www.restaurantsamplewebsite.com", "category": "restaurant", "geo": { "address": { "street_address": "803 11th Avenue", "locality": "Sunnyvale", "region": "CA", "country": "USA", "postal_code": "94089" } }, "action_link": [ { "url": "https://www.partnerwebsite.com/foodtakeout/merch34", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_TAKEOUT", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" } ] } ] }
Services
{ "service": [ { "merchant_id": "merch10", "service_id": "10", "localized_service_name": { "value": "Reservation", "localized_value": [ { "locale": "en", "value": "Food Order" } ] }, "action_link": [ { "url": "https://www.rwgpartnerwebsite.com/reserve_table/merch1", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_TAKEOUT", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" } ] } ] }
Merchants supporting ordeirng food delivery
Merchants
{ "merchant": [ { "merchant_id": "merch10", "name": "Sample Restaurant", "telephone": "+1-650-123-4567", "url": "https://www.restaurantsamplewebsite.com", "category": "restaurant", "geo": { "address": { "street_address": "803 11th Avenue", "locality": "Sunnyvale", "region": "CA", "country": "USA", "postal_code": "94089" } }, "action_link": [ { "url": "https://www.partnerwebsite.com/fooddelivery/merch34", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_DELIVERY", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" } ] } ] }
Services
{ "service": [ { "merchant_id": "merch10", "service_id": "10", "localized_service_name": { "value": "Food Delivery", "localized_value": [ { "locale": "en", "value": "Food Delivery" } ] }, "action_link": [ { "url": "https://www.rwgpartnerwebsite.com/reserve_table/merch1", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_DELIVERY", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" } ] } ] }
Merchants supporting food takeout pickup and delivery
If a merchant supports both actions i.e. Food order delivery and Food order
pickup, it is recommended that you provide two separate
action_link(s)
and associate them with the appropriate actions.
Merchants
{ "merchant": [ { "merchant_id": "merch10", "name": "Sample Restaurant", "telephone": "+1-650-123-4567", "url": "https://www.restaurantsamplewebsite.com", "category": "restaurant", "geo": { "address": { "street_address": "803 11th Avenue", "locality": "Sunnyvale", "region": "CA", "country": "USA", "postal_code": "94089" } }, "action_link": [ { "url": "https://www.partnerwebsite.com/foodtakeout/merch34", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_TAKEOUT", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" }, { "url": "https://www.partnerwebsite.com/fooddelivery/merch34", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_DELIVERY", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" } ] } ] }
Services
{ "service": [ { "merchant_id": "merch10", "service_id": "10", "localized_service_name": { "value": "Food Order", "localized_value": [ { "locale": "en", "value": "Food Order" } ] }, "action_link": [ { "url": "https://www.rwgpartnerwebsite.com/foodpickup/merch10", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_TAKEOUT", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" } ] }, { "merchant_id": "merch10", "service_id": "10", "localized_service_name": { "value": "Food Delivery", "localized_value": [ { "locale": "en", "value": "Food Delivery" } ] }, "action_link": [ { "url": "https://www.rwgpartnerwebsite.com/fooddelivery/merch10", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_DELIVERY", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" } ] } ] }
Merchants supporting both actions via a single URL
For instance where an action_link
which deeplinks to generic ordering page for the restaurant where the user would
be required to choose between Food delivery and Food pickup, we recommend the
following
Submit the action_link
URL twice, associating each instance with the appropriate action_link_type as
mentioned below:
- For the first instance, tag the
action_linkusingaction_link_type = ACTION_LINK_TYPE_ORDER_FOOD_DELIVERY - For the second instance, tag the
action_linkusingaction_link_type = ACTION_LINK_TYPE_ORDER_FOOD_PICKUP
Merchants
{ "merchant": [ { "merchant_id": "merch10", "name": "Sample Restaurant", "telephone": "+1-650-123-4567", "url": "https://www.restaurantsamplewebsite.com", "category": "restaurant", "geo": { "address": { "street_address": "803 11th Avenue", "locality": "Sunnyvale", "region": "CA", "country": "USA", "postal_code": "94089" } }, "action_link": [ { "url": "https://www.partnerwebsite.com/foodtakeout+delivery/merch34", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_DELIVERY", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" }, { "url": "https://www.partnerwebsite.com/foodtakeout+delivery/merch34", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_TAKEOUT", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" } ] } ] }
Services
{ "service": [ { "merchant_id": "merch10", "service_id": "10", "localized_service_name": { "value": "Food Order", "localized_value": [ { "locale": "en", "value": "Food Order" } ] }, "action_link": [ { "url": "https://www.rwgpartnerwebsite.com/foodtakeout+delivery/merch10", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_TAKEOUT", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" } ] }, { "merchant_id": "merch10", "service_id": "10", "localized_service_name": { "value": "Food Delivery", "localized_value": [ { "locale": "en", "value": "Food Delivery" } ] }, "action_link": [ { "url": "https://www.rwgpartnerwebsite.com/foodtakeout+delivery/merch10", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_DELIVERY", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" } ] } ] }