# \_checkLandlineIsUnique

Check is a customers landline number is unique.

### Parameters

#### id

The id of the customer.

#### landline

The customers landline number.

### Example

```
FM_api('Customer_checkLandlineIsUnique', [
    'id' => '1', 
    'landline' => '02841753939'
    ]
);
```

### Result

#### On Success

```
{"ok":1}
```

#### On Failure

If the "id" parameter is not set or less than 1:

```
{"error":"invalid or missing parameter: id"}
```

If there's another Customer with the same Landline number:\
(The ID and name of that customer are returned in this result)

```
{"ok":0,"data":{"id":682785,"name":"A Test Customer"}}
```


---

# 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://docs.fieldmotion.com/fieldmotion-api-docs/customer/_checklandlineisunique.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.
