# setupCustomer

### Create an empty Customer with default policies <a href="#create-an-empty-customer-with-default-policies" id="create-an-empty-customer-with-default-policies"></a>

To use this function when you are integration just the Location SDK

```swift
/**
 * Create empty customer with default policies.
 *
 * @param onSuccess - invoked if customer was created sucessfully
 * @param onError - invoked if exception occurred
 *
 */
- (void) setupCustomer: (void (^)(CustomerCreateResponse *resp)) onSuccess
               onError: (void (^)(NSError *error)) onError;
```

Calling this function It is equivalent to a make a login. The success of this function opens a session with the customer returned. To close the session use `logout()` method.&#x20;
