> ## Documentation Index
> Fetch the complete documentation index at: https://docs.m3ter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Xero Functions

## Create Xero invoice

**Function name:** `CreateXeroInvoiceFunction`
**Category:** Write
**Destination:** Xero

Function to create Xero invoice

### Parameters

| Name                          | Label                | Required | Description                                                        |
| ----------------------------- | -------------------- | :------: | ------------------------------------------------------------------ |
| `integrationCredentialsId`    | Credentials          |    Yes   | Xero credentials to use.                                           |
| `xeroInvoiceStateVariable`    | Xero invoice         |    Yes   | Xero invoice to be created.                                        |
| `outputResourceStateVariable` | Output resource name |    Yes   | Name of the variable by which the invoices will be stored in state |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |

## Delete Xero invoice

**Function name:** `DeleteXeroInvoiceFunction`
**Category:** Write
**Destination:** Xero

Function to delete Xero invoice

### Parameters

| Name                         | Label           | Required | Description                                                         |
| ---------------------------- | --------------- | :------: | ------------------------------------------------------------------- |
| `integrationCredentialsId`   | Credentials     |    Yes   | Xero credentials to use.                                            |
| `xeroInvoiceIdStateVariable` | Xero invoice ID |    Yes   | Name of variable by which invoice ID should be retrieved from state |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |

## Read Xero invoice

**Function name:** `ReadXeroInvoiceFunction`
**Category:** Read
**Destination:** Xero

Function to read Xero invoice

### Parameters

| Name                          | Label                | Required | Description                                                         |
| ----------------------------- | -------------------- | :------: | ------------------------------------------------------------------- |
| `integrationCredentialsId`    | Credentials          |    Yes   | Xero credentials to use.                                            |
| `xeroInvoiceIdStateVariable`  | Xero invoice ID      |    Yes   | Name of variable by which invoice ID should be retrieved from state |
| `outputResourceStateVariable` | Output resource name |    Yes   | Name of the variable by which the invoice will be stored in state   |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |

## Update Xero invoice

**Function name:** `UpdateXeroInvoiceFunction`
**Category:** Write
**Destination:** Xero

Function to update Xero invoice

### Parameters

| Name                          | Label                | Required | Description                                                                  |
| ----------------------------- | -------------------- | :------: | ---------------------------------------------------------------------------- |
| `integrationCredentialsId`    | Credentials          |    Yes   | Xero credentials to use.                                                     |
| `xeroInvoiceIdStateVariable`  | Xero invoice ID      |    Yes   | Name of variable by which invoice ID should be retrieved from state          |
| `updateDataStateVariable`     | Update data          |    Yes   | Name of the variable by which data for update should be retrieved from state |
| `outputResourceStateVariable` | Output resource name |    Yes   | Name of the variable by which the invoice will be stored in state            |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |
