# \_getByNameAndCode

Returns the details of a Schedule of Rates based on name and code

### Parameters

#### name

The name and code for the schedule of rates in the following format, 'name (code)'.

### Example

```
FM_api('ScheduleOfRates_getByNameAndCode', ['name' => 'test1 (342)']);
```

### Result

#### On Success

```
{"id":"1","name":"test1","code":"342","stock_used":"null","cost":"100","last_edited":"2018-10-10 11:20:22","description":"","meta":"{\"nominal\":\"12\"},"asset_types":null}
```

#### On Failure

If the name is not included in the parameters:

```
{"error": "missing parameter: name"}
```
