> 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/_getcreditterms.md).

# \_getCreditTerms

Gathers credit terms from a Customer with a given ID

### Parameters

#### id

The ID of the Customer

### Example

```
FM_api('Customer_getCreditTerms',[
  'id'=>'682910'
]);
```

### Results

#### On Success

```
{"credit_terms":"test credit term"}
```

#### On Failure

If no "id" parameter is provided or it has a value less than 1:

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

If the "id" parameter does not match an existing customer:

```
{"error":"customer does not exist"}
```
