# \_checkAccountNumberIsUnique

Checks if a Customer's Account Number is Unique

### Parameters

#### id

The id of the customer to be checked.

#### account\_number

The account number of the customer being checked.

### Example

```
FM_api('Customer_checkAccountNumberIsUnique',[
  'id'=>'76943',
  'account_number'=>'12345'
  ]
);
```

### Result

#### On Success

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

#### On Failure

If the "id" parameter is not included:

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

If the "account\_number" parameter is not included:

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

If there is already another Customer with the same account number as the "account\_number" parameter:

```
{"error":"Account number must be unique"}
```
