# ObjectFranchiseofficeAPI All URIs are relative to *https://prod.api.appcluster01.ca-central-1.ezmax.com/rest* Method | HTTP request | Description ------------- | ------------- | ------------- [**franchiseofficeGetAutocompleteV2**](ObjectFranchiseofficeAPI.md#franchiseofficegetautocompletev2) | **GET** /2/object/franchiseoffice/getAutocomplete/{sSelector} | Retrieve Franchiseoffices and IDs # **franchiseofficeGetAutocompleteV2** ```swift open class func franchiseofficeGetAutocompleteV2(sSelector: SSelector_franchiseofficeGetAutocompleteV2, eFilterActive: EFilterActive_franchiseofficeGetAutocompleteV2? = nil, sQuery: String? = nil, acceptLanguage: HeaderAcceptLanguage? = nil, completion: @escaping (_ data: FranchiseofficeGetAutocompleteV2Response?, _ error: Error?) -> Void) ``` Retrieve Franchiseoffices and IDs Get the list of Franchiseoffice to be used in a dropdown or autocomplete control. ### Example ```swift // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import OpenAPIClient let sSelector = "sSelector_example" // String | The type of Franchiseoffices to return let eFilterActive = "eFilterActive_example" // String | Specify which results we want to display. (optional) (default to .active) let sQuery = "sQuery_example" // String | Allow to filter the returned results (optional) let acceptLanguage = Header-Accept-Language() // HeaderAcceptLanguage | (optional) // Retrieve Franchiseoffices and IDs ObjectFranchiseofficeAPI.franchiseofficeGetAutocompleteV2(sSelector: sSelector, eFilterActive: eFilterActive, sQuery: sQuery, acceptLanguage: acceptLanguage) { (response, error) in guard error == nil else { print(error) return } if (response) { dump(response) } } ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **sSelector** | **String** | The type of Franchiseoffices to return | **eFilterActive** | **String** | Specify which results we want to display. | [optional] [default to .active] **sQuery** | **String** | Allow to filter the returned results | [optional] **acceptLanguage** | [**HeaderAcceptLanguage**](.md) | | [optional] ### Return type [**FranchiseofficeGetAutocompleteV2Response**](FranchiseofficeGetAutocompleteV2Response.md) ### Authorization [Authorization](../README.md#Authorization) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)