# \_new

Creates a new Quote for a Customer.

### Parameters

#### user\_id

The ID of the User.

#### customer\_id

The ID of the Customer.

#### total\_tax

The total tax amount.

#### total\_gross

The total gross amount.

#### total\_net

The total net amount.

### Example

```
FM_api('Quote_new', ['user_id' => '123', 'customer_id' => '456', 'total_tax' => 1.00, 'total_gross' => 1.00, 'total_net' => 4.00]);
```

### Result

#### On Success

```
{'ok':1,'id':'123'}
```

#### On Failure

If the specified User does not exist:

```
{'no such user'}
```

If the specified Customer does not exist:

```
{'error':'no such customer'}
```
