Locations service for reading a merchant's Square locations.
Example
// Derive the merchant's currency instead of configuring it const [location] = awaitsquare.locations.list(); constcurrency = location?.currency; // e.g. 'CAD'
If Square returns an errors body — e.g. the
access token lacks the MERCHANT_PROFILE_READ scope (code is
INSUFFICIENT_SCOPES). An empty array always means the merchant
genuinely has no locations.
Locations service for reading a merchant's Square locations.
Example