> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/customer/_financialsexport.md).

# \_financialsExport

Returns financial details for a given customer

### Parameters

#### customerId

The ID of the customer

#### dateFrom

The date to retrieve financial details from in formatt YYYY/MM/DD

#### dateTo

The date to retrieve financial details to in formatt YYYY/MM/DD

### Example

```
FM_api('Customer_financialsExport', ['customerId' => '4', 'datefrom' => '2018/08/01', 'dateTo' => '2018/12/29'])
```

#### On Success

```
"ID,Contract,Date,Labour,Mileage,Stock,"Total Costs",Price(Net),Price(Gross),Tax,Profit
85,,"2018-10-23 12:00:00",10.00,0,50.00,60.00,0.0000,0,0,0
95,,"2018-10-17 10:50:11",32.5,0,0,32.5,0.0000,0,0,-32.5
```
