Instance Method

locations(request:)

Retrieves the list of available merchant locations associated with the current account.

Declaration

func locations(request: GetLocationsRequest = GetLocationsRequest()) async throws -> [Location]

Parameters

request

A GetLocationsRequest containing optional filtering criteria (defaults to an empty request).

Return Value

An array of Location objects associated with the merchant.

Discussion

This method returns a list of all merchant locations tied to the authenticated account. It is commonly used to populate location selectors during login or transaction setup flows.