# CustomerCreateResponse

```objectivec
NSString * status;
NSString * generated;
NSString * id;
NSString * organizationId;
NSString * locationId;
NSString * hotspotId;
NSString * username;
NSString * password;
NSNumber * mailSent;
```

| Variable       | Description                                                                                   | Example                            |
| -------------- | --------------------------------------------------------------------------------------------- | ---------------------------------- |
| status         | OK if customer has been created, KO otherwise                                                 | `{"OK","KO"}`                      |
| generated      | data when the customer has been created                                                       | `2022-07-08T13:15:43.885Z`         |
| id             | id of the customer created                                                                    | `986a372347aac5e4a94516db835d58aa` |
| organizationId | organizationId owner of the customer                                                          | `3a8ccd060216452e09b2b32e750cb5eb` |
| locationId     | locationId owner of the customer                                                              | `ff80808170f5232b01754653699e109e` |
| hotspotId      | hotspotId associated to the customer (not applicable when customer is created via mobile SDK) |                                    |
| username       | username of the customer to access cloud4wi services                                          | `YDSDFDKJEAS`                      |
| password       | password of the customer to access cloud4wi services                                          | `XYXXZXYX`                         |
| mailSent       | deprecated                                                                                    | nil                                |

### Example&#x20;

{% tabs %}
{% tab title="Swift" %}

```swift
cloud4WiSDKWiFi.createCustomer(customer, deduplicate: nil) { (customerResponse) in
    if let customerResponse = customerResponse {
        print(customerResponse.status)
        print(customerResponse.generated)
        print(customerResponse.id)
        print(customerResponse.organizationId)
        print(customerResponse.locationId)
        print(customerResponse.username)
        print(customerResponse.password)
        print(customerResponse.mailSent)
    }
}
```

{% endtab %}

{% tab title="Objective-C" %}

```objectivec
[cloud4WiSDKWiFi createCustomer:customer deduplicate:nil onSuccess:^(CustomerCreateResponse *customerCreateResp) {
	NSLog(@"%@", customerCreateResp.status);
	NSLog(@"%@", customerCreateResp.generated);
	NSLog(@"%@", customerCreateResp.id);
	NSLog(@"%@", customerCreateResp.organizationId);
	NSLog(@"%@", customerCreateResp.locationId);
	NSLog(@"%@", customerCreateResp.username);
	NSLog(@"%@", customerCreateResp.password);
	NSLog(@"%@", customerCreateResp.mailSent);	
	}  onError:^(NSError *error) {
	NSLog(@"ERROR. Cannot create customer: %@", [error localizedDescription]);
}];
```

{% endtab %}
{% endtabs %}

output

```swift
Optional("OK") <- status
Optional("2022-07-08T13:15:43.885Z") <- generated
Optional("986a372347aac5e4a94516db835d58aa") <- id
Optional("3a8ccd060216452e09b2b32e750cb5eb") <- organizationId
Optional("ff80808170f5232b01754653699e109e") <- locationId
Optional("YDSDFDKJEAS") <- username
Optional("XXXXX") <- password
nil <- mailSent
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://create.cloud4wi.ai/dev-hub/wifi-sdk/integrating-the-sdk/ios/objects/customercreateresponse.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
