# \_getIsInvoiceable

Returns a value based on whether a specified Form or the Form of an Appointment is Invoiceable or not.

### Parameters

#### id

The ID of the Form to check.

Can also be in the format o(user ID)i(form ID), e.g "o92447i592002"

#### app\_id

An alternative to "id", meant to be the ID of an Appointment linked to the Form.

### Example

```
FM_api('Form_getIsInvoiceable',[
    'id'=>'580335'
    ]
);
```

### Result

#### On Success

Returns 1 if the Form is Invoiceable, and 0 if it is not invoiceable.

```
"0"
```

```
"1"
```

#### On Failure

If there is not an "id" or "app\_id" parameter set:

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

If the "id" parameter is used but does not match an existing Form,\
or the "app\_id" parameter is used but does not match an existing Appointment:

```
false
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fieldmotion.com/fieldmotion-api-docs/form/_getisinvoiceable.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
