Manage location API processes
Get Calls-to-Action
Description
Use Get CTAs API to retrieve a list of available calls-to-action for a PUBLISHED location. Then, optionally, use the Order CTA Providers API to reorder the list of available CTAs. After retrieving a notification about the successful publication of a reordered list of CTA providers, use the Update Location API to pass your chosen callToAction.
Preconditions
- Location is
PUBLISHED
Get CTAs
- API user calls Get CTAs to request a list of available calls-to-action (CTAs)
- System validates request
- If no exceptions, then
200 OKand response body with available CTAs is returned - API user reads the list of available CTAs
Order CTA Providers (Optional Subflow)
- API user calls Order CTA Providers API to request reordering of the list
- System synchronously validates the request
- If no exceptions, then
204 No Content (Success)is returned - System asynchronously validates the request
- If no exceptions, then Feedback is not generated
- System "listens" for event indicating that list is "live"
- System captures Feedback and generates Notification when event message is received
- Periodically API user requests Notifications
- Notification indicates that publication of list is successful
tip
Poll for notifications every 15 minutes
Update Location
- After reading a Notification about the successful publication of a reordered list, the API user requests to update a location resource. Included in the request is the API user's chosen
callToActionfor use on the place card. - System validates request
- System synchronously validates partner data
- If no exceptions, then
200 OKis returned - System asynchronously validates partner data
- If no exceptions, then Feedback is not generated
- System "listens" for event indicating resource is "live"
- System captures Feedback and generates Notification when event message is received
- Periodically API user requests Notifications
- Notification indicates that publication of resource is successful