This article shares basic flows your app could support.
You're certainly not limited to these use cases, but they can be a helpful jumping-off point for your planning.
Your app could create tip settings tailored to a specific
location.
To create location-specific tip settings:
- Use List Locations
to retrieve a list of all locations associated with the site.
- Display the list of locations to the business owners and allow them select
the location for which they want to configure specific tip settings.
- Check if tip settings already exist for the chosen location using
Query Tip Settings.
Filter the query by the relevant location ID.
- If location-specific tip settings exist, display them to the business
owners for review and editing. If no settings exist, display default values
and allow customization.
- Save the tip settings using either
Create Tip Settings,
(for new settings) or
Update Tip Settings
(for existing settings).
Your app could create tip settings tailored to a specific device used for processing payments.
To create payment-terminal-specific tip settings:
- Check if tip settings already exist for the relevant payment terminal using
Query Tip Settings.
Provide
paymentTerminalId
as filter.
- If payment-terminal-specific tip settings exist, display them to the business
owners for review and editing. If no settings exist, display default values
and allow customization.
- Save the tip settings using either
Create Tip Settings,
(for new settings) or
Update Tip Settings
(for existing settings).